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 LN_S STRIP ac_ct_STRIP LIBTOOL INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA EGREP LIBOBJS CHECK target_header_dir pexecute ltpexecute INSTALL_DEST enable_shared LTLIBOBJS'
313 ac_subst_files
='host_makefile_frag'
315 # Initialize some variables set by options.
317 ac_init_version
=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name
=s
,x
,x
,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir
='${exec_prefix}/bin'
341 sbindir
='${exec_prefix}/sbin'
342 libexecdir
='${exec_prefix}/libexec'
343 datadir
='${prefix}/share'
344 sysconfdir
='${prefix}/etc'
345 sharedstatedir
='${prefix}/com'
346 localstatedir
='${prefix}/var'
347 libdir
='${exec_prefix}/lib'
348 includedir
='${prefix}/include'
349 oldincludedir
='/usr/include'
350 infodir
='${prefix}/info'
351 mandir
='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
371 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
374 -build |
--build |
--buil |
--bui |
--bu)
375 ac_prev
=build_alias
;;
376 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
377 build_alias
=$ac_optarg ;;
379 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
380 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
381 ac_prev
=cache_file
;;
382 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
383 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
384 cache_file
=$ac_optarg ;;
387 cache_file
=config.cache
;;
389 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
391 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
393 datadir
=$ac_optarg ;;
395 -disable-* |
--disable-*)
396 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* |
--enable-*)
405 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
418 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
419 |
--exec |
--exe |
--ex)
420 ac_prev
=exec_prefix
;;
421 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
422 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
423 |
--exec=* |
--exe=* |
--ex=*)
424 exec_prefix
=$ac_optarg ;;
426 -gas |
--gas |
--ga |
--g)
427 # Obsolete; use --with-gas.
430 -help |
--help |
--hel |
--he |
-h)
432 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
433 ac_init_help
=recursive
;;
434 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
435 ac_init_help
=short
;;
437 -host |
--host |
--hos |
--ho)
438 ac_prev
=host_alias
;;
439 -host=* |
--host=* |
--hos=* |
--ho=*)
440 host_alias
=$ac_optarg ;;
442 -includedir |
--includedir |
--includedi |
--included |
--include \
443 |
--includ |
--inclu |
--incl |
--inc)
444 ac_prev
=includedir
;;
445 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
446 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
447 includedir
=$ac_optarg ;;
449 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
451 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
452 infodir
=$ac_optarg ;;
454 -libdir |
--libdir |
--libdi |
--libd)
456 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
459 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
460 |
--libexe |
--libex |
--libe)
461 ac_prev
=libexecdir
;;
462 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
463 |
--libexe=* |
--libex=* |
--libe=*)
464 libexecdir
=$ac_optarg ;;
466 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
467 |
--localstate |
--localstat |
--localsta |
--localst \
468 |
--locals |
--local |
--loca |
--loc |
--lo)
469 ac_prev
=localstatedir
;;
470 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
471 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
472 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
473 localstatedir
=$ac_optarg ;;
475 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
477 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
481 # Obsolete; use --without-fp.
484 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
485 |
--no-cr |
--no-c |
-n)
488 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
489 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
492 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
493 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
494 |
--oldin |
--oldi |
--old |
--ol |
--o)
495 ac_prev
=oldincludedir
;;
496 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
497 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
498 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
499 oldincludedir
=$ac_optarg ;;
501 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
503 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
506 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
507 |
--program-pre |
--program-pr |
--program-p)
508 ac_prev
=program_prefix
;;
509 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
510 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
511 program_prefix
=$ac_optarg ;;
513 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
514 |
--program-suf |
--program-su |
--program-s)
515 ac_prev
=program_suffix
;;
516 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
517 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
518 program_suffix
=$ac_optarg ;;
520 -program-transform-name |
--program-transform-name \
521 |
--program-transform-nam |
--program-transform-na \
522 |
--program-transform-n |
--program-transform- \
523 |
--program-transform |
--program-transfor \
524 |
--program-transfo |
--program-transf \
525 |
--program-trans |
--program-tran \
526 |
--progr-tra |
--program-tr |
--program-t)
527 ac_prev
=program_transform_name
;;
528 -program-transform-name=* |
--program-transform-name=* \
529 |
--program-transform-nam=* |
--program-transform-na=* \
530 |
--program-transform-n=* |
--program-transform-=* \
531 |
--program-transform=* |
--program-transfor=* \
532 |
--program-transfo=* |
--program-transf=* \
533 |
--program-trans=* |
--program-tran=* \
534 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
535 program_transform_name
=$ac_optarg ;;
537 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
538 |
-silent |
--silent |
--silen |
--sile |
--sil)
541 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
543 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
545 sbindir
=$ac_optarg ;;
547 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
548 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
549 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
551 ac_prev
=sharedstatedir
;;
552 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
553 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
554 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
556 sharedstatedir
=$ac_optarg ;;
558 -site |
--site |
--sit)
560 -site=* |
--site=* |
--sit=*)
563 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
565 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
568 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
569 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
570 ac_prev
=sysconfdir
;;
571 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
572 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
573 sysconfdir
=$ac_optarg ;;
575 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
576 ac_prev
=target_alias
;;
577 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
578 target_alias
=$ac_optarg ;;
580 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
583 -version |
--version |
--versio |
--versi |
--vers |
-V)
587 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package
=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* |
--without-*)
600 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package
=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
613 |
--x-incl |
--x-inc |
--x-in |
--x-i)
614 ac_prev
=x_includes
;;
615 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
616 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
617 x_includes
=$ac_optarg ;;
619 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
620 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
621 ac_prev
=x_libraries
;;
622 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
623 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
624 x_libraries
=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var
in exec_prefix prefix
661 eval ac_val
=$
`echo $ac_var`
663 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val
=$
`echo $ac_var`
675 [\\/$
]* | ?
:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x
; then
690 if test "x$build_alias" = x
; then
691 cross_compiling
=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
702 test "$silent" = yes && exec 6>/dev
/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted
=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir
=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted
=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set
=${build_alias+set}
742 ac_env_build_alias_value
=$build_alias
743 ac_cv_env_build_alias_set
=${build_alias+set}
744 ac_cv_env_build_alias_value
=$build_alias
745 ac_env_host_alias_set
=${host_alias+set}
746 ac_env_host_alias_value
=$host_alias
747 ac_cv_env_host_alias_set
=${host_alias+set}
748 ac_cv_env_host_alias_value
=$host_alias
749 ac_env_target_alias_set
=${target_alias+set}
750 ac_env_target_alias_value
=$target_alias
751 ac_cv_env_target_alias_set
=${target_alias+set}
752 ac_cv_env_target_alias_value
=$target_alias
753 ac_env_CC_set
=${CC+set}
755 ac_cv_env_CC_set
=${CC+set}
756 ac_cv_env_CC_value
=$CC
757 ac_env_CFLAGS_set
=${CFLAGS+set}
758 ac_env_CFLAGS_value
=$CFLAGS
759 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value
=$CFLAGS
761 ac_env_LDFLAGS_set
=${LDFLAGS+set}
762 ac_env_LDFLAGS_value
=$LDFLAGS
763 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value
=$LDFLAGS
765 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value
=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
769 ac_env_CPP_set
=${CPP+set}
770 ac_env_CPP_value
=$CPP
771 ac_cv_env_CPP_set
=${CPP+set}
772 ac_cv_env_CPP_value
=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
835 --build=BUILD configure
for building on BUILD
[guessed
]
836 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
840 if test -n "$ac_init_help"; then
845 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
846 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
847 --enable-maintainer-mode
848 enable make rules and dependencies not useful
849 (and sometimes confusing
) to the casual installer
850 --enable-shared=PKGS build shared libraries default
=no
851 --enable-static=PKGS build static libraries default
=yes
852 --enable-fast-install=PKGS optimize
for fast installation default
=yes
853 --disable-libtool-lock avoid locking
(might
break parallel builds
)
854 --enable-install-libiberty Install headers
for end users
857 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
858 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
859 --with-target-subdir=SUBDIR Configuring
in a subdirectory
for target
860 --with-build-subdir=SUBDIR Configuring
in a subdirectory
for build
861 --with-cross-host=HOST Configuring with a cross compiler
862 --with-newlib Configuring with newlib
863 --with-gnu-ld assume the C compiler uses GNU ld default
=no
864 --with-pic try to use only PIC
/non-PIC objects default
=use both
866 Some influential environment variables
:
867 CC C compiler
command
868 CFLAGS C compiler flags
869 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
870 nonstandard directory
<lib dir
>
871 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
872 headers
in a nonstandard directory
<include dir
>
875 Use these variables to override the choices made by
`configure' or to help
876 it to find libraries and programs with nonstandard names/locations.
881 if test "$ac_init_help" = "recursive"; then
882 # If there are subdirs, report their specific --help.
884 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
885 test -d $ac_dir || continue
888 if test "$ac_dir" != .; then
889 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
890 # A "../" for each directory in $ac_dir_suffix.
891 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
893 ac_dir_suffix= ac_top_builddir=
897 .) # No --srcdir option. We are building in place.
899 if test -z "$ac_top_builddir"; then
902 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
904 [\\/]* | ?:[\\/]* ) # Absolute path.
905 ac_srcdir=$srcdir$ac_dir_suffix;
906 ac_top_srcdir=$srcdir ;;
908 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
909 ac_top_srcdir=$ac_top_builddir$srcdir ;;
912 # Do not use `cd foo
&& pwd` to compute absolute paths, because
913 # the directories may not exist.
915 .) ac_abs_builddir="$ac_dir";;
918 .) ac_abs_builddir=`pwd`;;
919 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
920 *) ac_abs_builddir=`pwd`/"$ac_dir";;
923 case $ac_abs_builddir in
924 .) ac_abs_top_builddir=${ac_top_builddir}.;;
926 case ${ac_top_builddir}. in
927 .) ac_abs_top_builddir=$ac_abs_builddir;;
928 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
929 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
932 case $ac_abs_builddir in
933 .) ac_abs_srcdir=$ac_srcdir;;
936 .) ac_abs_srcdir=$ac_abs_builddir;;
937 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
938 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
941 case $ac_abs_builddir in
942 .) ac_abs_top_srcdir=$ac_top_srcdir;;
944 case $ac_top_srcdir in
945 .) ac_abs_top_srcdir=$ac_abs_builddir;;
946 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
947 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
952 # Check for guested configure; otherwise get Cygnus style configure.
953 if test -f $ac_srcdir/configure.gnu; then
955 $SHELL $ac_srcdir/configure.gnu --help=recursive
956 elif test -f $ac_srcdir/configure; then
958 $SHELL $ac_srcdir/configure --help=recursive
959 elif test -f $ac_srcdir/configure.ac ||
960 test -f $ac_srcdir/configure.in; then
964 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
970 test -n "$ac_init_help" && exit 0
971 if $ac_init_version; then
974 Copyright (C) 2003 Free Software Foundation, Inc.
975 This configure script is free software; the Free Software Foundation
976 gives unlimited permission to copy, distribute and modify it.
982 This file contains any messages produced by compilers while
983 running configure, to aid debugging if configure makes a mistake.
985 It was created by $as_me, which was
986 generated by GNU Autoconf 2.59. Invocation command line was
997 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
998 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
999 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1000 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1001 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1003 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1004 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1006 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1007 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1008 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1009 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1010 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1011 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1012 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1020 test -z "$as_dir" && as_dir=.
1021 echo "PATH: $as_dir"
1036 # Keep a trace of the command line.
1037 # Strip out --no-create and --no-recursion so they do not pile up.
1038 # Strip out --silent because we don't want to record it for future runs.
1039 # Also quote any args containing shell meta-characters.
1040 # Make two passes to allow for proper duplicate-argument suppression.
1045 ac_must_keep_next=false
1051 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1053 | -silent | --silent | --silen | --sile | --sil)
1055 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1056 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1059 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1061 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1062 if test $ac_must_keep_next = true; then
1063 ac_must_keep_next=false # Got value, back to normal.
1066 *=* | --config-cache | -C | -disable-* | --disable-* \
1067 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1068 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1069 | -with-* | --with-* | -without-* | --without-* | --x)
1070 case "$ac_configure_args0 " in
1071 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1074 -* ) ac_must_keep_next=true ;;
1077 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1078 # Get rid of the leading space.
1084 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1085 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1087 # When interrupted or exit'd, cleanup temporary files, and complete
1088 # config.log. We remove comments because anyway the quotes in there
1089 # would cause problems or look ugly.
1090 # WARNING: Be sure not to use single quotes in there, as some shells,
1091 # such as our DU 5.0 friend, will then `close
' the trap.
1092 trap 'exit_status
=$?
1093 # Save into config.log some information that might help in debugging.
1098 ## ---------------- ##
1099 ## Cache variables. ##
1100 ## ---------------- ##
1103 # The following way of writing the cache mishandles newlines in values,
1106 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1109 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1110 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1114 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1121 ## ----------------- ##
1122 ## Output variables. ##
1123 ## ----------------- ##
1126 for ac_var
in $ac_subst_vars
1128 eval ac_val
=$
`echo $ac_var`
1129 echo "$ac_var='"'"'$ac_val'"'"'"
1133 if test -n "$ac_subst_files"; then
1140 for ac_var
in $ac_subst_files
1142 eval ac_val
=$
`echo $ac_var`
1143 echo "$ac_var='"'"'$ac_val'"'"'"
1148 if test -s confdefs.h
; then
1155 sed "/^$/d" confdefs.h |
sort
1158 test "$ac_signal" != 0 &&
1159 echo "$as_me: caught signal $ac_signal"
1160 echo "$as_me: exit $exit_status"
1162 rm -f core
*.core
&&
1163 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1166 for ac_signal in 1 2 13 15; do
1167 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1171 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1172 rm -rf conftest* confdefs.h
1173 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1176 # Predefined preprocessor variables.
1178 cat >>confdefs.h <<_ACEOF
1179 #define PACKAGE_NAME "$PACKAGE_NAME"
1183 cat >>confdefs.h <<_ACEOF
1184 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1188 cat >>confdefs.h <<_ACEOF
1189 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1193 cat >>confdefs.h <<_ACEOF
1194 #define PACKAGE_STRING "$PACKAGE_STRING"
1198 cat >>confdefs.h <<_ACEOF
1199 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1203 # Let the site file select an alternate cache file if it wants to.
1204 # Prefer explicitly selected file to automatically selected ones.
1205 if test -z "$CONFIG_SITE"; then
1206 if test "x$prefix" != xNONE; then
1207 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1209 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1212 for ac_site_file in $CONFIG_SITE; do
1213 if test -r "$ac_site_file"; then
1214 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1215 echo "$as_me: loading site script $ac_site_file" >&6;}
1216 sed 's
/^
/|
/' "$ac_site_file" >&5
1221 if test -r "$cache_file"; then
1222 # Some versions of bash will fail to source /dev/null (special
1223 # files actually), so we avoid doing that.
1224 if test -f "$cache_file"; then
1225 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1226 echo "$as_me: loading cache $cache_file" >&6;}
1228 [\\/]* | ?:[\\/]* ) . $cache_file;;
1229 *) . ./$cache_file;;
1233 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1234 echo "$as_me: creating cache $cache_file" >&6;}
1238 # Check that the precious variables saved in the cache have kept the same
1240 ac_cache_corrupted=false
1241 for ac_var in `(set) 2>&1 |
1242 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1243 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1244 eval ac_new_set=\$ac_env_${ac_var}_set
1245 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1246 eval ac_new_val="\$ac_env_${ac_var}_value"
1247 case $ac_old_set,$ac_new_set in
1249 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1250 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1251 ac_cache_corrupted=: ;;
1253 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1254 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1255 ac_cache_corrupted=: ;;
1258 if test "x$ac_old_val" != "x$ac_new_val"; then
1259 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1260 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1261 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1262 echo "$as_me: former value: $ac_old_val" >&2;}
1263 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1264 echo "$as_me: current value: $ac_new_val" >&2;}
1265 ac_cache_corrupted=:
1268 # Pass precious variables to config.status.
1269 if test "$ac_new_set" = set; then
1271 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1272 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1273 *) ac_arg=$ac_var=$ac_new_val ;;
1275 case " $ac_configure_args " in
1276 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1277 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1281 if $ac_cache_corrupted; then
1282 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1283 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1284 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1285 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1286 { (exit 1); exit 1; }; }
1290 ac_cpp='$CPP $CPPFLAGS'
1291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1292 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1315 # FIXME: libiberty doesn't support
--disable-static
1318 # This works around the fact that libtool configuration may change LD
1319 # for this particular configuration, but some shells, instead of
1320 # keeping the changes in LD private, export them just because LD is
1321 # exported. We don't use libtool yet, but some day we might, so...
1322 ORIGINAL_LD_FOR_MULTILIBS
=$LD
1325 # Check whether --with-target-subdir or --without-target-subdir was given.
1326 if test "${with_target_subdir+set}" = set; then
1327 withval
="$with_target_subdir"
1331 # Check whether --with-build-subdir or --without-build-subdir was given.
1332 if test "${with_build_subdir+set}" = set; then
1333 withval
="$with_build_subdir"
1337 # Check whether --with-cross-host or --without-cross-host was given.
1338 if test "${with_cross_host+set}" = set; then
1339 withval
="$with_cross_host"
1343 # Check whether --with-newlib or --without-newlib was given.
1344 if test "${with_newlib+set}" = set; then
1345 withval
="$with_newlib"
1349 if test "${srcdir}" = "."; then
1350 if test -n "${with_build_subdir}"; then
1351 libiberty_topdir
="${srcdir}/../.."
1353 elif test -z "${with_target_subdir}"; then
1354 libiberty_topdir
="${srcdir}/.."
1356 if test "${with_target_subdir}" != "."; then
1357 libiberty_topdir
="${srcdir}/${with_multisrctop}../.."
1359 libiberty_topdir
="${srcdir}/${with_multisrctop}.."
1363 libiberty_topdir
="${srcdir}/.."
1367 for ac_dir
in $libiberty_topdir $srcdir/$libiberty_topdir; do
1368 if test -f $ac_dir/install-sh
; then
1370 ac_install_sh
="$ac_aux_dir/install-sh -c"
1372 elif test -f $ac_dir/install.sh
; then
1374 ac_install_sh
="$ac_aux_dir/install.sh -c"
1376 elif test -f $ac_dir/shtool
; then
1378 ac_install_sh
="$ac_aux_dir/shtool install -c"
1382 if test -z "$ac_aux_dir"; then
1383 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $libiberty_topdir $srcdir/$libiberty_topdir" >&5
1384 echo "$as_me: error: cannot find install-sh or install.sh in $libiberty_topdir $srcdir/$libiberty_topdir" >&2;}
1385 { (exit 1); exit 1; }; }
1387 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1388 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1389 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1393 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1394 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1395 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1396 if test "${enable_maintainer_mode+set}" = set; then
1397 enableval
="$enable_maintainer_mode"
1398 maintainer_mode
=$enableval
1403 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
1404 echo "${ECHO_T}$maintainer_mode" >&6
1406 if test "$maintainer_mode" = "yes"; then
1414 # Do we have a single-tree copy of texinfo? Even if we do, we can't
1415 # rely on it - libiberty is built before texinfo.
1416 # Extract the first word of "makeinfo", so it can be a program name with args.
1417 set dummy makeinfo
; ac_word
=$2
1418 echo "$as_me:$LINENO: checking for $ac_word" >&5
1419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1420 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
1421 echo $ECHO_N "(cached) $ECHO_C" >&6
1423 if test -n "$MAKEINFO"; then
1424 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
1426 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1430 test -z "$as_dir" && as_dir
=.
1431 for ac_exec_ext
in '' $ac_executable_extensions; do
1432 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1433 ac_cv_prog_MAKEINFO
="makeinfo"
1434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1442 MAKEINFO
=$ac_cv_prog_MAKEINFO
1443 if test -n "$MAKEINFO"; then
1444 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
1445 echo "${ECHO_T}$MAKEINFO" >&6
1447 echo "$as_me:$LINENO: result: no" >&5
1448 echo "${ECHO_T}no" >&6
1451 if test "x$MAKEINFO" = "x"; then
1452 MAKEINFO
="@echo makeinfo missing; true"
1457 */missing\ makeinfo
*)
1459 { echo "$as_me:$LINENO: WARNING:
1460 *** Makeinfo is missing. Info documentation will not be built." >&5
1461 echo "$as_me: WARNING:
1462 *** Makeinfo is missing. Info documentation will not be built." >&2;}
1465 case x
"`$MAKEINFO --version | grep 'GNU texinfo'`" in
1467 MAKEINFO
="@echo $MAKEINFO is too old, 4.0 or newer required; true"
1469 { echo "$as_me:$LINENO: WARNING:
1470 *** Makeinfo is too old. Info documentation will not be built." >&5
1471 echo "$as_me: WARNING:
1472 *** Makeinfo is too old. Info documentation will not be built." >&2;}
1481 # Extract the first word of "perl", so it can be a program name with args.
1482 set dummy perl
; ac_word
=$2
1483 echo "$as_me:$LINENO: checking for $ac_word" >&5
1484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1485 if test "${ac_cv_prog_PERL+set}" = set; then
1486 echo $ECHO_N "(cached) $ECHO_C" >&6
1488 if test -n "$PERL"; then
1489 ac_cv_prog_PERL
="$PERL" # Let the user override the test.
1491 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1495 test -z "$as_dir" && as_dir
=.
1496 for ac_exec_ext
in '' $ac_executable_extensions; do
1497 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1498 ac_cv_prog_PERL
="perl"
1499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1507 PERL
=$ac_cv_prog_PERL
1508 if test -n "$PERL"; then
1509 echo "$as_me:$LINENO: result: $PERL" >&5
1510 echo "${ECHO_T}$PERL" >&6
1512 echo "$as_me:$LINENO: result: no" >&5
1513 echo "${ECHO_T}no" >&6
1516 if test x
"$PERL" = x
""; then
1523 # Make sure we can run config.sub.
1524 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1525 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1526 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1527 { (exit 1); exit 1; }; }
1529 echo "$as_me:$LINENO: checking build system type" >&5
1530 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1531 if test "${ac_cv_build+set}" = set; then
1532 echo $ECHO_N "(cached) $ECHO_C" >&6
1534 ac_cv_build_alias
=$build_alias
1535 test -z "$ac_cv_build_alias" &&
1536 ac_cv_build_alias
=`$ac_config_guess`
1537 test -z "$ac_cv_build_alias" &&
1538 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1539 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1540 { (exit 1); exit 1; }; }
1541 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1542 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1543 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1544 { (exit 1); exit 1; }; }
1547 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1548 echo "${ECHO_T}$ac_cv_build" >&6
1550 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1551 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1552 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1555 echo "$as_me:$LINENO: checking host system type" >&5
1556 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1557 if test "${ac_cv_host+set}" = set; then
1558 echo $ECHO_N "(cached) $ECHO_C" >&6
1560 ac_cv_host_alias
=$host_alias
1561 test -z "$ac_cv_host_alias" &&
1562 ac_cv_host_alias
=$ac_cv_build_alias
1563 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1564 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1565 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1566 { (exit 1); exit 1; }; }
1569 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1570 echo "${ECHO_T}$ac_cv_host" >&6
1572 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1573 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1574 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1579 if test -n "$ac_tool_prefix"; then
1580 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1581 set dummy
${ac_tool_prefix}ar; ac_word
=$2
1582 echo "$as_me:$LINENO: checking for $ac_word" >&5
1583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1584 if test "${ac_cv_prog_AR+set}" = set; then
1585 echo $ECHO_N "(cached) $ECHO_C" >&6
1587 if test -n "$AR"; then
1588 ac_cv_prog_AR
="$AR" # Let the user override the test.
1590 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1594 test -z "$as_dir" && as_dir
=.
1595 for ac_exec_ext
in '' $ac_executable_extensions; do
1596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1597 ac_cv_prog_AR
="${ac_tool_prefix}ar"
1598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1607 if test -n "$AR"; then
1608 echo "$as_me:$LINENO: result: $AR" >&5
1609 echo "${ECHO_T}$AR" >&6
1611 echo "$as_me:$LINENO: result: no" >&5
1612 echo "${ECHO_T}no" >&6
1616 if test -z "$ac_cv_prog_AR"; then
1618 # Extract the first word of "ar", so it can be a program name with args.
1619 set dummy
ar; ac_word
=$2
1620 echo "$as_me:$LINENO: checking for $ac_word" >&5
1621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1622 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
1623 echo $ECHO_N "(cached) $ECHO_C" >&6
1625 if test -n "$ac_ct_AR"; then
1626 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
1628 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1632 test -z "$as_dir" && as_dir
=.
1633 for ac_exec_ext
in '' $ac_executable_extensions; do
1634 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1635 ac_cv_prog_ac_ct_AR
="ar"
1636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1644 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
1645 if test -n "$ac_ct_AR"; then
1646 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
1647 echo "${ECHO_T}$ac_ct_AR" >&6
1649 echo "$as_me:$LINENO: result: no" >&5
1650 echo "${ECHO_T}no" >&6
1658 if test -n "$ac_tool_prefix"; then
1659 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1660 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1661 echo "$as_me:$LINENO: checking for $ac_word" >&5
1662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1663 if test "${ac_cv_prog_RANLIB+set}" = set; then
1664 echo $ECHO_N "(cached) $ECHO_C" >&6
1666 if test -n "$RANLIB"; then
1667 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1669 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1673 test -z "$as_dir" && as_dir
=.
1674 for ac_exec_ext
in '' $ac_executable_extensions; do
1675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1676 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1685 RANLIB
=$ac_cv_prog_RANLIB
1686 if test -n "$RANLIB"; then
1687 echo "$as_me:$LINENO: result: $RANLIB" >&5
1688 echo "${ECHO_T}$RANLIB" >&6
1690 echo "$as_me:$LINENO: result: no" >&5
1691 echo "${ECHO_T}no" >&6
1695 if test -z "$ac_cv_prog_RANLIB"; then
1696 ac_ct_RANLIB
=$RANLIB
1697 # Extract the first word of "ranlib", so it can be a program name with args.
1698 set dummy ranlib
; ac_word
=$2
1699 echo "$as_me:$LINENO: checking for $ac_word" >&5
1700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1701 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1702 echo $ECHO_N "(cached) $ECHO_C" >&6
1704 if test -n "$ac_ct_RANLIB"; then
1705 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
1707 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1711 test -z "$as_dir" && as_dir
=.
1712 for ac_exec_ext
in '' $ac_executable_extensions; do
1713 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1714 ac_cv_prog_ac_ct_RANLIB
="ranlib"
1715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1721 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
1724 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
1725 if test -n "$ac_ct_RANLIB"; then
1726 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
1727 echo "${ECHO_T}$ac_ct_RANLIB" >&6
1729 echo "$as_me:$LINENO: result: no" >&5
1730 echo "${ECHO_T}no" >&6
1733 RANLIB
=$ac_ct_RANLIB
1735 RANLIB
="$ac_cv_prog_RANLIB"
1741 ac_cpp
='$CPP $CPPFLAGS'
1742 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1743 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1744 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1745 if test -n "$ac_tool_prefix"; then
1746 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1747 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1748 echo "$as_me:$LINENO: checking for $ac_word" >&5
1749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1750 if test "${ac_cv_prog_CC+set}" = set; then
1751 echo $ECHO_N "(cached) $ECHO_C" >&6
1753 if test -n "$CC"; then
1754 ac_cv_prog_CC
="$CC" # Let the user override the test.
1756 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1760 test -z "$as_dir" && as_dir
=.
1761 for ac_exec_ext
in '' $ac_executable_extensions; do
1762 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1763 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1773 if test -n "$CC"; then
1774 echo "$as_me:$LINENO: result: $CC" >&5
1775 echo "${ECHO_T}$CC" >&6
1777 echo "$as_me:$LINENO: result: no" >&5
1778 echo "${ECHO_T}no" >&6
1782 if test -z "$ac_cv_prog_CC"; then
1784 # Extract the first word of "gcc", so it can be a program name with args.
1785 set dummy gcc
; ac_word
=$2
1786 echo "$as_me:$LINENO: checking for $ac_word" >&5
1787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1788 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1789 echo $ECHO_N "(cached) $ECHO_C" >&6
1791 if test -n "$ac_ct_CC"; then
1792 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1794 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1798 test -z "$as_dir" && as_dir
=.
1799 for ac_exec_ext
in '' $ac_executable_extensions; do
1800 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1801 ac_cv_prog_ac_ct_CC
="gcc"
1802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1810 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1811 if test -n "$ac_ct_CC"; then
1812 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1813 echo "${ECHO_T}$ac_ct_CC" >&6
1815 echo "$as_me:$LINENO: result: no" >&5
1816 echo "${ECHO_T}no" >&6
1824 if test -z "$CC"; then
1825 if test -n "$ac_tool_prefix"; then
1826 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1827 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1828 echo "$as_me:$LINENO: checking for $ac_word" >&5
1829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1830 if test "${ac_cv_prog_CC+set}" = set; then
1831 echo $ECHO_N "(cached) $ECHO_C" >&6
1833 if test -n "$CC"; then
1834 ac_cv_prog_CC
="$CC" # Let the user override the test.
1836 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1840 test -z "$as_dir" && as_dir
=.
1841 for ac_exec_ext
in '' $ac_executable_extensions; do
1842 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1843 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1853 if test -n "$CC"; then
1854 echo "$as_me:$LINENO: result: $CC" >&5
1855 echo "${ECHO_T}$CC" >&6
1857 echo "$as_me:$LINENO: result: no" >&5
1858 echo "${ECHO_T}no" >&6
1862 if test -z "$ac_cv_prog_CC"; then
1864 # Extract the first word of "cc", so it can be a program name with args.
1865 set dummy cc
; ac_word
=$2
1866 echo "$as_me:$LINENO: checking for $ac_word" >&5
1867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1868 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1869 echo $ECHO_N "(cached) $ECHO_C" >&6
1871 if test -n "$ac_ct_CC"; then
1872 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1874 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1878 test -z "$as_dir" && as_dir
=.
1879 for ac_exec_ext
in '' $ac_executable_extensions; do
1880 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1881 ac_cv_prog_ac_ct_CC
="cc"
1882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1890 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1891 if test -n "$ac_ct_CC"; then
1892 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1893 echo "${ECHO_T}$ac_ct_CC" >&6
1895 echo "$as_me:$LINENO: result: no" >&5
1896 echo "${ECHO_T}no" >&6
1905 if test -z "$CC"; then
1906 # Extract the first word of "cc", so it can be a program name with args.
1907 set dummy cc
; ac_word
=$2
1908 echo "$as_me:$LINENO: checking for $ac_word" >&5
1909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1910 if test "${ac_cv_prog_CC+set}" = set; then
1911 echo $ECHO_N "(cached) $ECHO_C" >&6
1913 if test -n "$CC"; then
1914 ac_cv_prog_CC
="$CC" # Let the user override the test.
1917 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1921 test -z "$as_dir" && as_dir
=.
1922 for ac_exec_ext
in '' $ac_executable_extensions; do
1923 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1924 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1925 ac_prog_rejected
=yes
1929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1935 if test $ac_prog_rejected = yes; then
1936 # We found a bogon in the path, so make sure we never use it.
1937 set dummy
$ac_cv_prog_CC
1939 if test $# != 0; then
1940 # We chose a different compiler from the bogus one.
1941 # However, it has the same basename, so the bogon will be chosen
1942 # first if we set CC to just the basename; use the full file name.
1944 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
1950 if test -n "$CC"; then
1951 echo "$as_me:$LINENO: result: $CC" >&5
1952 echo "${ECHO_T}$CC" >&6
1954 echo "$as_me:$LINENO: result: no" >&5
1955 echo "${ECHO_T}no" >&6
1959 if test -z "$CC"; then
1960 if test -n "$ac_tool_prefix"; then
1963 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1964 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1965 echo "$as_me:$LINENO: checking for $ac_word" >&5
1966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1967 if test "${ac_cv_prog_CC+set}" = set; then
1968 echo $ECHO_N "(cached) $ECHO_C" >&6
1970 if test -n "$CC"; then
1971 ac_cv_prog_CC
="$CC" # Let the user override the test.
1973 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1977 test -z "$as_dir" && as_dir
=.
1978 for ac_exec_ext
in '' $ac_executable_extensions; do
1979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1980 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
1981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1990 if test -n "$CC"; then
1991 echo "$as_me:$LINENO: result: $CC" >&5
1992 echo "${ECHO_T}$CC" >&6
1994 echo "$as_me:$LINENO: result: no" >&5
1995 echo "${ECHO_T}no" >&6
1998 test -n "$CC" && break
2001 if test -z "$CC"; then
2005 # Extract the first word of "$ac_prog", so it can be a program name with args.
2006 set dummy
$ac_prog; ac_word
=$2
2007 echo "$as_me:$LINENO: checking for $ac_word" >&5
2008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2009 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2010 echo $ECHO_N "(cached) $ECHO_C" >&6
2012 if test -n "$ac_ct_CC"; then
2013 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2015 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2019 test -z "$as_dir" && as_dir
=.
2020 for ac_exec_ext
in '' $ac_executable_extensions; do
2021 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2022 ac_cv_prog_ac_ct_CC
="$ac_prog"
2023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2031 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2032 if test -n "$ac_ct_CC"; then
2033 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2034 echo "${ECHO_T}$ac_ct_CC" >&6
2036 echo "$as_me:$LINENO: result: no" >&5
2037 echo "${ECHO_T}no" >&6
2040 test -n "$ac_ct_CC" && break
2049 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2050 See \`config.log' for more details." >&5
2051 echo "$as_me: error: no acceptable C compiler found in \$PATH
2052 See \`config.log' for more details." >&2;}
2053 { (exit 1); exit 1; }; }
2055 # Provide some information about the compiler.
2056 echo "$as_me:$LINENO:" \
2057 "checking for C compiler version" >&5
2058 ac_compiler
=`set X $ac_compile; echo $2`
2059 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2060 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2063 (exit $ac_status); }
2064 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2065 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2068 (exit $ac_status); }
2069 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2070 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2073 (exit $ac_status); }
2075 cat >conftest.
$ac_ext <<_ACEOF
2078 cat confdefs.h
>>conftest.
$ac_ext
2079 cat >>conftest.
$ac_ext <<_ACEOF
2080 /* end confdefs.h. */
2091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2092 (eval $ac_link) 2>&5
2094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095 (exit $ac_status); }; then
2101 if test x
$gcc_no_link = xyes
; then
2102 # Setting cross_compile will disable run tests; it will
2103 # also disable AC_CHECK_FILE but that's generally
2104 # correct if we can't link.
2108 cat >conftest.
$ac_ext <<_ACEOF
2111 cat confdefs.h
>>conftest.
$ac_ext
2112 cat >>conftest.
$ac_ext <<_ACEOF
2113 /* end confdefs.h. */
2123 ac_clean_files_save
=$ac_clean_files
2124 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2125 # Try to create an executable without -o first, disregard a.out.
2126 # It will help us diagnose broken compilers, and finding out an intuition
2128 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2129 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2130 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2131 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2132 (eval $ac_link_default) 2>&5
2134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2135 (exit $ac_status); }; then
2136 # Find the output, starting from the most likely. This scheme is
2137 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2140 # Be careful to initialize this variable, since it used to be cached.
2141 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2143 # b.out is created by i960 compilers.
2144 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2146 test -f "$ac_file" ||
continue
2148 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2151 # This is the source file.
2154 # We found the default executable, but exeext='' is most
2158 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2159 # FIXME: I believe we export ac_cv_exeext for Libtool,
2160 # but it would be cool to find out if it's true. Does anybody
2161 # maintain Libtool? --akim.
2169 echo "$as_me: failed program was:" >&5
2170 sed 's/^/| /' conftest.
$ac_ext >&5
2172 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2173 See \`config.log' for more details." >&5
2174 echo "$as_me: error: C compiler cannot create executables
2175 See \`config.log' for more details." >&2;}
2176 { (exit 77); exit 77; }; }
2179 ac_exeext
=$ac_cv_exeext
2180 echo "$as_me:$LINENO: result: $ac_file" >&5
2181 echo "${ECHO_T}$ac_file" >&6
2183 # Check the compiler produces executables we can run. If not, either
2184 # the compiler is broken, or we cross compile.
2185 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2186 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2187 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2188 # If not cross compiling, check that we can run a simple program.
2189 if test "$cross_compiling" != yes; then
2190 if { ac_try
='./$ac_file'
2191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2195 (exit $ac_status); }; }; then
2198 if test "$cross_compiling" = maybe
; then
2201 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2202 If you meant to cross compile, use \`--host'.
2203 See \`config.log' for more details." >&5
2204 echo "$as_me: error: cannot run C compiled programs.
2205 If you meant to cross compile, use \`--host'.
2206 See \`config.log' for more details." >&2;}
2207 { (exit 1); exit 1; }; }
2211 echo "$as_me:$LINENO: result: yes" >&5
2212 echo "${ECHO_T}yes" >&6
2214 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2215 ac_clean_files
=$ac_clean_files_save
2216 # Check the compiler produces executables we can run. If not, either
2217 # the compiler is broken, or we cross compile.
2218 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2219 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2220 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2221 echo "${ECHO_T}$cross_compiling" >&6
2223 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2224 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2226 (eval $ac_link) 2>&5
2228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229 (exit $ac_status); }; then
2230 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2231 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2232 # work properly (i.e., refer to `conftest.exe'), while it won't with
2234 for ac_file
in conftest.exe conftest conftest.
*; do
2235 test -f "$ac_file" ||
continue
2237 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2238 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2245 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2246 See \`config.log' for more details." >&5
2247 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2248 See \`config.log' for more details." >&2;}
2249 { (exit 1); exit 1; }; }
2252 rm -f conftest
$ac_cv_exeext
2253 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2254 echo "${ECHO_T}$ac_cv_exeext" >&6
2256 rm -f conftest.
$ac_ext
2257 EXEEXT
=$ac_cv_exeext
2260 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2261 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2262 if test "${ac_cv_objext+set}" = set; then
2263 echo $ECHO_N "(cached) $ECHO_C" >&6
2265 cat >conftest.
$ac_ext <<_ACEOF
2268 cat confdefs.h
>>conftest.
$ac_ext
2269 cat >>conftest.
$ac_ext <<_ACEOF
2270 /* end confdefs.h. */
2280 rm -f conftest.o conftest.obj
2281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2282 (eval $ac_compile) 2>&5
2284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285 (exit $ac_status); }; then
2286 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2288 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2289 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2294 echo "$as_me: failed program was:" >&5
2295 sed 's/^/| /' conftest.
$ac_ext >&5
2297 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2298 See \`config.log' for more details." >&5
2299 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2300 See \`config.log' for more details." >&2;}
2301 { (exit 1); exit 1; }; }
2304 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2306 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2307 echo "${ECHO_T}$ac_cv_objext" >&6
2308 OBJEXT
=$ac_cv_objext
2310 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2311 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2312 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2313 echo $ECHO_N "(cached) $ECHO_C" >&6
2315 cat >conftest.
$ac_ext <<_ACEOF
2318 cat confdefs.h
>>conftest.
$ac_ext
2319 cat >>conftest.
$ac_ext <<_ACEOF
2320 /* end confdefs.h. */
2333 rm -f conftest.
$ac_objext
2334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2335 (eval $ac_compile) 2>conftest.er1
2337 grep -v '^ *+' conftest.er1
>conftest.err
2339 cat conftest.err
>&5
2340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2341 (exit $ac_status); } &&
2342 { ac_try
='test -z "$ac_c_werror_flag"
2343 || test ! -s conftest.err'
2344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2348 (exit $ac_status); }; } &&
2349 { ac_try
='test -s conftest.$ac_objext'
2350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354 (exit $ac_status); }; }; then
2357 echo "$as_me: failed program was:" >&5
2358 sed 's/^/| /' conftest.
$ac_ext >&5
2362 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2363 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2366 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2367 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2368 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2369 ac_test_CFLAGS
=${CFLAGS+set}
2370 ac_save_CFLAGS
=$CFLAGS
2372 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2373 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2374 if test "${ac_cv_prog_cc_g+set}" = set; then
2375 echo $ECHO_N "(cached) $ECHO_C" >&6
2377 cat >conftest.
$ac_ext <<_ACEOF
2380 cat confdefs.h
>>conftest.
$ac_ext
2381 cat >>conftest.
$ac_ext <<_ACEOF
2382 /* end confdefs.h. */
2392 rm -f conftest.
$ac_objext
2393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2394 (eval $ac_compile) 2>conftest.er1
2396 grep -v '^ *+' conftest.er1
>conftest.err
2398 cat conftest.err
>&5
2399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400 (exit $ac_status); } &&
2401 { ac_try
='test -z "$ac_c_werror_flag"
2402 || test ! -s conftest.err'
2403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407 (exit $ac_status); }; } &&
2408 { ac_try
='test -s conftest.$ac_objext'
2409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413 (exit $ac_status); }; }; then
2416 echo "$as_me: failed program was:" >&5
2417 sed 's/^/| /' conftest.
$ac_ext >&5
2421 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2423 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2424 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2425 if test "$ac_test_CFLAGS" = set; then
2426 CFLAGS
=$ac_save_CFLAGS
2427 elif test $ac_cv_prog_cc_g = yes; then
2428 if test "$GCC" = yes; then
2434 if test "$GCC" = yes; then
2440 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2441 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2442 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2443 echo $ECHO_N "(cached) $ECHO_C" >&6
2445 ac_cv_prog_cc_stdc
=no
2447 cat >conftest.
$ac_ext <<_ACEOF
2450 cat confdefs.h
>>conftest.
$ac_ext
2451 cat >>conftest.
$ac_ext <<_ACEOF
2452 /* end confdefs.h. */
2455 #include <sys/types.h>
2456 #include <sys/stat.h>
2457 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2458 struct buf { int x; };
2459 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2460 static char *e (p, i)
2466 static char *f (char * (*g) (char **, int), char **p, ...)
2471 s = g (p, va_arg (v,int));
2476 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2477 function prototypes and stuff, but not '\xHH' hex character constants.
2478 These don't provoke an error unfortunately, instead are silently treated
2479 as 'x'. The following induces an error, until -std1 is added to get
2480 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2481 array size at least. It's necessary to write '\x00'==0 to get something
2482 that's true only with -std1. */
2483 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2485 int test (int i, double x);
2486 struct s1 {int (*f) (int a);};
2487 struct s2 {int (*f) (double a);};
2488 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2494 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2499 # Don't try gcc -ansi; that turns off useful extensions and
2500 # breaks some systems' header files.
2501 # AIX -qlanglvl=ansi
2502 # Ultrix and OSF/1 -std1
2503 # HP-UX 10.20 and later -Ae
2504 # HP-UX older versions -Aa -D_HPUX_SOURCE
2505 # SVR4 -Xc -D__EXTENSIONS__
2506 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2508 CC
="$ac_save_CC $ac_arg"
2509 rm -f conftest.
$ac_objext
2510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2511 (eval $ac_compile) 2>conftest.er1
2513 grep -v '^ *+' conftest.er1
>conftest.err
2515 cat conftest.err
>&5
2516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517 (exit $ac_status); } &&
2518 { ac_try
='test -z "$ac_c_werror_flag"
2519 || test ! -s conftest.err'
2520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524 (exit $ac_status); }; } &&
2525 { ac_try
='test -s conftest.$ac_objext'
2526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530 (exit $ac_status); }; }; then
2531 ac_cv_prog_cc_stdc
=$ac_arg
2534 echo "$as_me: failed program was:" >&5
2535 sed 's/^/| /' conftest.
$ac_ext >&5
2538 rm -f conftest.err conftest.
$ac_objext
2540 rm -f conftest.
$ac_ext conftest.
$ac_objext
2545 case "x$ac_cv_prog_cc_stdc" in
2547 echo "$as_me:$LINENO: result: none needed" >&5
2548 echo "${ECHO_T}none needed" >&6 ;;
2550 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2551 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2552 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2555 # Some people use a C++ compiler to compile C. Since we use `exit',
2556 # in C++ we need to declare it. In case someone uses the same compiler
2557 # for both compiling C and C++ we need to have the C++ compiler decide
2558 # the declaration of exit, since it's the most demanding environment.
2559 cat >conftest.
$ac_ext <<_ACEOF
2564 rm -f conftest.
$ac_objext
2565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2566 (eval $ac_compile) 2>conftest.er1
2568 grep -v '^ *+' conftest.er1
>conftest.err
2570 cat conftest.err
>&5
2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); } &&
2573 { ac_try
='test -z "$ac_c_werror_flag"
2574 || test ! -s conftest.err'
2575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579 (exit $ac_status); }; } &&
2580 { ac_try
='test -s conftest.$ac_objext'
2581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); }; }; then
2586 for ac_declaration
in \
2588 'extern "C" void std::exit (int) throw (); using std::exit;' \
2589 'extern "C" void std::exit (int); using std::exit;' \
2590 'extern "C" void exit (int) throw ();' \
2591 'extern "C" void exit (int);' \
2594 cat >conftest.
$ac_ext <<_ACEOF
2597 cat confdefs.h
>>conftest.
$ac_ext
2598 cat >>conftest.
$ac_ext <<_ACEOF
2599 /* end confdefs.h. */
2610 rm -f conftest.
$ac_objext
2611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2612 (eval $ac_compile) 2>conftest.er1
2614 grep -v '^ *+' conftest.er1
>conftest.err
2616 cat conftest.err
>&5
2617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618 (exit $ac_status); } &&
2619 { ac_try
='test -z "$ac_c_werror_flag"
2620 || test ! -s conftest.err'
2621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); }; } &&
2626 { ac_try
='test -s conftest.$ac_objext'
2627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); }; }; then
2634 echo "$as_me: failed program was:" >&5
2635 sed 's/^/| /' conftest.
$ac_ext >&5
2639 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2640 cat >conftest.
$ac_ext <<_ACEOF
2643 cat confdefs.h
>>conftest.
$ac_ext
2644 cat >>conftest.
$ac_ext <<_ACEOF
2645 /* end confdefs.h. */
2655 rm -f conftest.
$ac_objext
2656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2657 (eval $ac_compile) 2>conftest.er1
2659 grep -v '^ *+' conftest.er1
>conftest.err
2661 cat conftest.err
>&5
2662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663 (exit $ac_status); } &&
2664 { ac_try
='test -z "$ac_c_werror_flag"
2665 || test ! -s conftest.err'
2666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); }; } &&
2671 { ac_try
='test -s conftest.$ac_objext'
2672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); }; }; then
2679 echo "$as_me: failed program was:" >&5
2680 sed 's/^/| /' conftest.
$ac_ext >&5
2683 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2686 if test -n "$ac_declaration"; then
2687 echo '#ifdef __cplusplus' >>confdefs.h
2688 echo $ac_declaration >>confdefs.h
2689 echo '#endif' >>confdefs.h
2693 echo "$as_me: failed program was:" >&5
2694 sed 's/^/| /' conftest.
$ac_ext >&5
2697 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2699 ac_cpp
='$CPP $CPPFLAGS'
2700 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2701 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2702 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2705 ac_cpp
='$CPP $CPPFLAGS'
2706 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2707 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2708 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2709 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2710 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2711 # On Suns, sometimes $CPP names a directory.
2712 if test -n "$CPP" && test -d "$CPP"; then
2715 if test -z "$CPP"; then
2716 if test "${ac_cv_prog_CPP+set}" = set; then
2717 echo $ECHO_N "(cached) $ECHO_C" >&6
2719 # Double quotes because CPP needs to be expanded
2720 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2723 for ac_c_preproc_warn_flag
in '' yes
2725 # Use a header file that comes with gcc, so configuring glibc
2726 # with a fresh cross-compiler works.
2727 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2728 # <limits.h> exists even on freestanding compilers.
2729 # On the NeXT, cc -E runs the code through the compiler's parser,
2730 # not just through cpp. "Syntax error" is here to catch this case.
2731 cat >conftest.
$ac_ext <<_ACEOF
2734 cat confdefs.h
>>conftest.
$ac_ext
2735 cat >>conftest.
$ac_ext <<_ACEOF
2736 /* end confdefs.h. */
2738 # include <limits.h>
2740 # include <assert.h>
2744 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2745 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2747 grep -v '^ *+' conftest.er1
>conftest.err
2749 cat conftest.err
>&5
2750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751 (exit $ac_status); } >/dev
/null
; then
2752 if test -s conftest.err
; then
2753 ac_cpp_err
=$ac_c_preproc_warn_flag
2754 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2761 if test -z "$ac_cpp_err"; then
2764 echo "$as_me: failed program was:" >&5
2765 sed 's/^/| /' conftest.
$ac_ext >&5
2767 # Broken: fails on valid input.
2770 rm -f conftest.err conftest.
$ac_ext
2772 # OK, works on sane cases. Now check whether non-existent headers
2773 # can be detected and how.
2774 cat >conftest.
$ac_ext <<_ACEOF
2777 cat confdefs.h
>>conftest.
$ac_ext
2778 cat >>conftest.
$ac_ext <<_ACEOF
2779 /* end confdefs.h. */
2780 #include <ac_nonexistent.h>
2782 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2783 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2785 grep -v '^ *+' conftest.er1
>conftest.err
2787 cat conftest.err
>&5
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); } >/dev
/null
; then
2790 if test -s conftest.err
; then
2791 ac_cpp_err
=$ac_c_preproc_warn_flag
2792 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2799 if test -z "$ac_cpp_err"; then
2800 # Broken: success on invalid input.
2803 echo "$as_me: failed program was:" >&5
2804 sed 's/^/| /' conftest.
$ac_ext >&5
2806 # Passes both tests.
2810 rm -f conftest.err conftest.
$ac_ext
2813 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2814 rm -f conftest.err conftest.
$ac_ext
2815 if $ac_preproc_ok; then
2827 echo "$as_me:$LINENO: result: $CPP" >&5
2828 echo "${ECHO_T}$CPP" >&6
2830 for ac_c_preproc_warn_flag
in '' yes
2832 # Use a header file that comes with gcc, so configuring glibc
2833 # with a fresh cross-compiler works.
2834 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2835 # <limits.h> exists even on freestanding compilers.
2836 # On the NeXT, cc -E runs the code through the compiler's parser,
2837 # not just through cpp. "Syntax error" is here to catch this case.
2838 cat >conftest.
$ac_ext <<_ACEOF
2841 cat confdefs.h
>>conftest.
$ac_ext
2842 cat >>conftest.
$ac_ext <<_ACEOF
2843 /* end confdefs.h. */
2845 # include <limits.h>
2847 # include <assert.h>
2851 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2852 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2854 grep -v '^ *+' conftest.er1
>conftest.err
2856 cat conftest.err
>&5
2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858 (exit $ac_status); } >/dev
/null
; then
2859 if test -s conftest.err
; then
2860 ac_cpp_err
=$ac_c_preproc_warn_flag
2861 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2868 if test -z "$ac_cpp_err"; then
2871 echo "$as_me: failed program was:" >&5
2872 sed 's/^/| /' conftest.
$ac_ext >&5
2874 # Broken: fails on valid input.
2877 rm -f conftest.err conftest.
$ac_ext
2879 # OK, works on sane cases. Now check whether non-existent headers
2880 # can be detected and how.
2881 cat >conftest.
$ac_ext <<_ACEOF
2884 cat confdefs.h
>>conftest.
$ac_ext
2885 cat >>conftest.
$ac_ext <<_ACEOF
2886 /* end confdefs.h. */
2887 #include <ac_nonexistent.h>
2889 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2890 (eval $ac_cpp conftest.
$ac_ext) 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); } >/dev
/null
; then
2897 if test -s conftest.err
; then
2898 ac_cpp_err
=$ac_c_preproc_warn_flag
2899 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2906 if test -z "$ac_cpp_err"; then
2907 # Broken: success on invalid input.
2910 echo "$as_me: failed program was:" >&5
2911 sed 's/^/| /' conftest.
$ac_ext >&5
2913 # Passes both tests.
2917 rm -f conftest.err conftest.
$ac_ext
2920 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2921 rm -f conftest.err conftest.
$ac_ext
2922 if $ac_preproc_ok; then
2925 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2926 See \`config.log' for more details." >&5
2927 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2928 See \`config.log' for more details." >&2;}
2929 { (exit 1); exit 1; }; }
2933 ac_cpp
='$CPP $CPPFLAGS'
2934 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2935 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2936 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2939 ac_c_preproc_warn_flag
=yes
2941 if test x
$GCC = xyes
; then
2942 ac_libiberty_warn_cflags
='-W -Wall -Wtraditional -pedantic'
2947 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
2948 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
2949 if test "${ac_cv_c_const+set}" = set; then
2950 echo $ECHO_N "(cached) $ECHO_C" >&6
2952 cat >conftest.
$ac_ext <<_ACEOF
2955 cat confdefs.h
>>conftest.
$ac_ext
2956 cat >>conftest.
$ac_ext <<_ACEOF
2957 /* end confdefs.h. */
2962 /* FIXME: Include the comments suggested by Paul. */
2964 /* Ultrix mips cc rejects this. */
2965 typedef int charset[2];
2967 /* SunOS 4.1.1 cc rejects this. */
2968 char const *const *ccp;
2970 /* NEC SVR4.0.2 mips cc rejects this. */
2971 struct point {int x, y;};
2972 static struct point const zero = {0,0};
2973 /* AIX XL C 1.02.0.0 rejects this.
2974 It does not let you subtract one const X* pointer from another in
2975 an arm of an if-expression whose if-part is not a constant
2977 const char *g = "string";
2978 ccp = &g + (g ? g-g : 0);
2979 /* HPUX 7.0 cc rejects these. */
2982 ccp = (char const *const *) p;
2983 { /* SCO 3.2v4 cc rejects this. */
2985 char const *s = 0 ? (char *) 0 : (char const *) 0;
2989 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2991 const int *foo = &x[0];
2994 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2995 typedef const int *iptr;
2999 { /* AIX XL C 1.02.0.0 rejects this saying
3000 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3001 struct s { int j; const int *ap[3]; };
3002 struct s *b; b->j = 5;
3004 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
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
3042 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3044 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3045 echo "${ECHO_T}$ac_cv_c_const" >&6
3046 if test $ac_cv_c_const = no
; then
3048 cat >>confdefs.h
<<\_ACEOF
3054 echo "$as_me:$LINENO: checking for inline" >&5
3055 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3056 if test "${ac_cv_c_inline+set}" = set; then
3057 echo $ECHO_N "(cached) $ECHO_C" >&6
3060 for ac_kw
in inline __inline__ __inline
; do
3061 cat >conftest.
$ac_ext <<_ACEOF
3064 cat confdefs.h
>>conftest.
$ac_ext
3065 cat >>conftest.
$ac_ext <<_ACEOF
3066 /* end confdefs.h. */
3069 static $ac_kw foo_t static_foo () {return 0; }
3070 $ac_kw foo_t foo () {return 0; }
3074 rm -f conftest.
$ac_objext
3075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3076 (eval $ac_compile) 2>conftest.er1
3078 grep -v '^ *+' conftest.er1
>conftest.err
3080 cat conftest.err
>&5
3081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082 (exit $ac_status); } &&
3083 { ac_try
='test -z "$ac_c_werror_flag"
3084 || test ! -s conftest.err'
3085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089 (exit $ac_status); }; } &&
3090 { ac_try
='test -s conftest.$ac_objext'
3091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095 (exit $ac_status); }; }; then
3096 ac_cv_c_inline
=$ac_kw; break
3098 echo "$as_me: failed program was:" >&5
3099 sed 's/^/| /' conftest.
$ac_ext >&5
3102 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3106 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3107 echo "${ECHO_T}$ac_cv_c_inline" >&6
3110 case $ac_cv_c_inline in
3113 case $ac_cv_c_inline in
3115 *) ac_val
=$ac_cv_c_inline;;
3117 cat >>confdefs.h
<<_ACEOF
3119 #define inline $ac_val
3125 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3126 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3127 if test "${ac_cv_c_bigendian+set}" = set; then
3128 echo $ECHO_N "(cached) $ECHO_C" >&6
3130 ac_cv_c_bigendian
=unknown
3131 # See if sys/param.h defines the BYTE_ORDER macro.
3132 cat >conftest.
$ac_ext <<_ACEOF
3135 cat confdefs.h
>>conftest.
$ac_ext
3136 cat >>conftest.
$ac_ext <<_ACEOF
3137 /* end confdefs.h. */
3138 #include <sys/types.h>
3139 #include <sys/param.h>
3144 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3151 rm -f conftest.
$ac_objext
3152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3153 (eval $ac_compile) 2>conftest.er1
3155 grep -v '^ *+' conftest.er1
>conftest.err
3157 cat conftest.err
>&5
3158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159 (exit $ac_status); } &&
3160 { ac_try
='test -z "$ac_c_werror_flag"
3161 || test ! -s conftest.err'
3162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166 (exit $ac_status); }; } &&
3167 { ac_try
='test -s conftest.$ac_objext'
3168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172 (exit $ac_status); }; }; then
3173 # It does; now see whether it defined to BIG_ENDIAN or not.
3174 cat >conftest.
$ac_ext <<_ACEOF
3177 cat confdefs.h
>>conftest.
$ac_ext
3178 cat >>conftest.
$ac_ext <<_ACEOF
3179 /* end confdefs.h. */
3180 #include <sys/types.h>
3181 #include <sys/param.h>
3186 #if BYTE_ORDER != BIG_ENDIAN
3193 rm -f conftest.
$ac_objext
3194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3195 (eval $ac_compile) 2>conftest.er1
3197 grep -v '^ *+' conftest.er1
>conftest.err
3199 cat conftest.err
>&5
3200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201 (exit $ac_status); } &&
3202 { ac_try
='test -z "$ac_c_werror_flag"
3203 || test ! -s conftest.err'
3204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208 (exit $ac_status); }; } &&
3209 { ac_try
='test -s conftest.$ac_objext'
3210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214 (exit $ac_status); }; }; then
3215 ac_cv_c_bigendian
=yes
3217 echo "$as_me: failed program was:" >&5
3218 sed 's/^/| /' conftest.
$ac_ext >&5
3220 ac_cv_c_bigendian
=no
3222 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3224 echo "$as_me: failed program was:" >&5
3225 sed 's/^/| /' conftest.
$ac_ext >&5
3228 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3229 if test $ac_cv_c_bigendian = unknown
; then
3230 if test "$cross_compiling" = yes; then
3231 echo $ac_n "cross-compiling... " 2>&6
3233 cat >conftest.
$ac_ext <<_ACEOF
3236 cat confdefs.h
>>conftest.
$ac_ext
3237 cat >>conftest.
$ac_ext <<_ACEOF
3238 /* end confdefs.h. */
3240 /* Are we little or big endian? From Harbison&Steele. */
3244 char c[sizeof (long)];
3247 exit (u.c[sizeof (long) - 1] == 1);
3250 rm -f conftest
$ac_exeext
3251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3252 (eval $ac_link) 2>&5
3254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260 (exit $ac_status); }; }; then
3261 ac_cv_c_bigendian
=no
3263 echo "$as_me: program exited with status $ac_status" >&5
3264 echo "$as_me: failed program was:" >&5
3265 sed 's/^/| /' conftest.
$ac_ext >&5
3268 ac_cv_c_bigendian
=yes
3270 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3274 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3275 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3276 if test $ac_cv_c_bigendian = unknown
; then
3277 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
3278 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
3280 cat >conftest.c
<<EOF
3281 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3282 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3283 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
3284 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3285 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3286 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
3287 int main() { _ascii (); _ebcdic (); return 0; }
3289 if test -f conftest.c
; then
3290 if ${CC-cc} ${CFLAGS} -c conftest.c
-o conftest.o
&& test -f conftest.o
; then
3291 if test `grep -l BIGenDianSyS conftest.o` ; then
3292 echo $ac_n ' big endian probe OK, ' 1>&6
3293 ac_cv_c_bigendian
=yes
3295 if test `grep -l LiTTleEnDian conftest.o` ; then
3296 echo $ac_n ' little endian probe OK, ' 1>&6
3297 if test $ac_cv_c_bigendian = yes ; then
3298 ac_cv_c_bigendian
=unknown
;
3300 ac_cv_c_bigendian
=no
3303 echo $ac_n 'guessing bigendian ... ' >&6
3306 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3307 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3309 if test $ac_cv_c_bigendian = yes; then
3311 cat >>confdefs.h
<<\_ACEOF
3312 #define WORDS_BIGENDIAN 1
3316 cat >>confdefs.h
<<\_ACEOF
3317 #define HOST_WORDS_BIG_ENDIAN 1
3325 cat >>confdefs.h
<<_ACEOF
3326 #define BYTEORDER $BYTEORDER
3329 if test $ac_cv_c_bigendian = unknown
; then
3330 { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
3331 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
3332 { (exit 1); exit 1; }; }
3336 # Check whether --enable-shared or --disable-shared was given.
3337 if test "${enable_shared+set}" = set; then
3338 enableval
="$enable_shared"
3339 p
=${PACKAGE-default}
3341 yes) enable_shared
=yes ;;
3342 no
) enable_shared
=no
;;
3345 # Look at the argument we got. We use all the common list separators.
3346 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
3347 for pkg
in $enableval; do
3348 if test "X$pkg" = "X$p"; then
3359 # Check whether --enable-static or --disable-static was given.
3360 if test "${enable_static+set}" = set; then
3361 enableval
="$enable_static"
3362 p
=${PACKAGE-default}
3364 yes) enable_static
=yes ;;
3365 no
) enable_static
=no
;;
3368 # Look at the argument we got. We use all the common list separators.
3369 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
3370 for pkg
in $enableval; do
3371 if test "X$pkg" = "X$p"; then
3381 # Check whether --enable-fast-install or --disable-fast-install was given.
3382 if test "${enable_fast_install+set}" = set; then
3383 enableval
="$enable_fast_install"
3384 p
=${PACKAGE-default}
3386 yes) enable_fast_install
=yes ;;
3387 no
) enable_fast_install
=no
;;
3389 enable_fast_install
=no
3390 # Look at the argument we got. We use all the common list separators.
3391 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
3392 for pkg
in $enableval; do
3393 if test "X$pkg" = "X$p"; then
3394 enable_fast_install
=yes
3401 enable_fast_install
=yes
3404 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3405 if test "${with_gnu_ld+set}" = set; then
3406 withval
="$with_gnu_ld"
3407 test "$withval" = no || with_gnu_ld
=yes
3412 if test "$GCC" = yes; then
3413 # Check if gcc -print-prog-name=ld gives a path.
3414 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3415 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3418 # gcc leaves a trailing carriage return which upsets mingw
3419 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3421 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
3424 # Accept absolute paths.
3425 [\\/]* |
[A-Za-z
]:[\\/]*)
3426 re_direlt
='/[^/][^/]*/\.\./'
3427 # Canonicalize the path of ld
3428 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
3429 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
3430 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
3432 test -z "$LD" && LD
="$ac_prog"
3435 # If it fails, then pretend we aren't using GCC.
3439 # If it is relative, then search for the first ld in PATH.
3443 elif test "$with_gnu_ld" = yes; then
3444 echo "$as_me:$LINENO: checking for GNU ld" >&5
3445 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3447 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3448 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3450 if test "${lt_cv_path_LD+set}" = set; then
3451 echo $ECHO_N "(cached) $ECHO_C" >&6
3453 if test -z "$LD"; then
3454 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3455 for ac_dir
in $PATH; do
3456 test -z "$ac_dir" && ac_dir
=.
3457 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
3458 lt_cv_path_LD
="$ac_dir/$ac_prog"
3459 # Check to see if the program is GNU ld. I'd rather use --version,
3460 # but apparently some GNU ld's only accept -v.
3461 # Break only if it was the GNU/non-GNU ld that we prefer.
3462 if "$lt_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
3463 test "$with_gnu_ld" != no
&& break
3465 test "$with_gnu_ld" != yes && break
3471 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
3476 if test -n "$LD"; then
3477 echo "$as_me:$LINENO: result: $LD" >&5
3478 echo "${ECHO_T}$LD" >&6
3480 echo "$as_me:$LINENO: result: no" >&5
3481 echo "${ECHO_T}no" >&6
3483 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3484 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3485 { (exit 1); exit 1; }; }
3486 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3487 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3488 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3489 echo $ECHO_N "(cached) $ECHO_C" >&6
3491 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3492 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
3493 lt_cv_prog_gnu_ld
=yes
3495 lt_cv_prog_gnu_ld
=no
3498 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3499 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3500 with_gnu_ld
=$lt_cv_prog_gnu_ld
3503 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3504 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3505 if test "${lt_cv_ld_reload_flag+set}" = set; then
3506 echo $ECHO_N "(cached) $ECHO_C" >&6
3508 lt_cv_ld_reload_flag
='-r'
3510 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3511 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3512 reload_flag
=$lt_cv_ld_reload_flag
3513 test -n "$reload_flag" && reload_flag
=" $reload_flag"
3515 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3516 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3517 if test "${lt_cv_path_NM+set}" = set; then
3518 echo $ECHO_N "(cached) $ECHO_C" >&6
3520 if test -n "$NM"; then
3521 # Let the user override the test.
3524 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3525 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
3526 test -z "$ac_dir" && ac_dir
=.
3527 tmp_nm
=$ac_dir/${ac_tool_prefix}nm
3528 if test -f $tmp_nm ||
test -f $tmp_nm$ac_exeext ; then
3529 # Check to see if the nm accepts a BSD-compat flag.
3530 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3531 # nm: unknown option "B" ignored
3532 # Tru64's nm complains that /dev/null is an invalid object file
3533 if ($tmp_nm -B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep '(/dev/null|Invalid file or object type)' >/dev
/null
; then
3534 lt_cv_path_NM
="$tmp_nm -B"
3536 elif ($tmp_nm -p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
3537 lt_cv_path_NM
="$tmp_nm -p"
3540 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3541 continue # so that we can try to find one that supports BSD flags
3546 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
3551 echo "$as_me:$LINENO: result: $NM" >&5
3552 echo "${ECHO_T}$NM" >&6
3554 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3555 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3557 if test "$LN_S" = "ln -s"; then
3558 echo "$as_me:$LINENO: result: yes" >&5
3559 echo "${ECHO_T}yes" >&6
3561 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3562 echo "${ECHO_T}no, using $LN_S" >&6
3565 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3566 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3567 if test "${lt_cv_deplibs_check_method+set}" = set; then
3568 echo $ECHO_N "(cached) $ECHO_C" >&6
3570 lt_cv_file_magic_cmd
='$MAGIC_CMD'
3571 lt_cv_file_magic_test_file
=
3572 lt_cv_deplibs_check_method
='unknown'
3573 # Need to set the preceding variable on all platforms that support
3574 # interlibrary dependencies.
3575 # 'none' -- dependencies not supported.
3576 # `unknown' -- same as none, but documents that we really don't know.
3577 # 'pass_all' -- all dependencies passed with no checks.
3578 # 'test_compile' -- check by making test program.
3579 # 'file_magic [regex]' -- check by looking for files in library path
3580 # which responds to the $file_magic_cmd with a given egrep regex.
3581 # If you have `file' or equivalent on your system and you're not sure
3582 # whether `pass_all' will *always* work, you probably want this one.
3586 lt_cv_deplibs_check_method
=pass_all
3590 lt_cv_deplibs_check_method
=pass_all
3594 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3595 lt_cv_file_magic_cmd
='/usr/bin/file -L'
3596 lt_cv_file_magic_test_file
=/shlib
/libc.so
3599 cygwin
* | mingw
* |pw32
*)
3600 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
3601 lt_cv_file_magic_cmd
='$OBJDUMP -f'
3604 darwin
* | rhapsody
*)
3605 # this will be overwritten by pass_all, but leave it in just in case
3606 lt_cv_deplibs_check_method
='file_magic Mach-O dynamically linked shared library'
3607 lt_cv_file_magic_cmd
='/usr/bin/file -L'
3609 rhapsody
* | darwin1.012
)
3610 lt_cv_file_magic_test_file
='/System/Library/Frameworks/System.framework/System'
3613 lt_cv_file_magic_test_file
='/usr/lib/libSystem.dylib'
3616 lt_cv_deplibs_check_method
=pass_all
3619 freebsd
* | kfreebsd
*-gnu)
3620 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
3623 # Not sure whether the presence of OpenBSD here was a mistake.
3624 # Let's accept both of them until this is cleared up.
3625 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3626 lt_cv_file_magic_cmd
=/usr
/bin
/file
3627 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
3631 lt_cv_deplibs_check_method
=pass_all
3636 lt_cv_deplibs_check_method
=pass_all
3642 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3643 lt_cv_file_magic_cmd
=/usr
/bin
/file
3644 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
3647 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3648 lt_cv_file_magic_cmd
=/usr
/bin
/file
3649 lt_cv_file_magic_test_file
=/usr
/lib
/hpux32
/libc.so
3657 # this will be overridden with pass_all, but let us keep it just in case
3658 lt_cv_deplibs_check_method
="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3662 *-32|
*"-32 ") libmagic
=32-bit;;
3663 *-n32|
*"-n32 ") libmagic
=N32
;;
3664 *-64|
*"-64 ") libmagic
=64-bit;;
3665 *) libmagic
=never-match
;;
3667 # this will be overridden with pass_all, but let us keep it just in case
3668 lt_cv_deplibs_check_method
="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3671 lt_cv_file_magic_test_file
=`echo /lib${libsuff}/libc.so*`
3672 lt_cv_deplibs_check_method
=pass_all
3675 # This must be Linux ELF.
3677 lt_cv_deplibs_check_method
=pass_all
3680 netbsd
* | knetbsd
*-gnu)
3681 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
3682 lt_cv_deplibs_check_method
='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3684 lt_cv_deplibs_check_method
='match_pattern /lib[^/\.]+\.so$'
3689 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3690 lt_cv_file_magic_cmd
=/usr
/bin
/file
3691 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
3694 osf3
* | osf4
* | osf5
*)
3695 # this will be overridden with pass_all, but let us keep it just in case
3696 lt_cv_deplibs_check_method
='file_magic COFF format alpha shared library'
3697 lt_cv_file_magic_test_file
=/shlib
/libc.so
3698 lt_cv_deplibs_check_method
=pass_all
3702 lt_cv_deplibs_check_method
=pass_all
3706 lt_cv_deplibs_check_method
=pass_all
3707 lt_cv_file_magic_test_file
=/lib
/libc.so
3710 sysv5uw
[78]* | sysv4
*uw2
*)
3711 lt_cv_deplibs_check_method
=pass_all
3714 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
3715 case $host_vendor in
3717 lt_cv_deplibs_check_method
=pass_all
3720 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3721 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
3728 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3729 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3730 file_magic_cmd
=$lt_cv_file_magic_cmd
3731 deplibs_check_method
=$lt_cv_deplibs_check_method
3736 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3738 # Only perform the check for file, if the check method requires it
3739 case $deplibs_check_method in
3741 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3742 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3743 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3744 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3745 echo $ECHO_N "(cached) $ECHO_C" >&6
3749 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
3752 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
3755 ac_save_MAGIC_CMD
="$MAGIC_CMD"
3756 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3757 ac_dummy
="/usr/bin:$PATH"
3758 for ac_dir
in $ac_dummy; do
3759 test -z "$ac_dir" && ac_dir
=.
3760 if test -f $ac_dir/${ac_tool_prefix}file; then
3761 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
3762 if test -n "$file_magic_test_file"; then
3763 case $deplibs_check_method in
3765 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3766 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
3767 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
3768 egrep "$file_magic_regex" > /dev
/null
; then
3773 *** Warning: the command libtool uses to detect shared libraries,
3774 *** $file_magic_cmd, produces output that libtool cannot recognize.
3775 *** The result is that libtool may fail to recognize shared libraries
3776 *** as such. This will affect the creation of libtool libraries that
3777 *** depend on shared libraries, but programs linked with such libtool
3778 *** libraries will work regardless of this problem. Nevertheless, you
3779 *** may want to report the problem to your system manager and/or to
3780 *** bug-libtool@gnu.org
3790 MAGIC_CMD
="$ac_save_MAGIC_CMD"
3795 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
3796 if test -n "$MAGIC_CMD"; then
3797 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3798 echo "${ECHO_T}$MAGIC_CMD" >&6
3800 echo "$as_me:$LINENO: result: no" >&5
3801 echo "${ECHO_T}no" >&6
3804 if test -z "$lt_cv_path_MAGIC_CMD"; then
3805 if test -n "$ac_tool_prefix"; then
3806 echo "$as_me:$LINENO: checking for file" >&5
3807 echo $ECHO_N "checking for file... $ECHO_C" >&6
3808 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3809 echo $ECHO_N "(cached) $ECHO_C" >&6
3813 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
3816 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
3819 ac_save_MAGIC_CMD
="$MAGIC_CMD"
3820 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3821 ac_dummy
="/usr/bin:$PATH"
3822 for ac_dir
in $ac_dummy; do
3823 test -z "$ac_dir" && ac_dir
=.
3824 if test -f $ac_dir/file; then
3825 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
3826 if test -n "$file_magic_test_file"; then
3827 case $deplibs_check_method in
3829 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3830 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
3831 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
3832 egrep "$file_magic_regex" > /dev
/null
; then
3837 *** Warning: the command libtool uses to detect shared libraries,
3838 *** $file_magic_cmd, produces output that libtool cannot recognize.
3839 *** The result is that libtool may fail to recognize shared libraries
3840 *** as such. This will affect the creation of libtool libraries that
3841 *** depend on shared libraries, but programs linked with such libtool
3842 *** libraries will work regardless of this problem. Nevertheless, you
3843 *** may want to report the problem to your system manager and/or to
3844 *** bug-libtool@gnu.org
3854 MAGIC_CMD
="$ac_save_MAGIC_CMD"
3859 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
3860 if test -n "$MAGIC_CMD"; then
3861 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3862 echo "${ECHO_T}$MAGIC_CMD" >&6
3864 echo "$as_me:$LINENO: result: no" >&5
3865 echo "${ECHO_T}no" >&6
3877 if test -n "$ac_tool_prefix"; then
3878 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3879 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3880 echo "$as_me:$LINENO: checking for $ac_word" >&5
3881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3882 if test "${ac_cv_prog_RANLIB+set}" = set; then
3883 echo $ECHO_N "(cached) $ECHO_C" >&6
3885 if test -n "$RANLIB"; then
3886 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3888 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3892 test -z "$as_dir" && as_dir
=.
3893 for ac_exec_ext
in '' $ac_executable_extensions; do
3894 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3895 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3904 RANLIB
=$ac_cv_prog_RANLIB
3905 if test -n "$RANLIB"; then
3906 echo "$as_me:$LINENO: result: $RANLIB" >&5
3907 echo "${ECHO_T}$RANLIB" >&6
3909 echo "$as_me:$LINENO: result: no" >&5
3910 echo "${ECHO_T}no" >&6
3914 if test -z "$ac_cv_prog_RANLIB"; then
3915 ac_ct_RANLIB
=$RANLIB
3916 # Extract the first word of "ranlib", so it can be a program name with args.
3917 set dummy ranlib
; ac_word
=$2
3918 echo "$as_me:$LINENO: checking for $ac_word" >&5
3919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3920 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3921 echo $ECHO_N "(cached) $ECHO_C" >&6
3923 if test -n "$ac_ct_RANLIB"; then
3924 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3926 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3930 test -z "$as_dir" && as_dir
=.
3931 for ac_exec_ext
in '' $ac_executable_extensions; do
3932 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3933 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3940 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3943 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3944 if test -n "$ac_ct_RANLIB"; then
3945 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3946 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3948 echo "$as_me:$LINENO: result: no" >&5
3949 echo "${ECHO_T}no" >&6
3952 RANLIB
=$ac_ct_RANLIB
3954 RANLIB
="$ac_cv_prog_RANLIB"
3957 if test -n "$ac_tool_prefix"; then
3958 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3959 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3960 echo "$as_me:$LINENO: checking for $ac_word" >&5
3961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3962 if test "${ac_cv_prog_STRIP+set}" = set; then
3963 echo $ECHO_N "(cached) $ECHO_C" >&6
3965 if test -n "$STRIP"; then
3966 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3968 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3972 test -z "$as_dir" && as_dir
=.
3973 for ac_exec_ext
in '' $ac_executable_extensions; do
3974 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3975 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3984 STRIP
=$ac_cv_prog_STRIP
3985 if test -n "$STRIP"; then
3986 echo "$as_me:$LINENO: result: $STRIP" >&5
3987 echo "${ECHO_T}$STRIP" >&6
3989 echo "$as_me:$LINENO: result: no" >&5
3990 echo "${ECHO_T}no" >&6
3994 if test -z "$ac_cv_prog_STRIP"; then
3996 # Extract the first word of "strip", so it can be a program name with args.
3997 set dummy strip
; ac_word
=$2
3998 echo "$as_me:$LINENO: checking for $ac_word" >&5
3999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4000 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4001 echo $ECHO_N "(cached) $ECHO_C" >&6
4003 if test -n "$ac_ct_STRIP"; then
4004 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
4006 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4010 test -z "$as_dir" && as_dir
=.
4011 for ac_exec_ext
in '' $ac_executable_extensions; do
4012 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4013 ac_cv_prog_ac_ct_STRIP
="strip"
4014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4020 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP
=":"
4023 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
4024 if test -n "$ac_ct_STRIP"; then
4025 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4026 echo "${ECHO_T}$ac_ct_STRIP" >&6
4028 echo "$as_me:$LINENO: result: no" >&5
4029 echo "${ECHO_T}no" >&6
4034 STRIP
="$ac_cv_prog_STRIP"
4038 # Check for any special flags to pass to ltconfig.
4039 libtool_flags
="--cache-file=$cache_file"
4040 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
4041 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
4042 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
4043 test "$GCC" = yes && libtool_flags
="$libtool_flags --with-gcc"
4044 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
4047 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4048 if test "${enable_libtool_lock+set}" = set; then
4049 enableval
="$enable_libtool_lock"
4052 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
4053 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
4056 # Check whether --with-pic or --without-pic was given.
4057 if test "${with_pic+set}" = set; then
4063 test x
"$pic_mode" = xyes
&& libtool_flags
="$libtool_flags --prefer-pic"
4064 test x
"$pic_mode" = xno
&& libtool_flags
="$libtool_flags --prefer-non-pic"
4066 # Some flags need to be propagated to the compiler or linker for good
4070 # Find out which ABI we are using.
4071 echo '#line 4071 "configure"' > conftest.
$ac_ext
4072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4073 (eval $ac_compile) 2>&5
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); }; then
4077 if test "$lt_cv_prog_gnu_ld" = yes; then
4078 case `/usr/bin/file conftest.$ac_objext` in
4080 LD
="${LD-ld} -melf32bsmip"
4083 LD
="${LD-ld} -melf32bmipn32"
4086 LD
="${LD-ld} -melf64bmip"
4090 case `/usr/bin/file conftest.$ac_objext` in
4107 # Find out which ABI we are using.
4108 echo 'int i;' > conftest.
$ac_ext
4109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4110 (eval $ac_compile) 2>&5
4112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113 (exit $ac_status); }; then
4114 case "`/usr/bin/file conftest.o`" in
4126 x86_64-
*linux
*|ppc
*-*linux
*|powerpc
*-*linux
*|s390
*-*linux
*|sparc
*-*linux
*)
4127 # Find out which ABI we are using.
4128 echo 'int i;' > conftest.
$ac_ext
4129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4130 (eval $ac_compile) 2>&5
4132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4133 (exit $ac_status); }; then
4134 case "`/usr/bin/file conftest.o`" in
4138 LD
="${LD-ld} -m elf_i386"
4140 ppc64-
*linux
*|powerpc64-
*linux
*)
4141 LD
="${LD-ld} -m elf32ppclinux"
4144 LD
="${LD-ld} -m elf_s390"
4147 LD
="${LD-ld} -m elf32_sparc"
4154 LD
="${LD-ld} -m elf_x86_64"
4156 ppc
*-*linux
*|powerpc
*-*linux
*)
4157 LD
="${LD-ld} -m elf64ppc"
4160 LD
="${LD-ld} -m elf64_s390"
4163 LD
="${LD-ld} -m elf64_sparc"
4173 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4174 SAVE_CFLAGS
="$CFLAGS"
4175 CFLAGS
="$CFLAGS -belf"
4176 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4177 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4178 if test "${lt_cv_cc_needs_belf+set}" = set; then
4179 echo $ECHO_N "(cached) $ECHO_C" >&6
4184 ac_cpp
='$CPP $CPPFLAGS'
4185 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4186 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4187 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4189 if test x
$gcc_no_link = xyes
; then
4190 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4191 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4192 { (exit 1); exit 1; }; }
4194 cat >conftest.
$ac_ext <<_ACEOF
4197 cat confdefs.h
>>conftest.
$ac_ext
4198 cat >>conftest.
$ac_ext <<_ACEOF
4199 /* end confdefs.h. */
4209 rm -f conftest.
$ac_objext conftest
$ac_exeext
4210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4211 (eval $ac_link) 2>conftest.er1
4213 grep -v '^ *+' conftest.er1
>conftest.err
4215 cat conftest.err
>&5
4216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217 (exit $ac_status); } &&
4218 { ac_try
='test -z "$ac_c_werror_flag"
4219 || test ! -s conftest.err'
4220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224 (exit $ac_status); }; } &&
4225 { ac_try
='test -s conftest$ac_exeext'
4226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230 (exit $ac_status); }; }; then
4231 lt_cv_cc_needs_belf
=yes
4233 echo "$as_me: failed program was:" >&5
4234 sed 's/^/| /' conftest.
$ac_ext >&5
4236 lt_cv_cc_needs_belf
=no
4238 rm -f conftest.err conftest.
$ac_objext \
4239 conftest
$ac_exeext conftest.
$ac_ext
4241 ac_cpp
='$CPP $CPPFLAGS'
4242 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4243 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4244 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4247 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4248 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4249 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
4250 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4251 CFLAGS
="$SAVE_CFLAGS"
4259 # Save cache, so that ltconfig can load it
4260 cat >confcache
<<\_ACEOF
4261 # This file is a shell script that caches the results of configure
4262 # tests run on this system so they can be shared between configure
4263 # scripts and configure runs, see configure's option --config-cache.
4264 # It is not useful on other systems. If it contains results you don't
4265 # want to keep, you may remove or edit it.
4267 # config.status only pays attention to the cache file if you give it
4268 # the --recheck option to rerun configure.
4270 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4271 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4276 # The following way of writing the cache mishandles newlines in values,
4277 # but we know of no workaround that is simple, portable, and efficient.
4278 # So, don't put newlines in cache variables' values.
4279 # Ultrix sh set writes to stderr and can't be redirected directly,
4280 # and sets the high bit in the cache file unless we assign to the vars.
4283 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4285 # `set' does not quote correctly, so add quotes (double-quote
4286 # substitution turns \\\\ into \\, and sed turns \\ into \).
4289 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4292 # `set' quotes correctly as required by POSIX, so do not add quotes.
4294 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4301 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4303 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4305 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
4306 if test -w $cache_file; then
4307 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4308 cat confcache
>$cache_file
4310 echo "not updating unwritable cache $cache_file"
4315 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4316 AR
="$AR" LTCC
="$CC" CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
4317 MAGIC_CMD
="$MAGIC_CMD" LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
4318 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" STRIP
="$STRIP" \
4319 AS
="$AS" DLLTOOL
="$DLLTOOL" OBJDUMP
="$OBJDUMP" \
4320 objext
="$OBJEXT" exeext
="$EXEEXT" reload_flag
="$reload_flag" \
4321 deplibs_check_method
="$deplibs_check_method" file_magic_cmd
="$file_magic_cmd" \
4322 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
4323 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh
$host \
4324 ||
{ { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4325 echo "$as_me: error: libtool configure failed" >&2;}
4326 { (exit 1); exit 1; }; }
4328 # Reload cache, that may have been modified by ltconfig
4329 if test -r "$cache_file"; then
4330 # Some versions of bash will fail to source /dev/null (special
4331 # files actually), so we avoid doing that.
4332 if test -f "$cache_file"; then
4333 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4334 echo "$as_me: loading cache $cache_file" >&6;}
4336 [\\/]* | ?
:[\\/]* ) .
$cache_file;;
4337 *) . .
/$cache_file;;
4341 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4342 echo "$as_me: creating cache $cache_file" >&6;}
4347 # This can be used to rebuild libtool when needed
4348 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4350 # Always use our own libtool.
4351 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
4353 # Redirect the config.log output again, so that the ltconfig log is not
4354 # clobbered by the next message.
4355 exec 5>>.
/config.log
4363 ac_config_headers
="$ac_config_headers config.h:config.in"
4367 # Find a good install program. We prefer a C program (faster),
4368 # so one script is as good as another. But avoid the broken or
4369 # incompatible versions:
4370 # SysV /etc/install, /usr/sbin/install
4371 # SunOS /usr/etc/install
4372 # IRIX /sbin/install
4374 # AmigaOS /C/install, which installs bootblocks on floppy discs
4375 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4376 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4377 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4378 # OS/2's system install, which has a completely different semantic
4379 # ./install, which can be erroneously created by make from ./install.sh.
4380 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4381 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4382 if test -z "$INSTALL"; then
4383 if test "${ac_cv_path_install+set}" = set; then
4384 echo $ECHO_N "(cached) $ECHO_C" >&6
4386 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4390 test -z "$as_dir" && as_dir
=.
4391 # Account for people who put trailing slashes in PATH elements.
4393 .
/ | .
// |
/cC
/* | \
4394 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4395 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4398 # OSF1 and SCO ODT 3.0 have their own names for install.
4399 # Don't use installbsd from OSF since it installs stuff as root
4401 for ac_prog
in ginstall scoinst
install; do
4402 for ac_exec_ext
in '' $ac_executable_extensions; do
4403 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4404 if test $ac_prog = install &&
4405 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4406 # AIX install. It has an incompatible calling convention.
4408 elif test $ac_prog = install &&
4409 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4410 # program-specific install script used by HP pwplus--don't use.
4413 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4425 if test "${ac_cv_path_install+set}" = set; then
4426 INSTALL
=$ac_cv_path_install
4428 # As a last resort, use the slow shell script. We don't cache a
4429 # path for INSTALL within a source directory, because that will
4430 # break other packages using the cache if that directory is
4431 # removed, or if the path is relative.
4432 INSTALL
=$ac_install_sh
4435 echo "$as_me:$LINENO: result: $INSTALL" >&5
4436 echo "${ECHO_T}$INSTALL" >&6
4438 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4439 # It thinks the first close brace ends the variable substitution.
4440 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4442 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4444 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4447 .
${srcdir}/config.table
4448 host_makefile_frag
=${frag}
4451 # It's OK to check for header files. Although the compiler may not be
4452 # able to link anything, it had better be able to at least compile
4478 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
4480 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4481 echo "$as_me:$LINENO: checking for $ac_header" >&5
4482 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4483 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4484 echo $ECHO_N "(cached) $ECHO_C" >&6
4486 cat >conftest.
$ac_ext <<_ACEOF
4489 cat confdefs.h
>>conftest.
$ac_ext
4490 cat >>conftest.
$ac_ext <<_ACEOF
4491 /* end confdefs.h. */
4492 #include <$ac_header>
4494 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4495 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4497 grep -v '^ *+' conftest.er1
>conftest.err
4499 cat conftest.err
>&5
4500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501 (exit $ac_status); } >/dev
/null
; then
4502 if test -s conftest.err
; then
4503 ac_cpp_err
=$ac_c_preproc_warn_flag
4504 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4511 if test -z "$ac_cpp_err"; then
4512 eval "$as_ac_Header=yes"
4514 echo "$as_me: failed program was:" >&5
4515 sed 's/^/| /' conftest.
$ac_ext >&5
4517 eval "$as_ac_Header=no"
4519 rm -f conftest.err conftest.
$ac_ext
4521 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4522 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4523 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4524 cat >>confdefs.h
<<_ACEOF
4525 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4531 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4532 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
4533 if test "${ac_cv_header_sys_wait_h+set}" = set; then
4534 echo $ECHO_N "(cached) $ECHO_C" >&6
4536 cat >conftest.
$ac_ext <<_ACEOF
4539 cat confdefs.h
>>conftest.
$ac_ext
4540 cat >>conftest.
$ac_ext <<_ACEOF
4541 /* end confdefs.h. */
4542 #include <sys/types.h>
4543 #include <sys/wait.h>
4545 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4548 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4556 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4561 rm -f conftest.
$ac_objext
4562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4563 (eval $ac_compile) 2>conftest.er1
4565 grep -v '^ *+' conftest.er1
>conftest.err
4567 cat conftest.err
>&5
4568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569 (exit $ac_status); } &&
4570 { ac_try
='test -z "$ac_c_werror_flag"
4571 || test ! -s conftest.err'
4572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576 (exit $ac_status); }; } &&
4577 { ac_try
='test -s conftest.$ac_objext'
4578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582 (exit $ac_status); }; }; then
4583 ac_cv_header_sys_wait_h
=yes
4585 echo "$as_me: failed program was:" >&5
4586 sed 's/^/| /' conftest.
$ac_ext >&5
4588 ac_cv_header_sys_wait_h
=no
4590 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4592 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4593 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
4594 if test $ac_cv_header_sys_wait_h = yes; then
4596 cat >>confdefs.h
<<\_ACEOF
4597 #define HAVE_SYS_WAIT_H 1
4602 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4603 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4604 if test "${ac_cv_header_time+set}" = set; then
4605 echo $ECHO_N "(cached) $ECHO_C" >&6
4607 cat >conftest.
$ac_ext <<_ACEOF
4610 cat confdefs.h
>>conftest.
$ac_ext
4611 cat >>conftest.
$ac_ext <<_ACEOF
4612 /* end confdefs.h. */
4613 #include <sys/types.h>
4614 #include <sys/time.h>
4620 if ((struct tm *) 0)
4626 rm -f conftest.
$ac_objext
4627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4628 (eval $ac_compile) 2>conftest.er1
4630 grep -v '^ *+' conftest.er1
>conftest.err
4632 cat conftest.err
>&5
4633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634 (exit $ac_status); } &&
4635 { ac_try
='test -z "$ac_c_werror_flag"
4636 || test ! -s conftest.err'
4637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641 (exit $ac_status); }; } &&
4642 { ac_try
='test -s conftest.$ac_objext'
4643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647 (exit $ac_status); }; }; then
4648 ac_cv_header_time
=yes
4650 echo "$as_me: failed program was:" >&5
4651 sed 's/^/| /' conftest.
$ac_ext >&5
4653 ac_cv_header_time
=no
4655 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4657 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4658 echo "${ECHO_T}$ac_cv_header_time" >&6
4659 if test $ac_cv_header_time = yes; then
4661 cat >>confdefs.h
<<\_ACEOF
4662 #define TIME_WITH_SYS_TIME 1
4668 echo "$as_me:$LINENO: checking whether errno must be declared" >&5
4669 echo $ECHO_N "checking whether errno must be declared... $ECHO_C" >&6
4670 if test "${libiberty_cv_declare_errno+set}" = set; then
4671 echo $ECHO_N "(cached) $ECHO_C" >&6
4673 cat >conftest.
$ac_ext <<_ACEOF
4676 cat confdefs.h
>>conftest.
$ac_ext
4677 cat >>conftest.
$ac_ext <<_ACEOF
4678 /* end confdefs.h. */
4688 rm -f conftest.
$ac_objext
4689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4690 (eval $ac_compile) 2>conftest.er1
4692 grep -v '^ *+' conftest.er1
>conftest.err
4694 cat conftest.err
>&5
4695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696 (exit $ac_status); } &&
4697 { ac_try
='test -z "$ac_c_werror_flag"
4698 || test ! -s conftest.err'
4699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703 (exit $ac_status); }; } &&
4704 { ac_try
='test -s conftest.$ac_objext'
4705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4709 (exit $ac_status); }; }; then
4710 libiberty_cv_declare_errno
=no
4712 echo "$as_me: failed program was:" >&5
4713 sed 's/^/| /' conftest.
$ac_ext >&5
4715 libiberty_cv_declare_errno
=yes
4717 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4719 echo "$as_me:$LINENO: result: $libiberty_cv_declare_errno" >&5
4720 echo "${ECHO_T}$libiberty_cv_declare_errno" >&6
4721 if test $libiberty_cv_declare_errno = yes
4723 cat >>confdefs.h
<<\_ACEOF
4724 #define NEED_DECLARATION_ERRNO 1
4730 # Determine the size of an int for struct fibnode.
4731 echo "$as_me:$LINENO: checking for egrep" >&5
4732 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4733 if test "${ac_cv_prog_egrep+set}" = set; then
4734 echo $ECHO_N "(cached) $ECHO_C" >&6
4736 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
4737 then ac_cv_prog_egrep
='grep -E'
4738 else ac_cv_prog_egrep
='egrep'
4741 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4742 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4743 EGREP
=$ac_cv_prog_egrep
4746 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4747 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4748 if test "${ac_cv_header_stdc+set}" = set; then
4749 echo $ECHO_N "(cached) $ECHO_C" >&6
4751 cat >conftest.
$ac_ext <<_ACEOF
4754 cat confdefs.h
>>conftest.
$ac_ext
4755 cat >>conftest.
$ac_ext <<_ACEOF
4756 /* end confdefs.h. */
4770 rm -f conftest.
$ac_objext
4771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4772 (eval $ac_compile) 2>conftest.er1
4774 grep -v '^ *+' conftest.er1
>conftest.err
4776 cat conftest.err
>&5
4777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778 (exit $ac_status); } &&
4779 { ac_try
='test -z "$ac_c_werror_flag"
4780 || test ! -s conftest.err'
4781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785 (exit $ac_status); }; } &&
4786 { ac_try
='test -s conftest.$ac_objext'
4787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791 (exit $ac_status); }; }; then
4792 ac_cv_header_stdc
=yes
4794 echo "$as_me: failed program was:" >&5
4795 sed 's/^/| /' conftest.
$ac_ext >&5
4797 ac_cv_header_stdc
=no
4799 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4801 if test $ac_cv_header_stdc = yes; then
4802 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4803 cat >conftest.
$ac_ext <<_ACEOF
4806 cat confdefs.h
>>conftest.
$ac_ext
4807 cat >>conftest.
$ac_ext <<_ACEOF
4808 /* end confdefs.h. */
4812 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4813 $EGREP "memchr" >/dev
/null
2>&1; then
4816 ac_cv_header_stdc
=no
4822 if test $ac_cv_header_stdc = yes; then
4823 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4824 cat >conftest.
$ac_ext <<_ACEOF
4827 cat confdefs.h
>>conftest.
$ac_ext
4828 cat >>conftest.
$ac_ext <<_ACEOF
4829 /* end confdefs.h. */
4833 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4834 $EGREP "free" >/dev
/null
2>&1; then
4837 ac_cv_header_stdc
=no
4843 if test $ac_cv_header_stdc = yes; then
4844 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4845 if test "$cross_compiling" = yes; then
4848 cat >conftest.
$ac_ext <<_ACEOF
4851 cat confdefs.h
>>conftest.
$ac_ext
4852 cat >>conftest.
$ac_ext <<_ACEOF
4853 /* end confdefs.h. */
4855 #if ((' ' & 0x0FF) == 0x020)
4856 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4857 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4859 # define ISLOWER(c) \
4860 (('a' <= (c) && (c) <= 'i') \
4861 || ('j' <= (c) && (c) <= 'r') \
4862 || ('s' <= (c) && (c) <= 'z'))
4863 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4866 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4871 for (i = 0; i < 256; i++)
4872 if (XOR (islower (i), ISLOWER (i))
4873 || toupper (i) != TOUPPER (i))
4878 rm -f conftest
$ac_exeext
4879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4880 (eval $ac_link) 2>&5
4882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4888 (exit $ac_status); }; }; then
4891 echo "$as_me: program exited with status $ac_status" >&5
4892 echo "$as_me: failed program was:" >&5
4893 sed 's/^/| /' conftest.
$ac_ext >&5
4896 ac_cv_header_stdc
=no
4898 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4902 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4903 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4904 if test $ac_cv_header_stdc = yes; then
4906 cat >>confdefs.h
<<\_ACEOF
4907 #define STDC_HEADERS 1
4912 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4922 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4923 inttypes.h stdint.h unistd.h
4925 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4926 echo "$as_me:$LINENO: checking for $ac_header" >&5
4927 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4928 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4929 echo $ECHO_N "(cached) $ECHO_C" >&6
4931 cat >conftest.
$ac_ext <<_ACEOF
4934 cat confdefs.h
>>conftest.
$ac_ext
4935 cat >>conftest.
$ac_ext <<_ACEOF
4936 /* end confdefs.h. */
4937 #include <$ac_header>
4939 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4940 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4942 grep -v '^ *+' conftest.er1
>conftest.err
4944 cat conftest.err
>&5
4945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946 (exit $ac_status); } >/dev
/null
; then
4947 if test -s conftest.err
; then
4948 ac_cpp_err
=$ac_c_preproc_warn_flag
4949 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4956 if test -z "$ac_cpp_err"; then
4957 eval "$as_ac_Header=yes"
4959 echo "$as_me: failed program was:" >&5
4960 sed 's/^/| /' conftest.
$ac_ext >&5
4962 eval "$as_ac_Header=no"
4964 rm -f conftest.err conftest.
$ac_ext
4966 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4967 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4968 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4969 cat >>confdefs.h
<<_ACEOF
4970 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4977 echo "$as_me:$LINENO: checking for int" >&5
4978 echo $ECHO_N "checking for int... $ECHO_C" >&6
4979 if test "${ac_cv_type_int+set}" = set; then
4980 echo $ECHO_N "(cached) $ECHO_C" >&6
4982 cat >conftest.
$ac_ext <<_ACEOF
4985 cat confdefs.h
>>conftest.
$ac_ext
4986 cat >>conftest.
$ac_ext <<_ACEOF
4987 /* end confdefs.h. */
4988 $ac_includes_default
5000 rm -f conftest.
$ac_objext
5001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5002 (eval $ac_compile) 2>conftest.er1
5004 grep -v '^ *+' conftest.er1
>conftest.err
5006 cat conftest.err
>&5
5007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008 (exit $ac_status); } &&
5009 { ac_try
='test -z "$ac_c_werror_flag"
5010 || test ! -s conftest.err'
5011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015 (exit $ac_status); }; } &&
5016 { ac_try
='test -s conftest.$ac_objext'
5017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021 (exit $ac_status); }; }; then
5024 echo "$as_me: failed program was:" >&5
5025 sed 's/^/| /' conftest.
$ac_ext >&5
5029 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5031 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5032 echo "${ECHO_T}$ac_cv_type_int" >&6
5034 echo "$as_me:$LINENO: checking size of int" >&5
5035 echo $ECHO_N "checking size of int... $ECHO_C" >&6
5036 if test "${ac_cv_sizeof_int+set}" = set; then
5037 echo $ECHO_N "(cached) $ECHO_C" >&6
5039 if test "$ac_cv_type_int" = yes; then
5040 # The cast to unsigned long works around a bug in the HP C Compiler
5041 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5042 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5043 # This bug is HP SR number 8606223364.
5044 if test "$cross_compiling" = yes; then
5045 # Depending upon the size, compute the lo and hi bounds.
5046 cat >conftest.
$ac_ext <<_ACEOF
5049 cat confdefs.h
>>conftest.
$ac_ext
5050 cat >>conftest.
$ac_ext <<_ACEOF
5051 /* end confdefs.h. */
5052 $ac_includes_default
5056 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5063 rm -f conftest.
$ac_objext
5064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5065 (eval $ac_compile) 2>conftest.er1
5067 grep -v '^ *+' conftest.er1
>conftest.err
5069 cat conftest.err
>&5
5070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071 (exit $ac_status); } &&
5072 { ac_try
='test -z "$ac_c_werror_flag"
5073 || test ! -s conftest.err'
5074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078 (exit $ac_status); }; } &&
5079 { ac_try
='test -s conftest.$ac_objext'
5080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084 (exit $ac_status); }; }; then
5087 cat >conftest.
$ac_ext <<_ACEOF
5090 cat confdefs.h
>>conftest.
$ac_ext
5091 cat >>conftest.
$ac_ext <<_ACEOF
5092 /* end confdefs.h. */
5093 $ac_includes_default
5097 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5104 rm -f conftest.
$ac_objext
5105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5106 (eval $ac_compile) 2>conftest.er1
5108 grep -v '^ *+' conftest.er1
>conftest.err
5110 cat conftest.err
>&5
5111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112 (exit $ac_status); } &&
5113 { ac_try
='test -z "$ac_c_werror_flag"
5114 || test ! -s conftest.err'
5115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119 (exit $ac_status); }; } &&
5120 { ac_try
='test -s conftest.$ac_objext'
5121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5125 (exit $ac_status); }; }; then
5126 ac_hi
=$ac_mid; break
5128 echo "$as_me: failed program was:" >&5
5129 sed 's/^/| /' conftest.
$ac_ext >&5
5131 ac_lo
=`expr $ac_mid + 1`
5132 if test $ac_lo -le $ac_mid; then
5136 ac_mid
=`expr 2 '*' $ac_mid + 1`
5138 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5141 echo "$as_me: failed program was:" >&5
5142 sed 's/^/| /' conftest.
$ac_ext >&5
5144 cat >conftest.
$ac_ext <<_ACEOF
5147 cat confdefs.h
>>conftest.
$ac_ext
5148 cat >>conftest.
$ac_ext <<_ACEOF
5149 /* end confdefs.h. */
5150 $ac_includes_default
5154 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5161 rm -f conftest.
$ac_objext
5162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5163 (eval $ac_compile) 2>conftest.er1
5165 grep -v '^ *+' conftest.er1
>conftest.err
5167 cat conftest.err
>&5
5168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169 (exit $ac_status); } &&
5170 { ac_try
='test -z "$ac_c_werror_flag"
5171 || test ! -s conftest.err'
5172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176 (exit $ac_status); }; } &&
5177 { ac_try
='test -s conftest.$ac_objext'
5178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182 (exit $ac_status); }; }; then
5185 cat >conftest.
$ac_ext <<_ACEOF
5188 cat confdefs.h
>>conftest.
$ac_ext
5189 cat >>conftest.
$ac_ext <<_ACEOF
5190 /* end confdefs.h. */
5191 $ac_includes_default
5195 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5202 rm -f conftest.
$ac_objext
5203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5204 (eval $ac_compile) 2>conftest.er1
5206 grep -v '^ *+' conftest.er1
>conftest.err
5208 cat conftest.err
>&5
5209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5210 (exit $ac_status); } &&
5211 { ac_try
='test -z "$ac_c_werror_flag"
5212 || test ! -s conftest.err'
5213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217 (exit $ac_status); }; } &&
5218 { ac_try
='test -s conftest.$ac_objext'
5219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223 (exit $ac_status); }; }; then
5224 ac_lo
=$ac_mid; break
5226 echo "$as_me: failed program was:" >&5
5227 sed 's/^/| /' conftest.
$ac_ext >&5
5229 ac_hi
=`expr '(' $ac_mid ')' - 1`
5230 if test $ac_mid -le $ac_hi; then
5234 ac_mid
=`expr 2 '*' $ac_mid`
5236 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5239 echo "$as_me: failed program was:" >&5
5240 sed 's/^/| /' conftest.
$ac_ext >&5
5244 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5246 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5247 # Binary search between lo and hi bounds.
5248 while test "x$ac_lo" != "x$ac_hi"; do
5249 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5250 cat >conftest.
$ac_ext <<_ACEOF
5253 cat confdefs.h
>>conftest.
$ac_ext
5254 cat >>conftest.
$ac_ext <<_ACEOF
5255 /* end confdefs.h. */
5256 $ac_includes_default
5260 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5267 rm -f conftest.
$ac_objext
5268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5269 (eval $ac_compile) 2>conftest.er1
5271 grep -v '^ *+' conftest.er1
>conftest.err
5273 cat conftest.err
>&5
5274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275 (exit $ac_status); } &&
5276 { ac_try
='test -z "$ac_c_werror_flag"
5277 || test ! -s conftest.err'
5278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282 (exit $ac_status); }; } &&
5283 { ac_try
='test -s conftest.$ac_objext'
5284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288 (exit $ac_status); }; }; then
5291 echo "$as_me: failed program was:" >&5
5292 sed 's/^/| /' conftest.
$ac_ext >&5
5294 ac_lo
=`expr '(' $ac_mid ')' + 1`
5296 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5299 ?
*) ac_cv_sizeof_int
=$ac_lo;;
5300 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5301 See \`config.log' for more details." >&5
5302 echo "$as_me: error: cannot compute sizeof (int), 77
5303 See \`config.log' for more details." >&2;}
5304 { (exit 1); exit 1; }; } ;;
5307 if test "$cross_compiling" = yes; then
5308 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5309 See \`config.log' for more details." >&5
5310 echo "$as_me: error: cannot run test program while cross compiling
5311 See \`config.log' for more details." >&2;}
5312 { (exit 1); exit 1; }; }
5314 cat >conftest.
$ac_ext <<_ACEOF
5317 cat confdefs.h
>>conftest.
$ac_ext
5318 cat >>conftest.
$ac_ext <<_ACEOF
5319 /* end confdefs.h. */
5320 $ac_includes_default
5321 long longval () { return (long) (sizeof (int)); }
5322 unsigned long ulongval () { return (long) (sizeof (int)); }
5329 FILE *f = fopen ("conftest.val", "w");
5332 if (((long) (sizeof (int))) < 0)
5334 long i = longval ();
5335 if (i != ((long) (sizeof (int))))
5337 fprintf (f, "%ld\n", i);
5341 unsigned long i = ulongval ();
5342 if (i != ((long) (sizeof (int))))
5344 fprintf (f, "%lu\n", i);
5346 exit (ferror (f) || fclose (f) != 0);
5352 rm -f conftest
$ac_exeext
5353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5354 (eval $ac_link) 2>&5
5356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362 (exit $ac_status); }; }; then
5363 ac_cv_sizeof_int
=`cat conftest.val`
5365 echo "$as_me: program exited with status $ac_status" >&5
5366 echo "$as_me: failed program was:" >&5
5367 sed 's/^/| /' conftest.
$ac_ext >&5
5370 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5371 See \`config.log' for more details." >&5
5372 echo "$as_me: error: cannot compute sizeof (int), 77
5373 See \`config.log' for more details." >&2;}
5374 { (exit 1); exit 1; }; }
5376 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5384 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5385 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5386 cat >>confdefs.h
<<_ACEOF
5387 #define SIZEOF_INT $ac_cv_sizeof_int
5392 echo "$as_me:$LINENO: checking for uintptr_t" >&5
5393 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
5394 if test "${ac_cv_type_uintptr_t+set}" = set; then
5395 echo $ECHO_N "(cached) $ECHO_C" >&6
5397 cat >conftest.
$ac_ext <<_ACEOF
5400 cat confdefs.h
>>conftest.
$ac_ext
5401 cat >>conftest.
$ac_ext <<_ACEOF
5402 /* end confdefs.h. */
5403 $ac_includes_default
5407 if ((uintptr_t *) 0)
5409 if (sizeof (uintptr_t))
5415 rm -f conftest.
$ac_objext
5416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5417 (eval $ac_compile) 2>conftest.er1
5419 grep -v '^ *+' conftest.er1
>conftest.err
5421 cat conftest.err
>&5
5422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5423 (exit $ac_status); } &&
5424 { ac_try
='test -z "$ac_c_werror_flag"
5425 || test ! -s conftest.err'
5426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430 (exit $ac_status); }; } &&
5431 { ac_try
='test -s conftest.$ac_objext'
5432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436 (exit $ac_status); }; }; then
5437 ac_cv_type_uintptr_t
=yes
5439 echo "$as_me: failed program was:" >&5
5440 sed 's/^/| /' conftest.
$ac_ext >&5
5442 ac_cv_type_uintptr_t
=no
5444 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5446 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
5447 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
5448 if test $ac_cv_type_uintptr_t = yes; then
5452 cat >>confdefs.h
<<_ACEOF
5453 #define uintptr_t unsigned long
5459 # Look for a 64-bit type.
5460 echo "$as_me:$LINENO: checking for a 64-bit type" >&5
5461 echo $ECHO_N "checking for a 64-bit type... $ECHO_C" >&6
5462 if test "${liberty_cv_uint64+set}" = set; then
5463 echo $ECHO_N "(cached) $ECHO_C" >&6
5465 cat >conftest.
$ac_ext <<_ACEOF
5468 cat confdefs.h
>>conftest.
$ac_ext
5469 cat >>conftest.
$ac_ext <<_ACEOF
5470 /* end confdefs.h. */
5471 #ifdef HAVE_STDINT_H
5477 extern uint64_t foo;
5482 rm -f conftest.
$ac_objext
5483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5484 (eval $ac_compile) 2>conftest.er1
5486 grep -v '^ *+' conftest.er1
>conftest.err
5488 cat conftest.err
>&5
5489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490 (exit $ac_status); } &&
5491 { ac_try
='test -z "$ac_c_werror_flag"
5492 || test ! -s conftest.err'
5493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497 (exit $ac_status); }; } &&
5498 { ac_try
='test -s conftest.$ac_objext'
5499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5503 (exit $ac_status); }; }; then
5504 liberty_cv_uint64
=uint64_t
5506 echo "$as_me: failed program was:" >&5
5507 sed 's/^/| /' conftest.
$ac_ext >&5
5509 cat >conftest.
$ac_ext <<_ACEOF
5512 cat confdefs.h
>>conftest.
$ac_ext
5513 cat >>conftest.
$ac_ext <<_ACEOF
5514 /* end confdefs.h. */
5515 #ifdef HAVE_LIMITS_H
5524 extern char foo[sizeof(long) * CHAR_BIT >= 64 ? 1 : -1];
5529 rm -f conftest.
$ac_objext
5530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5531 (eval $ac_compile) 2>conftest.er1
5533 grep -v '^ *+' conftest.er1
>conftest.err
5535 cat conftest.err
>&5
5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537 (exit $ac_status); } &&
5538 { ac_try
='test -z "$ac_c_werror_flag"
5539 || test ! -s conftest.err'
5540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544 (exit $ac_status); }; } &&
5545 { ac_try
='test -s conftest.$ac_objext'
5546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550 (exit $ac_status); }; }; then
5551 liberty_cv_uint64
="unsigned long"
5553 echo "$as_me: failed program was:" >&5
5554 sed 's/^/| /' conftest.
$ac_ext >&5
5556 cat >conftest.
$ac_ext <<_ACEOF
5559 cat confdefs.h
>>conftest.
$ac_ext
5560 cat >>conftest.
$ac_ext <<_ACEOF
5561 /* end confdefs.h. */
5562 #ifdef HAVE_LIMITS_H
5571 extern char foo[sizeof(long long) * CHAR_BIT >= 64 ? 1 : -1];
5576 rm -f conftest.
$ac_objext
5577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5578 (eval $ac_compile) 2>conftest.er1
5580 grep -v '^ *+' conftest.er1
>conftest.err
5582 cat conftest.err
>&5
5583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5584 (exit $ac_status); } &&
5585 { ac_try
='test -z "$ac_c_werror_flag"
5586 || test ! -s conftest.err'
5587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5591 (exit $ac_status); }; } &&
5592 { ac_try
='test -s conftest.$ac_objext'
5593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); }; }; then
5598 liberty_cv_uint64
="unsigned long long"
5600 echo "$as_me: failed program was:" >&5
5601 sed 's/^/| /' conftest.
$ac_ext >&5
5603 liberty_cv_uint64
=none
5605 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5607 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5609 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5612 echo "$as_me:$LINENO: result: $liberty_cv_uint64" >&5
5613 echo "${ECHO_T}$liberty_cv_uint64" >&6
5614 if test "$liberty_cv_uint64" != none
; then
5616 cat >>confdefs.h
<<_ACEOF
5617 #define UNSIGNED_64BIT_TYPE $liberty_cv_uint64
5622 # Given the above check, we always have uintptr_t or a fallback
5623 # definition. So define HAVE_UINTPTR_T in case any imported code
5626 cat >>confdefs.h
<<\_ACEOF
5627 #define HAVE_UINTPTR_T 1
5631 echo "$as_me:$LINENO: checking for pid_t" >&5
5632 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
5633 if test "${ac_cv_type_pid_t+set}" = set; then
5634 echo $ECHO_N "(cached) $ECHO_C" >&6
5636 cat >conftest.
$ac_ext <<_ACEOF
5639 cat confdefs.h
>>conftest.
$ac_ext
5640 cat >>conftest.
$ac_ext <<_ACEOF
5641 /* end confdefs.h. */
5642 $ac_includes_default
5654 rm -f conftest.
$ac_objext
5655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5656 (eval $ac_compile) 2>conftest.er1
5658 grep -v '^ *+' conftest.er1
>conftest.err
5660 cat conftest.err
>&5
5661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662 (exit $ac_status); } &&
5663 { ac_try
='test -z "$ac_c_werror_flag"
5664 || test ! -s conftest.err'
5665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669 (exit $ac_status); }; } &&
5670 { ac_try
='test -s conftest.$ac_objext'
5671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675 (exit $ac_status); }; }; then
5676 ac_cv_type_pid_t
=yes
5678 echo "$as_me: failed program was:" >&5
5679 sed 's/^/| /' conftest.
$ac_ext >&5
5683 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5685 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5686 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
5687 if test $ac_cv_type_pid_t = yes; then
5691 cat >>confdefs.h
<<_ACEOF
5698 # This is the list of functions which libiberty will provide if they
5699 # are not available on the host.
5702 funcs
="$funcs atexit"
5703 funcs
="$funcs basename"
5705 funcs
="$funcs bcopy"
5706 funcs
="$funcs bsearch"
5707 funcs
="$funcs bzero"
5708 funcs
="$funcs calloc"
5709 funcs
="$funcs clock"
5711 funcs
="$funcs getcwd"
5712 funcs
="$funcs getpagesize"
5713 funcs
="$funcs index"
5714 funcs
="$funcs insque"
5715 funcs
="$funcs memchr"
5716 funcs
="$funcs memcmp"
5717 funcs
="$funcs memcpy"
5718 funcs
="$funcs memmove"
5719 funcs
="$funcs mempcpy"
5720 funcs
="$funcs memset"
5721 funcs
="$funcs mkstemps"
5722 funcs
="$funcs putenv"
5723 funcs
="$funcs random"
5724 funcs
="$funcs rename"
5725 funcs
="$funcs rindex"
5726 funcs
="$funcs setenv"
5727 funcs
="$funcs snprintf"
5728 funcs
="$funcs sigsetmask"
5729 funcs
="$funcs stpcpy"
5730 funcs
="$funcs stpncpy"
5731 funcs
="$funcs strcasecmp"
5732 funcs
="$funcs strchr"
5733 funcs
="$funcs strdup"
5734 funcs
="$funcs strncasecmp"
5735 funcs
="$funcs strrchr"
5736 funcs
="$funcs strstr"
5737 funcs
="$funcs strtod"
5738 funcs
="$funcs strtol"
5739 funcs
="$funcs strtoul"
5740 funcs
="$funcs tmpnam"
5741 funcs
="$funcs vasprintf"
5742 funcs
="$funcs vfprintf"
5743 funcs
="$funcs vprintf"
5744 funcs
="$funcs vsnprintf"
5745 funcs
="$funcs vsprintf"
5746 funcs
="$funcs waitpid"
5748 # Also in the old function.def file: alloca, vfork, getopt.
5750 vars
="sys_errlist sys_nerr sys_siglist"
5752 checkfuncs
="getrusage on_exit psignal strerror strsignal sysconf times sbrk gettimeofday"
5753 checkfuncs
="$checkfuncs realpath canonicalize_file_name pstat_getstatic pstat_getdynamic sysmp"
5754 checkfuncs
="$checkfuncs getsysinfo table sysctl"
5756 # These are neither executed nor required, but they help keep
5757 # autoheader happy without adding a bunch of text to acconfig.h.
5758 if test "x" = "y"; then
5822 for ac_func
in asprintf atexit
basename bcmp bcopy bsearch bzero calloc
clock \
5823 getcwd getpagesize index insque mkstemps memchr memcmp memcpy \
5824 memmove mempcpy memset putenv random rename rindex sigsetmask \
5825 strcasecmp setenv stpcpy stpncpy strchr strdup strncasecmp strrchr strstr \
5826 strtod strtol strtoul tmpnam vasprintf vfprintf vprintf \
5827 vsprintf waitpid getrusage on_exit psignal strerror strsignal \
5828 sysconf
times sbrk gettimeofday ffs snprintf vsnprintf \
5829 pstat_getstatic pstat_getdynamic sysmp getsysinfo table sysctl \
5830 realpath canonicalize_file_name
5832 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5833 echo "$as_me:$LINENO: checking for $ac_func" >&5
5834 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5835 if eval "test \"\${$as_ac_var+set}\" = set"; then
5836 echo $ECHO_N "(cached) $ECHO_C" >&6
5838 if test x
$gcc_no_link = xyes
; then
5839 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5840 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5841 { (exit 1); exit 1; }; }
5843 cat >conftest.
$ac_ext <<_ACEOF
5846 cat confdefs.h
>>conftest.
$ac_ext
5847 cat >>conftest.
$ac_ext <<_ACEOF
5848 /* end confdefs.h. */
5849 /* System header to define __stub macros and hopefully few prototypes,
5850 which can conflict with char $ac_func (); below.
5851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5852 <limits.h> exists even on freestanding compilers. Under hpux,
5853 including <limits.h> includes <sys/time.h> and causes problems
5854 checking for functions defined therein. */
5855 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
5856 # include <limits.h>
5858 # include <assert.h>
5860 /* Override any gcc2 internal prototype to avoid an error. */
5865 /* We use char because int might match the return type of a gcc2
5866 builtin and then its argument prototype would still apply. */
5868 /* The GNU C library defines this for functions which it implements
5869 to always fail with ENOSYS. Some functions are actually named
5870 something starting with __ and the normal name is an alias. */
5871 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5874 char (*f) () = $ac_func;
5883 return f != $ac_func;
5888 rm -f conftest.
$ac_objext conftest
$ac_exeext
5889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5890 (eval $ac_link) 2>conftest.er1
5892 grep -v '^ *+' conftest.er1
>conftest.err
5894 cat conftest.err
>&5
5895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5896 (exit $ac_status); } &&
5897 { ac_try
='test -z "$ac_c_werror_flag"
5898 || test ! -s conftest.err'
5899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903 (exit $ac_status); }; } &&
5904 { ac_try
='test -s conftest$ac_exeext'
5905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5909 (exit $ac_status); }; }; then
5910 eval "$as_ac_var=yes"
5912 echo "$as_me: failed program was:" >&5
5913 sed 's/^/| /' conftest.
$ac_ext >&5
5915 eval "$as_ac_var=no"
5917 rm -f conftest.err conftest.
$ac_objext \
5918 conftest
$ac_exeext conftest.
$ac_ext
5920 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5921 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5922 if test `eval echo '${'$as_ac_var'}'` = yes; then
5923 cat >>confdefs.h
<<_ACEOF
5924 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5931 cat >>confdefs.h
<<\_ACEOF
5932 #define HAVE_SYS_ERRLIST 1
5936 cat >>confdefs.h
<<\_ACEOF
5937 #define HAVE_SYS_NERR 1
5941 cat >>confdefs.h
<<\_ACEOF
5942 #define HAVE_SYS_SIGLIST 1
5947 # For each of these functions, if the host does not provide the
5948 # function we want to put FN.o in LIBOBJS, and if the host does
5949 # provide the function, we want to define HAVE_FN in config.h.
5954 if test -n "${with_target_subdir}"; then
5956 # We are being configured as a target library. AC_REPLACE_FUNCS
5957 # may not work correctly, because the compiler may not be able to
5958 # link executables. Note that we may still be being configured
5961 # If we are being configured for newlib, we know which functions
5962 # newlib provide and which ones we will be expected to provide.
5964 if test "x${with_newlib}" = "xyes"; then
5966 "asprintf.$ac_objext" | \
5967 *" asprintf.$ac_objext" | \
5968 "asprintf.$ac_objext "* | \
5969 *" asprintf.$ac_objext "* ) ;;
5970 *) LIBOBJS
="$LIBOBJS asprintf.$ac_objext" ;;
5974 "basename.$ac_objext" | \
5975 *" basename.$ac_objext" | \
5976 "basename.$ac_objext "* | \
5977 *" basename.$ac_objext "* ) ;;
5978 *) LIBOBJS
="$LIBOBJS basename.$ac_objext" ;;
5982 "insque.$ac_objext" | \
5983 *" insque.$ac_objext" | \
5984 "insque.$ac_objext "* | \
5985 *" insque.$ac_objext "* ) ;;
5986 *) LIBOBJS
="$LIBOBJS insque.$ac_objext" ;;
5990 "random.$ac_objext" | \
5991 *" random.$ac_objext" | \
5992 "random.$ac_objext "* | \
5993 *" random.$ac_objext "* ) ;;
5994 *) LIBOBJS
="$LIBOBJS random.$ac_objext" ;;
5998 "strdup.$ac_objext" | \
5999 *" strdup.$ac_objext" | \
6000 "strdup.$ac_objext "* | \
6001 *" strdup.$ac_objext "* ) ;;
6002 *) LIBOBJS
="$LIBOBJS strdup.$ac_objext" ;;
6006 "vasprintf.$ac_objext" | \
6007 *" vasprintf.$ac_objext" | \
6008 "vasprintf.$ac_objext "* | \
6009 *" vasprintf.$ac_objext "* ) ;;
6010 *) LIBOBJS
="$LIBOBJS vasprintf.$ac_objext" ;;
6016 asprintf |
basename | insque | random | strdup | vasprintf
)
6019 n
=HAVE_
`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6020 cat >>confdefs.h
<<_ACEOF
6028 # newlib doesnt provide any of the variables in $vars, so we
6029 # dont have to check them here.
6031 # Of the functions in $checkfuncs, newlib only has strerror.
6032 cat >> confdefs.h
<<\EOF
6033 #define HAVE_STRERROR 1
6041 # We may wish to install the target headers somewhere.
6042 # Check whether --enable-install-libiberty or --disable-install-libiberty was given.
6043 if test "${enable_install_libiberty+set}" = set; then
6044 enableval
="$enable_install_libiberty"
6045 enable_install_libiberty
=$enableval
6047 enable_install_libiberty
=no
6049 # Option parsed, now set things appropriately.
6050 case x
"$enable_install_libiberty" in
6052 target_header_dir
=libiberty
6058 # This could be sanity-checked in various ways...
6059 target_header_dir
="${enable_install_libiberty}"
6066 # Not a target library, so we set things up to run the test suite.
6067 CHECK
=check-cplus-dem
6075 *-*-cygwin* |
*-*-mingw*)
6076 cat >> confdefs.h
<<\EOF
6077 #define HAVE_SYS_ERRLIST 1
6080 cat >> confdefs.h
<<\EOF
6081 #define HAVE_SYS_NERR 1
6087 if test -z "${setobjs}"; then
6091 # Handle VxWorks configuration specially, since on VxWorks the
6092 # libraries are actually on the target board, not in the file
6095 "basename.$ac_objext" | \
6096 *" basename.$ac_objext" | \
6097 "basename.$ac_objext "* | \
6098 *" basename.$ac_objext "* ) ;;
6099 *) LIBOBJS
="$LIBOBJS basename.$ac_objext" ;;
6103 "getpagesize.$ac_objext" | \
6104 *" getpagesize.$ac_objext" | \
6105 "getpagesize.$ac_objext "* | \
6106 *" getpagesize.$ac_objext "* ) ;;
6107 *) LIBOBJS
="$LIBOBJS getpagesize.$ac_objext" ;;
6111 "insque.$ac_objext" | \
6112 *" insque.$ac_objext" | \
6113 "insque.$ac_objext "* | \
6114 *" insque.$ac_objext "* ) ;;
6115 *) LIBOBJS
="$LIBOBJS insque.$ac_objext" ;;
6119 "random.$ac_objext" | \
6120 *" random.$ac_objext" | \
6121 "random.$ac_objext "* | \
6122 *" random.$ac_objext "* ) ;;
6123 *) LIBOBJS
="$LIBOBJS random.$ac_objext" ;;
6127 "strcasecmp.$ac_objext" | \
6128 *" strcasecmp.$ac_objext" | \
6129 "strcasecmp.$ac_objext "* | \
6130 *" strcasecmp.$ac_objext "* ) ;;
6131 *) LIBOBJS
="$LIBOBJS strcasecmp.$ac_objext" ;;
6135 "strncasecmp.$ac_objext" | \
6136 *" strncasecmp.$ac_objext" | \
6137 "strncasecmp.$ac_objext "* | \
6138 *" strncasecmp.$ac_objext "* ) ;;
6139 *) LIBOBJS
="$LIBOBJS strncasecmp.$ac_objext" ;;
6143 "strdup.$ac_objext" | \
6144 *" strdup.$ac_objext" | \
6145 "strdup.$ac_objext "* | \
6146 *" strdup.$ac_objext "* ) ;;
6147 *) LIBOBJS
="$LIBOBJS strdup.$ac_objext" ;;
6151 "vfork.$ac_objext" | \
6152 *" vfork.$ac_objext" | \
6153 "vfork.$ac_objext "* | \
6154 *" vfork.$ac_objext "* ) ;;
6155 *) LIBOBJS
="$LIBOBJS vfork.$ac_objext" ;;
6159 "waitpid.$ac_objext" | \
6160 *" waitpid.$ac_objext" | \
6161 "waitpid.$ac_objext "* | \
6162 *" waitpid.$ac_objext "* ) ;;
6163 *) LIBOBJS
="$LIBOBJS waitpid.$ac_objext" ;;
6167 "vasprintf.$ac_objext" | \
6168 *" vasprintf.$ac_objext" | \
6169 "vasprintf.$ac_objext "* | \
6170 *" vasprintf.$ac_objext "* ) ;;
6171 *) LIBOBJS
="$LIBOBJS vasprintf.$ac_objext" ;;
6176 basename | getpagesize | insque | random | strcasecmp
)
6178 strncasecmp | strdup | vfork | waitpid | vasprintf
)
6181 n
=HAVE_
`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6182 cat >>confdefs.h
<<_ACEOF
6190 # VxWorks doesn't provide any of the variables in $vars, so we
6191 # don't have to check them here.
6193 # Of the functions in $checkfuncs, VxWorks only has strerror.
6194 cat >> confdefs.h
<<\EOF
6195 #define HAVE_STRERROR 1
6205 if test -z "${setobjs}"; then
6210 # The Cygwin library actually uses a couple of files from
6211 # libiberty when it is built. If we are building a native
6212 # Cygwin, and we run the tests, we will appear to have these
6213 # files. However, when we go on to build winsup, we will wind up
6214 # with a library which does not have the files, since they should
6215 # have come from libiberty.
6217 # We handle this by removing the functions the winsup library
6218 # provides from our shell variables, so that they appear to be
6221 # DJ - only if we're *building* cygwin, not just building *with* cygwin
6223 if test -n "${with_target_subdir}"
6225 funcs
="`echo $funcs | sed -e 's/random//'`"
6227 "random.$ac_objext" | \
6228 *" random.$ac_objext" | \
6229 "random.$ac_objext "* | \
6230 *" random.$ac_objext "* ) ;;
6231 *) LIBOBJS
="$LIBOBJS random.$ac_objext" ;;
6234 vars
="`echo $vars | sed -e 's/sys_siglist//'`"
6235 checkfuncs
="`echo $checkfuncs | sed -e 's/strsignal//' -e 's/psignal//'`"
6240 # Under mingw32, sys_nerr and sys_errlist exist, but they are
6241 # macros, so the test below won't find them.
6242 libiberty_cv_var_sys_nerr
=yes
6243 libiberty_cv_var_sys_errlist
=yes
6247 # Under some versions of uwin, vfork is notoriously buggy and the test
6248 # can hang configure; on other versions, vfork exists just as a stub.
6249 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
6250 ac_cv_func_vfork_works
=no
6251 # Under uwin 2.0+, sys_nerr and sys_errlist exist, but they are
6252 # macros (actually, these are imported from a DLL, but the end effect
6253 # is the same), so the test below won't find them.
6254 libiberty_cv_var_sys_nerr
=yes
6255 libiberty_cv_var_sys_errlist
=yes
6259 # Under VMS, vfork works very different than on Unix. The standard test
6260 # won't work, and it isn't easily adaptable. It makes more sense to
6262 ac_cv_func_vfork_works
=yes
6267 # We haven't set the list of objects yet. Use the standard autoconf
6268 # tests. This will only work if the compiler works.
6269 echo "$as_me:$LINENO: checking for library containing strerror" >&5
6270 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
6271 if test "${ac_cv_search_strerror+set}" = set; then
6272 echo $ECHO_N "(cached) $ECHO_C" >&6
6274 ac_func_search_save_LIBS
=$LIBS
6275 ac_cv_search_strerror
=no
6276 if test x
$gcc_no_link = xyes
; then
6277 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6278 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6279 { (exit 1); exit 1; }; }
6281 cat >conftest.
$ac_ext <<_ACEOF
6284 cat confdefs.h
>>conftest.
$ac_ext
6285 cat >>conftest.
$ac_ext <<_ACEOF
6286 /* end confdefs.h. */
6288 /* Override any gcc2 internal prototype to avoid an error. */
6292 /* We use char because int might match the return type of a gcc2
6293 builtin and then its argument prototype would still apply. */
6303 rm -f conftest.
$ac_objext conftest
$ac_exeext
6304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6305 (eval $ac_link) 2>conftest.er1
6307 grep -v '^ *+' conftest.er1
>conftest.err
6309 cat conftest.err
>&5
6310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311 (exit $ac_status); } &&
6312 { ac_try
='test -z "$ac_c_werror_flag"
6313 || test ! -s conftest.err'
6314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318 (exit $ac_status); }; } &&
6319 { ac_try
='test -s conftest$ac_exeext'
6320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324 (exit $ac_status); }; }; then
6325 ac_cv_search_strerror
="none required"
6327 echo "$as_me: failed program was:" >&5
6328 sed 's/^/| /' conftest.
$ac_ext >&5
6331 rm -f conftest.err conftest.
$ac_objext \
6332 conftest
$ac_exeext conftest.
$ac_ext
6333 if test "$ac_cv_search_strerror" = no
; then
6334 for ac_lib
in cposix
; do
6335 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6336 if test x
$gcc_no_link = xyes
; then
6337 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6338 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6339 { (exit 1); exit 1; }; }
6341 cat >conftest.
$ac_ext <<_ACEOF
6344 cat confdefs.h
>>conftest.
$ac_ext
6345 cat >>conftest.
$ac_ext <<_ACEOF
6346 /* end confdefs.h. */
6348 /* Override any gcc2 internal prototype to avoid an error. */
6352 /* We use char because int might match the return type of a gcc2
6353 builtin and then its argument prototype would still apply. */
6363 rm -f conftest.
$ac_objext conftest
$ac_exeext
6364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6365 (eval $ac_link) 2>conftest.er1
6367 grep -v '^ *+' conftest.er1
>conftest.err
6369 cat conftest.err
>&5
6370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371 (exit $ac_status); } &&
6372 { ac_try
='test -z "$ac_c_werror_flag"
6373 || test ! -s conftest.err'
6374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6378 (exit $ac_status); }; } &&
6379 { ac_try
='test -s conftest$ac_exeext'
6380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384 (exit $ac_status); }; }; then
6385 ac_cv_search_strerror
="-l$ac_lib"
6388 echo "$as_me: failed program was:" >&5
6389 sed 's/^/| /' conftest.
$ac_ext >&5
6392 rm -f conftest.err conftest.
$ac_objext \
6393 conftest
$ac_exeext conftest.
$ac_ext
6396 LIBS
=$ac_func_search_save_LIBS
6398 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
6399 echo "${ECHO_T}$ac_cv_search_strerror" >&6
6400 if test "$ac_cv_search_strerror" != no
; then
6401 test "$ac_cv_search_strerror" = "none required" || LIBS
="$ac_cv_search_strerror $LIBS"
6406 for ac_func
in $funcs
6408 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6409 echo "$as_me:$LINENO: checking for $ac_func" >&5
6410 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6411 if eval "test \"\${$as_ac_var+set}\" = set"; then
6412 echo $ECHO_N "(cached) $ECHO_C" >&6
6414 if test x
$gcc_no_link = xyes
; then
6415 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6416 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6417 { (exit 1); exit 1; }; }
6419 cat >conftest.
$ac_ext <<_ACEOF
6422 cat confdefs.h
>>conftest.
$ac_ext
6423 cat >>conftest.
$ac_ext <<_ACEOF
6424 /* end confdefs.h. */
6425 /* System header to define __stub macros and hopefully few prototypes,
6426 which can conflict with char $ac_func (); below.
6427 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6428 <limits.h> exists even on freestanding compilers. Under hpux,
6429 including <limits.h> includes <sys/time.h> and causes problems
6430 checking for functions defined therein. */
6431 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
6432 # include <limits.h>
6434 # include <assert.h>
6436 /* Override any gcc2 internal prototype to avoid an error. */
6441 /* We use char because int might match the return type of a gcc2
6442 builtin and then its argument prototype would still apply. */
6444 /* The GNU C library defines this for functions which it implements
6445 to always fail with ENOSYS. Some functions are actually named
6446 something starting with __ and the normal name is an alias. */
6447 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6450 char (*f) () = $ac_func;
6459 return f != $ac_func;
6464 rm -f conftest.
$ac_objext conftest
$ac_exeext
6465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6466 (eval $ac_link) 2>conftest.er1
6468 grep -v '^ *+' conftest.er1
>conftest.err
6470 cat conftest.err
>&5
6471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472 (exit $ac_status); } &&
6473 { ac_try
='test -z "$ac_c_werror_flag"
6474 || test ! -s conftest.err'
6475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479 (exit $ac_status); }; } &&
6480 { ac_try
='test -s conftest$ac_exeext'
6481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485 (exit $ac_status); }; }; then
6486 eval "$as_ac_var=yes"
6488 echo "$as_me: failed program was:" >&5
6489 sed 's/^/| /' conftest.
$ac_ext >&5
6491 eval "$as_ac_var=no"
6493 rm -f conftest.err conftest.
$ac_objext \
6494 conftest
$ac_exeext conftest.
$ac_ext
6496 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6497 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6498 if test `eval echo '${'$as_ac_var'}'` = yes; then
6499 cat >>confdefs.h
<<_ACEOF
6500 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6505 "$ac_func.$ac_objext" | \
6506 *" $ac_func.$ac_objext" | \
6507 "$ac_func.$ac_objext "* | \
6508 *" $ac_func.$ac_objext "* ) ;;
6509 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext" ;;
6516 echo "$as_me:$LINENO: checking whether alloca needs Cray hooks" >&5
6517 echo $ECHO_N "checking whether alloca needs Cray hooks... $ECHO_C" >&6
6518 if test "${ac_cv_os_cray+set}" = set; then
6519 echo $ECHO_N "(cached) $ECHO_C" >&6
6521 cat >conftest.
$ac_ext <<_ACEOF
6524 cat confdefs.h
>>conftest.
$ac_ext
6525 cat >>conftest.
$ac_ext <<_ACEOF
6526 /* end confdefs.h. */
6527 #if defined(CRAY) && ! defined(CRAY2)
6534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6535 $EGREP "webecray" >/dev
/null
2>&1; then
6543 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6544 echo "${ECHO_T}$ac_cv_os_cray" >&6
6545 if test $ac_cv_os_cray = yes; then
6546 for ac_func
in _getb67 GETB67 getb67
; do
6547 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6548 echo "$as_me:$LINENO: checking for $ac_func" >&5
6549 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6550 if eval "test \"\${$as_ac_var+set}\" = set"; then
6551 echo $ECHO_N "(cached) $ECHO_C" >&6
6553 if test x
$gcc_no_link = xyes
; then
6554 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6555 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6556 { (exit 1); exit 1; }; }
6558 cat >conftest.
$ac_ext <<_ACEOF
6561 cat confdefs.h
>>conftest.
$ac_ext
6562 cat >>conftest.
$ac_ext <<_ACEOF
6563 /* end confdefs.h. */
6564 /* System header to define __stub macros and hopefully few prototypes,
6565 which can conflict with char $ac_func (); below.
6566 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6567 <limits.h> exists even on freestanding compilers. Under hpux,
6568 including <limits.h> includes <sys/time.h> and causes problems
6569 checking for functions defined therein. */
6570 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
6571 # include <limits.h>
6573 # include <assert.h>
6575 /* Override any gcc2 internal prototype to avoid an error. */
6580 /* We use char because int might match the return type of a gcc2
6581 builtin and then its argument prototype would still apply. */
6583 /* The GNU C library defines this for functions which it implements
6584 to always fail with ENOSYS. Some functions are actually named
6585 something starting with __ and the normal name is an alias. */
6586 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6589 char (*f) () = $ac_func;
6598 return f != $ac_func;
6603 rm -f conftest.
$ac_objext conftest
$ac_exeext
6604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6605 (eval $ac_link) 2>conftest.er1
6607 grep -v '^ *+' conftest.er1
>conftest.err
6609 cat conftest.err
>&5
6610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611 (exit $ac_status); } &&
6612 { ac_try
='test -z "$ac_c_werror_flag"
6613 || test ! -s conftest.err'
6614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618 (exit $ac_status); }; } &&
6619 { ac_try
='test -s conftest$ac_exeext'
6620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6624 (exit $ac_status); }; }; then
6625 eval "$as_ac_var=yes"
6627 echo "$as_me: failed program was:" >&5
6628 sed 's/^/| /' conftest.
$ac_ext >&5
6630 eval "$as_ac_var=no"
6632 rm -f conftest.err conftest.
$ac_objext \
6633 conftest
$ac_exeext conftest.
$ac_ext
6635 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6636 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6637 if test `eval echo '${'$as_ac_var'}'` = yes; then
6639 cat >>confdefs.h
<<_ACEOF
6640 #define CRAY_STACKSEG_END $ac_func
6648 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6649 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6650 if test "${ac_cv_c_stack_direction+set}" = set; then
6651 echo $ECHO_N "(cached) $ECHO_C" >&6
6653 if test "$cross_compiling" = yes; then
6654 ac_cv_c_stack_direction
=0
6656 cat >conftest.
$ac_ext <<_ACEOF
6659 cat confdefs.h
>>conftest.
$ac_ext
6660 cat >>conftest.
$ac_ext <<_ACEOF
6661 /* end confdefs.h. */
6662 find_stack_direction ()
6664 static char *addr = 0;
6669 return find_stack_direction ();
6672 return (&dummy > addr) ? 1 : -1;
6676 exit (find_stack_direction() < 0);
6679 rm -f conftest
$ac_exeext
6680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6681 (eval $ac_link) 2>&5
6683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689 (exit $ac_status); }; }; then
6690 ac_cv_c_stack_direction
=1
6692 echo "$as_me: program exited with status $ac_status" >&5
6693 echo "$as_me: failed program was:" >&5
6694 sed 's/^/| /' conftest.
$ac_ext >&5
6697 ac_cv_c_stack_direction
=-1
6699 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6702 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6703 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6705 cat >>confdefs.h
<<_ACEOF
6706 #define STACK_DIRECTION $ac_cv_c_stack_direction
6712 for ac_header
in unistd.h vfork.h
6714 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6715 echo "$as_me:$LINENO: checking for $ac_header" >&5
6716 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6717 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6718 echo $ECHO_N "(cached) $ECHO_C" >&6
6720 cat >conftest.
$ac_ext <<_ACEOF
6723 cat confdefs.h
>>conftest.
$ac_ext
6724 cat >>conftest.
$ac_ext <<_ACEOF
6725 /* end confdefs.h. */
6726 #include <$ac_header>
6728 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6729 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6731 grep -v '^ *+' conftest.er1
>conftest.err
6733 cat conftest.err
>&5
6734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6735 (exit $ac_status); } >/dev
/null
; then
6736 if test -s conftest.err
; then
6737 ac_cpp_err
=$ac_c_preproc_warn_flag
6738 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6745 if test -z "$ac_cpp_err"; then
6746 eval "$as_ac_Header=yes"
6748 echo "$as_me: failed program was:" >&5
6749 sed 's/^/| /' conftest.
$ac_ext >&5
6751 eval "$as_ac_Header=no"
6753 rm -f conftest.err conftest.
$ac_ext
6755 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6756 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6757 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6758 cat >>confdefs.h
<<_ACEOF
6759 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6767 for ac_func
in fork vfork
6769 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6770 echo "$as_me:$LINENO: checking for $ac_func" >&5
6771 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6772 if eval "test \"\${$as_ac_var+set}\" = set"; then
6773 echo $ECHO_N "(cached) $ECHO_C" >&6
6775 if test x
$gcc_no_link = xyes
; then
6776 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6777 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6778 { (exit 1); exit 1; }; }
6780 cat >conftest.
$ac_ext <<_ACEOF
6783 cat confdefs.h
>>conftest.
$ac_ext
6784 cat >>conftest.
$ac_ext <<_ACEOF
6785 /* end confdefs.h. */
6786 /* System header to define __stub macros and hopefully few prototypes,
6787 which can conflict with char $ac_func (); below.
6788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6789 <limits.h> exists even on freestanding compilers. Under hpux,
6790 including <limits.h> includes <sys/time.h> and causes problems
6791 checking for functions defined therein. */
6792 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
6793 # include <limits.h>
6795 # include <assert.h>
6797 /* Override any gcc2 internal prototype to avoid an error. */
6802 /* We use char because int might match the return type of a gcc2
6803 builtin and then its argument prototype would still apply. */
6805 /* The GNU C library defines this for functions which it implements
6806 to always fail with ENOSYS. Some functions are actually named
6807 something starting with __ and the normal name is an alias. */
6808 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6811 char (*f) () = $ac_func;
6820 return f != $ac_func;
6825 rm -f conftest.
$ac_objext conftest
$ac_exeext
6826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6827 (eval $ac_link) 2>conftest.er1
6829 grep -v '^ *+' conftest.er1
>conftest.err
6831 cat conftest.err
>&5
6832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6833 (exit $ac_status); } &&
6834 { ac_try
='test -z "$ac_c_werror_flag"
6835 || test ! -s conftest.err'
6836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6840 (exit $ac_status); }; } &&
6841 { ac_try
='test -s conftest$ac_exeext'
6842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6846 (exit $ac_status); }; }; then
6847 eval "$as_ac_var=yes"
6849 echo "$as_me: failed program was:" >&5
6850 sed 's/^/| /' conftest.
$ac_ext >&5
6852 eval "$as_ac_var=no"
6854 rm -f conftest.err conftest.
$ac_objext \
6855 conftest
$ac_exeext conftest.
$ac_ext
6857 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6858 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6859 if test `eval echo '${'$as_ac_var'}'` = yes; then
6860 cat >>confdefs.h
<<_ACEOF
6861 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6867 if test "x$ac_cv_func_fork" = xyes
; then
6868 echo "$as_me:$LINENO: checking for working fork" >&5
6869 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
6870 if test "${ac_cv_func_fork_works+set}" = set; then
6871 echo $ECHO_N "(cached) $ECHO_C" >&6
6873 if test "$cross_compiling" = yes; then
6874 ac_cv_func_fork_works
=cross
6876 cat >conftest.
$ac_ext <<_ACEOF
6877 /* By Ruediger Kuhlmann. */
6878 #include <sys/types.h>
6880 # include <unistd.h>
6882 /* Some systems only have a dummy stub for fork() */
6890 rm -f conftest
$ac_exeext
6891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6892 (eval $ac_link) 2>&5
6894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6895 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900 (exit $ac_status); }; }; then
6901 ac_cv_func_fork_works
=yes
6903 echo "$as_me: program exited with status $ac_status" >&5
6904 echo "$as_me: failed program was:" >&5
6905 sed 's/^/| /' conftest.
$ac_ext >&5
6908 ac_cv_func_fork_works
=no
6910 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6913 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
6914 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
6917 ac_cv_func_fork_works
=$ac_cv_func_fork
6919 if test "x$ac_cv_func_fork_works" = xcross
; then
6921 *-*-amigaos* |
*-*-msdosdjgpp*)
6922 # Override, as these systems have only a dummy fork() stub
6923 ac_cv_func_fork_works
=no
6926 ac_cv_func_fork_works
=yes
6929 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
6930 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
6932 ac_cv_func_vfork_works
=$ac_cv_func_vfork
6933 if test "x$ac_cv_func_vfork" = xyes
; then
6934 echo "$as_me:$LINENO: checking for working vfork" >&5
6935 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
6936 if test "${ac_cv_func_vfork_works+set}" = set; then
6937 echo $ECHO_N "(cached) $ECHO_C" >&6
6939 if test "$cross_compiling" = yes; then
6940 ac_cv_func_vfork_works
=cross
6942 cat >conftest.
$ac_ext <<_ACEOF
6945 cat confdefs.h
>>conftest.
$ac_ext
6946 cat >>conftest.
$ac_ext <<_ACEOF
6947 /* end confdefs.h. */
6948 /* Thanks to Paul Eggert for this test. */
6951 #include <sys/types.h>
6952 #include <sys/stat.h>
6953 #include <sys/wait.h>
6955 # include <unistd.h>
6960 /* On some sparc systems, changes by the child to local and incoming
6961 argument registers are propagated back to the parent. The compiler
6962 is told about this with #include <vfork.h>, but some compilers
6963 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
6964 static variable whose address is put into a register that is
6965 clobbered by the vfork. */
6968 sparc_address_test (int arg)
6970 sparc_address_test (arg) int arg;
6991 pid_t parent = getpid ();
6994 sparc_address_test (0);
6999 /* Here is another test for sparc vfork register problems. This
7000 test uses lots of local variables, at least as many local
7001 variables as main has allocated so far including compiler
7002 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7003 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7004 reuse the register of parent for one of the local variables,
7005 since it will think that parent can't possibly be used any more
7006 in this routine. Assigning to the local variable will thus
7007 munge parent in the parent process. */
7009 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7010 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7011 /* Convince the compiler that p..p7 are live; otherwise, it might
7012 use the same hardware register for all 8 local variables. */
7013 if (p != p1 || p != p2 || p != p3 || p != p4
7014 || p != p5 || p != p6 || p != p7)
7017 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7018 from child file descriptors. If the child closes a descriptor
7019 before it execs or exits, this munges the parent's descriptor
7020 as well. Test for this by closing stdout in the child. */
7021 _exit(close(fileno(stdout)) != 0);
7026 while (wait(&status) != child)
7029 /* Was there some problem with vforking? */
7032 /* Did the child fail? (This shouldn't happen.) */
7035 /* Did the vfork/compiler bug occur? */
7036 || parent != getpid()
7038 /* Did the file descriptor bug occur? */
7039 || fstat(fileno(stdout), &st) != 0
7044 rm -f conftest
$ac_exeext
7045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7046 (eval $ac_link) 2>&5
7048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7049 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054 (exit $ac_status); }; }; then
7055 ac_cv_func_vfork_works
=yes
7057 echo "$as_me: program exited with status $ac_status" >&5
7058 echo "$as_me: failed program was:" >&5
7059 sed 's/^/| /' conftest.
$ac_ext >&5
7062 ac_cv_func_vfork_works
=no
7064 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7067 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7068 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
7071 if test "x$ac_cv_func_fork_works" = xcross
; then
7072 ac_cv_func_vfork_works
=$ac_cv_func_vfork
7073 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7074 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7077 if test "x$ac_cv_func_vfork_works" = xyes
; then
7079 cat >>confdefs.h
<<\_ACEOF
7080 #define HAVE_WORKING_VFORK 1
7085 cat >>confdefs.h
<<\_ACEOF
7090 if test "x$ac_cv_func_fork_works" = xyes
; then
7092 cat >>confdefs.h
<<\_ACEOF
7093 #define HAVE_WORKING_FORK 1
7098 if test $ac_cv_func_vfork_works = no
; then
7100 "vfork.$ac_objext" | \
7101 *" vfork.$ac_objext" | \
7102 "vfork.$ac_objext "* | \
7103 *" vfork.$ac_objext "* ) ;;
7104 *) LIBOBJS
="$LIBOBJS vfork.$ac_objext" ;;
7108 # We only need _doprnt if we might use it to implement v*printf.
7109 if test $ac_cv_func_vprintf != yes \
7110 ||
test $ac_cv_func_vfprintf != yes \
7111 ||
test $ac_cv_func_vsprintf != yes; then
7113 for ac_func
in _doprnt
7115 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7116 echo "$as_me:$LINENO: checking for $ac_func" >&5
7117 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7118 if eval "test \"\${$as_ac_var+set}\" = set"; then
7119 echo $ECHO_N "(cached) $ECHO_C" >&6
7121 if test x
$gcc_no_link = xyes
; then
7122 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7123 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7124 { (exit 1); exit 1; }; }
7126 cat >conftest.
$ac_ext <<_ACEOF
7129 cat confdefs.h
>>conftest.
$ac_ext
7130 cat >>conftest.
$ac_ext <<_ACEOF
7131 /* end confdefs.h. */
7132 /* System header to define __stub macros and hopefully few prototypes,
7133 which can conflict with char $ac_func (); below.
7134 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7135 <limits.h> exists even on freestanding compilers. Under hpux,
7136 including <limits.h> includes <sys/time.h> and causes problems
7137 checking for functions defined therein. */
7138 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
7139 # include <limits.h>
7141 # include <assert.h>
7143 /* Override any gcc2 internal prototype to avoid an error. */
7148 /* We use char because int might match the return type of a gcc2
7149 builtin and then its argument prototype would still apply. */
7151 /* The GNU C library defines this for functions which it implements
7152 to always fail with ENOSYS. Some functions are actually named
7153 something starting with __ and the normal name is an alias. */
7154 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7157 char (*f) () = $ac_func;
7166 return f != $ac_func;
7171 rm -f conftest.
$ac_objext conftest
$ac_exeext
7172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7173 (eval $ac_link) 2>conftest.er1
7175 grep -v '^ *+' conftest.er1
>conftest.err
7177 cat conftest.err
>&5
7178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7179 (exit $ac_status); } &&
7180 { ac_try
='test -z "$ac_c_werror_flag"
7181 || test ! -s conftest.err'
7182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7186 (exit $ac_status); }; } &&
7187 { ac_try
='test -s conftest$ac_exeext'
7188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192 (exit $ac_status); }; }; then
7193 eval "$as_ac_var=yes"
7195 echo "$as_me: failed program was:" >&5
7196 sed 's/^/| /' conftest.
$ac_ext >&5
7198 eval "$as_ac_var=no"
7200 rm -f conftest.err conftest.
$ac_objext \
7201 conftest
$ac_exeext conftest.
$ac_ext
7203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7204 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7205 if test `eval echo '${'$as_ac_var'}'` = yes; then
7206 cat >>confdefs.h
<<_ACEOF
7207 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7212 "$ac_func.$ac_objext" | \
7213 *" $ac_func.$ac_objext" | \
7214 "$ac_func.$ac_objext "* | \
7215 *" $ac_func.$ac_objext "* ) ;;
7216 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext" ;;
7225 for ac_func
in _doprnt
7227 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7228 echo "$as_me:$LINENO: checking for $ac_func" >&5
7229 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7230 if eval "test \"\${$as_ac_var+set}\" = set"; then
7231 echo $ECHO_N "(cached) $ECHO_C" >&6
7233 if test x
$gcc_no_link = xyes
; then
7234 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7235 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7236 { (exit 1); exit 1; }; }
7238 cat >conftest.
$ac_ext <<_ACEOF
7241 cat confdefs.h
>>conftest.
$ac_ext
7242 cat >>conftest.
$ac_ext <<_ACEOF
7243 /* end confdefs.h. */
7244 /* System header to define __stub macros and hopefully few prototypes,
7245 which can conflict with char $ac_func (); below.
7246 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7247 <limits.h> exists even on freestanding compilers. Under hpux,
7248 including <limits.h> includes <sys/time.h> and causes problems
7249 checking for functions defined therein. */
7250 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
7251 # include <limits.h>
7253 # include <assert.h>
7255 /* Override any gcc2 internal prototype to avoid an error. */
7260 /* We use char because int might match the return type of a gcc2
7261 builtin and then its argument prototype would still apply. */
7263 /* The GNU C library defines this for functions which it implements
7264 to always fail with ENOSYS. Some functions are actually named
7265 something starting with __ and the normal name is an alias. */
7266 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7269 char (*f) () = $ac_func;
7278 return f != $ac_func;
7283 rm -f conftest.
$ac_objext conftest
$ac_exeext
7284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7285 (eval $ac_link) 2>conftest.er1
7287 grep -v '^ *+' conftest.er1
>conftest.err
7289 cat conftest.err
>&5
7290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7291 (exit $ac_status); } &&
7292 { ac_try
='test -z "$ac_c_werror_flag"
7293 || test ! -s conftest.err'
7294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298 (exit $ac_status); }; } &&
7299 { ac_try
='test -s conftest$ac_exeext'
7300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7304 (exit $ac_status); }; }; then
7305 eval "$as_ac_var=yes"
7307 echo "$as_me: failed program was:" >&5
7308 sed 's/^/| /' conftest.
$ac_ext >&5
7310 eval "$as_ac_var=no"
7312 rm -f conftest.err conftest.
$ac_objext \
7313 conftest
$ac_exeext conftest.
$ac_ext
7315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7316 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7317 if test `eval echo '${'$as_ac_var'}'` = yes; then
7318 cat >>confdefs.h
<<_ACEOF
7319 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7328 echo "$as_me:$LINENO: checking for $v" >&5
7329 echo $ECHO_N "checking for $v... $ECHO_C" >&6
7330 if eval "test \"\${libiberty_cv_var_$v+set}\" = set"; then
7331 echo $ECHO_N "(cached) $ECHO_C" >&6
7333 if test x
$gcc_no_link = xyes
; then
7334 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7335 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7336 { (exit 1); exit 1; }; }
7338 cat >conftest.
$ac_ext <<_ACEOF
7341 cat confdefs.h
>>conftest.
$ac_ext
7342 cat >>conftest.
$ac_ext <<_ACEOF
7343 /* end confdefs.h. */
7348 extern int $v []; p = $v;
7353 rm -f conftest.
$ac_objext conftest
$ac_exeext
7354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7355 (eval $ac_link) 2>conftest.er1
7357 grep -v '^ *+' conftest.er1
>conftest.err
7359 cat conftest.err
>&5
7360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7361 (exit $ac_status); } &&
7362 { ac_try
='test -z "$ac_c_werror_flag"
7363 || test ! -s conftest.err'
7364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7368 (exit $ac_status); }; } &&
7369 { ac_try
='test -s conftest$ac_exeext'
7370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7374 (exit $ac_status); }; }; then
7375 eval "libiberty_cv_var_$v=yes"
7377 echo "$as_me: failed program was:" >&5
7378 sed 's/^/| /' conftest.
$ac_ext >&5
7380 eval "libiberty_cv_var_$v=no"
7382 rm -f conftest.err conftest.
$ac_objext \
7383 conftest
$ac_exeext conftest.
$ac_ext
7386 if eval "test \"`echo '$libiberty_cv_var_'$v`\" = yes"; then
7387 echo "$as_me:$LINENO: result: yes" >&5
7388 echo "${ECHO_T}yes" >&6
7389 n
=HAVE_
`echo $v | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7390 cat >>confdefs.h
<<_ACEOF
7395 echo "$as_me:$LINENO: result: no" >&5
7396 echo "${ECHO_T}no" >&6
7400 # special check for _system_configuration because AIX <4.3.2 do not
7401 # contain the `physmem' member.
7402 echo "$as_me:$LINENO: checking for external symbol _system_configuration" >&5
7403 echo $ECHO_N "checking for external symbol _system_configuration... $ECHO_C" >&6
7404 cat >conftest.
$ac_ext <<_ACEOF
7407 cat confdefs.h
>>conftest.
$ac_ext
7408 cat >>conftest.
$ac_ext <<_ACEOF
7409 /* end confdefs.h. */
7410 #include <sys/systemcfg.h>
7414 double x = _system_configuration.physmem;
7419 rm -f conftest.
$ac_objext
7420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7421 (eval $ac_compile) 2>conftest.er1
7423 grep -v '^ *+' conftest.er1
>conftest.err
7425 cat conftest.err
>&5
7426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7427 (exit $ac_status); } &&
7428 { ac_try
='test -z "$ac_c_werror_flag"
7429 || test ! -s conftest.err'
7430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7434 (exit $ac_status); }; } &&
7435 { ac_try
='test -s conftest.$ac_objext'
7436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7440 (exit $ac_status); }; }; then
7441 echo "$as_me:$LINENO: result: yes" >&5
7442 echo "${ECHO_T}yes" >&6
7444 cat >>confdefs.h
<<\_ACEOF
7445 #define HAVE__SYSTEM_CONFIGURATION 1
7449 echo "$as_me: failed program was:" >&5
7450 sed 's/^/| /' conftest.
$ac_ext >&5
7452 echo "$as_me:$LINENO: result: no" >&5
7453 echo "${ECHO_T}no" >&6
7455 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7458 for ac_func
in $checkfuncs
7460 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7461 echo "$as_me:$LINENO: checking for $ac_func" >&5
7462 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7463 if eval "test \"\${$as_ac_var+set}\" = set"; then
7464 echo $ECHO_N "(cached) $ECHO_C" >&6
7466 if test x
$gcc_no_link = xyes
; then
7467 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7468 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7469 { (exit 1); exit 1; }; }
7471 cat >conftest.
$ac_ext <<_ACEOF
7474 cat confdefs.h
>>conftest.
$ac_ext
7475 cat >>conftest.
$ac_ext <<_ACEOF
7476 /* end confdefs.h. */
7477 /* System header to define __stub macros and hopefully few prototypes,
7478 which can conflict with char $ac_func (); below.
7479 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7480 <limits.h> exists even on freestanding compilers. Under hpux,
7481 including <limits.h> includes <sys/time.h> and causes problems
7482 checking for functions defined therein. */
7483 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
7484 # include <limits.h>
7486 # include <assert.h>
7488 /* Override any gcc2 internal prototype to avoid an error. */
7493 /* We use char because int might match the return type of a gcc2
7494 builtin and then its argument prototype would still apply. */
7496 /* The GNU C library defines this for functions which it implements
7497 to always fail with ENOSYS. Some functions are actually named
7498 something starting with __ and the normal name is an alias. */
7499 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7502 char (*f) () = $ac_func;
7511 return f != $ac_func;
7516 rm -f conftest.
$ac_objext conftest
$ac_exeext
7517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7518 (eval $ac_link) 2>conftest.er1
7520 grep -v '^ *+' conftest.er1
>conftest.err
7522 cat conftest.err
>&5
7523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7524 (exit $ac_status); } &&
7525 { ac_try
='test -z "$ac_c_werror_flag"
7526 || test ! -s conftest.err'
7527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7531 (exit $ac_status); }; } &&
7532 { ac_try
='test -s conftest$ac_exeext'
7533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7537 (exit $ac_status); }; }; then
7538 eval "$as_ac_var=yes"
7540 echo "$as_me: failed program was:" >&5
7541 sed 's/^/| /' conftest.
$ac_ext >&5
7543 eval "$as_ac_var=no"
7545 rm -f conftest.err conftest.
$ac_objext \
7546 conftest
$ac_exeext conftest.
$ac_ext
7548 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7549 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7550 if test `eval echo '${'$as_ac_var'}'` = yes; then
7551 cat >>confdefs.h
<<_ACEOF
7552 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7558 echo "$as_me:$LINENO: checking whether canonicalize_file_name must be declared" >&5
7559 echo $ECHO_N "checking whether canonicalize_file_name must be declared... $ECHO_C" >&6
7560 if test "${libiberty_cv_decl_needed_canonicalize_file_name+set}" = set; then
7561 echo $ECHO_N "(cached) $ECHO_C" >&6
7563 cat >conftest.
$ac_ext <<_ACEOF
7566 cat confdefs.h
>>conftest.
$ac_ext
7567 cat >>conftest.
$ac_ext <<_ACEOF
7568 /* end confdefs.h. */
7570 #include "confdefs.h"
7572 #ifdef HAVE_STRING_H
7575 #ifdef HAVE_STRINGS_H
7576 #include <strings.h>
7579 #ifdef HAVE_STDLIB_H
7582 #ifdef HAVE_UNISTD_H
7588 char *(*pfn) = (char *(*)) canonicalize_file_name
7593 rm -f conftest.
$ac_objext
7594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7595 (eval $ac_compile) 2>conftest.er1
7597 grep -v '^ *+' conftest.er1
>conftest.err
7599 cat conftest.err
>&5
7600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7601 (exit $ac_status); } &&
7602 { ac_try
='test -z "$ac_c_werror_flag"
7603 || test ! -s conftest.err'
7604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608 (exit $ac_status); }; } &&
7609 { ac_try
='test -s conftest.$ac_objext'
7610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7614 (exit $ac_status); }; }; then
7615 libiberty_cv_decl_needed_canonicalize_file_name
=no
7617 echo "$as_me: failed program was:" >&5
7618 sed 's/^/| /' conftest.
$ac_ext >&5
7620 libiberty_cv_decl_needed_canonicalize_file_name
=yes
7622 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7625 echo "$as_me:$LINENO: result: $libiberty_cv_decl_needed_canonicalize_file_name" >&5
7626 echo "${ECHO_T}$libiberty_cv_decl_needed_canonicalize_file_name" >&6
7627 if test $libiberty_cv_decl_needed_canonicalize_file_name = yes; then
7629 cat >>confdefs.h
<<\_ACEOF
7630 #define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1
7637 # Figure out which version of pexecute to use.
7639 *-*-mingw* |
*-*-winnt*) pex
=.
/pex-win32
;;
7640 *-*-msdosdjgpp*) pex
=.
/pex-djgpp
;;
7641 *-*-msdos*) pex
=.
/pex-msdos
;;
7642 *-*-os2-emx*) pex
=.
/pex-os2
;;
7643 *) pex
=.
/pex-unix
;;
7646 ltpexecute
=${pex}.lo
7650 if test x
$gcc_no_link = xyes
; then
7651 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset
; then
7652 ac_cv_func_mmap_fixed_mapped
=no
7655 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset
; then
7658 for ac_header
in stdlib.h unistd.h
7660 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7661 echo "$as_me:$LINENO: checking for $ac_header" >&5
7662 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7663 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7664 echo $ECHO_N "(cached) $ECHO_C" >&6
7666 cat >conftest.
$ac_ext <<_ACEOF
7669 cat confdefs.h
>>conftest.
$ac_ext
7670 cat >>conftest.
$ac_ext <<_ACEOF
7671 /* end confdefs.h. */
7672 #include <$ac_header>
7674 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7675 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7677 grep -v '^ *+' conftest.er1
>conftest.err
7679 cat conftest.err
>&5
7680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7681 (exit $ac_status); } >/dev
/null
; then
7682 if test -s conftest.err
; then
7683 ac_cpp_err
=$ac_c_preproc_warn_flag
7684 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7691 if test -z "$ac_cpp_err"; then
7692 eval "$as_ac_Header=yes"
7694 echo "$as_me: failed program was:" >&5
7695 sed 's/^/| /' conftest.
$ac_ext >&5
7697 eval "$as_ac_Header=no"
7699 rm -f conftest.err conftest.
$ac_ext
7701 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7702 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7703 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7704 cat >>confdefs.h
<<_ACEOF
7705 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7712 for ac_func
in getpagesize
7714 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7715 echo "$as_me:$LINENO: checking for $ac_func" >&5
7716 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7717 if eval "test \"\${$as_ac_var+set}\" = set"; then
7718 echo $ECHO_N "(cached) $ECHO_C" >&6
7720 if test x
$gcc_no_link = xyes
; then
7721 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7722 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7723 { (exit 1); exit 1; }; }
7725 cat >conftest.
$ac_ext <<_ACEOF
7728 cat confdefs.h
>>conftest.
$ac_ext
7729 cat >>conftest.
$ac_ext <<_ACEOF
7730 /* end confdefs.h. */
7731 /* System header to define __stub macros and hopefully few prototypes,
7732 which can conflict with char $ac_func (); below.
7733 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7734 <limits.h> exists even on freestanding compilers. Under hpux,
7735 including <limits.h> includes <sys/time.h> and causes problems
7736 checking for functions defined therein. */
7737 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
7738 # include <limits.h>
7740 # include <assert.h>
7742 /* Override any gcc2 internal prototype to avoid an error. */
7747 /* We use char because int might match the return type of a gcc2
7748 builtin and then its argument prototype would still apply. */
7750 /* The GNU C library defines this for functions which it implements
7751 to always fail with ENOSYS. Some functions are actually named
7752 something starting with __ and the normal name is an alias. */
7753 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7756 char (*f) () = $ac_func;
7765 return f != $ac_func;
7770 rm -f conftest.
$ac_objext conftest
$ac_exeext
7771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7772 (eval $ac_link) 2>conftest.er1
7774 grep -v '^ *+' conftest.er1
>conftest.err
7776 cat conftest.err
>&5
7777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778 (exit $ac_status); } &&
7779 { ac_try
='test -z "$ac_c_werror_flag"
7780 || test ! -s conftest.err'
7781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785 (exit $ac_status); }; } &&
7786 { ac_try
='test -s conftest$ac_exeext'
7787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791 (exit $ac_status); }; }; then
7792 eval "$as_ac_var=yes"
7794 echo "$as_me: failed program was:" >&5
7795 sed 's/^/| /' conftest.
$ac_ext >&5
7797 eval "$as_ac_var=no"
7799 rm -f conftest.err conftest.
$ac_objext \
7800 conftest
$ac_exeext conftest.
$ac_ext
7802 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7803 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7804 if test `eval echo '${'$as_ac_var'}'` = yes; then
7805 cat >>confdefs.h
<<_ACEOF
7806 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7812 echo "$as_me:$LINENO: checking for working mmap" >&5
7813 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7814 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7815 echo $ECHO_N "(cached) $ECHO_C" >&6
7817 if test "$cross_compiling" = yes; then
7818 ac_cv_func_mmap_fixed_mapped
=no
7820 cat >conftest.
$ac_ext <<_ACEOF
7823 cat confdefs.h
>>conftest.
$ac_ext
7824 cat >>conftest.
$ac_ext <<_ACEOF
7825 /* end confdefs.h. */
7826 $ac_includes_default
7827 /* malloc might have been renamed as rpl_malloc. */
7830 /* Thanks to Mike Haertel and Jim Avera for this test.
7831 Here is a matrix of mmap possibilities:
7832 mmap private not fixed
7833 mmap private fixed at somewhere currently unmapped
7834 mmap private fixed at somewhere already mapped
7835 mmap shared not fixed
7836 mmap shared fixed at somewhere currently unmapped
7837 mmap shared fixed at somewhere already mapped
7838 For private mappings, we should verify that changes cannot be read()
7839 back from the file, nor mmap's back from the file at a different
7840 address. (There have been systems where private was not correctly
7841 implemented like the infamous i386 svr4.0, and systems where the
7842 VM page cache was not coherent with the file system buffer cache
7843 like early versions of FreeBSD and possibly contemporary NetBSD.)
7844 For shared mappings, we should conversely verify that changes get
7845 propagated back to all the places they're supposed to be.
7847 Grep wants private fixed already mapped.
7848 The main things grep needs to know about mmap are:
7849 * does it exist and is it safe to write into the mmap'd area
7850 * how to use it (BSD variants) */
7853 #include <sys/mman.h>
7855 #if !STDC_HEADERS && !HAVE_STDLIB_H
7859 /* This mess was copied from the GNU getpagesize.h. */
7860 #if !HAVE_GETPAGESIZE
7861 /* Assume that all systems that can run configure have sys/param.h. */
7862 # if !HAVE_SYS_PARAM_H
7863 # define HAVE_SYS_PARAM_H 1
7866 # ifdef _SC_PAGESIZE
7867 # define getpagesize() sysconf(_SC_PAGESIZE)
7868 # else /* no _SC_PAGESIZE */
7869 # if HAVE_SYS_PARAM_H
7870 # include <sys/param.h>
7871 # ifdef EXEC_PAGESIZE
7872 # define getpagesize() EXEC_PAGESIZE
7873 # else /* no EXEC_PAGESIZE */
7875 # define getpagesize() NBPG * CLSIZE
7878 # endif /* no CLSIZE */
7879 # else /* no NBPG */
7881 # define getpagesize() NBPC
7882 # else /* no NBPC */
7884 # define getpagesize() PAGESIZE
7885 # endif /* PAGESIZE */
7886 # endif /* no NBPC */
7887 # endif /* no NBPG */
7888 # endif /* no EXEC_PAGESIZE */
7889 # else /* no HAVE_SYS_PARAM_H */
7890 # define getpagesize() 8192 /* punt totally */
7891 # endif /* no HAVE_SYS_PARAM_H */
7892 # endif /* no _SC_PAGESIZE */
7894 #endif /* no HAVE_GETPAGESIZE */
7899 char *data, *data2, *data3;
7903 pagesize = getpagesize ();
7905 /* First, make a file with some known garbage in it. */
7906 data = (char *) malloc (pagesize);
7909 for (i = 0; i < pagesize; ++i)
7910 *(data + i) = rand ();
7912 fd = creat ("conftest.mmap", 0600);
7915 if (write (fd, data, pagesize) != pagesize)
7919 /* Next, try to mmap the file at a fixed address which already has
7920 something else allocated at it. If we can, also make sure that
7921 we see the same garbage. */
7922 fd = open ("conftest.mmap", O_RDWR);
7925 data2 = (char *) malloc (2 * pagesize);
7928 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
7929 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7930 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7932 for (i = 0; i < pagesize; ++i)
7933 if (*(data + i) != *(data2 + i))
7936 /* Finally, make sure that changes to the mapped area do not
7937 percolate back to the file as seen by read(). (This is a bug on
7938 some variants of i386 svr4.0.) */
7939 for (i = 0; i < pagesize; ++i)
7940 *(data2 + i) = *(data2 + i) + 1;
7941 data3 = (char *) malloc (pagesize);
7944 if (read (fd, data3, pagesize) != pagesize)
7946 for (i = 0; i < pagesize; ++i)
7947 if (*(data + i) != *(data3 + i))
7953 rm -f conftest
$ac_exeext
7954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7955 (eval $ac_link) 2>&5
7957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7958 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7963 (exit $ac_status); }; }; then
7964 ac_cv_func_mmap_fixed_mapped
=yes
7966 echo "$as_me: program exited with status $ac_status" >&5
7967 echo "$as_me: failed program was:" >&5
7968 sed 's/^/| /' conftest.
$ac_ext >&5
7971 ac_cv_func_mmap_fixed_mapped
=no
7973 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7976 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7977 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7978 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7980 cat >>confdefs.h
<<\_ACEOF
7989 echo "$as_me:$LINENO: checking for working strncmp" >&5
7990 echo $ECHO_N "checking for working strncmp... $ECHO_C" >&6
7991 if test "${ac_cv_func_strncmp_works+set}" = set; then
7992 echo $ECHO_N "(cached) $ECHO_C" >&6
7994 if test "$cross_compiling" = yes; then
7995 ac_cv_func_strncmp_works
=no
7997 cat >conftest.
$ac_ext <<_ACEOF
8000 cat confdefs.h
>>conftest.
$ac_ext
8001 cat >>conftest.
$ac_ext <<_ACEOF
8002 /* end confdefs.h. */
8004 /* Test by Jim Wilson and Kaveh Ghazi.
8005 Check whether strncmp reads past the end of its string parameters. */
8006 #include <sys/types.h>
8012 #ifdef HAVE_SYS_MMAN_H
8013 #include <sys/mman.h>
8017 #ifdef MAP_ANONYMOUS
8018 #define MAP_ANON MAP_ANONYMOUS
8020 #define MAP_ANON MAP_FILE
8031 #define MAP_LEN 0x10000
8035 #if defined(HAVE_MMAP) || defined(HAVE_MMAP_ANYWHERE)
8039 dev_zero = open ("/dev/zero", O_RDONLY);
8043 p = (char *) mmap (0, MAP_LEN, PROT_READ|PROT_WRITE,
8044 MAP_ANON|MAP_PRIVATE, dev_zero, 0);
8045 if (p == (char *)-1)
8046 p = (char *) mmap (0, MAP_LEN, PROT_READ|PROT_WRITE,
8047 MAP_ANON|MAP_PRIVATE, -1, 0);
8048 if (p == (char *)-1)
8052 char *string = "__si_type_info";
8053 char *q = (char *) p + MAP_LEN - strlen (string) - 2;
8054 char *r = (char *) p + 0xe;
8060 #endif /* HAVE_MMAP || HAVE_MMAP_ANYWHERE */
8065 rm -f conftest
$ac_exeext
8066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8067 (eval $ac_link) 2>&5
8069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8070 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075 (exit $ac_status); }; }; then
8076 ac_cv_func_strncmp_works
=yes
8078 echo "$as_me: program exited with status $ac_status" >&5
8079 echo "$as_me: failed program was:" >&5
8080 sed 's/^/| /' conftest.
$ac_ext >&5
8083 ac_cv_func_strncmp_works
=no
8085 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8087 rm -f core core.
* *.core
8089 echo "$as_me:$LINENO: result: $ac_cv_func_strncmp_works" >&5
8090 echo "${ECHO_T}$ac_cv_func_strncmp_works" >&6
8091 if test $ac_cv_func_strncmp_works = no
; then
8093 "strncmp.$ac_objext" | \
8094 *" strncmp.$ac_objext" | \
8095 "strncmp.$ac_objext "* | \
8096 *" strncmp.$ac_objext "* ) ;;
8097 *) LIBOBJS
="$LIBOBJS strncmp.$ac_objext" ;;
8103 # Install a library built with a cross compiler in $(tooldir) rather
8105 if test -z "${with_cross_host}"; then
8108 INSTALL_DEST
=tooldir
8112 # Add `./' to avoid VPATH.
8115 for l
in x
$LIBOBJS; do
8125 for l
in x
$LTLIBOBJS; do
8135 # We need multilib support, but only if configuring for the target.
8136 ac_config_files
="$ac_config_files Makefile testsuite/Makefile"
8138 ac_config_commands
="$ac_config_commands default"
8140 cat >confcache
<<\_ACEOF
8141 # This file is a shell script that caches the results of configure
8142 # tests run on this system so they can be shared between configure
8143 # scripts and configure runs, see configure's option --config-cache.
8144 # It is not useful on other systems. If it contains results you don't
8145 # want to keep, you may remove or edit it.
8147 # config.status only pays attention to the cache file if you give it
8148 # the --recheck option to rerun configure.
8150 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8151 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8156 # The following way of writing the cache mishandles newlines in values,
8157 # but we know of no workaround that is simple, portable, and efficient.
8158 # So, don't put newlines in cache variables' values.
8159 # Ultrix sh set writes to stderr and can't be redirected directly,
8160 # and sets the high bit in the cache file unless we assign to the vars.
8163 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8165 # `set' does not quote correctly, so add quotes (double-quote
8166 # substitution turns \\\\ into \\, and sed turns \\ into \).
8169 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8172 # `set' quotes correctly as required by POSIX, so do not add quotes.
8174 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8181 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8183 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8185 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
8186 if test -w $cache_file; then
8187 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8188 cat confcache
>$cache_file
8190 echo "not updating unwritable cache $cache_file"
8195 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8196 # Let make expand exec_prefix.
8197 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8199 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8200 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8201 # trailing colons and then remove the whole line if VPATH becomes empty
8202 # (actually we leave an empty line to preserve line numbers).
8203 if test "x$srcdir" = x.
; then
8204 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
8205 s/:*\$(srcdir):*/:/;
8206 s/:*\${srcdir}:*/:/;
8208 s/^\([^=]*=[ ]*\):*/\1/;
8214 DEFS
=-DHAVE_CONFIG_H
8218 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
8219 # 1. Remove the extension, and $U if already installed.
8220 ac_i
=`echo "$ac_i" |
8221 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8223 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
8224 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
8228 LTLIBOBJS
=$ac_ltlibobjs
8232 : ${CONFIG_STATUS=./config.status}
8233 ac_clean_files_save
=$ac_clean_files
8234 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
8235 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8236 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8237 cat >$CONFIG_STATUS <<_ACEOF
8239 # Generated by $as_me.
8240 # Run this file to recreate the current configuration.
8241 # Compiler output produced by configure, useful for debugging
8242 # configure, is in config.log if it exists.
8247 SHELL=\${CONFIG_SHELL-$SHELL}
8250 cat >>$CONFIG_STATUS <<\_ACEOF
8251 ## --------------------- ##
8252 ## M4sh Initialization. ##
8253 ## --------------------- ##
8255 # Be Bourne compatible
8256 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
8259 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8260 # is contrary to our usage. Disable this feature.
8261 alias -g '${1+"$@"}'='"$@"'
8262 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
8265 DUALCASE
=1; export DUALCASE
# for MKS sh
8267 # Support unset when possible.
8268 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
8275 # Work around bugs in pre-3.0 UWIN ksh.
8276 $as_unset ENV MAIL MAILPATH
8283 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8284 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8285 LC_TELEPHONE LC_TIME
8287 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8288 eval $as_var=C
; export $as_var
8294 # Required to use basename.
8295 if expr a
: '\(a\)' >/dev
/null
2>&1; then
8301 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
8302 as_basename
=basename
8308 # Name of the executable.
8309 as_me
=`$as_basename "$0" ||
8310 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8311 X"$0" : 'X\(//\)$' \| \
8312 X"$0" : 'X\(/\)$' \| \
8313 . : '\(.\)' 2>/dev/null ||
8315 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8316 /^X\/\(\/\/\)$/{ s//\1/; q; }
8317 /^X\/\(\/\).*/{ s//\1/; q; }
8321 # PATH needs CR, and LINENO needs CR and PATH.
8322 # Avoid depending upon Character Ranges.
8323 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
8324 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8325 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
8326 as_cr_digits
='0123456789'
8327 as_cr_alnum
=$as_cr_Letters$as_cr_digits
8329 # The user is always right.
8330 if test "${PATH_SEPARATOR+set}" != set; then
8331 echo "#! /bin/sh" >conf$$.sh
8332 echo "exit 0" >>conf$$.sh
8334 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
8345 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
8346 test "x$as_lineno_1" != "x$as_lineno_2" &&
8347 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
8348 # Find who we are. Look in the path if we contain no path at all
8351 *[\\/]* ) as_myself
=$0 ;;
8352 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8356 test -z "$as_dir" && as_dir
=.
8357 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
8362 # We did not find ourselves, most probably we were run as `sh COMMAND'
8363 # in which case we are not to be found in the path.
8364 if test "x$as_myself" = x
; then
8367 if test ! -f "$as_myself"; then
8368 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8369 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8370 { (exit 1); exit 1; }; }
8372 case $CONFIG_SHELL in
8374 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8375 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
8378 test -z "$as_dir" && as_dir
=.
8379 for as_base
in sh bash ksh sh5
; do
8382 if ("$as_dir/$as_base" -c '
8385 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8386 test "x$as_lineno_1" != "x$as_lineno_2" &&
8387 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
8388 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
8389 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
8390 CONFIG_SHELL
=$as_dir/$as_base
8392 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8400 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8401 # uniformly replaced by the line number. The first 'sed' inserts a
8402 # line-number line before each line; the second 'sed' does the real
8403 # work. The second script uses 'N' to pair each line-number line
8404 # with the numbered line, and appends trailing '-' during
8405 # substitution so that $LINENO is not a special case at line end.
8406 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8407 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
8408 sed '=' <$as_myself |
8413 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8416 s,^['$as_cr_digits']*\n,,
8418 chmod +x
$as_me.lineno ||
8419 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8420 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8421 { (exit 1); exit 1; }; }
8423 # Don't try to exec as it changes $[0], causing all sort of problems
8424 # (the dirname of $[0] is not the place where we might find the
8425 # original and so on. Autoconf is especially sensible to this).
8427 # Exit status is that of the last command.
8432 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8433 *c
*,-n*) ECHO_N
= ECHO_C
='
8435 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
8436 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
8439 if expr a
: '\(a\)' >/dev
/null
2>&1; then
8445 rm -f conf$$ conf$$.exe conf$$.
file
8447 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
8448 # We could just check for DJGPP; but this test a) works b) is more generic
8449 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8450 if test -f conf$$.exe
; then
8451 # Don't use ln at all; we don't have any links
8456 elif ln conf$$.
file conf$$
2>/dev
/null
; then
8461 rm -f conf$$ conf$$.exe conf$$.
file
8463 if mkdir
-p .
2>/dev
/null
; then
8466 test -d .
/-p && rmdir .
/-p
8470 as_executable_p
="test -f"
8472 # Sed expression to map a string onto a valid CPP name.
8473 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8475 # Sed expression to map a string onto a valid variable name.
8476 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8480 # We need space, tab and new line, in precisely that order.
8490 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8491 # report actual input values of CONFIG_FILES etc. instead of their
8492 # values after options handling. Logging --version etc. is OK.
8496 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8497 ## Running $as_me. ##
8502 This file was extended by $as_me, which was
8503 generated by GNU Autoconf 2.59. Invocation command line was
8505 CONFIG_FILES = $CONFIG_FILES
8506 CONFIG_HEADERS = $CONFIG_HEADERS
8507 CONFIG_LINKS = $CONFIG_LINKS
8508 CONFIG_COMMANDS = $CONFIG_COMMANDS
8512 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8516 # Files that config.status was made for.
8517 if test -n "$ac_config_files"; then
8518 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8521 if test -n "$ac_config_headers"; then
8522 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8525 if test -n "$ac_config_links"; then
8526 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8529 if test -n "$ac_config_commands"; then
8530 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8533 cat >>$CONFIG_STATUS <<\_ACEOF
8536 \`$as_me' instantiates files from templates according to the
8537 current configuration.
8539 Usage: $0 [OPTIONS] [FILE]...
8541 -h, --help print this help, then exit
8542 -V, --version print version number, then exit
8543 -q, --quiet do not print progress messages
8544 -d, --debug don't remove temporary files
8545 --recheck update $as_me by reconfiguring in the same conditions
8546 --file=FILE[:TEMPLATE]
8547 instantiate the configuration file FILE
8548 --header=FILE[:TEMPLATE]
8549 instantiate the configuration header FILE
8551 Configuration files:
8554 Configuration headers:
8557 Configuration commands:
8560 Report bugs to <bug-autoconf@gnu.org>."
8563 cat >>$CONFIG_STATUS <<_ACEOF
8566 configured by $0, generated by GNU Autoconf 2.59,
8567 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8569 Copyright (C) 2003 Free Software Foundation, Inc.
8570 This config.status script is free software; the Free Software Foundation
8571 gives unlimited permission to copy, distribute and modify it."
8576 cat >>$CONFIG_STATUS <<\_ACEOF
8577 # If no file are specified by the user, then we need to provide default
8578 # value. By we need to know if files were specified by the user.
8584 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
8585 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
8593 *) # This is not an option, so the user has probably given explicit
8596 ac_need_defaults
=false
;;
8600 # Handling of the options.
8602 cat >>$CONFIG_STATUS <<\_ACEOF
8603 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
8605 --version |
--vers* |
-V )
8606 echo "$ac_cs_version"; exit 0 ;;
8608 # Conflict between --help and --header
8609 { { echo "$as_me:$LINENO: error: ambiguous option: $1
8610 Try \`$0 --help' for more information." >&5
8611 echo "$as_me: error: ambiguous option: $1
8612 Try \`$0 --help' for more information." >&2;}
8613 { (exit 1); exit 1; }; };;
8614 --help |
--hel |
-h )
8615 echo "$ac_cs_usage"; exit 0 ;;
8616 --debug |
--d* |
-d )
8618 --file |
--fil |
--fi |
--f )
8620 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
8621 ac_need_defaults
=false
;;
8622 --header |
--heade |
--head |
--hea )
8624 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
8625 ac_need_defaults
=false
;;
8626 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
8627 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
8631 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8632 Try \`$0 --help' for more information." >&5
8633 echo "$as_me: error: unrecognized option: $1
8634 Try \`$0 --help' for more information." >&2;}
8635 { (exit 1); exit 1; }; } ;;
8637 *) ac_config_targets
="$ac_config_targets $1" ;;
8643 ac_configure_extra_args
=
8645 if $ac_cs_silent; then
8647 ac_configure_extra_args
="$ac_configure_extra_args --silent"
8651 cat >>$CONFIG_STATUS <<_ACEOF
8652 if \$ac_cs_recheck; then
8653 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8654 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8659 cat >>$CONFIG_STATUS <<_ACEOF
8661 # INIT-COMMANDS section.
8667 with_target_subdir=${with_target_subdir}
8668 with_multisubdir=${with_multisubdir}
8669 ac_configure_args="--enable-multilib ${ac_configure_args}"
8670 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
8671 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
8672 libiberty_topdir=${libiberty_topdir}
8679 cat >>$CONFIG_STATUS <<\_ACEOF
8680 for ac_config_target
in $ac_config_targets
8682 case "$ac_config_target" in
8683 # Handling of arguments.
8684 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
8685 "testsuite/Makefile" ) CONFIG_FILES
="$CONFIG_FILES testsuite/Makefile" ;;
8686 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
8687 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
8688 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8689 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8690 { (exit 1); exit 1; }; };;
8694 # If the user did not use the arguments to specify the items to instantiate,
8695 # then the envvar interface is used. Set only those that are not.
8696 # We use the long form for the default assignment because of an extremely
8697 # bizarre bug on SunOS 4.1.3.
8698 if $ac_need_defaults; then
8699 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
8700 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
8701 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
8704 # Have a temporary directory for convenience. Make it in the build tree
8705 # simply because there is no reason to put it here, and in addition,
8706 # creating and moving files from /tmp can sometimes cause problems.
8707 # Create a temporary directory, and hook for its removal unless debugging.
8710 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8711 trap '{ (exit 1); exit 1; }' 1 2 13 15
8714 # Create a (secure) tmp directory for tmp files.
8717 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8718 test -n "$tmp" && test -d "$tmp"
8721 tmp
=.
/confstat$$
-$RANDOM
8722 (umask 077 && mkdir
$tmp)
8725 echo "$me: cannot create a temporary directory in ." >&2
8726 { (exit 1); exit 1; }
8731 cat >>$CONFIG_STATUS <<_ACEOF
8734 # CONFIG_FILES section.
8737 # No need to generate the scripts if there are no CONFIG_FILES.
8738 # This happens for instance when ./config.status config.h
8739 if test -n "\$CONFIG_FILES"; then
8740 # Protect against being on the right side of a sed subst in config.status.
8741 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8742 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8743 s,@SHELL@,$SHELL,;t t
8744 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8745 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8746 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8747 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8748 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8749 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8750 s,@exec_prefix@,$exec_prefix,;t t
8751 s,@prefix@,$prefix,;t t
8752 s,@program_transform_name@,$program_transform_name,;t t
8753 s,@bindir@,$bindir,;t t
8754 s,@sbindir@,$sbindir,;t t
8755 s,@libexecdir@,$libexecdir,;t t
8756 s,@datadir@,$datadir,;t t
8757 s,@sysconfdir@,$sysconfdir,;t t
8758 s,@sharedstatedir@,$sharedstatedir,;t t
8759 s,@localstatedir@,$localstatedir,;t t
8760 s,@libdir@,$libdir,;t t
8761 s,@includedir@,$includedir,;t t
8762 s,@oldincludedir@,$oldincludedir,;t t
8763 s,@infodir@,$infodir,;t t
8764 s,@mandir@,$mandir,;t t
8765 s,@build_alias@,$build_alias,;t t
8766 s,@host_alias@,$host_alias,;t t
8767 s,@target_alias@,$target_alias,;t t
8769 s,@ECHO_C@,$ECHO_C,;t t
8770 s,@ECHO_N@,$ECHO_N,;t t
8771 s,@ECHO_T@,$ECHO_T,;t t
8773 s,@libiberty_topdir@,$libiberty_topdir,;t t
8774 s,@MAINT@,$MAINT,;t t
8775 s,@NOTMAINT@,$NOTMAINT,;t t
8776 s,@MAKEINFO@,$MAKEINFO,;t t
8777 s,@BUILD_INFO@,$BUILD_INFO,;t t
8779 s,@HAVE_PERL@,$HAVE_PERL,;t t
8780 s,@build@,$build,;t t
8781 s,@build_cpu@,$build_cpu,;t t
8782 s,@build_vendor@,$build_vendor,;t t
8783 s,@build_os@,$build_os,;t t
8785 s,@host_cpu@,$host_cpu,;t t
8786 s,@host_vendor@,$host_vendor,;t t
8787 s,@host_os@,$host_os,;t t
8789 s,@ac_ct_AR@,$ac_ct_AR,;t t
8790 s,@RANLIB@,$RANLIB,;t t
8791 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8793 s,@CFLAGS@,$CFLAGS,;t t
8794 s,@LDFLAGS@,$LDFLAGS,;t t
8795 s,@CPPFLAGS@,$CPPFLAGS,;t t
8796 s,@ac_ct_CC@,$ac_ct_CC,;t t
8797 s,@EXEEXT@,$EXEEXT,;t t
8798 s,@OBJEXT@,$OBJEXT,;t t
8800 s,@ac_libiberty_warn_cflags@,$ac_libiberty_warn_cflags,;t t
8802 s,@STRIP@,$STRIP,;t t
8803 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8804 s,@LIBTOOL@,$LIBTOOL,;t t
8805 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8806 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8807 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8808 s,@EGREP@,$EGREP,;t t
8809 s,@LIBOBJS@,$LIBOBJS,;t t
8810 s,@CHECK@,$CHECK,;t t
8811 s,@target_header_dir@,$target_header_dir,;t t
8812 s,@pexecute@,$pexecute,;t t
8813 s,@ltpexecute@,$ltpexecute,;t t
8814 s,@INSTALL_DEST@,$INSTALL_DEST,;t t
8815 s,@enable_shared@,$enable_shared,;t t
8816 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8817 /@host_makefile_frag@/r $host_makefile_frag
8818 s,@host_makefile_frag@,,;t t
8823 cat >>$CONFIG_STATUS <<\_ACEOF
8824 # Split the substitutions into bite-sized pieces for seds with
8825 # small command number limits, like on Digital OSF/1 and HP-UX.
8827 ac_sed_frag
=1 # Number of current file.
8828 ac_beg
=1 # First line for current file.
8829 ac_end
=$ac_max_sed_lines # Line after last line for current file.
8832 while $ac_more_lines; do
8833 if test $ac_beg -gt 1; then
8834 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
8836 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
8838 if test ! -s $tmp/subs.frag
; then
8841 # The purpose of the label and of the branching condition is to
8842 # speed up the sed processing (if there are no `@' at all, there
8843 # is no need to browse any of the substitutions).
8844 # These are the two extra sed commands mentioned above.
8846 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
8847 if test -z "$ac_sed_cmds"; then
8848 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
8850 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8852 ac_sed_frag
=`expr $ac_sed_frag + 1`
8854 ac_end
=`expr $ac_end + $ac_max_sed_lines`
8857 if test -z "$ac_sed_cmds"; then
8860 fi # test -n "$CONFIG_FILES"
8863 cat >>$CONFIG_STATUS <<\_ACEOF
8864 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
8865 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8867 - |
*:- |
*:-:* ) # input from stdin
8869 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8870 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
8871 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8872 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
8873 * ) ac_file_in
=$ac_file.
in ;;
8876 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8877 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
8878 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8879 X"$ac_file" : 'X\(//\)[^/]' \| \
8880 X"$ac_file" : 'X\(//\)$' \| \
8881 X"$ac_file" : 'X\(/\)' \| \
8882 . : '\(.\)' 2>/dev/null ||
8884 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8885 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8886 /^X\(\/\/\)$/{ s//\1/; q; }
8887 /^X\(\/\).*/{ s//\1/; q; }
8889 { if $as_mkdir_p; then
8894 while test ! -d "$as_dir"; do
8895 as_dirs
="$as_dir $as_dirs"
8896 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
8897 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8898 X"$as_dir" : 'X\(//\)[^/]' \| \
8899 X"$as_dir" : 'X\(//\)$' \| \
8900 X"$as_dir" : 'X\(/\)' \| \
8901 . : '\(.\)' 2>/dev/null ||
8903 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8904 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8905 /^X\(\/\/\)$/{ s//\1/; q; }
8906 /^X\(\/\).*/{ s//\1/; q; }
8909 test ! -n "$as_dirs" || mkdir
$as_dirs
8910 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8911 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8912 { (exit 1); exit 1; }; }; }
8916 if test "$ac_dir" != .
; then
8917 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8918 # A "../" for each directory in $ac_dir_suffix.
8919 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8921 ac_dir_suffix
= ac_top_builddir
=
8925 .
) # No --srcdir option. We are building in place.
8927 if test -z "$ac_top_builddir"; then
8930 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
8932 [\\/]* | ?
:[\\/]* ) # Absolute path.
8933 ac_srcdir
=$srcdir$ac_dir_suffix;
8934 ac_top_srcdir
=$srcdir ;;
8936 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
8937 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
8940 # Do not use `cd foo && pwd` to compute absolute paths, because
8941 # the directories may not exist.
8943 .
) ac_abs_builddir
="$ac_dir";;
8946 .
) ac_abs_builddir
=`pwd`;;
8947 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
8948 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
8951 case $ac_abs_builddir in
8952 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
8954 case ${ac_top_builddir}.
in
8955 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
8956 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
8957 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
8960 case $ac_abs_builddir in
8961 .
) ac_abs_srcdir
=$ac_srcdir;;
8964 .
) ac_abs_srcdir
=$ac_abs_builddir;;
8965 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
8966 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
8969 case $ac_abs_builddir in
8970 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
8972 case $ac_top_srcdir in
8973 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
8974 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
8975 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
8981 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
8982 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
8985 if test x
"$ac_file" != x-
; then
8986 { echo "$as_me:$LINENO: creating $ac_file" >&5
8987 echo "$as_me: creating $ac_file" >&6;}
8990 # Let's still pretend it is `configure' which instantiates (i.e., don't
8991 # use $as_me), people would be surprised to read:
8992 # /* config.h. Generated by config.status. */
8993 if test x
"$ac_file" = x-
; then
8996 configure_input
="$ac_file. "
8998 configure_input
=$configure_input"Generated from `echo $ac_file_in |
8999 sed 's,.*/,,'` by configure."
9001 # First look for the input files in the build tree, otherwise in the
9003 ac_file_inputs
=`IFS=:
9004 for f in $ac_file_in; do
9006 -) echo $tmp/stdin ;;
9008 # Absolute (can't be DOS-style, as IFS=:)
9009 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9010 echo "$as_me: error: cannot find input file: $f" >&2;}
9011 { (exit 1); exit 1; }; }
9014 if test -f "$f"; then
9017 elif test -f "$srcdir/$f"; then
9022 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9023 echo "$as_me: error: cannot find input file: $f" >&2;}
9024 { (exit 1); exit 1; }; }
9027 done` ||
{ (exit 1); exit 1; }
9029 cat >>$CONFIG_STATUS <<_ACEOF
9033 cat >>$CONFIG_STATUS <<\_ACEOF
9035 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
9036 s
,@configure_input@
,$configure_input,;t t
9037 s
,@srcdir@
,$ac_srcdir,;t t
9038 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
9039 s
,@top_srcdir@
,$ac_top_srcdir,;t t
9040 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
9041 s
,@builddir@
,$ac_builddir,;t t
9042 s
,@abs_builddir@
,$ac_abs_builddir,;t t
9043 s
,@top_builddir@
,$ac_top_builddir,;t t
9044 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
9045 s
,@INSTALL@
,$ac_INSTALL,;t t
9046 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9048 if test x"$ac_file" != x-; then
9049 mv $tmp/out $ac_file
9057 cat >>$CONFIG_STATUS <<\_ACEOF
9060 # CONFIG_HEADER section.
9063 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
9064 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9066 # ac_d sets the value in "#define NAME VALUE" lines.
9067 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9068 ac_dB
='[ ].*$,\1#\2'
9071 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9072 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9073 ac_uB
='$,\1#\2define\3'
9077 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
9078 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9080 - |
*:- |
*:-:* ) # input from stdin
9082 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9083 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9084 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9085 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9086 * ) ac_file_in
=$ac_file.
in ;;
9089 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
9090 echo "$as_me: creating $ac_file" >&6;}
9092 # First look for the input files in the build tree, otherwise in the
9094 ac_file_inputs
=`IFS=:
9095 for f in $ac_file_in; do
9097 -) echo $tmp/stdin ;;
9099 # Absolute (can't be DOS-style, as IFS=:)
9100 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9101 echo "$as_me: error: cannot find input file: $f" >&2;}
9102 { (exit 1); exit 1; }; }
9103 # Do quote $f, to prevent DOS paths from being IFS'd.
9106 if test -f "$f"; then
9109 elif test -f "$srcdir/$f"; then
9114 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9115 echo "$as_me: error: cannot find input file: $f" >&2;}
9116 { (exit 1); exit 1; }; }
9119 done` ||
{ (exit 1); exit 1; }
9120 # Remove the trailing spaces.
9121 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9125 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9126 # `conftest.undefs', that substitutes the proper values into
9127 # config.h.in to produce config.h. The first handles `#define'
9128 # templates, and the second `#undef' templates.
9129 # And first: Protect against being on the right side of a sed subst in
9130 # config.status. Protect against being in an unquoted here document
9132 rm -f conftest.defines conftest.undefs
9133 # Using a here document instead of a string reduces the quoting nightmare.
9134 # Putting comments in sed scripts is not portable.
9136 # `end' is used to avoid that the second main sed command (meant for
9137 # 0-ary CPP macros) applies to n-ary macro definitions.
9138 # See the Autoconf documentation for `clear'.
9139 cat >confdef2sed.
sed <<\_ACEOF
9144 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9146 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9149 # If some macros were called several times there might be several times
9150 # the same #defines, which is useless. Nevertheless, we may not want to
9151 # sort them, since we want the *last* AC-DEFINE to be honored.
9152 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9153 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9154 rm -f confdef2sed.sed
9156 # This sed command replaces #undef with comments. This is necessary, for
9157 # example, in the case of _POSIX_SOURCE, which is predefined and required
9158 # on some systems where configure will not decide to define it.
9159 cat >>conftest.undefs <<\_ACEOF
9160 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9163 # Break up conftest.defines because some shells have a limit on the size
9164 # of here documents, and old seds have small limits too (100 cmds).
9165 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9166 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9167 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9168 echo ' :' >>$CONFIG_STATUS
9170 while grep . conftest.defines >/dev/null
9172 # Write a limited-size here document to $tmp/defines.sed.
9173 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9174 # Speed up: don't consider the non `#define' lines.
9175 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9176 # Work around the forget-to-reset-the-flag bug.
9177 echo 't clr' >>$CONFIG_STATUS
9178 echo ': clr' >>$CONFIG_STATUS
9179 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
9181 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9185 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
9186 rm -f conftest.defines
9187 mv conftest.
tail conftest.defines
9189 rm -f conftest.defines
9190 echo ' fi # grep' >>$CONFIG_STATUS
9191 echo >>$CONFIG_STATUS
9193 # Break up conftest.undefs because some shells have a limit on the size
9194 # of here documents, and old seds have small limits too (100 cmds).
9195 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9197 while grep . conftest.undefs
>/dev
/null
9199 # Write a limited-size here document to $tmp/undefs.sed.
9200 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9201 # Speed up: don't consider the non
`#undef'
9202 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9203 # Work around the forget-to-reset-the-flag bug.
9204 echo 't clr' >>$CONFIG_STATUS
9205 echo ': clr' >>$CONFIG_STATUS
9206 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9208 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9212 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9213 rm -f conftest.undefs
9214 mv conftest.tail conftest.undefs
9216 rm -f conftest.undefs
9218 cat >>$CONFIG_STATUS <<\_ACEOF
9219 # Let's still pretend it is `configure
' which instantiates (i.e., don't
9220 # use $as_me), people would be surprised to read:
9221 # /* config.h. Generated by config.status. */
9222 if test x
"$ac_file" = x-
; then
9223 echo "/* Generated by configure. */" >$tmp/config.h
9225 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
9227 cat $tmp/in >>$tmp/config.h
9229 if test x
"$ac_file" != x-
; then
9230 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
9231 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9232 echo "$as_me: $ac_file is unchanged" >&6;}
9234 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
9235 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9236 X"$ac_file" : 'X\(//\)[^/]' \| \
9237 X"$ac_file" : 'X\(//\)$' \| \
9238 X"$ac_file" : 'X\(/\)' \| \
9239 . : '\(.\)' 2>/dev/null ||
9241 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9242 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9243 /^X\(\/\/\)$/{ s//\1/; q; }
9244 /^X\(\/\).*/{ s//\1/; q; }
9246 { if $as_mkdir_p; then
9251 while test ! -d "$as_dir"; do
9252 as_dirs
="$as_dir $as_dirs"
9253 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
9254 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9255 X"$as_dir" : 'X\(//\)[^/]' \| \
9256 X"$as_dir" : 'X\(//\)$' \| \
9257 X"$as_dir" : 'X\(/\)' \| \
9258 . : '\(.\)' 2>/dev/null ||
9260 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9261 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9262 /^X\(\/\/\)$/{ s//\1/; q; }
9263 /^X\(\/\).*/{ s//\1/; q; }
9266 test ! -n "$as_dirs" || mkdir
$as_dirs
9267 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9268 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9269 { (exit 1); exit 1; }; }; }
9272 mv $tmp/config.h
$ac_file
9280 cat >>$CONFIG_STATUS <<\_ACEOF
9283 # CONFIG_COMMANDS section.
9285 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
9286 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
9287 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9288 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
9289 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9290 X"$ac_dest" : 'X\(//\)[^/]' \| \
9291 X"$ac_dest" : 'X\(//\)$' \| \
9292 X"$ac_dest" : 'X\(/\)' \| \
9293 . : '\(.\)' 2>/dev/null ||
9295 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9296 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9297 /^X\(\/\/\)$/{ s//\1/; q; }
9298 /^X\(\/\).*/{ s//\1/; q; }
9300 { if $as_mkdir_p; then
9305 while test ! -d "$as_dir"; do
9306 as_dirs
="$as_dir $as_dirs"
9307 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
9308 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9309 X"$as_dir" : 'X\(//\)[^/]' \| \
9310 X"$as_dir" : 'X\(//\)$' \| \
9311 X"$as_dir" : 'X\(/\)' \| \
9312 . : '\(.\)' 2>/dev/null ||
9314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9315 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9316 /^X\(\/\/\)$/{ s//\1/; q; }
9317 /^X\(\/\).*/{ s//\1/; q; }
9320 test ! -n "$as_dirs" || mkdir
$as_dirs
9321 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9322 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9323 { (exit 1); exit 1; }; }; }
9327 if test "$ac_dir" != .
; then
9328 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9329 # A "../" for each directory in $ac_dir_suffix.
9330 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9332 ac_dir_suffix
= ac_top_builddir
=
9336 .
) # No --srcdir option. We are building in place.
9338 if test -z "$ac_top_builddir"; then
9341 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
9343 [\\/]* | ?
:[\\/]* ) # Absolute path.
9344 ac_srcdir
=$srcdir$ac_dir_suffix;
9345 ac_top_srcdir
=$srcdir ;;
9347 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
9348 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
9351 # Do not use `cd foo && pwd` to compute absolute paths, because
9352 # the directories may not exist.
9354 .
) ac_abs_builddir
="$ac_dir";;
9357 .
) ac_abs_builddir
=`pwd`;;
9358 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
9359 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
9362 case $ac_abs_builddir in
9363 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
9365 case ${ac_top_builddir}.
in
9366 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
9367 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
9368 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
9371 case $ac_abs_builddir in
9372 .
) ac_abs_srcdir
=$ac_srcdir;;
9375 .
) ac_abs_srcdir
=$ac_abs_builddir;;
9376 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
9377 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
9380 case $ac_abs_builddir in
9381 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
9383 case $ac_top_srcdir in
9384 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
9385 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
9386 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
9391 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9392 echo "$as_me: executing $ac_dest commands" >&6;}
9394 default
) test -z "$CONFIG_HEADERS" ||
echo timestamp
> stamp-h
9395 if test -n "$CONFIG_FILES"; then
9396 if test -n "${with_target_subdir}"; then
9397 # FIXME: We shouldn't need to set ac_file
9399 LD
="${ORIGINAL_LD_FOR_MULTILIBS}"
9400 .
${libiberty_topdir}/config-ml.
in
9407 cat >>$CONFIG_STATUS <<\_ACEOF
9409 { (exit 0); exit 0; }
9411 chmod +x
$CONFIG_STATUS
9412 ac_clean_files
=$ac_clean_files_save
9415 # configure is writing to config.log, and then calls config.status.
9416 # config.status does its own redirection, appending to config.log.
9417 # Unfortunately, on DOS this fails, as config.log is still kept open
9418 # by configure, so config.status won't be able to write to it; its
9419 # output is simply discarded. So we exec the FD to /dev/null,
9420 # effectively closing config.log, so it can be properly (re)opened and
9421 # appended to by config.status. When coming back to configure, we
9422 # need to make the FD available again.
9423 if test "$no_create" != yes; then
9425 ac_config_status_args
=
9426 test "$silent" = yes &&
9427 ac_config_status_args
="$ac_config_status_args --quiet"
9429 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
9431 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9432 # would make configure fail if this is the last instruction.
9433 $ac_cs_success ||
{ (exit 1); exit 1; }