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 LN_S STRIP ac_ct_STRIP LIBTOOL ac_libiberty_warn_cflags INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA EGREP LIBOBJS CHECK target_header_dir pexecute ltpexecute INSTALL_DEST 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
=yes
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 # This works around the fact that libtool configuration may change LD
1316 # for this particular configuration, but some shells, instead of
1317 # keeping the changes in LD private, export them just because LD is
1318 # exported. We don't use libtool yet
, but some day we might
, so...
1319 ORIGINAL_LD_FOR_MULTILIBS
=$LD
1322 # Check whether --with-target-subdir or --without-target-subdir was given.
1323 if test "${with_target_subdir+set}" = set; then
1324 withval
="$with_target_subdir"
1328 # Check whether --with-build-subdir or --without-build-subdir was given.
1329 if test "${with_build_subdir+set}" = set; then
1330 withval
="$with_build_subdir"
1334 # Check whether --with-cross-host or --without-cross-host was given.
1335 if test "${with_cross_host+set}" = set; then
1336 withval
="$with_cross_host"
1340 # Check whether --with-newlib or --without-newlib was given.
1341 if test "${with_newlib+set}" = set; then
1342 withval
="$with_newlib"
1346 if test "${srcdir}" = "."; then
1347 if test -n "${with_build_subdir}"; then
1348 libiberty_topdir
="${srcdir}/../.."
1350 elif test -z "${with_target_subdir}"; then
1351 libiberty_topdir
="${srcdir}/.."
1353 if test "${with_target_subdir}" != "."; then
1354 libiberty_topdir
="${srcdir}/${with_multisrctop}../.."
1356 libiberty_topdir
="${srcdir}/${with_multisrctop}.."
1360 libiberty_topdir
="${srcdir}/.."
1364 for ac_dir
in $libiberty_topdir $srcdir/$libiberty_topdir; do
1365 if test -f $ac_dir/install-sh
; then
1367 ac_install_sh
="$ac_aux_dir/install-sh -c"
1369 elif test -f $ac_dir/install.sh
; then
1371 ac_install_sh
="$ac_aux_dir/install.sh -c"
1373 elif test -f $ac_dir/shtool
; then
1375 ac_install_sh
="$ac_aux_dir/shtool install -c"
1379 if test -z "$ac_aux_dir"; then
1380 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $libiberty_topdir $srcdir/$libiberty_topdir" >&5
1381 echo "$as_me: error: cannot find install-sh or install.sh in $libiberty_topdir $srcdir/$libiberty_topdir" >&2;}
1382 { (exit 1); exit 1; }; }
1384 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1385 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1386 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1390 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1391 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1392 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1393 if test "${enable_maintainer_mode+set}" = set; then
1394 enableval
="$enable_maintainer_mode"
1395 maintainer_mode
=$enableval
1400 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
1401 echo "${ECHO_T}$maintainer_mode" >&6
1403 if test "$maintainer_mode" = "yes"; then
1411 # Do we have a single-tree copy of texinfo? Even if we do, we can't
1412 # rely on it - libiberty is built before texinfo.
1413 # Extract the first word of "makeinfo", so it can be a program name with args.
1414 set dummy makeinfo
; ac_word
=$2
1415 echo "$as_me:$LINENO: checking for $ac_word" >&5
1416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1417 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
1418 echo $ECHO_N "(cached) $ECHO_C" >&6
1420 if test -n "$MAKEINFO"; then
1421 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
1423 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1427 test -z "$as_dir" && as_dir
=.
1428 for ac_exec_ext
in '' $ac_executable_extensions; do
1429 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1430 ac_cv_prog_MAKEINFO
="makeinfo"
1431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1439 MAKEINFO
=$ac_cv_prog_MAKEINFO
1440 if test -n "$MAKEINFO"; then
1441 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
1442 echo "${ECHO_T}$MAKEINFO" >&6
1444 echo "$as_me:$LINENO: result: no" >&5
1445 echo "${ECHO_T}no" >&6
1448 if test "x$MAKEINFO" = "x"; then
1449 MAKEINFO
="@echo makeinfo missing; true"
1454 */missing\ makeinfo
*)
1456 { echo "$as_me:$LINENO: WARNING:
1457 *** Makeinfo is missing. Info documentation will not be built." >&5
1458 echo "$as_me: WARNING:
1459 *** Makeinfo is missing. Info documentation will not be built." >&2;}
1462 case x
"`$MAKEINFO --version | grep 'GNU texinfo'`" in
1464 MAKEINFO
="@echo $MAKEINFO is too old, 4.0 or newer required; true"
1466 { echo "$as_me:$LINENO: WARNING:
1467 *** Makeinfo is too old. Info documentation will not be built." >&5
1468 echo "$as_me: WARNING:
1469 *** Makeinfo is too old. Info documentation will not be built." >&2;}
1478 # Extract the first word of "perl", so it can be a program name with args.
1479 set dummy perl
; ac_word
=$2
1480 echo "$as_me:$LINENO: checking for $ac_word" >&5
1481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1482 if test "${ac_cv_prog_PERL+set}" = set; then
1483 echo $ECHO_N "(cached) $ECHO_C" >&6
1485 if test -n "$PERL"; then
1486 ac_cv_prog_PERL
="$PERL" # Let the user override the test.
1488 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1492 test -z "$as_dir" && as_dir
=.
1493 for ac_exec_ext
in '' $ac_executable_extensions; do
1494 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1495 ac_cv_prog_PERL
="perl"
1496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1504 PERL
=$ac_cv_prog_PERL
1505 if test -n "$PERL"; then
1506 echo "$as_me:$LINENO: result: $PERL" >&5
1507 echo "${ECHO_T}$PERL" >&6
1509 echo "$as_me:$LINENO: result: no" >&5
1510 echo "${ECHO_T}no" >&6
1513 if test x
"$PERL" = x
""; then
1520 # Make sure we can run config.sub.
1521 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1522 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1523 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1524 { (exit 1); exit 1; }; }
1526 echo "$as_me:$LINENO: checking build system type" >&5
1527 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1528 if test "${ac_cv_build+set}" = set; then
1529 echo $ECHO_N "(cached) $ECHO_C" >&6
1531 ac_cv_build_alias
=$build_alias
1532 test -z "$ac_cv_build_alias" &&
1533 ac_cv_build_alias
=`$ac_config_guess`
1534 test -z "$ac_cv_build_alias" &&
1535 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1536 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1537 { (exit 1); exit 1; }; }
1538 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1539 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1540 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1541 { (exit 1); exit 1; }; }
1544 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1545 echo "${ECHO_T}$ac_cv_build" >&6
1547 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1548 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1549 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1552 echo "$as_me:$LINENO: checking host system type" >&5
1553 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1554 if test "${ac_cv_host+set}" = set; then
1555 echo $ECHO_N "(cached) $ECHO_C" >&6
1557 ac_cv_host_alias
=$host_alias
1558 test -z "$ac_cv_host_alias" &&
1559 ac_cv_host_alias
=$ac_cv_build_alias
1560 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1561 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1562 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1563 { (exit 1); exit 1; }; }
1566 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1567 echo "${ECHO_T}$ac_cv_host" >&6
1569 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1570 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1571 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1576 if test -n "$ac_tool_prefix"; then
1577 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1578 set dummy
${ac_tool_prefix}ar; ac_word
=$2
1579 echo "$as_me:$LINENO: checking for $ac_word" >&5
1580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1581 if test "${ac_cv_prog_AR+set}" = set; then
1582 echo $ECHO_N "(cached) $ECHO_C" >&6
1584 if test -n "$AR"; then
1585 ac_cv_prog_AR
="$AR" # Let the user override the test.
1587 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1591 test -z "$as_dir" && as_dir
=.
1592 for ac_exec_ext
in '' $ac_executable_extensions; do
1593 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1594 ac_cv_prog_AR
="${ac_tool_prefix}ar"
1595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1604 if test -n "$AR"; then
1605 echo "$as_me:$LINENO: result: $AR" >&5
1606 echo "${ECHO_T}$AR" >&6
1608 echo "$as_me:$LINENO: result: no" >&5
1609 echo "${ECHO_T}no" >&6
1613 if test -z "$ac_cv_prog_AR"; then
1615 # Extract the first word of "ar", so it can be a program name with args.
1616 set dummy
ar; ac_word
=$2
1617 echo "$as_me:$LINENO: checking for $ac_word" >&5
1618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1619 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
1620 echo $ECHO_N "(cached) $ECHO_C" >&6
1622 if test -n "$ac_ct_AR"; then
1623 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
1625 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1629 test -z "$as_dir" && as_dir
=.
1630 for ac_exec_ext
in '' $ac_executable_extensions; do
1631 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1632 ac_cv_prog_ac_ct_AR
="ar"
1633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1641 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
1642 if test -n "$ac_ct_AR"; then
1643 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
1644 echo "${ECHO_T}$ac_ct_AR" >&6
1646 echo "$as_me:$LINENO: result: no" >&5
1647 echo "${ECHO_T}no" >&6
1655 if test -n "$ac_tool_prefix"; then
1656 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1657 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1658 echo "$as_me:$LINENO: checking for $ac_word" >&5
1659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1660 if test "${ac_cv_prog_RANLIB+set}" = set; then
1661 echo $ECHO_N "(cached) $ECHO_C" >&6
1663 if test -n "$RANLIB"; then
1664 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1666 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1670 test -z "$as_dir" && as_dir
=.
1671 for ac_exec_ext
in '' $ac_executable_extensions; do
1672 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1673 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1682 RANLIB
=$ac_cv_prog_RANLIB
1683 if test -n "$RANLIB"; then
1684 echo "$as_me:$LINENO: result: $RANLIB" >&5
1685 echo "${ECHO_T}$RANLIB" >&6
1687 echo "$as_me:$LINENO: result: no" >&5
1688 echo "${ECHO_T}no" >&6
1692 if test -z "$ac_cv_prog_RANLIB"; then
1693 ac_ct_RANLIB
=$RANLIB
1694 # Extract the first word of "ranlib", so it can be a program name with args.
1695 set dummy ranlib
; ac_word
=$2
1696 echo "$as_me:$LINENO: checking for $ac_word" >&5
1697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1698 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1699 echo $ECHO_N "(cached) $ECHO_C" >&6
1701 if test -n "$ac_ct_RANLIB"; then
1702 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
1704 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1708 test -z "$as_dir" && as_dir
=.
1709 for ac_exec_ext
in '' $ac_executable_extensions; do
1710 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1711 ac_cv_prog_ac_ct_RANLIB
="ranlib"
1712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1718 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
1721 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
1722 if test -n "$ac_ct_RANLIB"; then
1723 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
1724 echo "${ECHO_T}$ac_ct_RANLIB" >&6
1726 echo "$as_me:$LINENO: result: no" >&5
1727 echo "${ECHO_T}no" >&6
1730 RANLIB
=$ac_ct_RANLIB
1732 RANLIB
="$ac_cv_prog_RANLIB"
1738 ac_cpp
='$CPP $CPPFLAGS'
1739 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1740 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1741 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1742 if test -n "$ac_tool_prefix"; then
1743 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1744 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1745 echo "$as_me:$LINENO: checking for $ac_word" >&5
1746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1747 if test "${ac_cv_prog_CC+set}" = set; then
1748 echo $ECHO_N "(cached) $ECHO_C" >&6
1750 if test -n "$CC"; then
1751 ac_cv_prog_CC
="$CC" # Let the user override the test.
1753 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1757 test -z "$as_dir" && as_dir
=.
1758 for ac_exec_ext
in '' $ac_executable_extensions; do
1759 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1760 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1770 if test -n "$CC"; then
1771 echo "$as_me:$LINENO: result: $CC" >&5
1772 echo "${ECHO_T}$CC" >&6
1774 echo "$as_me:$LINENO: result: no" >&5
1775 echo "${ECHO_T}no" >&6
1779 if test -z "$ac_cv_prog_CC"; then
1781 # Extract the first word of "gcc", so it can be a program name with args.
1782 set dummy gcc
; ac_word
=$2
1783 echo "$as_me:$LINENO: checking for $ac_word" >&5
1784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1785 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1786 echo $ECHO_N "(cached) $ECHO_C" >&6
1788 if test -n "$ac_ct_CC"; then
1789 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1791 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1795 test -z "$as_dir" && as_dir
=.
1796 for ac_exec_ext
in '' $ac_executable_extensions; do
1797 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1798 ac_cv_prog_ac_ct_CC
="gcc"
1799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1807 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1808 if test -n "$ac_ct_CC"; then
1809 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1810 echo "${ECHO_T}$ac_ct_CC" >&6
1812 echo "$as_me:$LINENO: result: no" >&5
1813 echo "${ECHO_T}no" >&6
1821 if test -z "$CC"; then
1822 if test -n "$ac_tool_prefix"; then
1823 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1824 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1825 echo "$as_me:$LINENO: checking for $ac_word" >&5
1826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1827 if test "${ac_cv_prog_CC+set}" = set; then
1828 echo $ECHO_N "(cached) $ECHO_C" >&6
1830 if test -n "$CC"; then
1831 ac_cv_prog_CC
="$CC" # Let the user override the test.
1833 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1837 test -z "$as_dir" && as_dir
=.
1838 for ac_exec_ext
in '' $ac_executable_extensions; do
1839 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1840 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1850 if test -n "$CC"; then
1851 echo "$as_me:$LINENO: result: $CC" >&5
1852 echo "${ECHO_T}$CC" >&6
1854 echo "$as_me:$LINENO: result: no" >&5
1855 echo "${ECHO_T}no" >&6
1859 if test -z "$ac_cv_prog_CC"; then
1861 # Extract the first word of "cc", so it can be a program name with args.
1862 set dummy cc
; ac_word
=$2
1863 echo "$as_me:$LINENO: checking for $ac_word" >&5
1864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1865 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1866 echo $ECHO_N "(cached) $ECHO_C" >&6
1868 if test -n "$ac_ct_CC"; then
1869 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1871 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1875 test -z "$as_dir" && as_dir
=.
1876 for ac_exec_ext
in '' $ac_executable_extensions; do
1877 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1878 ac_cv_prog_ac_ct_CC
="cc"
1879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1887 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1888 if test -n "$ac_ct_CC"; then
1889 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1890 echo "${ECHO_T}$ac_ct_CC" >&6
1892 echo "$as_me:$LINENO: result: no" >&5
1893 echo "${ECHO_T}no" >&6
1902 if test -z "$CC"; then
1903 # Extract the first word of "cc", so it can be a program name with args.
1904 set dummy cc
; ac_word
=$2
1905 echo "$as_me:$LINENO: checking for $ac_word" >&5
1906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1907 if test "${ac_cv_prog_CC+set}" = set; then
1908 echo $ECHO_N "(cached) $ECHO_C" >&6
1910 if test -n "$CC"; then
1911 ac_cv_prog_CC
="$CC" # Let the user override the test.
1914 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1918 test -z "$as_dir" && as_dir
=.
1919 for ac_exec_ext
in '' $ac_executable_extensions; do
1920 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1921 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1922 ac_prog_rejected
=yes
1926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1932 if test $ac_prog_rejected = yes; then
1933 # We found a bogon in the path, so make sure we never use it.
1934 set dummy
$ac_cv_prog_CC
1936 if test $# != 0; then
1937 # We chose a different compiler from the bogus one.
1938 # However, it has the same basename, so the bogon will be chosen
1939 # first if we set CC to just the basename; use the full file name.
1941 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
1947 if test -n "$CC"; then
1948 echo "$as_me:$LINENO: result: $CC" >&5
1949 echo "${ECHO_T}$CC" >&6
1951 echo "$as_me:$LINENO: result: no" >&5
1952 echo "${ECHO_T}no" >&6
1956 if test -z "$CC"; then
1957 if test -n "$ac_tool_prefix"; then
1960 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1961 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1962 echo "$as_me:$LINENO: checking for $ac_word" >&5
1963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1964 if test "${ac_cv_prog_CC+set}" = set; then
1965 echo $ECHO_N "(cached) $ECHO_C" >&6
1967 if test -n "$CC"; then
1968 ac_cv_prog_CC
="$CC" # Let the user override the test.
1970 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1974 test -z "$as_dir" && as_dir
=.
1975 for ac_exec_ext
in '' $ac_executable_extensions; do
1976 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1977 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
1978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1987 if test -n "$CC"; then
1988 echo "$as_me:$LINENO: result: $CC" >&5
1989 echo "${ECHO_T}$CC" >&6
1991 echo "$as_me:$LINENO: result: no" >&5
1992 echo "${ECHO_T}no" >&6
1995 test -n "$CC" && break
1998 if test -z "$CC"; then
2002 # Extract the first word of "$ac_prog", so it can be a program name with args.
2003 set dummy
$ac_prog; ac_word
=$2
2004 echo "$as_me:$LINENO: checking for $ac_word" >&5
2005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2006 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2007 echo $ECHO_N "(cached) $ECHO_C" >&6
2009 if test -n "$ac_ct_CC"; then
2010 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2012 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2016 test -z "$as_dir" && as_dir
=.
2017 for ac_exec_ext
in '' $ac_executable_extensions; do
2018 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2019 ac_cv_prog_ac_ct_CC
="$ac_prog"
2020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2028 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2029 if test -n "$ac_ct_CC"; then
2030 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2031 echo "${ECHO_T}$ac_ct_CC" >&6
2033 echo "$as_me:$LINENO: result: no" >&5
2034 echo "${ECHO_T}no" >&6
2037 test -n "$ac_ct_CC" && break
2046 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2047 See \`config.log' for more details." >&5
2048 echo "$as_me: error: no acceptable C compiler found in \$PATH
2049 See \`config.log' for more details." >&2;}
2050 { (exit 1); exit 1; }; }
2052 # Provide some information about the compiler.
2053 echo "$as_me:$LINENO:" \
2054 "checking for C compiler version" >&5
2055 ac_compiler
=`set X $ac_compile; echo $2`
2056 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2057 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2060 (exit $ac_status); }
2061 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2062 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2065 (exit $ac_status); }
2066 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2067 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2070 (exit $ac_status); }
2072 cat >conftest.
$ac_ext <<_ACEOF
2075 cat confdefs.h
>>conftest.
$ac_ext
2076 cat >>conftest.
$ac_ext <<_ACEOF
2077 /* end confdefs.h. */
2088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2089 (eval $ac_link) 2>&5
2091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092 (exit $ac_status); }; then
2098 if test x
$gcc_no_link = xyes
; then
2099 # Setting cross_compile will disable run tests; it will
2100 # also disable AC_CHECK_FILE but that's generally
2101 # correct if we can't link.
2105 cat >conftest.
$ac_ext <<_ACEOF
2108 cat confdefs.h
>>conftest.
$ac_ext
2109 cat >>conftest.
$ac_ext <<_ACEOF
2110 /* end confdefs.h. */
2120 ac_clean_files_save
=$ac_clean_files
2121 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2122 # Try to create an executable without -o first, disregard a.out.
2123 # It will help us diagnose broken compilers, and finding out an intuition
2125 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2126 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2127 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2128 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2129 (eval $ac_link_default) 2>&5
2131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2132 (exit $ac_status); }; then
2133 # Find the output, starting from the most likely. This scheme is
2134 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2137 # Be careful to initialize this variable, since it used to be cached.
2138 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2140 # b.out is created by i960 compilers.
2141 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2143 test -f "$ac_file" ||
continue
2145 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2148 # This is the source file.
2151 # We found the default executable, but exeext='' is most
2155 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2156 # FIXME: I believe we export ac_cv_exeext for Libtool,
2157 # but it would be cool to find out if it's true. Does anybody
2158 # maintain Libtool? --akim.
2166 echo "$as_me: failed program was:" >&5
2167 sed 's/^/| /' conftest.
$ac_ext >&5
2169 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2170 See \`config.log' for more details." >&5
2171 echo "$as_me: error: C compiler cannot create executables
2172 See \`config.log' for more details." >&2;}
2173 { (exit 77); exit 77; }; }
2176 ac_exeext
=$ac_cv_exeext
2177 echo "$as_me:$LINENO: result: $ac_file" >&5
2178 echo "${ECHO_T}$ac_file" >&6
2180 # Check the compiler produces executables we can run. If not, either
2181 # the compiler is broken, or we cross compile.
2182 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2183 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2184 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2185 # If not cross compiling, check that we can run a simple program.
2186 if test "$cross_compiling" != yes; then
2187 if { ac_try
='./$ac_file'
2188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2192 (exit $ac_status); }; }; then
2195 if test "$cross_compiling" = maybe
; then
2198 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2199 If you meant to cross compile, use \`--host'.
2200 See \`config.log' for more details." >&5
2201 echo "$as_me: error: cannot run C compiled programs.
2202 If you meant to cross compile, use \`--host'.
2203 See \`config.log' for more details." >&2;}
2204 { (exit 1); exit 1; }; }
2208 echo "$as_me:$LINENO: result: yes" >&5
2209 echo "${ECHO_T}yes" >&6
2211 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2212 ac_clean_files
=$ac_clean_files_save
2213 # Check the compiler produces executables we can run. If not, either
2214 # the compiler is broken, or we cross compile.
2215 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2216 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2217 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2218 echo "${ECHO_T}$cross_compiling" >&6
2220 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2221 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2223 (eval $ac_link) 2>&5
2225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2226 (exit $ac_status); }; then
2227 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2228 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2229 # work properly (i.e., refer to `conftest.exe'), while it won't with
2231 for ac_file
in conftest.exe conftest conftest.
*; do
2232 test -f "$ac_file" ||
continue
2234 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2235 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2242 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2243 See \`config.log' for more details." >&5
2244 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2245 See \`config.log' for more details." >&2;}
2246 { (exit 1); exit 1; }; }
2249 rm -f conftest
$ac_cv_exeext
2250 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2251 echo "${ECHO_T}$ac_cv_exeext" >&6
2253 rm -f conftest.
$ac_ext
2254 EXEEXT
=$ac_cv_exeext
2257 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2258 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2259 if test "${ac_cv_objext+set}" = set; then
2260 echo $ECHO_N "(cached) $ECHO_C" >&6
2262 cat >conftest.
$ac_ext <<_ACEOF
2265 cat confdefs.h
>>conftest.
$ac_ext
2266 cat >>conftest.
$ac_ext <<_ACEOF
2267 /* end confdefs.h. */
2277 rm -f conftest.o conftest.obj
2278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2279 (eval $ac_compile) 2>&5
2281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282 (exit $ac_status); }; then
2283 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2285 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2286 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2291 echo "$as_me: failed program was:" >&5
2292 sed 's/^/| /' conftest.
$ac_ext >&5
2294 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2295 See \`config.log' for more details." >&5
2296 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2297 See \`config.log' for more details." >&2;}
2298 { (exit 1); exit 1; }; }
2301 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2303 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2304 echo "${ECHO_T}$ac_cv_objext" >&6
2305 OBJEXT
=$ac_cv_objext
2307 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2308 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2309 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2310 echo $ECHO_N "(cached) $ECHO_C" >&6
2312 cat >conftest.
$ac_ext <<_ACEOF
2315 cat confdefs.h
>>conftest.
$ac_ext
2316 cat >>conftest.
$ac_ext <<_ACEOF
2317 /* end confdefs.h. */
2330 rm -f conftest.
$ac_objext
2331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2332 (eval $ac_compile) 2>conftest.er1
2334 grep -v '^ *+' conftest.er1
>conftest.err
2336 cat conftest.err
>&5
2337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338 (exit $ac_status); } &&
2339 { ac_try
='test -z "$ac_c_werror_flag"
2340 || test ! -s conftest.err'
2341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345 (exit $ac_status); }; } &&
2346 { ac_try
='test -s conftest.$ac_objext'
2347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351 (exit $ac_status); }; }; then
2354 echo "$as_me: failed program was:" >&5
2355 sed 's/^/| /' conftest.
$ac_ext >&5
2359 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2360 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2363 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2364 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2365 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2366 ac_test_CFLAGS
=${CFLAGS+set}
2367 ac_save_CFLAGS
=$CFLAGS
2369 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2370 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2371 if test "${ac_cv_prog_cc_g+set}" = set; then
2372 echo $ECHO_N "(cached) $ECHO_C" >&6
2374 cat >conftest.
$ac_ext <<_ACEOF
2377 cat confdefs.h
>>conftest.
$ac_ext
2378 cat >>conftest.
$ac_ext <<_ACEOF
2379 /* end confdefs.h. */
2389 rm -f conftest.
$ac_objext
2390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2391 (eval $ac_compile) 2>conftest.er1
2393 grep -v '^ *+' conftest.er1
>conftest.err
2395 cat conftest.err
>&5
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); } &&
2398 { ac_try
='test -z "$ac_c_werror_flag"
2399 || test ! -s conftest.err'
2400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); }; } &&
2405 { ac_try
='test -s conftest.$ac_objext'
2406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410 (exit $ac_status); }; }; then
2413 echo "$as_me: failed program was:" >&5
2414 sed 's/^/| /' conftest.
$ac_ext >&5
2418 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2420 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2421 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2422 if test "$ac_test_CFLAGS" = set; then
2423 CFLAGS
=$ac_save_CFLAGS
2424 elif test $ac_cv_prog_cc_g = yes; then
2425 if test "$GCC" = yes; then
2431 if test "$GCC" = yes; then
2437 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2438 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2439 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2440 echo $ECHO_N "(cached) $ECHO_C" >&6
2442 ac_cv_prog_cc_stdc
=no
2444 cat >conftest.
$ac_ext <<_ACEOF
2447 cat confdefs.h
>>conftest.
$ac_ext
2448 cat >>conftest.
$ac_ext <<_ACEOF
2449 /* end confdefs.h. */
2452 #include <sys/types.h>
2453 #include <sys/stat.h>
2454 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2455 struct buf { int x; };
2456 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2457 static char *e (p, i)
2463 static char *f (char * (*g) (char **, int), char **p, ...)
2468 s = g (p, va_arg (v,int));
2473 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2474 function prototypes and stuff, but not '\xHH' hex character constants.
2475 These don't provoke an error unfortunately, instead are silently treated
2476 as 'x'. The following induces an error, until -std1 is added to get
2477 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2478 array size at least. It's necessary to write '\x00'==0 to get something
2479 that's true only with -std1. */
2480 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2482 int test (int i, double x);
2483 struct s1 {int (*f) (int a);};
2484 struct s2 {int (*f) (double a);};
2485 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2491 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2496 # Don't try gcc -ansi; that turns off useful extensions and
2497 # breaks some systems' header files.
2498 # AIX -qlanglvl=ansi
2499 # Ultrix and OSF/1 -std1
2500 # HP-UX 10.20 and later -Ae
2501 # HP-UX older versions -Aa -D_HPUX_SOURCE
2502 # SVR4 -Xc -D__EXTENSIONS__
2503 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2505 CC
="$ac_save_CC $ac_arg"
2506 rm -f conftest.
$ac_objext
2507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2508 (eval $ac_compile) 2>conftest.er1
2510 grep -v '^ *+' conftest.er1
>conftest.err
2512 cat conftest.err
>&5
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); } &&
2515 { ac_try
='test -z "$ac_c_werror_flag"
2516 || test ! -s conftest.err'
2517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521 (exit $ac_status); }; } &&
2522 { ac_try
='test -s conftest.$ac_objext'
2523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527 (exit $ac_status); }; }; then
2528 ac_cv_prog_cc_stdc
=$ac_arg
2531 echo "$as_me: failed program was:" >&5
2532 sed 's/^/| /' conftest.
$ac_ext >&5
2535 rm -f conftest.err conftest.
$ac_objext
2537 rm -f conftest.
$ac_ext conftest.
$ac_objext
2542 case "x$ac_cv_prog_cc_stdc" in
2544 echo "$as_me:$LINENO: result: none needed" >&5
2545 echo "${ECHO_T}none needed" >&6 ;;
2547 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2548 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2549 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2552 # Some people use a C++ compiler to compile C. Since we use `exit',
2553 # in C++ we need to declare it. In case someone uses the same compiler
2554 # for both compiling C and C++ we need to have the C++ compiler decide
2555 # the declaration of exit, since it's the most demanding environment.
2556 cat >conftest.
$ac_ext <<_ACEOF
2561 rm -f conftest.
$ac_objext
2562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2563 (eval $ac_compile) 2>conftest.er1
2565 grep -v '^ *+' conftest.er1
>conftest.err
2567 cat conftest.err
>&5
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); } &&
2570 { ac_try
='test -z "$ac_c_werror_flag"
2571 || test ! -s conftest.err'
2572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); }; } &&
2577 { ac_try
='test -s conftest.$ac_objext'
2578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); }; }; then
2583 for ac_declaration
in \
2585 'extern "C" void std::exit (int) throw (); using std::exit;' \
2586 'extern "C" void std::exit (int); using std::exit;' \
2587 'extern "C" void exit (int) throw ();' \
2588 'extern "C" void exit (int);' \
2591 cat >conftest.
$ac_ext <<_ACEOF
2594 cat confdefs.h
>>conftest.
$ac_ext
2595 cat >>conftest.
$ac_ext <<_ACEOF
2596 /* end confdefs.h. */
2607 rm -f conftest.
$ac_objext
2608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2609 (eval $ac_compile) 2>conftest.er1
2611 grep -v '^ *+' conftest.er1
>conftest.err
2613 cat conftest.err
>&5
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); } &&
2616 { ac_try
='test -z "$ac_c_werror_flag"
2617 || test ! -s conftest.err'
2618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622 (exit $ac_status); }; } &&
2623 { ac_try
='test -s conftest.$ac_objext'
2624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); }; }; then
2631 echo "$as_me: failed program was:" >&5
2632 sed 's/^/| /' conftest.
$ac_ext >&5
2636 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2637 cat >conftest.
$ac_ext <<_ACEOF
2640 cat confdefs.h
>>conftest.
$ac_ext
2641 cat >>conftest.
$ac_ext <<_ACEOF
2642 /* end confdefs.h. */
2652 rm -f conftest.
$ac_objext
2653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2654 (eval $ac_compile) 2>conftest.er1
2656 grep -v '^ *+' conftest.er1
>conftest.err
2658 cat conftest.err
>&5
2659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660 (exit $ac_status); } &&
2661 { ac_try
='test -z "$ac_c_werror_flag"
2662 || test ! -s conftest.err'
2663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667 (exit $ac_status); }; } &&
2668 { ac_try
='test -s conftest.$ac_objext'
2669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673 (exit $ac_status); }; }; then
2676 echo "$as_me: failed program was:" >&5
2677 sed 's/^/| /' conftest.
$ac_ext >&5
2680 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2683 if test -n "$ac_declaration"; then
2684 echo '#ifdef __cplusplus' >>confdefs.h
2685 echo $ac_declaration >>confdefs.h
2686 echo '#endif' >>confdefs.h
2690 echo "$as_me: failed program was:" >&5
2691 sed 's/^/| /' conftest.
$ac_ext >&5
2694 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2696 ac_cpp
='$CPP $CPPFLAGS'
2697 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2698 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2699 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2702 ac_cpp
='$CPP $CPPFLAGS'
2703 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2704 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2705 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2706 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2707 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2708 # On Suns, sometimes $CPP names a directory.
2709 if test -n "$CPP" && test -d "$CPP"; then
2712 if test -z "$CPP"; then
2713 if test "${ac_cv_prog_CPP+set}" = set; then
2714 echo $ECHO_N "(cached) $ECHO_C" >&6
2716 # Double quotes because CPP needs to be expanded
2717 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2720 for ac_c_preproc_warn_flag
in '' yes
2722 # Use a header file that comes with gcc, so configuring glibc
2723 # with a fresh cross-compiler works.
2724 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2725 # <limits.h> exists even on freestanding compilers.
2726 # On the NeXT, cc -E runs the code through the compiler's parser,
2727 # not just through cpp. "Syntax error" is here to catch this case.
2728 cat >conftest.
$ac_ext <<_ACEOF
2731 cat confdefs.h
>>conftest.
$ac_ext
2732 cat >>conftest.
$ac_ext <<_ACEOF
2733 /* end confdefs.h. */
2735 # include <limits.h>
2737 # include <assert.h>
2741 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2742 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2744 grep -v '^ *+' conftest.er1
>conftest.err
2746 cat conftest.err
>&5
2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748 (exit $ac_status); } >/dev
/null
; then
2749 if test -s conftest.err
; then
2750 ac_cpp_err
=$ac_c_preproc_warn_flag
2751 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2758 if test -z "$ac_cpp_err"; then
2761 echo "$as_me: failed program was:" >&5
2762 sed 's/^/| /' conftest.
$ac_ext >&5
2764 # Broken: fails on valid input.
2767 rm -f conftest.err conftest.
$ac_ext
2769 # OK, works on sane cases. Now check whether non-existent headers
2770 # can be detected and how.
2771 cat >conftest.
$ac_ext <<_ACEOF
2774 cat confdefs.h
>>conftest.
$ac_ext
2775 cat >>conftest.
$ac_ext <<_ACEOF
2776 /* end confdefs.h. */
2777 #include <ac_nonexistent.h>
2779 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2780 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2782 grep -v '^ *+' conftest.er1
>conftest.err
2784 cat conftest.err
>&5
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); } >/dev
/null
; then
2787 if test -s conftest.err
; then
2788 ac_cpp_err
=$ac_c_preproc_warn_flag
2789 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2796 if test -z "$ac_cpp_err"; then
2797 # Broken: success on invalid input.
2800 echo "$as_me: failed program was:" >&5
2801 sed 's/^/| /' conftest.
$ac_ext >&5
2803 # Passes both tests.
2807 rm -f conftest.err conftest.
$ac_ext
2810 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2811 rm -f conftest.err conftest.
$ac_ext
2812 if $ac_preproc_ok; then
2824 echo "$as_me:$LINENO: result: $CPP" >&5
2825 echo "${ECHO_T}$CPP" >&6
2827 for ac_c_preproc_warn_flag
in '' yes
2829 # Use a header file that comes with gcc, so configuring glibc
2830 # with a fresh cross-compiler works.
2831 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2832 # <limits.h> exists even on freestanding compilers.
2833 # On the NeXT, cc -E runs the code through the compiler's parser,
2834 # not just through cpp. "Syntax error" is here to catch this case.
2835 cat >conftest.
$ac_ext <<_ACEOF
2838 cat confdefs.h
>>conftest.
$ac_ext
2839 cat >>conftest.
$ac_ext <<_ACEOF
2840 /* end confdefs.h. */
2842 # include <limits.h>
2844 # include <assert.h>
2848 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2849 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2851 grep -v '^ *+' conftest.er1
>conftest.err
2853 cat conftest.err
>&5
2854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855 (exit $ac_status); } >/dev
/null
; then
2856 if test -s conftest.err
; then
2857 ac_cpp_err
=$ac_c_preproc_warn_flag
2858 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2865 if test -z "$ac_cpp_err"; then
2868 echo "$as_me: failed program was:" >&5
2869 sed 's/^/| /' conftest.
$ac_ext >&5
2871 # Broken: fails on valid input.
2874 rm -f conftest.err conftest.
$ac_ext
2876 # OK, works on sane cases. Now check whether non-existent headers
2877 # can be detected and how.
2878 cat >conftest.
$ac_ext <<_ACEOF
2881 cat confdefs.h
>>conftest.
$ac_ext
2882 cat >>conftest.
$ac_ext <<_ACEOF
2883 /* end confdefs.h. */
2884 #include <ac_nonexistent.h>
2886 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2887 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2889 grep -v '^ *+' conftest.er1
>conftest.err
2891 cat conftest.err
>&5
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); } >/dev
/null
; then
2894 if test -s conftest.err
; then
2895 ac_cpp_err
=$ac_c_preproc_warn_flag
2896 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2903 if test -z "$ac_cpp_err"; then
2904 # Broken: success on invalid input.
2907 echo "$as_me: failed program was:" >&5
2908 sed 's/^/| /' conftest.
$ac_ext >&5
2910 # Passes both tests.
2914 rm -f conftest.err conftest.
$ac_ext
2917 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2918 rm -f conftest.err conftest.
$ac_ext
2919 if $ac_preproc_ok; then
2922 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2923 See \`config.log' for more details." >&5
2924 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2925 See \`config.log' for more details." >&2;}
2926 { (exit 1); exit 1; }; }
2930 ac_cpp
='$CPP $CPPFLAGS'
2931 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2932 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2933 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2936 ac_c_preproc_warn_flag
=yes
2938 # Check whether --enable-shared or --disable-shared was given.
2939 if test "${enable_shared+set}" = set; then
2940 enableval
="$enable_shared"
2941 p
=${PACKAGE-default}
2943 yes) enable_shared
=yes ;;
2944 no
) enable_shared
=no
;;
2947 # Look at the argument we got. We use all the common list separators.
2948 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
2949 for pkg
in $enableval; do
2950 if test "X$pkg" = "X$p"; then
2960 # Check whether --enable-static or --disable-static was given.
2961 if test "${enable_static+set}" = set; then
2962 enableval
="$enable_static"
2963 p
=${PACKAGE-default}
2965 yes) enable_static
=yes ;;
2966 no
) enable_static
=no
;;
2969 # Look at the argument we got. We use all the common list separators.
2970 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
2971 for pkg
in $enableval; do
2972 if test "X$pkg" = "X$p"; then
2982 # Check whether --enable-fast-install or --disable-fast-install was given.
2983 if test "${enable_fast_install+set}" = set; then
2984 enableval
="$enable_fast_install"
2985 p
=${PACKAGE-default}
2987 yes) enable_fast_install
=yes ;;
2988 no
) enable_fast_install
=no
;;
2990 enable_fast_install
=no
2991 # Look at the argument we got. We use all the common list separators.
2992 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
2993 for pkg
in $enableval; do
2994 if test "X$pkg" = "X$p"; then
2995 enable_fast_install
=yes
3002 enable_fast_install
=yes
3005 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3006 if test "${with_gnu_ld+set}" = set; then
3007 withval
="$with_gnu_ld"
3008 test "$withval" = no || with_gnu_ld
=yes
3013 if test "$GCC" = yes; then
3014 # Check if gcc -print-prog-name=ld gives a path.
3015 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3016 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3019 # gcc leaves a trailing carriage return which upsets mingw
3020 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3022 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
3025 # Accept absolute paths.
3026 [\\/]* |
[A-Za-z
]:[\\/]*)
3027 re_direlt
='/[^/][^/]*/\.\./'
3028 # Canonicalize the path of ld
3029 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
3030 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
3031 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
3033 test -z "$LD" && LD
="$ac_prog"
3036 # If it fails, then pretend we aren't using GCC.
3040 # If it is relative, then search for the first ld in PATH.
3044 elif test "$with_gnu_ld" = yes; then
3045 echo "$as_me:$LINENO: checking for GNU ld" >&5
3046 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3048 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3049 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3051 if test "${lt_cv_path_LD+set}" = set; then
3052 echo $ECHO_N "(cached) $ECHO_C" >&6
3054 if test -z "$LD"; then
3055 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3056 for ac_dir
in $PATH; do
3057 test -z "$ac_dir" && ac_dir
=.
3058 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
3059 lt_cv_path_LD
="$ac_dir/$ac_prog"
3060 # Check to see if the program is GNU ld. I'd rather use --version,
3061 # but apparently some GNU ld's only accept -v.
3062 # Break only if it was the GNU/non-GNU ld that we prefer.
3063 if "$lt_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
3064 test "$with_gnu_ld" != no
&& break
3066 test "$with_gnu_ld" != yes && break
3072 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
3077 if test -n "$LD"; then
3078 echo "$as_me:$LINENO: result: $LD" >&5
3079 echo "${ECHO_T}$LD" >&6
3081 echo "$as_me:$LINENO: result: no" >&5
3082 echo "${ECHO_T}no" >&6
3084 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3085 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3086 { (exit 1); exit 1; }; }
3087 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3088 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3089 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3090 echo $ECHO_N "(cached) $ECHO_C" >&6
3092 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3093 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
3094 lt_cv_prog_gnu_ld
=yes
3096 lt_cv_prog_gnu_ld
=no
3099 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3100 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3101 with_gnu_ld
=$lt_cv_prog_gnu_ld
3104 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3105 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3106 if test "${lt_cv_ld_reload_flag+set}" = set; then
3107 echo $ECHO_N "(cached) $ECHO_C" >&6
3109 lt_cv_ld_reload_flag
='-r'
3111 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3112 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3113 reload_flag
=$lt_cv_ld_reload_flag
3114 test -n "$reload_flag" && reload_flag
=" $reload_flag"
3116 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3117 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3118 if test "${lt_cv_path_NM+set}" = set; then
3119 echo $ECHO_N "(cached) $ECHO_C" >&6
3121 if test -n "$NM"; then
3122 # Let the user override the test.
3125 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3126 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
3127 test -z "$ac_dir" && ac_dir
=.
3128 tmp_nm
=$ac_dir/${ac_tool_prefix}nm
3129 if test -f $tmp_nm ||
test -f $tmp_nm$ac_exeext ; then
3130 # Check to see if the nm accepts a BSD-compat flag.
3131 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3132 # nm: unknown option "B" ignored
3133 # Tru64's nm complains that /dev/null is an invalid object file
3134 if ($tmp_nm -B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep '(/dev/null|Invalid file or object type)' >/dev
/null
; then
3135 lt_cv_path_NM
="$tmp_nm -B"
3137 elif ($tmp_nm -p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
3138 lt_cv_path_NM
="$tmp_nm -p"
3141 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3142 continue # so that we can try to find one that supports BSD flags
3147 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
3152 echo "$as_me:$LINENO: result: $NM" >&5
3153 echo "${ECHO_T}$NM" >&6
3155 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3156 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3158 if test "$LN_S" = "ln -s"; then
3159 echo "$as_me:$LINENO: result: yes" >&5
3160 echo "${ECHO_T}yes" >&6
3162 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3163 echo "${ECHO_T}no, using $LN_S" >&6
3166 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3167 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3168 if test "${lt_cv_deplibs_check_method+set}" = set; then
3169 echo $ECHO_N "(cached) $ECHO_C" >&6
3171 lt_cv_file_magic_cmd
='$MAGIC_CMD'
3172 lt_cv_file_magic_test_file
=
3173 lt_cv_deplibs_check_method
='unknown'
3174 # Need to set the preceding variable on all platforms that support
3175 # interlibrary dependencies.
3176 # 'none' -- dependencies not supported.
3177 # `unknown' -- same as none, but documents that we really don't know.
3178 # 'pass_all' -- all dependencies passed with no checks.
3179 # 'test_compile' -- check by making test program.
3180 # 'file_magic [regex]' -- check by looking for files in library path
3181 # which responds to the $file_magic_cmd with a given egrep regex.
3182 # If you have `file' or equivalent on your system and you're not sure
3183 # whether `pass_all' will *always* work, you probably want this one.
3187 lt_cv_deplibs_check_method
=pass_all
3191 lt_cv_deplibs_check_method
=pass_all
3195 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3196 lt_cv_file_magic_cmd
='/usr/bin/file -L'
3197 lt_cv_file_magic_test_file
=/shlib
/libc.so
3200 cygwin
* | mingw
* |pw32
*)
3201 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
3202 lt_cv_file_magic_cmd
='$OBJDUMP -f'
3205 darwin
* | rhapsody
*)
3206 # this will be overwritten by pass_all, but leave it in just in case
3207 lt_cv_deplibs_check_method
='file_magic Mach-O dynamically linked shared library'
3208 lt_cv_file_magic_cmd
='/usr/bin/file -L'
3210 rhapsody
* | darwin1.012
)
3211 lt_cv_file_magic_test_file
='/System/Library/Frameworks/System.framework/System'
3214 lt_cv_file_magic_test_file
='/usr/lib/libSystem.dylib'
3217 lt_cv_deplibs_check_method
=pass_all
3220 freebsd
* | kfreebsd
*-gnu)
3221 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
3224 # Not sure whether the presence of OpenBSD here was a mistake.
3225 # Let's accept both of them until this is cleared up.
3226 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3227 lt_cv_file_magic_cmd
=/usr
/bin
/file
3228 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
3232 lt_cv_deplibs_check_method
=pass_all
3237 lt_cv_deplibs_check_method
=pass_all
3243 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3244 lt_cv_file_magic_cmd
=/usr
/bin
/file
3245 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
3248 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3249 lt_cv_file_magic_cmd
=/usr
/bin
/file
3250 lt_cv_file_magic_test_file
=/usr
/lib
/hpux32
/libc.so
3258 # this will be overridden with pass_all, but let us keep it just in case
3259 lt_cv_deplibs_check_method
="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3263 *-32|
*"-32 ") libmagic
=32-bit;;
3264 *-n32|
*"-n32 ") libmagic
=N32
;;
3265 *-64|
*"-64 ") libmagic
=64-bit;;
3266 *) libmagic
=never-match
;;
3268 # this will be overridden with pass_all, but let us keep it just in case
3269 lt_cv_deplibs_check_method
="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3272 lt_cv_file_magic_test_file
=`echo /lib${libsuff}/libc.so*`
3273 lt_cv_deplibs_check_method
=pass_all
3276 # This must be Linux ELF.
3278 lt_cv_deplibs_check_method
=pass_all
3281 netbsd
* | knetbsd
*-gnu)
3282 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
3283 lt_cv_deplibs_check_method
='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3285 lt_cv_deplibs_check_method
='match_pattern /lib[^/\.]+\.so$'
3290 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3291 lt_cv_file_magic_cmd
=/usr
/bin
/file
3292 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
3295 osf3
* | osf4
* | osf5
*)
3296 # this will be overridden with pass_all, but let us keep it just in case
3297 lt_cv_deplibs_check_method
='file_magic COFF format alpha shared library'
3298 lt_cv_file_magic_test_file
=/shlib
/libc.so
3299 lt_cv_deplibs_check_method
=pass_all
3303 lt_cv_deplibs_check_method
=pass_all
3307 lt_cv_deplibs_check_method
=pass_all
3308 lt_cv_file_magic_test_file
=/lib
/libc.so
3311 sysv5uw
[78]* | sysv4
*uw2
*)
3312 lt_cv_deplibs_check_method
=pass_all
3315 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
3316 case $host_vendor in
3318 lt_cv_deplibs_check_method
=pass_all
3321 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]'
3322 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
3329 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3330 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3331 file_magic_cmd
=$lt_cv_file_magic_cmd
3332 deplibs_check_method
=$lt_cv_deplibs_check_method
3338 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3340 # Only perform the check for file, if the check method requires it
3341 case $deplibs_check_method in
3343 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3344 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3345 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3346 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3347 echo $ECHO_N "(cached) $ECHO_C" >&6
3351 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
3354 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
3357 ac_save_MAGIC_CMD
="$MAGIC_CMD"
3358 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3359 ac_dummy
="/usr/bin:$PATH"
3360 for ac_dir
in $ac_dummy; do
3361 test -z "$ac_dir" && ac_dir
=.
3362 if test -f $ac_dir/${ac_tool_prefix}file; then
3363 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
3364 if test -n "$file_magic_test_file"; then
3365 case $deplibs_check_method in
3367 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3368 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
3369 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
3370 egrep "$file_magic_regex" > /dev
/null
; then
3375 *** Warning: the command libtool uses to detect shared libraries,
3376 *** $file_magic_cmd, produces output that libtool cannot recognize.
3377 *** The result is that libtool may fail to recognize shared libraries
3378 *** as such. This will affect the creation of libtool libraries that
3379 *** depend on shared libraries, but programs linked with such libtool
3380 *** libraries will work regardless of this problem. Nevertheless, you
3381 *** may want to report the problem to your system manager and/or to
3382 *** bug-libtool@gnu.org
3392 MAGIC_CMD
="$ac_save_MAGIC_CMD"
3397 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
3398 if test -n "$MAGIC_CMD"; then
3399 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3400 echo "${ECHO_T}$MAGIC_CMD" >&6
3402 echo "$as_me:$LINENO: result: no" >&5
3403 echo "${ECHO_T}no" >&6
3406 if test -z "$lt_cv_path_MAGIC_CMD"; then
3407 if test -n "$ac_tool_prefix"; then
3408 echo "$as_me:$LINENO: checking for file" >&5
3409 echo $ECHO_N "checking for file... $ECHO_C" >&6
3410 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3411 echo $ECHO_N "(cached) $ECHO_C" >&6
3415 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
3418 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
3421 ac_save_MAGIC_CMD
="$MAGIC_CMD"
3422 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3423 ac_dummy
="/usr/bin:$PATH"
3424 for ac_dir
in $ac_dummy; do
3425 test -z "$ac_dir" && ac_dir
=.
3426 if test -f $ac_dir/file; then
3427 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
3428 if test -n "$file_magic_test_file"; then
3429 case $deplibs_check_method in
3431 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3432 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
3433 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
3434 egrep "$file_magic_regex" > /dev
/null
; then
3439 *** Warning: the command libtool uses to detect shared libraries,
3440 *** $file_magic_cmd, produces output that libtool cannot recognize.
3441 *** The result is that libtool may fail to recognize shared libraries
3442 *** as such. This will affect the creation of libtool libraries that
3443 *** depend on shared libraries, but programs linked with such libtool
3444 *** libraries will work regardless of this problem. Nevertheless, you
3445 *** may want to report the problem to your system manager and/or to
3446 *** bug-libtool@gnu.org
3456 MAGIC_CMD
="$ac_save_MAGIC_CMD"
3461 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
3462 if test -n "$MAGIC_CMD"; then
3463 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3464 echo "${ECHO_T}$MAGIC_CMD" >&6
3466 echo "$as_me:$LINENO: result: no" >&5
3467 echo "${ECHO_T}no" >&6
3479 if test -n "$ac_tool_prefix"; then
3480 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3481 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3482 echo "$as_me:$LINENO: checking for $ac_word" >&5
3483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3484 if test "${ac_cv_prog_RANLIB+set}" = set; then
3485 echo $ECHO_N "(cached) $ECHO_C" >&6
3487 if test -n "$RANLIB"; then
3488 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3490 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3494 test -z "$as_dir" && as_dir
=.
3495 for ac_exec_ext
in '' $ac_executable_extensions; do
3496 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3497 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3506 RANLIB
=$ac_cv_prog_RANLIB
3507 if test -n "$RANLIB"; then
3508 echo "$as_me:$LINENO: result: $RANLIB" >&5
3509 echo "${ECHO_T}$RANLIB" >&6
3511 echo "$as_me:$LINENO: result: no" >&5
3512 echo "${ECHO_T}no" >&6
3516 if test -z "$ac_cv_prog_RANLIB"; then
3517 ac_ct_RANLIB
=$RANLIB
3518 # Extract the first word of "ranlib", so it can be a program name with args.
3519 set dummy ranlib
; ac_word
=$2
3520 echo "$as_me:$LINENO: checking for $ac_word" >&5
3521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3522 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3523 echo $ECHO_N "(cached) $ECHO_C" >&6
3525 if test -n "$ac_ct_RANLIB"; then
3526 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3528 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3532 test -z "$as_dir" && as_dir
=.
3533 for ac_exec_ext
in '' $ac_executable_extensions; do
3534 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3535 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3542 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3545 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3546 if test -n "$ac_ct_RANLIB"; then
3547 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3548 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3550 echo "$as_me:$LINENO: result: no" >&5
3551 echo "${ECHO_T}no" >&6
3554 RANLIB
=$ac_ct_RANLIB
3556 RANLIB
="$ac_cv_prog_RANLIB"
3559 if test -n "$ac_tool_prefix"; then
3560 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3561 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3562 echo "$as_me:$LINENO: checking for $ac_word" >&5
3563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3564 if test "${ac_cv_prog_STRIP+set}" = set; then
3565 echo $ECHO_N "(cached) $ECHO_C" >&6
3567 if test -n "$STRIP"; then
3568 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3570 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3574 test -z "$as_dir" && as_dir
=.
3575 for ac_exec_ext
in '' $ac_executable_extensions; do
3576 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3577 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3586 STRIP
=$ac_cv_prog_STRIP
3587 if test -n "$STRIP"; then
3588 echo "$as_me:$LINENO: result: $STRIP" >&5
3589 echo "${ECHO_T}$STRIP" >&6
3591 echo "$as_me:$LINENO: result: no" >&5
3592 echo "${ECHO_T}no" >&6
3596 if test -z "$ac_cv_prog_STRIP"; then
3598 # Extract the first word of "strip", so it can be a program name with args.
3599 set dummy strip
; ac_word
=$2
3600 echo "$as_me:$LINENO: checking for $ac_word" >&5
3601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3602 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3603 echo $ECHO_N "(cached) $ECHO_C" >&6
3605 if test -n "$ac_ct_STRIP"; then
3606 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3608 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3612 test -z "$as_dir" && as_dir
=.
3613 for ac_exec_ext
in '' $ac_executable_extensions; do
3614 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3615 ac_cv_prog_ac_ct_STRIP
="strip"
3616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3622 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP
=":"
3625 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3626 if test -n "$ac_ct_STRIP"; then
3627 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3628 echo "${ECHO_T}$ac_ct_STRIP" >&6
3630 echo "$as_me:$LINENO: result: no" >&5
3631 echo "${ECHO_T}no" >&6
3636 STRIP
="$ac_cv_prog_STRIP"
3640 # Check for any special flags to pass to ltconfig.
3641 libtool_flags
="--cache-file=$cache_file"
3642 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
3643 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
3644 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
3645 test "$GCC" = yes && libtool_flags
="$libtool_flags --with-gcc"
3646 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
3649 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3650 if test "${enable_libtool_lock+set}" = set; then
3651 enableval
="$enable_libtool_lock"
3654 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
3655 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
3658 # Check whether --with-pic or --without-pic was given.
3659 if test "${with_pic+set}" = set; then
3665 test x
"$pic_mode" = xyes
&& libtool_flags
="$libtool_flags --prefer-pic"
3666 test x
"$pic_mode" = xno
&& libtool_flags
="$libtool_flags --prefer-non-pic"
3668 # Some flags need to be propagated to the compiler or linker for good
3672 # Find out which ABI we are using.
3673 echo '#line 3673 "configure"' > conftest.
$ac_ext
3674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3675 (eval $ac_compile) 2>&5
3677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678 (exit $ac_status); }; then
3679 if test "$lt_cv_prog_gnu_ld" = yes; then
3680 case `/usr/bin/file conftest.$ac_objext` in
3682 LD
="${LD-ld} -melf32bsmip"
3685 LD
="${LD-ld} -melf32bmipn32"
3688 LD
="${LD-ld} -melf64bmip"
3692 case `/usr/bin/file conftest.$ac_objext` in
3709 # Find out which ABI we are using.
3710 echo 'int i;' > conftest.
$ac_ext
3711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3712 (eval $ac_compile) 2>&5
3714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715 (exit $ac_status); }; then
3716 case "`/usr/bin/file conftest.o`" in
3728 x86_64-
*linux
*|ppc
*-*linux
*|powerpc
*-*linux
*|s390
*-*linux
*|sparc
*-*linux
*)
3729 # Find out which ABI we are using.
3730 echo 'int i;' > conftest.
$ac_ext
3731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3732 (eval $ac_compile) 2>&5
3734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735 (exit $ac_status); }; then
3736 case "`/usr/bin/file conftest.o`" in
3740 LD
="${LD-ld} -m elf_i386"
3742 ppc64-
*linux
*|powerpc64-
*linux
*)
3743 LD
="${LD-ld} -m elf32ppclinux"
3746 LD
="${LD-ld} -m elf_s390"
3749 LD
="${LD-ld} -m elf32_sparc"
3756 LD
="${LD-ld} -m elf_x86_64"
3758 ppc
*-*linux
*|powerpc
*-*linux
*)
3759 LD
="${LD-ld} -m elf64ppc"
3762 LD
="${LD-ld} -m elf64_s390"
3765 LD
="${LD-ld} -m elf64_sparc"
3775 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3776 SAVE_CFLAGS
="$CFLAGS"
3777 CFLAGS
="$CFLAGS -belf"
3778 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3779 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3780 if test "${lt_cv_cc_needs_belf+set}" = set; then
3781 echo $ECHO_N "(cached) $ECHO_C" >&6
3786 ac_cpp
='$CPP $CPPFLAGS'
3787 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3788 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3789 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3791 if test x
$gcc_no_link = xyes
; then
3792 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
3793 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
3794 { (exit 1); exit 1; }; }
3796 cat >conftest.
$ac_ext <<_ACEOF
3799 cat confdefs.h
>>conftest.
$ac_ext
3800 cat >>conftest.
$ac_ext <<_ACEOF
3801 /* end confdefs.h. */
3811 rm -f conftest.
$ac_objext conftest
$ac_exeext
3812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3813 (eval $ac_link) 2>conftest.er1
3815 grep -v '^ *+' conftest.er1
>conftest.err
3817 cat conftest.err
>&5
3818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819 (exit $ac_status); } &&
3820 { ac_try
='test -z "$ac_c_werror_flag"
3821 || test ! -s conftest.err'
3822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826 (exit $ac_status); }; } &&
3827 { ac_try
='test -s conftest$ac_exeext'
3828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832 (exit $ac_status); }; }; then
3833 lt_cv_cc_needs_belf
=yes
3835 echo "$as_me: failed program was:" >&5
3836 sed 's/^/| /' conftest.
$ac_ext >&5
3838 lt_cv_cc_needs_belf
=no
3840 rm -f conftest.err conftest.
$ac_objext \
3841 conftest
$ac_exeext conftest.
$ac_ext
3843 ac_cpp
='$CPP $CPPFLAGS'
3844 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3845 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3846 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3849 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3850 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3851 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
3852 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3853 CFLAGS
="$SAVE_CFLAGS"
3861 # Save cache, so that ltconfig can load it
3862 cat >confcache
<<\_ACEOF
3863 # This file is a shell script that caches the results of configure
3864 # tests run on this system so they can be shared between configure
3865 # scripts and configure runs, see configure's option --config-cache.
3866 # It is not useful on other systems. If it contains results you don't
3867 # want to keep, you may remove or edit it.
3869 # config.status only pays attention to the cache file if you give it
3870 # the --recheck option to rerun configure.
3872 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3873 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3878 # The following way of writing the cache mishandles newlines in values,
3879 # but we know of no workaround that is simple, portable, and efficient.
3880 # So, don't put newlines in cache variables' values.
3881 # Ultrix sh set writes to stderr and can't be redirected directly,
3882 # and sets the high bit in the cache file unless we assign to the vars.
3885 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3887 # `set' does not quote correctly, so add quotes (double-quote
3888 # substitution turns \\\\ into \\, and sed turns \\ into \).
3891 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3894 # `set' quotes correctly as required by POSIX, so do not add quotes.
3896 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3903 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3905 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3907 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
3908 if test -w $cache_file; then
3909 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3910 cat confcache
>$cache_file
3912 echo "not updating unwritable cache $cache_file"
3917 # Actually configure libtool. ac_aux_dir is where install-sh is found.
3918 AR
="$AR" LTCC
="$CC" CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
3919 MAGIC_CMD
="$MAGIC_CMD" LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
3920 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" STRIP
="$STRIP" \
3921 AS
="$AS" DLLTOOL
="$DLLTOOL" OBJDUMP
="$OBJDUMP" \
3922 objext
="$OBJEXT" exeext
="$EXEEXT" reload_flag
="$reload_flag" \
3923 deplibs_check_method
="$deplibs_check_method" file_magic_cmd
="$file_magic_cmd" \
3924 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
3925 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh
$host \
3926 ||
{ { echo "$as_me:$LINENO: error: libtool configure failed" >&5
3927 echo "$as_me: error: libtool configure failed" >&2;}
3928 { (exit 1); exit 1; }; }
3930 # Reload cache, that may have been modified by ltconfig
3931 if test -r "$cache_file"; then
3932 # Some versions of bash will fail to source /dev/null (special
3933 # files actually), so we avoid doing that.
3934 if test -f "$cache_file"; then
3935 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
3936 echo "$as_me: loading cache $cache_file" >&6;}
3938 [\\/]* | ?
:[\\/]* ) .
$cache_file;;
3939 *) . .
/$cache_file;;
3943 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
3944 echo "$as_me: creating cache $cache_file" >&6;}
3949 # This can be used to rebuild libtool when needed
3950 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
3952 # Always use our own libtool.
3953 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
3955 # Redirect the config.log output again, so that the ltconfig log is not
3956 # clobbered by the next message.
3957 exec 5>>.
/config.log
3965 if test x
$GCC = xyes
; then
3966 ac_libiberty_warn_cflags
='-W -Wall -Wtraditional -pedantic'
3970 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3971 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3972 if test "${ac_cv_c_const+set}" = set; then
3973 echo $ECHO_N "(cached) $ECHO_C" >&6
3975 cat >conftest.
$ac_ext <<_ACEOF
3978 cat confdefs.h
>>conftest.
$ac_ext
3979 cat >>conftest.
$ac_ext <<_ACEOF
3980 /* end confdefs.h. */
3985 /* FIXME: Include the comments suggested by Paul. */
3987 /* Ultrix mips cc rejects this. */
3988 typedef int charset[2];
3990 /* SunOS 4.1.1 cc rejects this. */
3991 char const *const *ccp;
3993 /* NEC SVR4.0.2 mips cc rejects this. */
3994 struct point {int x, y;};
3995 static struct point const zero = {0,0};
3996 /* AIX XL C 1.02.0.0 rejects this.
3997 It does not let you subtract one const X* pointer from another in
3998 an arm of an if-expression whose if-part is not a constant
4000 const char *g = "string";
4001 ccp = &g + (g ? g-g : 0);
4002 /* HPUX 7.0 cc rejects these. */
4005 ccp = (char const *const *) p;
4006 { /* SCO 3.2v4 cc rejects this. */
4008 char const *s = 0 ? (char *) 0 : (char const *) 0;
4012 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4014 const int *foo = &x[0];
4017 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4018 typedef const int *iptr;
4022 { /* AIX XL C 1.02.0.0 rejects this saying
4023 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4024 struct s { int j; const int *ap[3]; };
4025 struct s *b; b->j = 5;
4027 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4036 rm -f conftest.
$ac_objext
4037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4038 (eval $ac_compile) 2>conftest.er1
4040 grep -v '^ *+' conftest.er1
>conftest.err
4042 cat conftest.err
>&5
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); } &&
4045 { ac_try
='test -z "$ac_c_werror_flag"
4046 || test ! -s conftest.err'
4047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); }; } &&
4052 { ac_try
='test -s conftest.$ac_objext'
4053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057 (exit $ac_status); }; }; then
4060 echo "$as_me: failed program was:" >&5
4061 sed 's/^/| /' conftest.
$ac_ext >&5
4065 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4067 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4068 echo "${ECHO_T}$ac_cv_c_const" >&6
4069 if test $ac_cv_c_const = no
; then
4071 cat >>confdefs.h
<<\_ACEOF
4077 echo "$as_me:$LINENO: checking for inline" >&5
4078 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4079 if test "${ac_cv_c_inline+set}" = set; then
4080 echo $ECHO_N "(cached) $ECHO_C" >&6
4083 for ac_kw
in inline __inline__ __inline
; do
4084 cat >conftest.
$ac_ext <<_ACEOF
4087 cat confdefs.h
>>conftest.
$ac_ext
4088 cat >>conftest.
$ac_ext <<_ACEOF
4089 /* end confdefs.h. */
4092 static $ac_kw foo_t static_foo () {return 0; }
4093 $ac_kw foo_t foo () {return 0; }
4097 rm -f conftest.
$ac_objext
4098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4099 (eval $ac_compile) 2>conftest.er1
4101 grep -v '^ *+' conftest.er1
>conftest.err
4103 cat conftest.err
>&5
4104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105 (exit $ac_status); } &&
4106 { ac_try
='test -z "$ac_c_werror_flag"
4107 || test ! -s conftest.err'
4108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112 (exit $ac_status); }; } &&
4113 { ac_try
='test -s conftest.$ac_objext'
4114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118 (exit $ac_status); }; }; then
4119 ac_cv_c_inline
=$ac_kw; break
4121 echo "$as_me: failed program was:" >&5
4122 sed 's/^/| /' conftest.
$ac_ext >&5
4125 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4129 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4130 echo "${ECHO_T}$ac_cv_c_inline" >&6
4133 case $ac_cv_c_inline in
4136 case $ac_cv_c_inline in
4138 *) ac_val
=$ac_cv_c_inline;;
4140 cat >>confdefs.h
<<_ACEOF
4142 #define inline $ac_val
4148 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4149 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4150 if test "${ac_cv_c_bigendian+set}" = set; then
4151 echo $ECHO_N "(cached) $ECHO_C" >&6
4153 ac_cv_c_bigendian
=unknown
4154 # See if sys/param.h defines the BYTE_ORDER macro.
4155 cat >conftest.
$ac_ext <<_ACEOF
4158 cat confdefs.h
>>conftest.
$ac_ext
4159 cat >>conftest.
$ac_ext <<_ACEOF
4160 /* end confdefs.h. */
4161 #include <sys/types.h>
4162 #include <sys/param.h>
4167 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4174 rm -f conftest.
$ac_objext
4175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4176 (eval $ac_compile) 2>conftest.er1
4178 grep -v '^ *+' conftest.er1
>conftest.err
4180 cat conftest.err
>&5
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); } &&
4183 { ac_try
='test -z "$ac_c_werror_flag"
4184 || test ! -s conftest.err'
4185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189 (exit $ac_status); }; } &&
4190 { ac_try
='test -s conftest.$ac_objext'
4191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); }; }; then
4196 # It does; now see whether it defined to BIG_ENDIAN or not.
4197 cat >conftest.
$ac_ext <<_ACEOF
4200 cat confdefs.h
>>conftest.
$ac_ext
4201 cat >>conftest.
$ac_ext <<_ACEOF
4202 /* end confdefs.h. */
4203 #include <sys/types.h>
4204 #include <sys/param.h>
4209 #if BYTE_ORDER != BIG_ENDIAN
4216 rm -f conftest.
$ac_objext
4217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4218 (eval $ac_compile) 2>conftest.er1
4220 grep -v '^ *+' conftest.er1
>conftest.err
4222 cat conftest.err
>&5
4223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224 (exit $ac_status); } &&
4225 { ac_try
='test -z "$ac_c_werror_flag"
4226 || test ! -s conftest.err'
4227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231 (exit $ac_status); }; } &&
4232 { ac_try
='test -s conftest.$ac_objext'
4233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237 (exit $ac_status); }; }; then
4238 ac_cv_c_bigendian
=yes
4240 echo "$as_me: failed program was:" >&5
4241 sed 's/^/| /' conftest.
$ac_ext >&5
4243 ac_cv_c_bigendian
=no
4245 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4247 echo "$as_me: failed program was:" >&5
4248 sed 's/^/| /' conftest.
$ac_ext >&5
4251 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4252 if test $ac_cv_c_bigendian = unknown
; then
4253 if test "$cross_compiling" = yes; then
4254 echo $ac_n "cross-compiling... " 2>&6
4256 cat >conftest.
$ac_ext <<_ACEOF
4259 cat confdefs.h
>>conftest.
$ac_ext
4260 cat >>conftest.
$ac_ext <<_ACEOF
4261 /* end confdefs.h. */
4263 /* Are we little or big endian? From Harbison&Steele. */
4267 char c[sizeof (long)];
4270 exit (u.c[sizeof (long) - 1] == 1);
4273 rm -f conftest
$ac_exeext
4274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4275 (eval $ac_link) 2>&5
4277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283 (exit $ac_status); }; }; then
4284 ac_cv_c_bigendian
=no
4286 echo "$as_me: program exited with status $ac_status" >&5
4287 echo "$as_me: failed program was:" >&5
4288 sed 's/^/| /' conftest.
$ac_ext >&5
4291 ac_cv_c_bigendian
=yes
4293 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4297 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4298 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4299 if test $ac_cv_c_bigendian = unknown
; then
4300 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
4301 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
4303 cat >conftest.c
<<EOF
4304 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4305 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4306 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
4307 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4308 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4309 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
4310 int main() { _ascii (); _ebcdic (); return 0; }
4312 if test -f conftest.c
; then
4313 if ${CC-cc} ${CFLAGS} -c conftest.c
-o conftest.o
&& test -f conftest.o
; then
4314 if test `grep -l BIGenDianSyS conftest.o` ; then
4315 echo $ac_n ' big endian probe OK, ' 1>&6
4316 ac_cv_c_bigendian
=yes
4318 if test `grep -l LiTTleEnDian conftest.o` ; then
4319 echo $ac_n ' little endian probe OK, ' 1>&6
4320 if test $ac_cv_c_bigendian = yes ; then
4321 ac_cv_c_bigendian
=unknown
;
4323 ac_cv_c_bigendian
=no
4326 echo $ac_n 'guessing bigendian ... ' >&6
4329 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4330 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4332 if test $ac_cv_c_bigendian = yes; then
4334 cat >>confdefs.h
<<\_ACEOF
4335 #define WORDS_BIGENDIAN 1
4339 cat >>confdefs.h
<<\_ACEOF
4340 #define HOST_WORDS_BIG_ENDIAN 1
4348 cat >>confdefs.h
<<_ACEOF
4349 #define BYTEORDER $BYTEORDER
4352 if test $ac_cv_c_bigendian = unknown
; then
4353 { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
4354 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
4355 { (exit 1); exit 1; }; }
4361 ac_config_headers
="$ac_config_headers config.h:config.in"
4365 # Find a good install program. We prefer a C program (faster),
4366 # so one script is as good as another. But avoid the broken or
4367 # incompatible versions:
4368 # SysV /etc/install, /usr/sbin/install
4369 # SunOS /usr/etc/install
4370 # IRIX /sbin/install
4372 # AmigaOS /C/install, which installs bootblocks on floppy discs
4373 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4374 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4375 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4376 # OS/2's system install, which has a completely different semantic
4377 # ./install, which can be erroneously created by make from ./install.sh.
4378 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4379 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4380 if test -z "$INSTALL"; then
4381 if test "${ac_cv_path_install+set}" = set; then
4382 echo $ECHO_N "(cached) $ECHO_C" >&6
4384 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4388 test -z "$as_dir" && as_dir
=.
4389 # Account for people who put trailing slashes in PATH elements.
4391 .
/ | .
// |
/cC
/* | \
4392 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4393 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4396 # OSF1 and SCO ODT 3.0 have their own names for install.
4397 # Don't use installbsd from OSF since it installs stuff as root
4399 for ac_prog
in ginstall scoinst
install; do
4400 for ac_exec_ext
in '' $ac_executable_extensions; do
4401 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4402 if test $ac_prog = install &&
4403 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4404 # AIX install. It has an incompatible calling convention.
4406 elif test $ac_prog = install &&
4407 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4408 # program-specific install script used by HP pwplus--don't use.
4411 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4423 if test "${ac_cv_path_install+set}" = set; then
4424 INSTALL
=$ac_cv_path_install
4426 # As a last resort, use the slow shell script. We don't cache a
4427 # path for INSTALL within a source directory, because that will
4428 # break other packages using the cache if that directory is
4429 # removed, or if the path is relative.
4430 INSTALL
=$ac_install_sh
4433 echo "$as_me:$LINENO: result: $INSTALL" >&5
4434 echo "${ECHO_T}$INSTALL" >&6
4436 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4437 # It thinks the first close brace ends the variable substitution.
4438 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4440 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4442 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4445 .
${srcdir}/config.table
4446 host_makefile_frag
=${frag}
4449 # It's OK to check for header files. Although the compiler may not be
4450 # able to link anything, it had better be able to at least compile
4476 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
4478 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4479 echo "$as_me:$LINENO: checking for $ac_header" >&5
4480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4481 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4482 echo $ECHO_N "(cached) $ECHO_C" >&6
4484 cat >conftest.
$ac_ext <<_ACEOF
4487 cat confdefs.h
>>conftest.
$ac_ext
4488 cat >>conftest.
$ac_ext <<_ACEOF
4489 /* end confdefs.h. */
4490 #include <$ac_header>
4492 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4493 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4495 grep -v '^ *+' conftest.er1
>conftest.err
4497 cat conftest.err
>&5
4498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499 (exit $ac_status); } >/dev
/null
; then
4500 if test -s conftest.err
; then
4501 ac_cpp_err
=$ac_c_preproc_warn_flag
4502 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4509 if test -z "$ac_cpp_err"; then
4510 eval "$as_ac_Header=yes"
4512 echo "$as_me: failed program was:" >&5
4513 sed 's/^/| /' conftest.
$ac_ext >&5
4515 eval "$as_ac_Header=no"
4517 rm -f conftest.err conftest.
$ac_ext
4519 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4520 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4521 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4522 cat >>confdefs.h
<<_ACEOF
4523 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4529 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4530 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
4531 if test "${ac_cv_header_sys_wait_h+set}" = set; then
4532 echo $ECHO_N "(cached) $ECHO_C" >&6
4534 cat >conftest.
$ac_ext <<_ACEOF
4537 cat confdefs.h
>>conftest.
$ac_ext
4538 cat >>conftest.
$ac_ext <<_ACEOF
4539 /* end confdefs.h. */
4540 #include <sys/types.h>
4541 #include <sys/wait.h>
4543 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4546 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4554 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4559 rm -f conftest.
$ac_objext
4560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4561 (eval $ac_compile) 2>conftest.er1
4563 grep -v '^ *+' conftest.er1
>conftest.err
4565 cat conftest.err
>&5
4566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567 (exit $ac_status); } &&
4568 { ac_try
='test -z "$ac_c_werror_flag"
4569 || test ! -s conftest.err'
4570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574 (exit $ac_status); }; } &&
4575 { ac_try
='test -s conftest.$ac_objext'
4576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580 (exit $ac_status); }; }; then
4581 ac_cv_header_sys_wait_h
=yes
4583 echo "$as_me: failed program was:" >&5
4584 sed 's/^/| /' conftest.
$ac_ext >&5
4586 ac_cv_header_sys_wait_h
=no
4588 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4590 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4591 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
4592 if test $ac_cv_header_sys_wait_h = yes; then
4594 cat >>confdefs.h
<<\_ACEOF
4595 #define HAVE_SYS_WAIT_H 1
4600 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4601 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4602 if test "${ac_cv_header_time+set}" = set; then
4603 echo $ECHO_N "(cached) $ECHO_C" >&6
4605 cat >conftest.
$ac_ext <<_ACEOF
4608 cat confdefs.h
>>conftest.
$ac_ext
4609 cat >>conftest.
$ac_ext <<_ACEOF
4610 /* end confdefs.h. */
4611 #include <sys/types.h>
4612 #include <sys/time.h>
4618 if ((struct tm *) 0)
4624 rm -f conftest.
$ac_objext
4625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4626 (eval $ac_compile) 2>conftest.er1
4628 grep -v '^ *+' conftest.er1
>conftest.err
4630 cat conftest.err
>&5
4631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632 (exit $ac_status); } &&
4633 { ac_try
='test -z "$ac_c_werror_flag"
4634 || test ! -s conftest.err'
4635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639 (exit $ac_status); }; } &&
4640 { ac_try
='test -s conftest.$ac_objext'
4641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645 (exit $ac_status); }; }; then
4646 ac_cv_header_time
=yes
4648 echo "$as_me: failed program was:" >&5
4649 sed 's/^/| /' conftest.
$ac_ext >&5
4651 ac_cv_header_time
=no
4653 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4655 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4656 echo "${ECHO_T}$ac_cv_header_time" >&6
4657 if test $ac_cv_header_time = yes; then
4659 cat >>confdefs.h
<<\_ACEOF
4660 #define TIME_WITH_SYS_TIME 1
4666 echo "$as_me:$LINENO: checking whether errno must be declared" >&5
4667 echo $ECHO_N "checking whether errno must be declared... $ECHO_C" >&6
4668 if test "${libiberty_cv_declare_errno+set}" = set; then
4669 echo $ECHO_N "(cached) $ECHO_C" >&6
4671 cat >conftest.
$ac_ext <<_ACEOF
4674 cat confdefs.h
>>conftest.
$ac_ext
4675 cat >>conftest.
$ac_ext <<_ACEOF
4676 /* end confdefs.h. */
4686 rm -f conftest.
$ac_objext
4687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4688 (eval $ac_compile) 2>conftest.er1
4690 grep -v '^ *+' conftest.er1
>conftest.err
4692 cat conftest.err
>&5
4693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694 (exit $ac_status); } &&
4695 { ac_try
='test -z "$ac_c_werror_flag"
4696 || test ! -s conftest.err'
4697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701 (exit $ac_status); }; } &&
4702 { ac_try
='test -s conftest.$ac_objext'
4703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); }; }; then
4708 libiberty_cv_declare_errno
=no
4710 echo "$as_me: failed program was:" >&5
4711 sed 's/^/| /' conftest.
$ac_ext >&5
4713 libiberty_cv_declare_errno
=yes
4715 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4717 echo "$as_me:$LINENO: result: $libiberty_cv_declare_errno" >&5
4718 echo "${ECHO_T}$libiberty_cv_declare_errno" >&6
4719 if test $libiberty_cv_declare_errno = yes
4721 cat >>confdefs.h
<<\_ACEOF
4722 #define NEED_DECLARATION_ERRNO 1
4728 # Determine the size of an int for struct fibnode.
4729 echo "$as_me:$LINENO: checking for egrep" >&5
4730 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4731 if test "${ac_cv_prog_egrep+set}" = set; then
4732 echo $ECHO_N "(cached) $ECHO_C" >&6
4734 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
4735 then ac_cv_prog_egrep
='grep -E'
4736 else ac_cv_prog_egrep
='egrep'
4739 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4740 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4741 EGREP
=$ac_cv_prog_egrep
4744 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4745 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4746 if test "${ac_cv_header_stdc+set}" = set; then
4747 echo $ECHO_N "(cached) $ECHO_C" >&6
4749 cat >conftest.
$ac_ext <<_ACEOF
4752 cat confdefs.h
>>conftest.
$ac_ext
4753 cat >>conftest.
$ac_ext <<_ACEOF
4754 /* end confdefs.h. */
4768 rm -f conftest.
$ac_objext
4769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4770 (eval $ac_compile) 2>conftest.er1
4772 grep -v '^ *+' conftest.er1
>conftest.err
4774 cat conftest.err
>&5
4775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776 (exit $ac_status); } &&
4777 { ac_try
='test -z "$ac_c_werror_flag"
4778 || test ! -s conftest.err'
4779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783 (exit $ac_status); }; } &&
4784 { ac_try
='test -s conftest.$ac_objext'
4785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); }; }; then
4790 ac_cv_header_stdc
=yes
4792 echo "$as_me: failed program was:" >&5
4793 sed 's/^/| /' conftest.
$ac_ext >&5
4795 ac_cv_header_stdc
=no
4797 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4799 if test $ac_cv_header_stdc = yes; then
4800 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4801 cat >conftest.
$ac_ext <<_ACEOF
4804 cat confdefs.h
>>conftest.
$ac_ext
4805 cat >>conftest.
$ac_ext <<_ACEOF
4806 /* end confdefs.h. */
4810 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4811 $EGREP "memchr" >/dev
/null
2>&1; then
4814 ac_cv_header_stdc
=no
4820 if test $ac_cv_header_stdc = yes; then
4821 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4822 cat >conftest.
$ac_ext <<_ACEOF
4825 cat confdefs.h
>>conftest.
$ac_ext
4826 cat >>conftest.
$ac_ext <<_ACEOF
4827 /* end confdefs.h. */
4831 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4832 $EGREP "free" >/dev
/null
2>&1; then
4835 ac_cv_header_stdc
=no
4841 if test $ac_cv_header_stdc = yes; then
4842 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4843 if test "$cross_compiling" = yes; then
4846 cat >conftest.
$ac_ext <<_ACEOF
4849 cat confdefs.h
>>conftest.
$ac_ext
4850 cat >>conftest.
$ac_ext <<_ACEOF
4851 /* end confdefs.h. */
4853 #if ((' ' & 0x0FF) == 0x020)
4854 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4855 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4857 # define ISLOWER(c) \
4858 (('a' <= (c) && (c) <= 'i') \
4859 || ('j' <= (c) && (c) <= 'r') \
4860 || ('s' <= (c) && (c) <= 'z'))
4861 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4864 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4869 for (i = 0; i < 256; i++)
4870 if (XOR (islower (i), ISLOWER (i))
4871 || toupper (i) != TOUPPER (i))
4876 rm -f conftest
$ac_exeext
4877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4878 (eval $ac_link) 2>&5
4880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886 (exit $ac_status); }; }; then
4889 echo "$as_me: program exited with status $ac_status" >&5
4890 echo "$as_me: failed program was:" >&5
4891 sed 's/^/| /' conftest.
$ac_ext >&5
4894 ac_cv_header_stdc
=no
4896 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4900 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4901 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4902 if test $ac_cv_header_stdc = yes; then
4904 cat >>confdefs.h
<<\_ACEOF
4905 #define STDC_HEADERS 1
4910 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4920 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4921 inttypes.h stdint.h unistd.h
4923 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4924 echo "$as_me:$LINENO: checking for $ac_header" >&5
4925 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4926 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4927 echo $ECHO_N "(cached) $ECHO_C" >&6
4929 cat >conftest.
$ac_ext <<_ACEOF
4932 cat confdefs.h
>>conftest.
$ac_ext
4933 cat >>conftest.
$ac_ext <<_ACEOF
4934 /* end confdefs.h. */
4935 #include <$ac_header>
4937 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4938 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4940 grep -v '^ *+' conftest.er1
>conftest.err
4942 cat conftest.err
>&5
4943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944 (exit $ac_status); } >/dev
/null
; then
4945 if test -s conftest.err
; then
4946 ac_cpp_err
=$ac_c_preproc_warn_flag
4947 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4954 if test -z "$ac_cpp_err"; then
4955 eval "$as_ac_Header=yes"
4957 echo "$as_me: failed program was:" >&5
4958 sed 's/^/| /' conftest.
$ac_ext >&5
4960 eval "$as_ac_Header=no"
4962 rm -f conftest.err conftest.
$ac_ext
4964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4965 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4966 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4967 cat >>confdefs.h
<<_ACEOF
4968 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4975 echo "$as_me:$LINENO: checking for int" >&5
4976 echo $ECHO_N "checking for int... $ECHO_C" >&6
4977 if test "${ac_cv_type_int+set}" = set; then
4978 echo $ECHO_N "(cached) $ECHO_C" >&6
4980 cat >conftest.
$ac_ext <<_ACEOF
4983 cat confdefs.h
>>conftest.
$ac_ext
4984 cat >>conftest.
$ac_ext <<_ACEOF
4985 /* end confdefs.h. */
4986 $ac_includes_default
4998 rm -f conftest.
$ac_objext
4999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5000 (eval $ac_compile) 2>conftest.er1
5002 grep -v '^ *+' conftest.er1
>conftest.err
5004 cat conftest.err
>&5
5005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006 (exit $ac_status); } &&
5007 { ac_try
='test -z "$ac_c_werror_flag"
5008 || test ! -s conftest.err'
5009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013 (exit $ac_status); }; } &&
5014 { ac_try
='test -s conftest.$ac_objext'
5015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019 (exit $ac_status); }; }; then
5022 echo "$as_me: failed program was:" >&5
5023 sed 's/^/| /' conftest.
$ac_ext >&5
5027 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5029 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5030 echo "${ECHO_T}$ac_cv_type_int" >&6
5032 echo "$as_me:$LINENO: checking size of int" >&5
5033 echo $ECHO_N "checking size of int... $ECHO_C" >&6
5034 if test "${ac_cv_sizeof_int+set}" = set; then
5035 echo $ECHO_N "(cached) $ECHO_C" >&6
5037 if test "$ac_cv_type_int" = yes; then
5038 # The cast to unsigned long works around a bug in the HP C Compiler
5039 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5040 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5041 # This bug is HP SR number 8606223364.
5042 if test "$cross_compiling" = yes; then
5043 # Depending upon the size, compute the lo and hi bounds.
5044 cat >conftest.
$ac_ext <<_ACEOF
5047 cat confdefs.h
>>conftest.
$ac_ext
5048 cat >>conftest.
$ac_ext <<_ACEOF
5049 /* end confdefs.h. */
5050 $ac_includes_default
5054 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5061 rm -f conftest.
$ac_objext
5062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5063 (eval $ac_compile) 2>conftest.er1
5065 grep -v '^ *+' conftest.er1
>conftest.err
5067 cat conftest.err
>&5
5068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069 (exit $ac_status); } &&
5070 { ac_try
='test -z "$ac_c_werror_flag"
5071 || test ! -s conftest.err'
5072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076 (exit $ac_status); }; } &&
5077 { ac_try
='test -s conftest.$ac_objext'
5078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082 (exit $ac_status); }; }; then
5085 cat >conftest.
$ac_ext <<_ACEOF
5088 cat confdefs.h
>>conftest.
$ac_ext
5089 cat >>conftest.
$ac_ext <<_ACEOF
5090 /* end confdefs.h. */
5091 $ac_includes_default
5095 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5102 rm -f conftest.
$ac_objext
5103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5104 (eval $ac_compile) 2>conftest.er1
5106 grep -v '^ *+' conftest.er1
>conftest.err
5108 cat conftest.err
>&5
5109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110 (exit $ac_status); } &&
5111 { ac_try
='test -z "$ac_c_werror_flag"
5112 || test ! -s conftest.err'
5113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117 (exit $ac_status); }; } &&
5118 { ac_try
='test -s conftest.$ac_objext'
5119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123 (exit $ac_status); }; }; then
5124 ac_hi
=$ac_mid; break
5126 echo "$as_me: failed program was:" >&5
5127 sed 's/^/| /' conftest.
$ac_ext >&5
5129 ac_lo
=`expr $ac_mid + 1`
5130 if test $ac_lo -le $ac_mid; then
5134 ac_mid
=`expr 2 '*' $ac_mid + 1`
5136 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5139 echo "$as_me: failed program was:" >&5
5140 sed 's/^/| /' conftest.
$ac_ext >&5
5142 cat >conftest.
$ac_ext <<_ACEOF
5145 cat confdefs.h
>>conftest.
$ac_ext
5146 cat >>conftest.
$ac_ext <<_ACEOF
5147 /* end confdefs.h. */
5148 $ac_includes_default
5152 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5159 rm -f conftest.
$ac_objext
5160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5161 (eval $ac_compile) 2>conftest.er1
5163 grep -v '^ *+' conftest.er1
>conftest.err
5165 cat conftest.err
>&5
5166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167 (exit $ac_status); } &&
5168 { ac_try
='test -z "$ac_c_werror_flag"
5169 || test ! -s conftest.err'
5170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174 (exit $ac_status); }; } &&
5175 { ac_try
='test -s conftest.$ac_objext'
5176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5180 (exit $ac_status); }; }; then
5183 cat >conftest.
$ac_ext <<_ACEOF
5186 cat confdefs.h
>>conftest.
$ac_ext
5187 cat >>conftest.
$ac_ext <<_ACEOF
5188 /* end confdefs.h. */
5189 $ac_includes_default
5193 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5200 rm -f conftest.
$ac_objext
5201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5202 (eval $ac_compile) 2>conftest.er1
5204 grep -v '^ *+' conftest.er1
>conftest.err
5206 cat conftest.err
>&5
5207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208 (exit $ac_status); } &&
5209 { ac_try
='test -z "$ac_c_werror_flag"
5210 || test ! -s conftest.err'
5211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5215 (exit $ac_status); }; } &&
5216 { ac_try
='test -s conftest.$ac_objext'
5217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221 (exit $ac_status); }; }; then
5222 ac_lo
=$ac_mid; break
5224 echo "$as_me: failed program was:" >&5
5225 sed 's/^/| /' conftest.
$ac_ext >&5
5227 ac_hi
=`expr '(' $ac_mid ')' - 1`
5228 if test $ac_mid -le $ac_hi; then
5232 ac_mid
=`expr 2 '*' $ac_mid`
5234 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5237 echo "$as_me: failed program was:" >&5
5238 sed 's/^/| /' conftest.
$ac_ext >&5
5242 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5244 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5245 # Binary search between lo and hi bounds.
5246 while test "x$ac_lo" != "x$ac_hi"; do
5247 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5248 cat >conftest.
$ac_ext <<_ACEOF
5251 cat confdefs.h
>>conftest.
$ac_ext
5252 cat >>conftest.
$ac_ext <<_ACEOF
5253 /* end confdefs.h. */
5254 $ac_includes_default
5258 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5265 rm -f conftest.
$ac_objext
5266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5267 (eval $ac_compile) 2>conftest.er1
5269 grep -v '^ *+' conftest.er1
>conftest.err
5271 cat conftest.err
>&5
5272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5273 (exit $ac_status); } &&
5274 { ac_try
='test -z "$ac_c_werror_flag"
5275 || test ! -s conftest.err'
5276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280 (exit $ac_status); }; } &&
5281 { ac_try
='test -s conftest.$ac_objext'
5282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286 (exit $ac_status); }; }; then
5289 echo "$as_me: failed program was:" >&5
5290 sed 's/^/| /' conftest.
$ac_ext >&5
5292 ac_lo
=`expr '(' $ac_mid ')' + 1`
5294 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5297 ?
*) ac_cv_sizeof_int
=$ac_lo;;
5298 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5299 See \`config.log' for more details." >&5
5300 echo "$as_me: error: cannot compute sizeof (int), 77
5301 See \`config.log' for more details." >&2;}
5302 { (exit 1); exit 1; }; } ;;
5305 if test "$cross_compiling" = yes; then
5306 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5307 See \`config.log' for more details." >&5
5308 echo "$as_me: error: cannot run test program while cross compiling
5309 See \`config.log' for more details." >&2;}
5310 { (exit 1); exit 1; }; }
5312 cat >conftest.
$ac_ext <<_ACEOF
5315 cat confdefs.h
>>conftest.
$ac_ext
5316 cat >>conftest.
$ac_ext <<_ACEOF
5317 /* end confdefs.h. */
5318 $ac_includes_default
5319 long longval () { return (long) (sizeof (int)); }
5320 unsigned long ulongval () { return (long) (sizeof (int)); }
5327 FILE *f = fopen ("conftest.val", "w");
5330 if (((long) (sizeof (int))) < 0)
5332 long i = longval ();
5333 if (i != ((long) (sizeof (int))))
5335 fprintf (f, "%ld\n", i);
5339 unsigned long i = ulongval ();
5340 if (i != ((long) (sizeof (int))))
5342 fprintf (f, "%lu\n", i);
5344 exit (ferror (f) || fclose (f) != 0);
5350 rm -f conftest
$ac_exeext
5351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5352 (eval $ac_link) 2>&5
5354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5360 (exit $ac_status); }; }; then
5361 ac_cv_sizeof_int
=`cat conftest.val`
5363 echo "$as_me: program exited with status $ac_status" >&5
5364 echo "$as_me: failed program was:" >&5
5365 sed 's/^/| /' conftest.
$ac_ext >&5
5368 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5369 See \`config.log' for more details." >&5
5370 echo "$as_me: error: cannot compute sizeof (int), 77
5371 See \`config.log' for more details." >&2;}
5372 { (exit 1); exit 1; }; }
5374 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5382 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5383 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5384 cat >>confdefs.h
<<_ACEOF
5385 #define SIZEOF_INT $ac_cv_sizeof_int
5390 echo "$as_me:$LINENO: checking for uintptr_t" >&5
5391 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
5392 if test "${ac_cv_type_uintptr_t+set}" = set; then
5393 echo $ECHO_N "(cached) $ECHO_C" >&6
5395 cat >conftest.
$ac_ext <<_ACEOF
5398 cat confdefs.h
>>conftest.
$ac_ext
5399 cat >>conftest.
$ac_ext <<_ACEOF
5400 /* end confdefs.h. */
5401 $ac_includes_default
5405 if ((uintptr_t *) 0)
5407 if (sizeof (uintptr_t))
5413 rm -f conftest.
$ac_objext
5414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5415 (eval $ac_compile) 2>conftest.er1
5417 grep -v '^ *+' conftest.er1
>conftest.err
5419 cat conftest.err
>&5
5420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5421 (exit $ac_status); } &&
5422 { ac_try
='test -z "$ac_c_werror_flag"
5423 || test ! -s conftest.err'
5424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428 (exit $ac_status); }; } &&
5429 { ac_try
='test -s conftest.$ac_objext'
5430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434 (exit $ac_status); }; }; then
5435 ac_cv_type_uintptr_t
=yes
5437 echo "$as_me: failed program was:" >&5
5438 sed 's/^/| /' conftest.
$ac_ext >&5
5440 ac_cv_type_uintptr_t
=no
5442 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5444 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
5445 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
5446 if test $ac_cv_type_uintptr_t = yes; then
5450 cat >>confdefs.h
<<_ACEOF
5451 #define uintptr_t unsigned long
5457 # Look for a 64-bit type.
5458 echo "$as_me:$LINENO: checking for a 64-bit type" >&5
5459 echo $ECHO_N "checking for a 64-bit type... $ECHO_C" >&6
5460 if test "${liberty_cv_uint64+set}" = set; then
5461 echo $ECHO_N "(cached) $ECHO_C" >&6
5463 cat >conftest.
$ac_ext <<_ACEOF
5466 cat confdefs.h
>>conftest.
$ac_ext
5467 cat >>conftest.
$ac_ext <<_ACEOF
5468 /* end confdefs.h. */
5469 #ifdef HAVE_STDINT_H
5475 extern uint64_t foo;
5480 rm -f conftest.
$ac_objext
5481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5482 (eval $ac_compile) 2>conftest.er1
5484 grep -v '^ *+' conftest.er1
>conftest.err
5486 cat conftest.err
>&5
5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488 (exit $ac_status); } &&
5489 { ac_try
='test -z "$ac_c_werror_flag"
5490 || test ! -s conftest.err'
5491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495 (exit $ac_status); }; } &&
5496 { ac_try
='test -s conftest.$ac_objext'
5497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501 (exit $ac_status); }; }; then
5502 liberty_cv_uint64
=uint64_t
5504 echo "$as_me: failed program was:" >&5
5505 sed 's/^/| /' conftest.
$ac_ext >&5
5507 cat >conftest.
$ac_ext <<_ACEOF
5510 cat confdefs.h
>>conftest.
$ac_ext
5511 cat >>conftest.
$ac_ext <<_ACEOF
5512 /* end confdefs.h. */
5513 #ifdef HAVE_LIMITS_H
5522 extern char foo[sizeof(long) * CHAR_BIT >= 64 ? 1 : -1];
5527 rm -f conftest.
$ac_objext
5528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5529 (eval $ac_compile) 2>conftest.er1
5531 grep -v '^ *+' conftest.er1
>conftest.err
5533 cat conftest.err
>&5
5534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535 (exit $ac_status); } &&
5536 { ac_try
='test -z "$ac_c_werror_flag"
5537 || test ! -s conftest.err'
5538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542 (exit $ac_status); }; } &&
5543 { ac_try
='test -s conftest.$ac_objext'
5544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548 (exit $ac_status); }; }; then
5549 liberty_cv_uint64
="unsigned long"
5551 echo "$as_me: failed program was:" >&5
5552 sed 's/^/| /' conftest.
$ac_ext >&5
5554 cat >conftest.
$ac_ext <<_ACEOF
5557 cat confdefs.h
>>conftest.
$ac_ext
5558 cat >>conftest.
$ac_ext <<_ACEOF
5559 /* end confdefs.h. */
5560 #ifdef HAVE_LIMITS_H
5569 extern char foo[sizeof(long long) * CHAR_BIT >= 64 ? 1 : -1];
5574 rm -f conftest.
$ac_objext
5575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5576 (eval $ac_compile) 2>conftest.er1
5578 grep -v '^ *+' conftest.er1
>conftest.err
5580 cat conftest.err
>&5
5581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582 (exit $ac_status); } &&
5583 { ac_try
='test -z "$ac_c_werror_flag"
5584 || test ! -s conftest.err'
5585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589 (exit $ac_status); }; } &&
5590 { ac_try
='test -s conftest.$ac_objext'
5591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595 (exit $ac_status); }; }; then
5596 liberty_cv_uint64
="unsigned long long"
5598 echo "$as_me: failed program was:" >&5
5599 sed 's/^/| /' conftest.
$ac_ext >&5
5601 liberty_cv_uint64
=none
5603 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5605 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5607 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5610 echo "$as_me:$LINENO: result: $liberty_cv_uint64" >&5
5611 echo "${ECHO_T}$liberty_cv_uint64" >&6
5612 if test "$liberty_cv_uint64" != none
; then
5614 cat >>confdefs.h
<<_ACEOF
5615 #define UNSIGNED_64BIT_TYPE $liberty_cv_uint64
5620 # Given the above check, we always have uintptr_t or a fallback
5621 # definition. So define HAVE_UINTPTR_T in case any imported code
5624 cat >>confdefs.h
<<\_ACEOF
5625 #define HAVE_UINTPTR_T 1
5629 echo "$as_me:$LINENO: checking for pid_t" >&5
5630 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
5631 if test "${ac_cv_type_pid_t+set}" = set; then
5632 echo $ECHO_N "(cached) $ECHO_C" >&6
5634 cat >conftest.
$ac_ext <<_ACEOF
5637 cat confdefs.h
>>conftest.
$ac_ext
5638 cat >>conftest.
$ac_ext <<_ACEOF
5639 /* end confdefs.h. */
5640 $ac_includes_default
5652 rm -f conftest.
$ac_objext
5653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5654 (eval $ac_compile) 2>conftest.er1
5656 grep -v '^ *+' conftest.er1
>conftest.err
5658 cat conftest.err
>&5
5659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660 (exit $ac_status); } &&
5661 { ac_try
='test -z "$ac_c_werror_flag"
5662 || test ! -s conftest.err'
5663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667 (exit $ac_status); }; } &&
5668 { ac_try
='test -s conftest.$ac_objext'
5669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); }; }; then
5674 ac_cv_type_pid_t
=yes
5676 echo "$as_me: failed program was:" >&5
5677 sed 's/^/| /' conftest.
$ac_ext >&5
5681 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5683 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5684 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
5685 if test $ac_cv_type_pid_t = yes; then
5689 cat >>confdefs.h
<<_ACEOF
5696 # This is the list of functions which libiberty will provide if they
5697 # are not available on the host.
5700 funcs
="$funcs atexit"
5701 funcs
="$funcs basename"
5703 funcs
="$funcs bcopy"
5704 funcs
="$funcs bsearch"
5705 funcs
="$funcs bzero"
5706 funcs
="$funcs calloc"
5707 funcs
="$funcs clock"
5709 funcs
="$funcs getcwd"
5710 funcs
="$funcs getpagesize"
5711 funcs
="$funcs index"
5712 funcs
="$funcs insque"
5713 funcs
="$funcs memchr"
5714 funcs
="$funcs memcmp"
5715 funcs
="$funcs memcpy"
5716 funcs
="$funcs memmove"
5717 funcs
="$funcs mempcpy"
5718 funcs
="$funcs memset"
5719 funcs
="$funcs mkstemps"
5720 funcs
="$funcs putenv"
5721 funcs
="$funcs random"
5722 funcs
="$funcs rename"
5723 funcs
="$funcs rindex"
5724 funcs
="$funcs setenv"
5725 funcs
="$funcs snprintf"
5726 funcs
="$funcs sigsetmask"
5727 funcs
="$funcs stpcpy"
5728 funcs
="$funcs stpncpy"
5729 funcs
="$funcs strcasecmp"
5730 funcs
="$funcs strchr"
5731 funcs
="$funcs strdup"
5732 funcs
="$funcs strncasecmp"
5733 funcs
="$funcs strrchr"
5734 funcs
="$funcs strstr"
5735 funcs
="$funcs strtod"
5736 funcs
="$funcs strtol"
5737 funcs
="$funcs strtoul"
5738 funcs
="$funcs tmpnam"
5739 funcs
="$funcs vasprintf"
5740 funcs
="$funcs vfprintf"
5741 funcs
="$funcs vprintf"
5742 funcs
="$funcs vsnprintf"
5743 funcs
="$funcs vsprintf"
5744 funcs
="$funcs waitpid"
5746 # Also in the old function.def file: alloca, vfork, getopt.
5748 vars
="sys_errlist sys_nerr sys_siglist"
5750 checkfuncs
="getrusage on_exit psignal strerror strsignal sysconf times sbrk gettimeofday"
5751 checkfuncs
="$checkfuncs realpath canonicalize_file_name pstat_getstatic pstat_getdynamic sysmp"
5752 checkfuncs
="$checkfuncs getsysinfo table sysctl"
5754 # These are neither executed nor required, but they help keep
5755 # autoheader happy without adding a bunch of text to acconfig.h.
5756 if test "x" = "y"; then
5820 for ac_func
in asprintf atexit
basename bcmp bcopy bsearch bzero calloc
clock \
5821 getcwd getpagesize index insque mkstemps memchr memcmp memcpy \
5822 memmove mempcpy memset putenv random rename rindex sigsetmask \
5823 strcasecmp setenv stpcpy stpncpy strchr strdup strncasecmp strrchr strstr \
5824 strtod strtol strtoul tmpnam vasprintf vfprintf vprintf \
5825 vsprintf waitpid getrusage on_exit psignal strerror strsignal \
5826 sysconf
times sbrk gettimeofday ffs snprintf vsnprintf \
5827 pstat_getstatic pstat_getdynamic sysmp getsysinfo table sysctl \
5828 realpath canonicalize_file_name
5830 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5831 echo "$as_me:$LINENO: checking for $ac_func" >&5
5832 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5833 if eval "test \"\${$as_ac_var+set}\" = set"; then
5834 echo $ECHO_N "(cached) $ECHO_C" >&6
5836 if test x
$gcc_no_link = xyes
; then
5837 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5838 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5839 { (exit 1); exit 1; }; }
5841 cat >conftest.
$ac_ext <<_ACEOF
5844 cat confdefs.h
>>conftest.
$ac_ext
5845 cat >>conftest.
$ac_ext <<_ACEOF
5846 /* end confdefs.h. */
5847 /* System header to define __stub macros and hopefully few prototypes,
5848 which can conflict with char $ac_func (); below.
5849 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5850 <limits.h> exists even on freestanding compilers. Under hpux,
5851 including <limits.h> includes <sys/time.h> and causes problems
5852 checking for functions defined therein. */
5853 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
5854 # include <limits.h>
5856 # include <assert.h>
5858 /* Override any gcc2 internal prototype to avoid an error. */
5863 /* We use char because int might match the return type of a gcc2
5864 builtin and then its argument prototype would still apply. */
5866 /* The GNU C library defines this for functions which it implements
5867 to always fail with ENOSYS. Some functions are actually named
5868 something starting with __ and the normal name is an alias. */
5869 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5872 char (*f) () = $ac_func;
5881 return f != $ac_func;
5886 rm -f conftest.
$ac_objext conftest
$ac_exeext
5887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5888 (eval $ac_link) 2>conftest.er1
5890 grep -v '^ *+' conftest.er1
>conftest.err
5892 cat conftest.err
>&5
5893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894 (exit $ac_status); } &&
5895 { ac_try
='test -z "$ac_c_werror_flag"
5896 || test ! -s conftest.err'
5897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901 (exit $ac_status); }; } &&
5902 { ac_try
='test -s conftest$ac_exeext'
5903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907 (exit $ac_status); }; }; then
5908 eval "$as_ac_var=yes"
5910 echo "$as_me: failed program was:" >&5
5911 sed 's/^/| /' conftest.
$ac_ext >&5
5913 eval "$as_ac_var=no"
5915 rm -f conftest.err conftest.
$ac_objext \
5916 conftest
$ac_exeext conftest.
$ac_ext
5918 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5919 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5920 if test `eval echo '${'$as_ac_var'}'` = yes; then
5921 cat >>confdefs.h
<<_ACEOF
5922 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5929 cat >>confdefs.h
<<\_ACEOF
5930 #define HAVE_SYS_ERRLIST 1
5934 cat >>confdefs.h
<<\_ACEOF
5935 #define HAVE_SYS_NERR 1
5939 cat >>confdefs.h
<<\_ACEOF
5940 #define HAVE_SYS_SIGLIST 1
5945 # For each of these functions, if the host does not provide the
5946 # function we want to put FN.o in LIBOBJS, and if the host does
5947 # provide the function, we want to define HAVE_FN in config.h.
5952 if test -n "${with_target_subdir}"; then
5954 # We are being configured as a target library. AC_REPLACE_FUNCS
5955 # may not work correctly, because the compiler may not be able to
5956 # link executables. Note that we may still be being configured
5959 # If we are being configured for newlib, we know which functions
5960 # newlib provide and which ones we will be expected to provide.
5962 if test "x${with_newlib}" = "xyes"; then
5964 "asprintf.$ac_objext" | \
5965 *" asprintf.$ac_objext" | \
5966 "asprintf.$ac_objext "* | \
5967 *" asprintf.$ac_objext "* ) ;;
5968 *) LIBOBJS
="$LIBOBJS asprintf.$ac_objext" ;;
5972 "basename.$ac_objext" | \
5973 *" basename.$ac_objext" | \
5974 "basename.$ac_objext "* | \
5975 *" basename.$ac_objext "* ) ;;
5976 *) LIBOBJS
="$LIBOBJS basename.$ac_objext" ;;
5980 "insque.$ac_objext" | \
5981 *" insque.$ac_objext" | \
5982 "insque.$ac_objext "* | \
5983 *" insque.$ac_objext "* ) ;;
5984 *) LIBOBJS
="$LIBOBJS insque.$ac_objext" ;;
5988 "random.$ac_objext" | \
5989 *" random.$ac_objext" | \
5990 "random.$ac_objext "* | \
5991 *" random.$ac_objext "* ) ;;
5992 *) LIBOBJS
="$LIBOBJS random.$ac_objext" ;;
5996 "strdup.$ac_objext" | \
5997 *" strdup.$ac_objext" | \
5998 "strdup.$ac_objext "* | \
5999 *" strdup.$ac_objext "* ) ;;
6000 *) LIBOBJS
="$LIBOBJS strdup.$ac_objext" ;;
6004 "vasprintf.$ac_objext" | \
6005 *" vasprintf.$ac_objext" | \
6006 "vasprintf.$ac_objext "* | \
6007 *" vasprintf.$ac_objext "* ) ;;
6008 *) LIBOBJS
="$LIBOBJS vasprintf.$ac_objext" ;;
6014 asprintf |
basename | insque | random | strdup | vasprintf
)
6017 n
=HAVE_
`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6018 cat >>confdefs.h
<<_ACEOF
6026 # newlib doesnt provide any of the variables in $vars, so we
6027 # dont have to check them here.
6029 # Of the functions in $checkfuncs, newlib only has strerror.
6030 cat >> confdefs.h
<<\EOF
6031 #define HAVE_STRERROR 1
6039 # We may wish to install the target headers somewhere.
6040 # Check whether --enable-install-libiberty or --disable-install-libiberty was given.
6041 if test "${enable_install_libiberty+set}" = set; then
6042 enableval
="$enable_install_libiberty"
6043 enable_install_libiberty
=$enableval
6045 enable_install_libiberty
=no
6047 # Option parsed, now set things appropriately.
6048 case x
"$enable_install_libiberty" in
6050 target_header_dir
=libiberty
6056 # This could be sanity-checked in various ways...
6057 target_header_dir
="${enable_install_libiberty}"
6064 # Not a target library, so we set things up to run the test suite.
6065 CHECK
=check-cplus-dem
6073 *-*-cygwin* |
*-*-mingw*)
6074 cat >> confdefs.h
<<\EOF
6075 #define HAVE_SYS_ERRLIST 1
6078 cat >> confdefs.h
<<\EOF
6079 #define HAVE_SYS_NERR 1
6085 if test -z "${setobjs}"; then
6089 # Handle VxWorks configuration specially, since on VxWorks the
6090 # libraries are actually on the target board, not in the file
6093 "basename.$ac_objext" | \
6094 *" basename.$ac_objext" | \
6095 "basename.$ac_objext "* | \
6096 *" basename.$ac_objext "* ) ;;
6097 *) LIBOBJS
="$LIBOBJS basename.$ac_objext" ;;
6101 "getpagesize.$ac_objext" | \
6102 *" getpagesize.$ac_objext" | \
6103 "getpagesize.$ac_objext "* | \
6104 *" getpagesize.$ac_objext "* ) ;;
6105 *) LIBOBJS
="$LIBOBJS getpagesize.$ac_objext" ;;
6109 "insque.$ac_objext" | \
6110 *" insque.$ac_objext" | \
6111 "insque.$ac_objext "* | \
6112 *" insque.$ac_objext "* ) ;;
6113 *) LIBOBJS
="$LIBOBJS insque.$ac_objext" ;;
6117 "random.$ac_objext" | \
6118 *" random.$ac_objext" | \
6119 "random.$ac_objext "* | \
6120 *" random.$ac_objext "* ) ;;
6121 *) LIBOBJS
="$LIBOBJS random.$ac_objext" ;;
6125 "strcasecmp.$ac_objext" | \
6126 *" strcasecmp.$ac_objext" | \
6127 "strcasecmp.$ac_objext "* | \
6128 *" strcasecmp.$ac_objext "* ) ;;
6129 *) LIBOBJS
="$LIBOBJS strcasecmp.$ac_objext" ;;
6133 "strncasecmp.$ac_objext" | \
6134 *" strncasecmp.$ac_objext" | \
6135 "strncasecmp.$ac_objext "* | \
6136 *" strncasecmp.$ac_objext "* ) ;;
6137 *) LIBOBJS
="$LIBOBJS strncasecmp.$ac_objext" ;;
6141 "strdup.$ac_objext" | \
6142 *" strdup.$ac_objext" | \
6143 "strdup.$ac_objext "* | \
6144 *" strdup.$ac_objext "* ) ;;
6145 *) LIBOBJS
="$LIBOBJS strdup.$ac_objext" ;;
6149 "vfork.$ac_objext" | \
6150 *" vfork.$ac_objext" | \
6151 "vfork.$ac_objext "* | \
6152 *" vfork.$ac_objext "* ) ;;
6153 *) LIBOBJS
="$LIBOBJS vfork.$ac_objext" ;;
6157 "waitpid.$ac_objext" | \
6158 *" waitpid.$ac_objext" | \
6159 "waitpid.$ac_objext "* | \
6160 *" waitpid.$ac_objext "* ) ;;
6161 *) LIBOBJS
="$LIBOBJS waitpid.$ac_objext" ;;
6165 "vasprintf.$ac_objext" | \
6166 *" vasprintf.$ac_objext" | \
6167 "vasprintf.$ac_objext "* | \
6168 *" vasprintf.$ac_objext "* ) ;;
6169 *) LIBOBJS
="$LIBOBJS vasprintf.$ac_objext" ;;
6174 basename | getpagesize | insque | random | strcasecmp
)
6176 strncasecmp | strdup | vfork | waitpid | vasprintf
)
6179 n
=HAVE_
`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6180 cat >>confdefs.h
<<_ACEOF
6188 # VxWorks doesn't provide any of the variables in $vars, so we
6189 # don't have to check them here.
6191 # Of the functions in $checkfuncs, VxWorks only has strerror.
6192 cat >> confdefs.h
<<\EOF
6193 #define HAVE_STRERROR 1
6203 if test -z "${setobjs}"; then
6208 # The Cygwin library actually uses a couple of files from
6209 # libiberty when it is built. If we are building a native
6210 # Cygwin, and we run the tests, we will appear to have these
6211 # files. However, when we go on to build winsup, we will wind up
6212 # with a library which does not have the files, since they should
6213 # have come from libiberty.
6215 # We handle this by removing the functions the winsup library
6216 # provides from our shell variables, so that they appear to be
6219 # DJ - only if we're *building* cygwin, not just building *with* cygwin
6221 if test -n "${with_target_subdir}"
6223 funcs
="`echo $funcs | sed -e 's/random//'`"
6225 "random.$ac_objext" | \
6226 *" random.$ac_objext" | \
6227 "random.$ac_objext "* | \
6228 *" random.$ac_objext "* ) ;;
6229 *) LIBOBJS
="$LIBOBJS random.$ac_objext" ;;
6232 vars
="`echo $vars | sed -e 's/sys_siglist//'`"
6233 checkfuncs
="`echo $checkfuncs | sed -e 's/strsignal//' -e 's/psignal//'`"
6238 # Under mingw32, sys_nerr and sys_errlist exist, but they are
6239 # macros, so the test below won't find them.
6240 libiberty_cv_var_sys_nerr
=yes
6241 libiberty_cv_var_sys_errlist
=yes
6245 # Under some versions of uwin, vfork is notoriously buggy and the test
6246 # can hang configure; on other versions, vfork exists just as a stub.
6247 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
6248 ac_cv_func_vfork_works
=no
6249 # Under uwin 2.0+, sys_nerr and sys_errlist exist, but they are
6250 # macros (actually, these are imported from a DLL, but the end effect
6251 # is the same), so the test below won't find them.
6252 libiberty_cv_var_sys_nerr
=yes
6253 libiberty_cv_var_sys_errlist
=yes
6257 # Under VMS, vfork works very different than on Unix. The standard test
6258 # won't work, and it isn't easily adaptable. It makes more sense to
6260 ac_cv_func_vfork_works
=yes
6265 # We haven't set the list of objects yet. Use the standard autoconf
6266 # tests. This will only work if the compiler works.
6267 echo "$as_me:$LINENO: checking for library containing strerror" >&5
6268 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
6269 if test "${ac_cv_search_strerror+set}" = set; then
6270 echo $ECHO_N "(cached) $ECHO_C" >&6
6272 ac_func_search_save_LIBS
=$LIBS
6273 ac_cv_search_strerror
=no
6274 if test x
$gcc_no_link = xyes
; then
6275 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6276 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6277 { (exit 1); exit 1; }; }
6279 cat >conftest.
$ac_ext <<_ACEOF
6282 cat confdefs.h
>>conftest.
$ac_ext
6283 cat >>conftest.
$ac_ext <<_ACEOF
6284 /* end confdefs.h. */
6286 /* Override any gcc2 internal prototype to avoid an error. */
6290 /* We use char because int might match the return type of a gcc2
6291 builtin and then its argument prototype would still apply. */
6301 rm -f conftest.
$ac_objext conftest
$ac_exeext
6302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6303 (eval $ac_link) 2>conftest.er1
6305 grep -v '^ *+' conftest.er1
>conftest.err
6307 cat conftest.err
>&5
6308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309 (exit $ac_status); } &&
6310 { ac_try
='test -z "$ac_c_werror_flag"
6311 || test ! -s conftest.err'
6312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316 (exit $ac_status); }; } &&
6317 { ac_try
='test -s conftest$ac_exeext'
6318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322 (exit $ac_status); }; }; then
6323 ac_cv_search_strerror
="none required"
6325 echo "$as_me: failed program was:" >&5
6326 sed 's/^/| /' conftest.
$ac_ext >&5
6329 rm -f conftest.err conftest.
$ac_objext \
6330 conftest
$ac_exeext conftest.
$ac_ext
6331 if test "$ac_cv_search_strerror" = no
; then
6332 for ac_lib
in cposix
; do
6333 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6334 if test x
$gcc_no_link = xyes
; then
6335 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6336 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6337 { (exit 1); exit 1; }; }
6339 cat >conftest.
$ac_ext <<_ACEOF
6342 cat confdefs.h
>>conftest.
$ac_ext
6343 cat >>conftest.
$ac_ext <<_ACEOF
6344 /* end confdefs.h. */
6346 /* Override any gcc2 internal prototype to avoid an error. */
6350 /* We use char because int might match the return type of a gcc2
6351 builtin and then its argument prototype would still apply. */
6361 rm -f conftest.
$ac_objext conftest
$ac_exeext
6362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6363 (eval $ac_link) 2>conftest.er1
6365 grep -v '^ *+' conftest.er1
>conftest.err
6367 cat conftest.err
>&5
6368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369 (exit $ac_status); } &&
6370 { ac_try
='test -z "$ac_c_werror_flag"
6371 || test ! -s conftest.err'
6372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376 (exit $ac_status); }; } &&
6377 { ac_try
='test -s conftest$ac_exeext'
6378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382 (exit $ac_status); }; }; then
6383 ac_cv_search_strerror
="-l$ac_lib"
6386 echo "$as_me: failed program was:" >&5
6387 sed 's/^/| /' conftest.
$ac_ext >&5
6390 rm -f conftest.err conftest.
$ac_objext \
6391 conftest
$ac_exeext conftest.
$ac_ext
6394 LIBS
=$ac_func_search_save_LIBS
6396 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
6397 echo "${ECHO_T}$ac_cv_search_strerror" >&6
6398 if test "$ac_cv_search_strerror" != no
; then
6399 test "$ac_cv_search_strerror" = "none required" || LIBS
="$ac_cv_search_strerror $LIBS"
6404 for ac_func
in $funcs
6406 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6407 echo "$as_me:$LINENO: checking for $ac_func" >&5
6408 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6409 if eval "test \"\${$as_ac_var+set}\" = set"; then
6410 echo $ECHO_N "(cached) $ECHO_C" >&6
6412 if test x
$gcc_no_link = xyes
; then
6413 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6414 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6415 { (exit 1); exit 1; }; }
6417 cat >conftest.
$ac_ext <<_ACEOF
6420 cat confdefs.h
>>conftest.
$ac_ext
6421 cat >>conftest.
$ac_ext <<_ACEOF
6422 /* end confdefs.h. */
6423 /* System header to define __stub macros and hopefully few prototypes,
6424 which can conflict with char $ac_func (); below.
6425 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6426 <limits.h> exists even on freestanding compilers. Under hpux,
6427 including <limits.h> includes <sys/time.h> and causes problems
6428 checking for functions defined therein. */
6429 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
6430 # include <limits.h>
6432 # include <assert.h>
6434 /* Override any gcc2 internal prototype to avoid an error. */
6439 /* We use char because int might match the return type of a gcc2
6440 builtin and then its argument prototype would still apply. */
6442 /* The GNU C library defines this for functions which it implements
6443 to always fail with ENOSYS. Some functions are actually named
6444 something starting with __ and the normal name is an alias. */
6445 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6448 char (*f) () = $ac_func;
6457 return f != $ac_func;
6462 rm -f conftest.
$ac_objext conftest
$ac_exeext
6463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6464 (eval $ac_link) 2>conftest.er1
6466 grep -v '^ *+' conftest.er1
>conftest.err
6468 cat conftest.err
>&5
6469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470 (exit $ac_status); } &&
6471 { ac_try
='test -z "$ac_c_werror_flag"
6472 || test ! -s conftest.err'
6473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477 (exit $ac_status); }; } &&
6478 { ac_try
='test -s conftest$ac_exeext'
6479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6483 (exit $ac_status); }; }; then
6484 eval "$as_ac_var=yes"
6486 echo "$as_me: failed program was:" >&5
6487 sed 's/^/| /' conftest.
$ac_ext >&5
6489 eval "$as_ac_var=no"
6491 rm -f conftest.err conftest.
$ac_objext \
6492 conftest
$ac_exeext conftest.
$ac_ext
6494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6495 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6496 if test `eval echo '${'$as_ac_var'}'` = yes; then
6497 cat >>confdefs.h
<<_ACEOF
6498 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6503 "$ac_func.$ac_objext" | \
6504 *" $ac_func.$ac_objext" | \
6505 "$ac_func.$ac_objext "* | \
6506 *" $ac_func.$ac_objext "* ) ;;
6507 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext" ;;
6514 echo "$as_me:$LINENO: checking whether alloca needs Cray hooks" >&5
6515 echo $ECHO_N "checking whether alloca needs Cray hooks... $ECHO_C" >&6
6516 if test "${ac_cv_os_cray+set}" = set; then
6517 echo $ECHO_N "(cached) $ECHO_C" >&6
6519 cat >conftest.
$ac_ext <<_ACEOF
6522 cat confdefs.h
>>conftest.
$ac_ext
6523 cat >>conftest.
$ac_ext <<_ACEOF
6524 /* end confdefs.h. */
6525 #if defined(CRAY) && ! defined(CRAY2)
6532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6533 $EGREP "webecray" >/dev
/null
2>&1; then
6541 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6542 echo "${ECHO_T}$ac_cv_os_cray" >&6
6543 if test $ac_cv_os_cray = yes; then
6544 for ac_func
in _getb67 GETB67 getb67
; do
6545 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6546 echo "$as_me:$LINENO: checking for $ac_func" >&5
6547 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6548 if eval "test \"\${$as_ac_var+set}\" = set"; then
6549 echo $ECHO_N "(cached) $ECHO_C" >&6
6551 if test x
$gcc_no_link = xyes
; then
6552 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6553 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6554 { (exit 1); exit 1; }; }
6556 cat >conftest.
$ac_ext <<_ACEOF
6559 cat confdefs.h
>>conftest.
$ac_ext
6560 cat >>conftest.
$ac_ext <<_ACEOF
6561 /* end confdefs.h. */
6562 /* System header to define __stub macros and hopefully few prototypes,
6563 which can conflict with char $ac_func (); below.
6564 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6565 <limits.h> exists even on freestanding compilers. Under hpux,
6566 including <limits.h> includes <sys/time.h> and causes problems
6567 checking for functions defined therein. */
6568 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
6569 # include <limits.h>
6571 # include <assert.h>
6573 /* Override any gcc2 internal prototype to avoid an error. */
6578 /* We use char because int might match the return type of a gcc2
6579 builtin and then its argument prototype would still apply. */
6581 /* The GNU C library defines this for functions which it implements
6582 to always fail with ENOSYS. Some functions are actually named
6583 something starting with __ and the normal name is an alias. */
6584 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6587 char (*f) () = $ac_func;
6596 return f != $ac_func;
6601 rm -f conftest.
$ac_objext conftest
$ac_exeext
6602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6603 (eval $ac_link) 2>conftest.er1
6605 grep -v '^ *+' conftest.er1
>conftest.err
6607 cat conftest.err
>&5
6608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609 (exit $ac_status); } &&
6610 { ac_try
='test -z "$ac_c_werror_flag"
6611 || test ! -s conftest.err'
6612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616 (exit $ac_status); }; } &&
6617 { ac_try
='test -s conftest$ac_exeext'
6618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622 (exit $ac_status); }; }; then
6623 eval "$as_ac_var=yes"
6625 echo "$as_me: failed program was:" >&5
6626 sed 's/^/| /' conftest.
$ac_ext >&5
6628 eval "$as_ac_var=no"
6630 rm -f conftest.err conftest.
$ac_objext \
6631 conftest
$ac_exeext conftest.
$ac_ext
6633 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6634 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6635 if test `eval echo '${'$as_ac_var'}'` = yes; then
6637 cat >>confdefs.h
<<_ACEOF
6638 #define CRAY_STACKSEG_END $ac_func
6646 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6647 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6648 if test "${ac_cv_c_stack_direction+set}" = set; then
6649 echo $ECHO_N "(cached) $ECHO_C" >&6
6651 if test "$cross_compiling" = yes; then
6652 ac_cv_c_stack_direction
=0
6654 cat >conftest.
$ac_ext <<_ACEOF
6657 cat confdefs.h
>>conftest.
$ac_ext
6658 cat >>conftest.
$ac_ext <<_ACEOF
6659 /* end confdefs.h. */
6660 find_stack_direction ()
6662 static char *addr = 0;
6667 return find_stack_direction ();
6670 return (&dummy > addr) ? 1 : -1;
6674 exit (find_stack_direction() < 0);
6677 rm -f conftest
$ac_exeext
6678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6679 (eval $ac_link) 2>&5
6681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6682 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687 (exit $ac_status); }; }; then
6688 ac_cv_c_stack_direction
=1
6690 echo "$as_me: program exited with status $ac_status" >&5
6691 echo "$as_me: failed program was:" >&5
6692 sed 's/^/| /' conftest.
$ac_ext >&5
6695 ac_cv_c_stack_direction
=-1
6697 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6700 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6701 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6703 cat >>confdefs.h
<<_ACEOF
6704 #define STACK_DIRECTION $ac_cv_c_stack_direction
6710 for ac_header
in unistd.h vfork.h
6712 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6713 echo "$as_me:$LINENO: checking for $ac_header" >&5
6714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6715 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6716 echo $ECHO_N "(cached) $ECHO_C" >&6
6718 cat >conftest.
$ac_ext <<_ACEOF
6721 cat confdefs.h
>>conftest.
$ac_ext
6722 cat >>conftest.
$ac_ext <<_ACEOF
6723 /* end confdefs.h. */
6724 #include <$ac_header>
6726 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6727 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6729 grep -v '^ *+' conftest.er1
>conftest.err
6731 cat conftest.err
>&5
6732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733 (exit $ac_status); } >/dev
/null
; then
6734 if test -s conftest.err
; then
6735 ac_cpp_err
=$ac_c_preproc_warn_flag
6736 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6743 if test -z "$ac_cpp_err"; then
6744 eval "$as_ac_Header=yes"
6746 echo "$as_me: failed program was:" >&5
6747 sed 's/^/| /' conftest.
$ac_ext >&5
6749 eval "$as_ac_Header=no"
6751 rm -f conftest.err conftest.
$ac_ext
6753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6754 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6755 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6756 cat >>confdefs.h
<<_ACEOF
6757 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6765 for ac_func
in fork vfork
6767 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6768 echo "$as_me:$LINENO: checking for $ac_func" >&5
6769 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6770 if eval "test \"\${$as_ac_var+set}\" = set"; then
6771 echo $ECHO_N "(cached) $ECHO_C" >&6
6773 if test x
$gcc_no_link = xyes
; then
6774 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6775 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6776 { (exit 1); exit 1; }; }
6778 cat >conftest.
$ac_ext <<_ACEOF
6781 cat confdefs.h
>>conftest.
$ac_ext
6782 cat >>conftest.
$ac_ext <<_ACEOF
6783 /* end confdefs.h. */
6784 /* System header to define __stub macros and hopefully few prototypes,
6785 which can conflict with char $ac_func (); below.
6786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6787 <limits.h> exists even on freestanding compilers. Under hpux,
6788 including <limits.h> includes <sys/time.h> and causes problems
6789 checking for functions defined therein. */
6790 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
6791 # include <limits.h>
6793 # include <assert.h>
6795 /* Override any gcc2 internal prototype to avoid an error. */
6800 /* We use char because int might match the return type of a gcc2
6801 builtin and then its argument prototype would still apply. */
6803 /* The GNU C library defines this for functions which it implements
6804 to always fail with ENOSYS. Some functions are actually named
6805 something starting with __ and the normal name is an alias. */
6806 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6809 char (*f) () = $ac_func;
6818 return f != $ac_func;
6823 rm -f conftest.
$ac_objext conftest
$ac_exeext
6824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6825 (eval $ac_link) 2>conftest.er1
6827 grep -v '^ *+' conftest.er1
>conftest.err
6829 cat conftest.err
>&5
6830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831 (exit $ac_status); } &&
6832 { ac_try
='test -z "$ac_c_werror_flag"
6833 || test ! -s conftest.err'
6834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838 (exit $ac_status); }; } &&
6839 { ac_try
='test -s conftest$ac_exeext'
6840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6844 (exit $ac_status); }; }; then
6845 eval "$as_ac_var=yes"
6847 echo "$as_me: failed program was:" >&5
6848 sed 's/^/| /' conftest.
$ac_ext >&5
6850 eval "$as_ac_var=no"
6852 rm -f conftest.err conftest.
$ac_objext \
6853 conftest
$ac_exeext conftest.
$ac_ext
6855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6856 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6857 if test `eval echo '${'$as_ac_var'}'` = yes; then
6858 cat >>confdefs.h
<<_ACEOF
6859 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6865 if test "x$ac_cv_func_fork" = xyes
; then
6866 echo "$as_me:$LINENO: checking for working fork" >&5
6867 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
6868 if test "${ac_cv_func_fork_works+set}" = set; then
6869 echo $ECHO_N "(cached) $ECHO_C" >&6
6871 if test "$cross_compiling" = yes; then
6872 ac_cv_func_fork_works
=cross
6874 cat >conftest.
$ac_ext <<_ACEOF
6875 /* By Ruediger Kuhlmann. */
6876 #include <sys/types.h>
6878 # include <unistd.h>
6880 /* Some systems only have a dummy stub for fork() */
6888 rm -f conftest
$ac_exeext
6889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6890 (eval $ac_link) 2>&5
6892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898 (exit $ac_status); }; }; then
6899 ac_cv_func_fork_works
=yes
6901 echo "$as_me: program exited with status $ac_status" >&5
6902 echo "$as_me: failed program was:" >&5
6903 sed 's/^/| /' conftest.
$ac_ext >&5
6906 ac_cv_func_fork_works
=no
6908 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6911 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
6912 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
6915 ac_cv_func_fork_works
=$ac_cv_func_fork
6917 if test "x$ac_cv_func_fork_works" = xcross
; then
6919 *-*-amigaos* |
*-*-msdosdjgpp*)
6920 # Override, as these systems have only a dummy fork() stub
6921 ac_cv_func_fork_works
=no
6924 ac_cv_func_fork_works
=yes
6927 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
6928 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
6930 ac_cv_func_vfork_works
=$ac_cv_func_vfork
6931 if test "x$ac_cv_func_vfork" = xyes
; then
6932 echo "$as_me:$LINENO: checking for working vfork" >&5
6933 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
6934 if test "${ac_cv_func_vfork_works+set}" = set; then
6935 echo $ECHO_N "(cached) $ECHO_C" >&6
6937 if test "$cross_compiling" = yes; then
6938 ac_cv_func_vfork_works
=cross
6940 cat >conftest.
$ac_ext <<_ACEOF
6943 cat confdefs.h
>>conftest.
$ac_ext
6944 cat >>conftest.
$ac_ext <<_ACEOF
6945 /* end confdefs.h. */
6946 /* Thanks to Paul Eggert for this test. */
6949 #include <sys/types.h>
6950 #include <sys/stat.h>
6951 #include <sys/wait.h>
6953 # include <unistd.h>
6958 /* On some sparc systems, changes by the child to local and incoming
6959 argument registers are propagated back to the parent. The compiler
6960 is told about this with #include <vfork.h>, but some compilers
6961 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
6962 static variable whose address is put into a register that is
6963 clobbered by the vfork. */
6966 sparc_address_test (int arg)
6968 sparc_address_test (arg) int arg;
6989 pid_t parent = getpid ();
6992 sparc_address_test (0);
6997 /* Here is another test for sparc vfork register problems. This
6998 test uses lots of local variables, at least as many local
6999 variables as main has allocated so far including compiler
7000 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7001 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7002 reuse the register of parent for one of the local variables,
7003 since it will think that parent can't possibly be used any more
7004 in this routine. Assigning to the local variable will thus
7005 munge parent in the parent process. */
7007 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7008 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7009 /* Convince the compiler that p..p7 are live; otherwise, it might
7010 use the same hardware register for all 8 local variables. */
7011 if (p != p1 || p != p2 || p != p3 || p != p4
7012 || p != p5 || p != p6 || p != p7)
7015 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7016 from child file descriptors. If the child closes a descriptor
7017 before it execs or exits, this munges the parent's descriptor
7018 as well. Test for this by closing stdout in the child. */
7019 _exit(close(fileno(stdout)) != 0);
7024 while (wait(&status) != child)
7027 /* Was there some problem with vforking? */
7030 /* Did the child fail? (This shouldn't happen.) */
7033 /* Did the vfork/compiler bug occur? */
7034 || parent != getpid()
7036 /* Did the file descriptor bug occur? */
7037 || fstat(fileno(stdout), &st) != 0
7042 rm -f conftest
$ac_exeext
7043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7044 (eval $ac_link) 2>&5
7046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7047 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7052 (exit $ac_status); }; }; then
7053 ac_cv_func_vfork_works
=yes
7055 echo "$as_me: program exited with status $ac_status" >&5
7056 echo "$as_me: failed program was:" >&5
7057 sed 's/^/| /' conftest.
$ac_ext >&5
7060 ac_cv_func_vfork_works
=no
7062 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7065 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7066 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
7069 if test "x$ac_cv_func_fork_works" = xcross
; then
7070 ac_cv_func_vfork_works
=$ac_cv_func_vfork
7071 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7072 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7075 if test "x$ac_cv_func_vfork_works" = xyes
; then
7077 cat >>confdefs.h
<<\_ACEOF
7078 #define HAVE_WORKING_VFORK 1
7083 cat >>confdefs.h
<<\_ACEOF
7088 if test "x$ac_cv_func_fork_works" = xyes
; then
7090 cat >>confdefs.h
<<\_ACEOF
7091 #define HAVE_WORKING_FORK 1
7096 if test $ac_cv_func_vfork_works = no
; then
7098 "vfork.$ac_objext" | \
7099 *" vfork.$ac_objext" | \
7100 "vfork.$ac_objext "* | \
7101 *" vfork.$ac_objext "* ) ;;
7102 *) LIBOBJS
="$LIBOBJS vfork.$ac_objext" ;;
7106 # We only need _doprnt if we might use it to implement v*printf.
7107 if test $ac_cv_func_vprintf != yes \
7108 ||
test $ac_cv_func_vfprintf != yes \
7109 ||
test $ac_cv_func_vsprintf != yes; then
7111 for ac_func
in _doprnt
7113 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7114 echo "$as_me:$LINENO: checking for $ac_func" >&5
7115 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7116 if eval "test \"\${$as_ac_var+set}\" = set"; then
7117 echo $ECHO_N "(cached) $ECHO_C" >&6
7119 if test x
$gcc_no_link = xyes
; then
7120 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7121 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7122 { (exit 1); exit 1; }; }
7124 cat >conftest.
$ac_ext <<_ACEOF
7127 cat confdefs.h
>>conftest.
$ac_ext
7128 cat >>conftest.
$ac_ext <<_ACEOF
7129 /* end confdefs.h. */
7130 /* System header to define __stub macros and hopefully few prototypes,
7131 which can conflict with char $ac_func (); below.
7132 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7133 <limits.h> exists even on freestanding compilers. Under hpux,
7134 including <limits.h> includes <sys/time.h> and causes problems
7135 checking for functions defined therein. */
7136 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
7137 # include <limits.h>
7139 # include <assert.h>
7141 /* Override any gcc2 internal prototype to avoid an error. */
7146 /* We use char because int might match the return type of a gcc2
7147 builtin and then its argument prototype would still apply. */
7149 /* The GNU C library defines this for functions which it implements
7150 to always fail with ENOSYS. Some functions are actually named
7151 something starting with __ and the normal name is an alias. */
7152 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7155 char (*f) () = $ac_func;
7164 return f != $ac_func;
7169 rm -f conftest.
$ac_objext conftest
$ac_exeext
7170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7171 (eval $ac_link) 2>conftest.er1
7173 grep -v '^ *+' conftest.er1
>conftest.err
7175 cat conftest.err
>&5
7176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177 (exit $ac_status); } &&
7178 { ac_try
='test -z "$ac_c_werror_flag"
7179 || test ! -s conftest.err'
7180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184 (exit $ac_status); }; } &&
7185 { ac_try
='test -s conftest$ac_exeext'
7186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7190 (exit $ac_status); }; }; then
7191 eval "$as_ac_var=yes"
7193 echo "$as_me: failed program was:" >&5
7194 sed 's/^/| /' conftest.
$ac_ext >&5
7196 eval "$as_ac_var=no"
7198 rm -f conftest.err conftest.
$ac_objext \
7199 conftest
$ac_exeext conftest.
$ac_ext
7201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7202 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7203 if test `eval echo '${'$as_ac_var'}'` = yes; then
7204 cat >>confdefs.h
<<_ACEOF
7205 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7210 "$ac_func.$ac_objext" | \
7211 *" $ac_func.$ac_objext" | \
7212 "$ac_func.$ac_objext "* | \
7213 *" $ac_func.$ac_objext "* ) ;;
7214 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext" ;;
7223 for ac_func
in _doprnt
7225 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7226 echo "$as_me:$LINENO: checking for $ac_func" >&5
7227 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7228 if eval "test \"\${$as_ac_var+set}\" = set"; then
7229 echo $ECHO_N "(cached) $ECHO_C" >&6
7231 if test x
$gcc_no_link = xyes
; then
7232 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7233 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7234 { (exit 1); exit 1; }; }
7236 cat >conftest.
$ac_ext <<_ACEOF
7239 cat confdefs.h
>>conftest.
$ac_ext
7240 cat >>conftest.
$ac_ext <<_ACEOF
7241 /* end confdefs.h. */
7242 /* System header to define __stub macros and hopefully few prototypes,
7243 which can conflict with char $ac_func (); below.
7244 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7245 <limits.h> exists even on freestanding compilers. Under hpux,
7246 including <limits.h> includes <sys/time.h> and causes problems
7247 checking for functions defined therein. */
7248 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
7249 # include <limits.h>
7251 # include <assert.h>
7253 /* Override any gcc2 internal prototype to avoid an error. */
7258 /* We use char because int might match the return type of a gcc2
7259 builtin and then its argument prototype would still apply. */
7261 /* The GNU C library defines this for functions which it implements
7262 to always fail with ENOSYS. Some functions are actually named
7263 something starting with __ and the normal name is an alias. */
7264 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7267 char (*f) () = $ac_func;
7276 return f != $ac_func;
7281 rm -f conftest.
$ac_objext conftest
$ac_exeext
7282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7283 (eval $ac_link) 2>conftest.er1
7285 grep -v '^ *+' conftest.er1
>conftest.err
7287 cat conftest.err
>&5
7288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289 (exit $ac_status); } &&
7290 { ac_try
='test -z "$ac_c_werror_flag"
7291 || test ! -s conftest.err'
7292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296 (exit $ac_status); }; } &&
7297 { ac_try
='test -s conftest$ac_exeext'
7298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302 (exit $ac_status); }; }; then
7303 eval "$as_ac_var=yes"
7305 echo "$as_me: failed program was:" >&5
7306 sed 's/^/| /' conftest.
$ac_ext >&5
7308 eval "$as_ac_var=no"
7310 rm -f conftest.err conftest.
$ac_objext \
7311 conftest
$ac_exeext conftest.
$ac_ext
7313 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7314 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7315 if test `eval echo '${'$as_ac_var'}'` = yes; then
7316 cat >>confdefs.h
<<_ACEOF
7317 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7326 echo "$as_me:$LINENO: checking for $v" >&5
7327 echo $ECHO_N "checking for $v... $ECHO_C" >&6
7328 if eval "test \"\${libiberty_cv_var_$v+set}\" = set"; then
7329 echo $ECHO_N "(cached) $ECHO_C" >&6
7331 if test x
$gcc_no_link = xyes
; then
7332 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7333 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7334 { (exit 1); exit 1; }; }
7336 cat >conftest.
$ac_ext <<_ACEOF
7339 cat confdefs.h
>>conftest.
$ac_ext
7340 cat >>conftest.
$ac_ext <<_ACEOF
7341 /* end confdefs.h. */
7346 extern int $v []; p = $v;
7351 rm -f conftest.
$ac_objext conftest
$ac_exeext
7352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7353 (eval $ac_link) 2>conftest.er1
7355 grep -v '^ *+' conftest.er1
>conftest.err
7357 cat conftest.err
>&5
7358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359 (exit $ac_status); } &&
7360 { ac_try
='test -z "$ac_c_werror_flag"
7361 || test ! -s conftest.err'
7362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7366 (exit $ac_status); }; } &&
7367 { ac_try
='test -s conftest$ac_exeext'
7368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7372 (exit $ac_status); }; }; then
7373 eval "libiberty_cv_var_$v=yes"
7375 echo "$as_me: failed program was:" >&5
7376 sed 's/^/| /' conftest.
$ac_ext >&5
7378 eval "libiberty_cv_var_$v=no"
7380 rm -f conftest.err conftest.
$ac_objext \
7381 conftest
$ac_exeext conftest.
$ac_ext
7384 if eval "test \"`echo '$libiberty_cv_var_'$v`\" = yes"; then
7385 echo "$as_me:$LINENO: result: yes" >&5
7386 echo "${ECHO_T}yes" >&6
7387 n
=HAVE_
`echo $v | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7388 cat >>confdefs.h
<<_ACEOF
7393 echo "$as_me:$LINENO: result: no" >&5
7394 echo "${ECHO_T}no" >&6
7398 # special check for _system_configuration because AIX <4.3.2 do not
7399 # contain the `physmem' member.
7400 echo "$as_me:$LINENO: checking for external symbol _system_configuration" >&5
7401 echo $ECHO_N "checking for external symbol _system_configuration... $ECHO_C" >&6
7402 cat >conftest.
$ac_ext <<_ACEOF
7405 cat confdefs.h
>>conftest.
$ac_ext
7406 cat >>conftest.
$ac_ext <<_ACEOF
7407 /* end confdefs.h. */
7408 #include <sys/systemcfg.h>
7412 double x = _system_configuration.physmem;
7417 rm -f conftest.
$ac_objext
7418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7419 (eval $ac_compile) 2>conftest.er1
7421 grep -v '^ *+' conftest.er1
>conftest.err
7423 cat conftest.err
>&5
7424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7425 (exit $ac_status); } &&
7426 { ac_try
='test -z "$ac_c_werror_flag"
7427 || test ! -s conftest.err'
7428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7432 (exit $ac_status); }; } &&
7433 { ac_try
='test -s conftest.$ac_objext'
7434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7438 (exit $ac_status); }; }; then
7439 echo "$as_me:$LINENO: result: yes" >&5
7440 echo "${ECHO_T}yes" >&6
7442 cat >>confdefs.h
<<\_ACEOF
7443 #define HAVE__SYSTEM_CONFIGURATION 1
7447 echo "$as_me: failed program was:" >&5
7448 sed 's/^/| /' conftest.
$ac_ext >&5
7450 echo "$as_me:$LINENO: result: no" >&5
7451 echo "${ECHO_T}no" >&6
7453 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7456 for ac_func
in $checkfuncs
7458 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7459 echo "$as_me:$LINENO: checking for $ac_func" >&5
7460 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7461 if eval "test \"\${$as_ac_var+set}\" = set"; then
7462 echo $ECHO_N "(cached) $ECHO_C" >&6
7464 if test x
$gcc_no_link = xyes
; then
7465 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7466 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7467 { (exit 1); exit 1; }; }
7469 cat >conftest.
$ac_ext <<_ACEOF
7472 cat confdefs.h
>>conftest.
$ac_ext
7473 cat >>conftest.
$ac_ext <<_ACEOF
7474 /* end confdefs.h. */
7475 /* System header to define __stub macros and hopefully few prototypes,
7476 which can conflict with char $ac_func (); below.
7477 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7478 <limits.h> exists even on freestanding compilers. Under hpux,
7479 including <limits.h> includes <sys/time.h> and causes problems
7480 checking for functions defined therein. */
7481 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
7482 # include <limits.h>
7484 # include <assert.h>
7486 /* Override any gcc2 internal prototype to avoid an error. */
7491 /* We use char because int might match the return type of a gcc2
7492 builtin and then its argument prototype would still apply. */
7494 /* The GNU C library defines this for functions which it implements
7495 to always fail with ENOSYS. Some functions are actually named
7496 something starting with __ and the normal name is an alias. */
7497 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7500 char (*f) () = $ac_func;
7509 return f != $ac_func;
7514 rm -f conftest.
$ac_objext conftest
$ac_exeext
7515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7516 (eval $ac_link) 2>conftest.er1
7518 grep -v '^ *+' conftest.er1
>conftest.err
7520 cat conftest.err
>&5
7521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522 (exit $ac_status); } &&
7523 { ac_try
='test -z "$ac_c_werror_flag"
7524 || test ! -s conftest.err'
7525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7529 (exit $ac_status); }; } &&
7530 { ac_try
='test -s conftest$ac_exeext'
7531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7535 (exit $ac_status); }; }; then
7536 eval "$as_ac_var=yes"
7538 echo "$as_me: failed program was:" >&5
7539 sed 's/^/| /' conftest.
$ac_ext >&5
7541 eval "$as_ac_var=no"
7543 rm -f conftest.err conftest.
$ac_objext \
7544 conftest
$ac_exeext conftest.
$ac_ext
7546 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7547 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7548 if test `eval echo '${'$as_ac_var'}'` = yes; then
7549 cat >>confdefs.h
<<_ACEOF
7550 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7556 echo "$as_me:$LINENO: checking whether canonicalize_file_name must be declared" >&5
7557 echo $ECHO_N "checking whether canonicalize_file_name must be declared... $ECHO_C" >&6
7558 if test "${libiberty_cv_decl_needed_canonicalize_file_name+set}" = set; then
7559 echo $ECHO_N "(cached) $ECHO_C" >&6
7561 cat >conftest.
$ac_ext <<_ACEOF
7564 cat confdefs.h
>>conftest.
$ac_ext
7565 cat >>conftest.
$ac_ext <<_ACEOF
7566 /* end confdefs.h. */
7568 #include "confdefs.h"
7570 #ifdef HAVE_STRING_H
7573 #ifdef HAVE_STRINGS_H
7574 #include <strings.h>
7577 #ifdef HAVE_STDLIB_H
7580 #ifdef HAVE_UNISTD_H
7586 char *(*pfn) = (char *(*)) canonicalize_file_name
7591 rm -f conftest.
$ac_objext
7592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7593 (eval $ac_compile) 2>conftest.er1
7595 grep -v '^ *+' conftest.er1
>conftest.err
7597 cat conftest.err
>&5
7598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599 (exit $ac_status); } &&
7600 { ac_try
='test -z "$ac_c_werror_flag"
7601 || test ! -s conftest.err'
7602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7606 (exit $ac_status); }; } &&
7607 { ac_try
='test -s conftest.$ac_objext'
7608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7612 (exit $ac_status); }; }; then
7613 libiberty_cv_decl_needed_canonicalize_file_name
=no
7615 echo "$as_me: failed program was:" >&5
7616 sed 's/^/| /' conftest.
$ac_ext >&5
7618 libiberty_cv_decl_needed_canonicalize_file_name
=yes
7620 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7623 echo "$as_me:$LINENO: result: $libiberty_cv_decl_needed_canonicalize_file_name" >&5
7624 echo "${ECHO_T}$libiberty_cv_decl_needed_canonicalize_file_name" >&6
7625 if test $libiberty_cv_decl_needed_canonicalize_file_name = yes; then
7627 cat >>confdefs.h
<<\_ACEOF
7628 #define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1
7635 # Figure out which version of pexecute to use.
7637 *-*-mingw* |
*-*-winnt*) pex
=.
/pex-win32
;;
7638 *-*-msdosdjgpp*) pex
=.
/pex-djgpp
;;
7639 *-*-msdos*) pex
=.
/pex-msdos
;;
7640 *-*-os2-emx*) pex
=.
/pex-os2
;;
7641 *) pex
=.
/pex-unix
;;
7644 ltpexecute
=${pex}.lo
7648 if test x
$gcc_no_link = xyes
; then
7649 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset
; then
7650 ac_cv_func_mmap_fixed_mapped
=no
7653 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset
; then
7656 for ac_header
in stdlib.h unistd.h
7658 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7659 echo "$as_me:$LINENO: checking for $ac_header" >&5
7660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7661 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7662 echo $ECHO_N "(cached) $ECHO_C" >&6
7664 cat >conftest.
$ac_ext <<_ACEOF
7667 cat confdefs.h
>>conftest.
$ac_ext
7668 cat >>conftest.
$ac_ext <<_ACEOF
7669 /* end confdefs.h. */
7670 #include <$ac_header>
7672 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7673 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7675 grep -v '^ *+' conftest.er1
>conftest.err
7677 cat conftest.err
>&5
7678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7679 (exit $ac_status); } >/dev
/null
; then
7680 if test -s conftest.err
; then
7681 ac_cpp_err
=$ac_c_preproc_warn_flag
7682 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7689 if test -z "$ac_cpp_err"; then
7690 eval "$as_ac_Header=yes"
7692 echo "$as_me: failed program was:" >&5
7693 sed 's/^/| /' conftest.
$ac_ext >&5
7695 eval "$as_ac_Header=no"
7697 rm -f conftest.err conftest.
$ac_ext
7699 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7700 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7701 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7702 cat >>confdefs.h
<<_ACEOF
7703 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7710 for ac_func
in getpagesize
7712 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7713 echo "$as_me:$LINENO: checking for $ac_func" >&5
7714 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7715 if eval "test \"\${$as_ac_var+set}\" = set"; then
7716 echo $ECHO_N "(cached) $ECHO_C" >&6
7718 if test x
$gcc_no_link = xyes
; then
7719 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7720 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7721 { (exit 1); exit 1; }; }
7723 cat >conftest.
$ac_ext <<_ACEOF
7726 cat confdefs.h
>>conftest.
$ac_ext
7727 cat >>conftest.
$ac_ext <<_ACEOF
7728 /* end confdefs.h. */
7729 /* System header to define __stub macros and hopefully few prototypes,
7730 which can conflict with char $ac_func (); below.
7731 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7732 <limits.h> exists even on freestanding compilers. Under hpux,
7733 including <limits.h> includes <sys/time.h> and causes problems
7734 checking for functions defined therein. */
7735 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
7736 # include <limits.h>
7738 # include <assert.h>
7740 /* Override any gcc2 internal prototype to avoid an error. */
7745 /* We use char because int might match the return type of a gcc2
7746 builtin and then its argument prototype would still apply. */
7748 /* The GNU C library defines this for functions which it implements
7749 to always fail with ENOSYS. Some functions are actually named
7750 something starting with __ and the normal name is an alias. */
7751 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7754 char (*f) () = $ac_func;
7763 return f != $ac_func;
7768 rm -f conftest.
$ac_objext conftest
$ac_exeext
7769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7770 (eval $ac_link) 2>conftest.er1
7772 grep -v '^ *+' conftest.er1
>conftest.err
7774 cat conftest.err
>&5
7775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776 (exit $ac_status); } &&
7777 { ac_try
='test -z "$ac_c_werror_flag"
7778 || test ! -s conftest.err'
7779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7783 (exit $ac_status); }; } &&
7784 { ac_try
='test -s conftest$ac_exeext'
7785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789 (exit $ac_status); }; }; then
7790 eval "$as_ac_var=yes"
7792 echo "$as_me: failed program was:" >&5
7793 sed 's/^/| /' conftest.
$ac_ext >&5
7795 eval "$as_ac_var=no"
7797 rm -f conftest.err conftest.
$ac_objext \
7798 conftest
$ac_exeext conftest.
$ac_ext
7800 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7801 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7802 if test `eval echo '${'$as_ac_var'}'` = yes; then
7803 cat >>confdefs.h
<<_ACEOF
7804 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7810 echo "$as_me:$LINENO: checking for working mmap" >&5
7811 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7812 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7813 echo $ECHO_N "(cached) $ECHO_C" >&6
7815 if test "$cross_compiling" = yes; then
7816 ac_cv_func_mmap_fixed_mapped
=no
7818 cat >conftest.
$ac_ext <<_ACEOF
7821 cat confdefs.h
>>conftest.
$ac_ext
7822 cat >>conftest.
$ac_ext <<_ACEOF
7823 /* end confdefs.h. */
7824 $ac_includes_default
7825 /* malloc might have been renamed as rpl_malloc. */
7828 /* Thanks to Mike Haertel and Jim Avera for this test.
7829 Here is a matrix of mmap possibilities:
7830 mmap private not fixed
7831 mmap private fixed at somewhere currently unmapped
7832 mmap private fixed at somewhere already mapped
7833 mmap shared not fixed
7834 mmap shared fixed at somewhere currently unmapped
7835 mmap shared fixed at somewhere already mapped
7836 For private mappings, we should verify that changes cannot be read()
7837 back from the file, nor mmap's back from the file at a different
7838 address. (There have been systems where private was not correctly
7839 implemented like the infamous i386 svr4.0, and systems where the
7840 VM page cache was not coherent with the file system buffer cache
7841 like early versions of FreeBSD and possibly contemporary NetBSD.)
7842 For shared mappings, we should conversely verify that changes get
7843 propagated back to all the places they're supposed to be.
7845 Grep wants private fixed already mapped.
7846 The main things grep needs to know about mmap are:
7847 * does it exist and is it safe to write into the mmap'd area
7848 * how to use it (BSD variants) */
7851 #include <sys/mman.h>
7853 #if !STDC_HEADERS && !HAVE_STDLIB_H
7857 /* This mess was copied from the GNU getpagesize.h. */
7858 #if !HAVE_GETPAGESIZE
7859 /* Assume that all systems that can run configure have sys/param.h. */
7860 # if !HAVE_SYS_PARAM_H
7861 # define HAVE_SYS_PARAM_H 1
7864 # ifdef _SC_PAGESIZE
7865 # define getpagesize() sysconf(_SC_PAGESIZE)
7866 # else /* no _SC_PAGESIZE */
7867 # if HAVE_SYS_PARAM_H
7868 # include <sys/param.h>
7869 # ifdef EXEC_PAGESIZE
7870 # define getpagesize() EXEC_PAGESIZE
7871 # else /* no EXEC_PAGESIZE */
7873 # define getpagesize() NBPG * CLSIZE
7876 # endif /* no CLSIZE */
7877 # else /* no NBPG */
7879 # define getpagesize() NBPC
7880 # else /* no NBPC */
7882 # define getpagesize() PAGESIZE
7883 # endif /* PAGESIZE */
7884 # endif /* no NBPC */
7885 # endif /* no NBPG */
7886 # endif /* no EXEC_PAGESIZE */
7887 # else /* no HAVE_SYS_PARAM_H */
7888 # define getpagesize() 8192 /* punt totally */
7889 # endif /* no HAVE_SYS_PARAM_H */
7890 # endif /* no _SC_PAGESIZE */
7892 #endif /* no HAVE_GETPAGESIZE */
7897 char *data, *data2, *data3;
7901 pagesize = getpagesize ();
7903 /* First, make a file with some known garbage in it. */
7904 data = (char *) malloc (pagesize);
7907 for (i = 0; i < pagesize; ++i)
7908 *(data + i) = rand ();
7910 fd = creat ("conftest.mmap", 0600);
7913 if (write (fd, data, pagesize) != pagesize)
7917 /* Next, try to mmap the file at a fixed address which already has
7918 something else allocated at it. If we can, also make sure that
7919 we see the same garbage. */
7920 fd = open ("conftest.mmap", O_RDWR);
7923 data2 = (char *) malloc (2 * pagesize);
7926 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
7927 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7928 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7930 for (i = 0; i < pagesize; ++i)
7931 if (*(data + i) != *(data2 + i))
7934 /* Finally, make sure that changes to the mapped area do not
7935 percolate back to the file as seen by read(). (This is a bug on
7936 some variants of i386 svr4.0.) */
7937 for (i = 0; i < pagesize; ++i)
7938 *(data2 + i) = *(data2 + i) + 1;
7939 data3 = (char *) malloc (pagesize);
7942 if (read (fd, data3, pagesize) != pagesize)
7944 for (i = 0; i < pagesize; ++i)
7945 if (*(data + i) != *(data3 + i))
7951 rm -f conftest
$ac_exeext
7952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7953 (eval $ac_link) 2>&5
7955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961 (exit $ac_status); }; }; then
7962 ac_cv_func_mmap_fixed_mapped
=yes
7964 echo "$as_me: program exited with status $ac_status" >&5
7965 echo "$as_me: failed program was:" >&5
7966 sed 's/^/| /' conftest.
$ac_ext >&5
7969 ac_cv_func_mmap_fixed_mapped
=no
7971 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7974 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7975 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7976 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7978 cat >>confdefs.h
<<\_ACEOF
7987 echo "$as_me:$LINENO: checking for working strncmp" >&5
7988 echo $ECHO_N "checking for working strncmp... $ECHO_C" >&6
7989 if test "${ac_cv_func_strncmp_works+set}" = set; then
7990 echo $ECHO_N "(cached) $ECHO_C" >&6
7992 if test "$cross_compiling" = yes; then
7993 ac_cv_func_strncmp_works
=no
7995 cat >conftest.
$ac_ext <<_ACEOF
7998 cat confdefs.h
>>conftest.
$ac_ext
7999 cat >>conftest.
$ac_ext <<_ACEOF
8000 /* end confdefs.h. */
8002 /* Test by Jim Wilson and Kaveh Ghazi.
8003 Check whether strncmp reads past the end of its string parameters. */
8004 #include <sys/types.h>
8010 #ifdef HAVE_SYS_MMAN_H
8011 #include <sys/mman.h>
8015 #ifdef MAP_ANONYMOUS
8016 #define MAP_ANON MAP_ANONYMOUS
8018 #define MAP_ANON MAP_FILE
8029 #define MAP_LEN 0x10000
8033 #if defined(HAVE_MMAP) || defined(HAVE_MMAP_ANYWHERE)
8037 dev_zero = open ("/dev/zero", O_RDONLY);
8041 p = (char *) mmap (0, MAP_LEN, PROT_READ|PROT_WRITE,
8042 MAP_ANON|MAP_PRIVATE, dev_zero, 0);
8043 if (p == (char *)-1)
8044 p = (char *) mmap (0, MAP_LEN, PROT_READ|PROT_WRITE,
8045 MAP_ANON|MAP_PRIVATE, -1, 0);
8046 if (p == (char *)-1)
8050 char *string = "__si_type_info";
8051 char *q = (char *) p + MAP_LEN - strlen (string) - 2;
8052 char *r = (char *) p + 0xe;
8058 #endif /* HAVE_MMAP || HAVE_MMAP_ANYWHERE */
8063 rm -f conftest
$ac_exeext
8064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8065 (eval $ac_link) 2>&5
8067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8073 (exit $ac_status); }; }; then
8074 ac_cv_func_strncmp_works
=yes
8076 echo "$as_me: program exited with status $ac_status" >&5
8077 echo "$as_me: failed program was:" >&5
8078 sed 's/^/| /' conftest.
$ac_ext >&5
8081 ac_cv_func_strncmp_works
=no
8083 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8085 rm -f core core.
* *.core
8087 echo "$as_me:$LINENO: result: $ac_cv_func_strncmp_works" >&5
8088 echo "${ECHO_T}$ac_cv_func_strncmp_works" >&6
8089 if test $ac_cv_func_strncmp_works = no
; then
8091 "strncmp.$ac_objext" | \
8092 *" strncmp.$ac_objext" | \
8093 "strncmp.$ac_objext "* | \
8094 *" strncmp.$ac_objext "* ) ;;
8095 *) LIBOBJS
="$LIBOBJS strncmp.$ac_objext" ;;
8101 # Install a library built with a cross compiler in $(tooldir) rather
8103 if test -z "${with_cross_host}"; then
8106 INSTALL_DEST
=tooldir
8110 # We need multilib support, but only if configuring for the target.
8111 ac_config_files
="$ac_config_files Makefile testsuite/Makefile"
8113 ac_config_commands
="$ac_config_commands default"
8115 cat >confcache
<<\_ACEOF
8116 # This file is a shell script that caches the results of configure
8117 # tests run on this system so they can be shared between configure
8118 # scripts and configure runs, see configure's option --config-cache.
8119 # It is not useful on other systems. If it contains results you don't
8120 # want to keep, you may remove or edit it.
8122 # config.status only pays attention to the cache file if you give it
8123 # the --recheck option to rerun configure.
8125 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8126 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8131 # The following way of writing the cache mishandles newlines in values,
8132 # but we know of no workaround that is simple, portable, and efficient.
8133 # So, don't put newlines in cache variables' values.
8134 # Ultrix sh set writes to stderr and can't be redirected directly,
8135 # and sets the high bit in the cache file unless we assign to the vars.
8138 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8140 # `set' does not quote correctly, so add quotes (double-quote
8141 # substitution turns \\\\ into \\, and sed turns \\ into \).
8144 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8147 # `set' quotes correctly as required by POSIX, so do not add quotes.
8149 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8156 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8158 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8160 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
8161 if test -w $cache_file; then
8162 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8163 cat confcache
>$cache_file
8165 echo "not updating unwritable cache $cache_file"
8170 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8171 # Let make expand exec_prefix.
8172 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8174 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8175 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8176 # trailing colons and then remove the whole line if VPATH becomes empty
8177 # (actually we leave an empty line to preserve line numbers).
8178 if test "x$srcdir" = x.
; then
8179 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
8180 s/:*\$(srcdir):*/:/;
8181 s/:*\${srcdir}:*/:/;
8183 s/^\([^=]*=[ ]*\):*/\1/;
8189 DEFS
=-DHAVE_CONFIG_H
8193 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
8194 # 1. Remove the extension, and $U if already installed.
8195 ac_i
=`echo "$ac_i" |
8196 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8198 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
8199 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
8203 LTLIBOBJS
=$ac_ltlibobjs
8207 : ${CONFIG_STATUS=./config.status}
8208 ac_clean_files_save
=$ac_clean_files
8209 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
8210 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8211 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8212 cat >$CONFIG_STATUS <<_ACEOF
8214 # Generated by $as_me.
8215 # Run this file to recreate the current configuration.
8216 # Compiler output produced by configure, useful for debugging
8217 # configure, is in config.log if it exists.
8222 SHELL=\${CONFIG_SHELL-$SHELL}
8225 cat >>$CONFIG_STATUS <<\_ACEOF
8226 ## --------------------- ##
8227 ## M4sh Initialization. ##
8228 ## --------------------- ##
8230 # Be Bourne compatible
8231 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
8234 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8235 # is contrary to our usage. Disable this feature.
8236 alias -g '${1+"$@"}'='"$@"'
8237 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
8240 DUALCASE
=1; export DUALCASE
# for MKS sh
8242 # Support unset when possible.
8243 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
8250 # Work around bugs in pre-3.0 UWIN ksh.
8251 $as_unset ENV MAIL MAILPATH
8258 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8259 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8260 LC_TELEPHONE LC_TIME
8262 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8263 eval $as_var=C
; export $as_var
8269 # Required to use basename.
8270 if expr a
: '\(a\)' >/dev
/null
2>&1; then
8276 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
8277 as_basename
=basename
8283 # Name of the executable.
8284 as_me
=`$as_basename "$0" ||
8285 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8286 X"$0" : 'X\(//\)$' \| \
8287 X"$0" : 'X\(/\)$' \| \
8288 . : '\(.\)' 2>/dev/null ||
8290 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8291 /^X\/\(\/\/\)$/{ s//\1/; q; }
8292 /^X\/\(\/\).*/{ s//\1/; q; }
8296 # PATH needs CR, and LINENO needs CR and PATH.
8297 # Avoid depending upon Character Ranges.
8298 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
8299 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8300 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
8301 as_cr_digits
='0123456789'
8302 as_cr_alnum
=$as_cr_Letters$as_cr_digits
8304 # The user is always right.
8305 if test "${PATH_SEPARATOR+set}" != set; then
8306 echo "#! /bin/sh" >conf$$.sh
8307 echo "exit 0" >>conf$$.sh
8309 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
8320 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
8321 test "x$as_lineno_1" != "x$as_lineno_2" &&
8322 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
8323 # Find who we are. Look in the path if we contain no path at all
8326 *[\\/]* ) as_myself
=$0 ;;
8327 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8331 test -z "$as_dir" && as_dir
=.
8332 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
8337 # We did not find ourselves, most probably we were run as `sh COMMAND'
8338 # in which case we are not to be found in the path.
8339 if test "x$as_myself" = x
; then
8342 if test ! -f "$as_myself"; then
8343 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8344 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8345 { (exit 1); exit 1; }; }
8347 case $CONFIG_SHELL in
8349 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8350 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
8353 test -z "$as_dir" && as_dir
=.
8354 for as_base
in sh bash ksh sh5
; do
8357 if ("$as_dir/$as_base" -c '
8360 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8361 test "x$as_lineno_1" != "x$as_lineno_2" &&
8362 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
8363 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
8364 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
8365 CONFIG_SHELL
=$as_dir/$as_base
8367 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8375 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8376 # uniformly replaced by the line number. The first 'sed' inserts a
8377 # line-number line before each line; the second 'sed' does the real
8378 # work. The second script uses 'N' to pair each line-number line
8379 # with the numbered line, and appends trailing '-' during
8380 # substitution so that $LINENO is not a special case at line end.
8381 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8382 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
8383 sed '=' <$as_myself |
8388 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8391 s,^['$as_cr_digits']*\n,,
8393 chmod +x
$as_me.lineno ||
8394 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8395 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8396 { (exit 1); exit 1; }; }
8398 # Don't try to exec as it changes $[0], causing all sort of problems
8399 # (the dirname of $[0] is not the place where we might find the
8400 # original and so on. Autoconf is especially sensible to this).
8402 # Exit status is that of the last command.
8407 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8408 *c
*,-n*) ECHO_N
= ECHO_C
='
8410 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
8411 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
8414 if expr a
: '\(a\)' >/dev
/null
2>&1; then
8420 rm -f conf$$ conf$$.exe conf$$.
file
8422 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
8423 # We could just check for DJGPP; but this test a) works b) is more generic
8424 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8425 if test -f conf$$.exe
; then
8426 # Don't use ln at all; we don't have any links
8431 elif ln conf$$.
file conf$$
2>/dev
/null
; then
8436 rm -f conf$$ conf$$.exe conf$$.
file
8438 if mkdir
-p .
2>/dev
/null
; then
8441 test -d .
/-p && rmdir .
/-p
8445 as_executable_p
="test -f"
8447 # Sed expression to map a string onto a valid CPP name.
8448 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8450 # Sed expression to map a string onto a valid variable name.
8451 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8455 # We need space, tab and new line, in precisely that order.
8465 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8466 # report actual input values of CONFIG_FILES etc. instead of their
8467 # values after options handling. Logging --version etc. is OK.
8471 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8472 ## Running $as_me. ##
8477 This file was extended by $as_me, which was
8478 generated by GNU Autoconf 2.59. Invocation command line was
8480 CONFIG_FILES = $CONFIG_FILES
8481 CONFIG_HEADERS = $CONFIG_HEADERS
8482 CONFIG_LINKS = $CONFIG_LINKS
8483 CONFIG_COMMANDS = $CONFIG_COMMANDS
8487 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8491 # Files that config.status was made for.
8492 if test -n "$ac_config_files"; then
8493 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8496 if test -n "$ac_config_headers"; then
8497 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8500 if test -n "$ac_config_links"; then
8501 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8504 if test -n "$ac_config_commands"; then
8505 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8508 cat >>$CONFIG_STATUS <<\_ACEOF
8511 \`$as_me' instantiates files from templates according to the
8512 current configuration.
8514 Usage: $0 [OPTIONS] [FILE]...
8516 -h, --help print this help, then exit
8517 -V, --version print version number, then exit
8518 -q, --quiet do not print progress messages
8519 -d, --debug don't remove temporary files
8520 --recheck update $as_me by reconfiguring in the same conditions
8521 --file=FILE[:TEMPLATE]
8522 instantiate the configuration file FILE
8523 --header=FILE[:TEMPLATE]
8524 instantiate the configuration header FILE
8526 Configuration files:
8529 Configuration headers:
8532 Configuration commands:
8535 Report bugs to <bug-autoconf@gnu.org>."
8538 cat >>$CONFIG_STATUS <<_ACEOF
8541 configured by $0, generated by GNU Autoconf 2.59,
8542 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8544 Copyright (C) 2003 Free Software Foundation, Inc.
8545 This config.status script is free software; the Free Software Foundation
8546 gives unlimited permission to copy, distribute and modify it."
8551 cat >>$CONFIG_STATUS <<\_ACEOF
8552 # If no file are specified by the user, then we need to provide default
8553 # value. By we need to know if files were specified by the user.
8559 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
8560 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
8568 *) # This is not an option, so the user has probably given explicit
8571 ac_need_defaults
=false
;;
8575 # Handling of the options.
8577 cat >>$CONFIG_STATUS <<\_ACEOF
8578 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
8580 --version |
--vers* |
-V )
8581 echo "$ac_cs_version"; exit 0 ;;
8583 # Conflict between --help and --header
8584 { { echo "$as_me:$LINENO: error: ambiguous option: $1
8585 Try \`$0 --help' for more information." >&5
8586 echo "$as_me: error: ambiguous option: $1
8587 Try \`$0 --help' for more information." >&2;}
8588 { (exit 1); exit 1; }; };;
8589 --help |
--hel |
-h )
8590 echo "$ac_cs_usage"; exit 0 ;;
8591 --debug |
--d* |
-d )
8593 --file |
--fil |
--fi |
--f )
8595 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
8596 ac_need_defaults
=false
;;
8597 --header |
--heade |
--head |
--hea )
8599 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
8600 ac_need_defaults
=false
;;
8601 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
8602 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
8606 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8607 Try \`$0 --help' for more information." >&5
8608 echo "$as_me: error: unrecognized option: $1
8609 Try \`$0 --help' for more information." >&2;}
8610 { (exit 1); exit 1; }; } ;;
8612 *) ac_config_targets
="$ac_config_targets $1" ;;
8618 ac_configure_extra_args
=
8620 if $ac_cs_silent; then
8622 ac_configure_extra_args
="$ac_configure_extra_args --silent"
8626 cat >>$CONFIG_STATUS <<_ACEOF
8627 if \$ac_cs_recheck; then
8628 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8629 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8634 cat >>$CONFIG_STATUS <<_ACEOF
8636 # INIT-COMMANDS section.
8642 with_target_subdir=${with_target_subdir}
8643 with_multisubdir=${with_multisubdir}
8644 ac_configure_args="--enable-multilib ${ac_configure_args}"
8645 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
8646 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
8647 libiberty_topdir=${libiberty_topdir}
8654 cat >>$CONFIG_STATUS <<\_ACEOF
8655 for ac_config_target
in $ac_config_targets
8657 case "$ac_config_target" in
8658 # Handling of arguments.
8659 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
8660 "testsuite/Makefile" ) CONFIG_FILES
="$CONFIG_FILES testsuite/Makefile" ;;
8661 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
8662 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
8663 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8664 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8665 { (exit 1); exit 1; }; };;
8669 # If the user did not use the arguments to specify the items to instantiate,
8670 # then the envvar interface is used. Set only those that are not.
8671 # We use the long form for the default assignment because of an extremely
8672 # bizarre bug on SunOS 4.1.3.
8673 if $ac_need_defaults; then
8674 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
8675 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
8676 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
8679 # Have a temporary directory for convenience. Make it in the build tree
8680 # simply because there is no reason to put it here, and in addition,
8681 # creating and moving files from /tmp can sometimes cause problems.
8682 # Create a temporary directory, and hook for its removal unless debugging.
8685 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8686 trap '{ (exit 1); exit 1; }' 1 2 13 15
8689 # Create a (secure) tmp directory for tmp files.
8692 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8693 test -n "$tmp" && test -d "$tmp"
8696 tmp
=.
/confstat$$
-$RANDOM
8697 (umask 077 && mkdir
$tmp)
8700 echo "$me: cannot create a temporary directory in ." >&2
8701 { (exit 1); exit 1; }
8706 cat >>$CONFIG_STATUS <<_ACEOF
8709 # CONFIG_FILES section.
8712 # No need to generate the scripts if there are no CONFIG_FILES.
8713 # This happens for instance when ./config.status config.h
8714 if test -n "\$CONFIG_FILES"; then
8715 # Protect against being on the right side of a sed subst in config.status.
8716 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8717 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8718 s,@SHELL@,$SHELL,;t t
8719 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8720 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8721 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8722 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8723 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8724 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8725 s,@exec_prefix@,$exec_prefix,;t t
8726 s,@prefix@,$prefix,;t t
8727 s,@program_transform_name@,$program_transform_name,;t t
8728 s,@bindir@,$bindir,;t t
8729 s,@sbindir@,$sbindir,;t t
8730 s,@libexecdir@,$libexecdir,;t t
8731 s,@datadir@,$datadir,;t t
8732 s,@sysconfdir@,$sysconfdir,;t t
8733 s,@sharedstatedir@,$sharedstatedir,;t t
8734 s,@localstatedir@,$localstatedir,;t t
8735 s,@libdir@,$libdir,;t t
8736 s,@includedir@,$includedir,;t t
8737 s,@oldincludedir@,$oldincludedir,;t t
8738 s,@infodir@,$infodir,;t t
8739 s,@mandir@,$mandir,;t t
8740 s,@build_alias@,$build_alias,;t t
8741 s,@host_alias@,$host_alias,;t t
8742 s,@target_alias@,$target_alias,;t t
8744 s,@ECHO_C@,$ECHO_C,;t t
8745 s,@ECHO_N@,$ECHO_N,;t t
8746 s,@ECHO_T@,$ECHO_T,;t t
8748 s,@libiberty_topdir@,$libiberty_topdir,;t t
8749 s,@MAINT@,$MAINT,;t t
8750 s,@NOTMAINT@,$NOTMAINT,;t t
8751 s,@MAKEINFO@,$MAKEINFO,;t t
8752 s,@BUILD_INFO@,$BUILD_INFO,;t t
8754 s,@HAVE_PERL@,$HAVE_PERL,;t t
8755 s,@build@,$build,;t t
8756 s,@build_cpu@,$build_cpu,;t t
8757 s,@build_vendor@,$build_vendor,;t t
8758 s,@build_os@,$build_os,;t t
8760 s,@host_cpu@,$host_cpu,;t t
8761 s,@host_vendor@,$host_vendor,;t t
8762 s,@host_os@,$host_os,;t t
8764 s,@ac_ct_AR@,$ac_ct_AR,;t t
8765 s,@RANLIB@,$RANLIB,;t t
8766 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8768 s,@CFLAGS@,$CFLAGS,;t t
8769 s,@LDFLAGS@,$LDFLAGS,;t t
8770 s,@CPPFLAGS@,$CPPFLAGS,;t t
8771 s,@ac_ct_CC@,$ac_ct_CC,;t t
8772 s,@EXEEXT@,$EXEEXT,;t t
8773 s,@OBJEXT@,$OBJEXT,;t t
8776 s,@STRIP@,$STRIP,;t t
8777 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8778 s,@LIBTOOL@,$LIBTOOL,;t t
8779 s,@ac_libiberty_warn_cflags@,$ac_libiberty_warn_cflags,;t t
8780 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8781 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8782 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8783 s,@EGREP@,$EGREP,;t t
8784 s,@LIBOBJS@,$LIBOBJS,;t t
8785 s,@CHECK@,$CHECK,;t t
8786 s,@target_header_dir@,$target_header_dir,;t t
8787 s,@pexecute@,$pexecute,;t t
8788 s,@ltpexecute@,$ltpexecute,;t t
8789 s,@INSTALL_DEST@,$INSTALL_DEST,;t t
8790 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8791 /@host_makefile_frag@/r $host_makefile_frag
8792 s,@host_makefile_frag@,,;t t
8797 cat >>$CONFIG_STATUS <<\_ACEOF
8798 # Split the substitutions into bite-sized pieces for seds with
8799 # small command number limits, like on Digital OSF/1 and HP-UX.
8801 ac_sed_frag
=1 # Number of current file.
8802 ac_beg
=1 # First line for current file.
8803 ac_end
=$ac_max_sed_lines # Line after last line for current file.
8806 while $ac_more_lines; do
8807 if test $ac_beg -gt 1; then
8808 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
8810 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
8812 if test ! -s $tmp/subs.frag
; then
8815 # The purpose of the label and of the branching condition is to
8816 # speed up the sed processing (if there are no `@' at all, there
8817 # is no need to browse any of the substitutions).
8818 # These are the two extra sed commands mentioned above.
8820 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
8821 if test -z "$ac_sed_cmds"; then
8822 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
8824 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8826 ac_sed_frag
=`expr $ac_sed_frag + 1`
8828 ac_end
=`expr $ac_end + $ac_max_sed_lines`
8831 if test -z "$ac_sed_cmds"; then
8834 fi # test -n "$CONFIG_FILES"
8837 cat >>$CONFIG_STATUS <<\_ACEOF
8838 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
8839 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8841 - |
*:- |
*:-:* ) # input from stdin
8843 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8844 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
8845 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8846 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
8847 * ) ac_file_in
=$ac_file.
in ;;
8850 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8851 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
8852 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8853 X"$ac_file" : 'X\(//\)[^/]' \| \
8854 X"$ac_file" : 'X\(//\)$' \| \
8855 X"$ac_file" : 'X\(/\)' \| \
8856 . : '\(.\)' 2>/dev/null ||
8858 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8859 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8860 /^X\(\/\/\)$/{ s//\1/; q; }
8861 /^X\(\/\).*/{ s//\1/; q; }
8863 { if $as_mkdir_p; then
8868 while test ! -d "$as_dir"; do
8869 as_dirs
="$as_dir $as_dirs"
8870 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
8871 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8872 X"$as_dir" : 'X\(//\)[^/]' \| \
8873 X"$as_dir" : 'X\(//\)$' \| \
8874 X"$as_dir" : 'X\(/\)' \| \
8875 . : '\(.\)' 2>/dev/null ||
8877 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8878 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8879 /^X\(\/\/\)$/{ s//\1/; q; }
8880 /^X\(\/\).*/{ s//\1/; q; }
8883 test ! -n "$as_dirs" || mkdir
$as_dirs
8884 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8885 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8886 { (exit 1); exit 1; }; }; }
8890 if test "$ac_dir" != .
; then
8891 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8892 # A "../" for each directory in $ac_dir_suffix.
8893 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8895 ac_dir_suffix
= ac_top_builddir
=
8899 .
) # No --srcdir option. We are building in place.
8901 if test -z "$ac_top_builddir"; then
8904 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
8906 [\\/]* | ?
:[\\/]* ) # Absolute path.
8907 ac_srcdir
=$srcdir$ac_dir_suffix;
8908 ac_top_srcdir
=$srcdir ;;
8910 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
8911 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
8914 # Do not use `cd foo && pwd` to compute absolute paths, because
8915 # the directories may not exist.
8917 .
) ac_abs_builddir
="$ac_dir";;
8920 .
) ac_abs_builddir
=`pwd`;;
8921 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
8922 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
8925 case $ac_abs_builddir in
8926 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
8928 case ${ac_top_builddir}.
in
8929 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
8930 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
8931 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
8934 case $ac_abs_builddir in
8935 .
) ac_abs_srcdir
=$ac_srcdir;;
8938 .
) ac_abs_srcdir
=$ac_abs_builddir;;
8939 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
8940 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
8943 case $ac_abs_builddir in
8944 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
8946 case $ac_top_srcdir in
8947 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
8948 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
8949 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
8955 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
8956 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
8959 if test x
"$ac_file" != x-
; then
8960 { echo "$as_me:$LINENO: creating $ac_file" >&5
8961 echo "$as_me: creating $ac_file" >&6;}
8964 # Let's still pretend it is `configure' which instantiates (i.e., don't
8965 # use $as_me), people would be surprised to read:
8966 # /* config.h. Generated by config.status. */
8967 if test x
"$ac_file" = x-
; then
8970 configure_input
="$ac_file. "
8972 configure_input
=$configure_input"Generated from `echo $ac_file_in |
8973 sed 's,.*/,,'` by configure."
8975 # First look for the input files in the build tree, otherwise in the
8977 ac_file_inputs
=`IFS=:
8978 for f in $ac_file_in; do
8980 -) echo $tmp/stdin ;;
8982 # Absolute (can't be DOS-style, as IFS=:)
8983 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8984 echo "$as_me: error: cannot find input file: $f" >&2;}
8985 { (exit 1); exit 1; }; }
8988 if test -f "$f"; then
8991 elif test -f "$srcdir/$f"; then
8996 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8997 echo "$as_me: error: cannot find input file: $f" >&2;}
8998 { (exit 1); exit 1; }; }
9001 done` ||
{ (exit 1); exit 1; }
9003 cat >>$CONFIG_STATUS <<_ACEOF
9007 cat >>$CONFIG_STATUS <<\_ACEOF
9009 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
9010 s
,@configure_input@
,$configure_input,;t t
9011 s
,@srcdir@
,$ac_srcdir,;t t
9012 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
9013 s
,@top_srcdir@
,$ac_top_srcdir,;t t
9014 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
9015 s
,@builddir@
,$ac_builddir,;t t
9016 s
,@abs_builddir@
,$ac_abs_builddir,;t t
9017 s
,@top_builddir@
,$ac_top_builddir,;t t
9018 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
9019 s
,@INSTALL@
,$ac_INSTALL,;t t
9020 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9022 if test x"$ac_file" != x-; then
9023 mv $tmp/out $ac_file
9031 cat >>$CONFIG_STATUS <<\_ACEOF
9034 # CONFIG_HEADER section.
9037 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
9038 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9040 # ac_d sets the value in "#define NAME VALUE" lines.
9041 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9042 ac_dB
='[ ].*$,\1#\2'
9045 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9046 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9047 ac_uB
='$,\1#\2define\3'
9051 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
9052 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9054 - |
*:- |
*:-:* ) # input from stdin
9056 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9057 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9058 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9059 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9060 * ) ac_file_in
=$ac_file.
in ;;
9063 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
9064 echo "$as_me: creating $ac_file" >&6;}
9066 # First look for the input files in the build tree, otherwise in the
9068 ac_file_inputs
=`IFS=:
9069 for f in $ac_file_in; do
9071 -) echo $tmp/stdin ;;
9073 # Absolute (can't be DOS-style, as IFS=:)
9074 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9075 echo "$as_me: error: cannot find input file: $f" >&2;}
9076 { (exit 1); exit 1; }; }
9077 # Do quote $f, to prevent DOS paths from being IFS'd.
9080 if test -f "$f"; then
9083 elif test -f "$srcdir/$f"; then
9088 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9089 echo "$as_me: error: cannot find input file: $f" >&2;}
9090 { (exit 1); exit 1; }; }
9093 done` ||
{ (exit 1); exit 1; }
9094 # Remove the trailing spaces.
9095 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9099 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9100 # `conftest.undefs', that substitutes the proper values into
9101 # config.h.in to produce config.h. The first handles `#define'
9102 # templates, and the second `#undef' templates.
9103 # And first: Protect against being on the right side of a sed subst in
9104 # config.status. Protect against being in an unquoted here document
9106 rm -f conftest.defines conftest.undefs
9107 # Using a here document instead of a string reduces the quoting nightmare.
9108 # Putting comments in sed scripts is not portable.
9110 # `end' is used to avoid that the second main sed command (meant for
9111 # 0-ary CPP macros) applies to n-ary macro definitions.
9112 # See the Autoconf documentation for `clear'.
9113 cat >confdef2sed.
sed <<\_ACEOF
9118 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9120 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9123 # If some macros were called several times there might be several times
9124 # the same #defines, which is useless. Nevertheless, we may not want to
9125 # sort them, since we want the *last* AC-DEFINE to be honored.
9126 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9127 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9128 rm -f confdef2sed.sed
9130 # This sed command replaces #undef with comments. This is necessary, for
9131 # example, in the case of _POSIX_SOURCE, which is predefined and required
9132 # on some systems where configure will not decide to define it.
9133 cat >>conftest.undefs <<\_ACEOF
9134 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9137 # Break up conftest.defines because some shells have a limit on the size
9138 # of here documents, and old seds have small limits too (100 cmds).
9139 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9140 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9141 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9142 echo ' :' >>$CONFIG_STATUS
9144 while grep . conftest.defines >/dev/null
9146 # Write a limited-size here document to $tmp/defines.sed.
9147 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9148 # Speed up: don't consider the non `#define' lines.
9149 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9150 # Work around the forget-to-reset-the-flag bug.
9151 echo 't clr' >>$CONFIG_STATUS
9152 echo ': clr' >>$CONFIG_STATUS
9153 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
9155 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9159 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
9160 rm -f conftest.defines
9161 mv conftest.
tail conftest.defines
9163 rm -f conftest.defines
9164 echo ' fi # grep' >>$CONFIG_STATUS
9165 echo >>$CONFIG_STATUS
9167 # Break up conftest.undefs because some shells have a limit on the size
9168 # of here documents, and old seds have small limits too (100 cmds).
9169 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9171 while grep . conftest.undefs
>/dev
/null
9173 # Write a limited-size here document to $tmp/undefs.sed.
9174 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9175 # Speed up: don't consider the non
`#undef'
9176 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9177 # Work around the forget-to-reset-the-flag bug.
9178 echo 't clr' >>$CONFIG_STATUS
9179 echo ': clr' >>$CONFIG_STATUS
9180 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9182 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9186 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9187 rm -f conftest.undefs
9188 mv conftest.tail conftest.undefs
9190 rm -f conftest.undefs
9192 cat >>$CONFIG_STATUS <<\_ACEOF
9193 # Let's still pretend it is `configure
' which instantiates (i.e., don't
9194 # use $as_me), people would be surprised to read:
9195 # /* config.h. Generated by config.status. */
9196 if test x
"$ac_file" = x-
; then
9197 echo "/* Generated by configure. */" >$tmp/config.h
9199 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
9201 cat $tmp/in >>$tmp/config.h
9203 if test x
"$ac_file" != x-
; then
9204 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
9205 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9206 echo "$as_me: $ac_file is unchanged" >&6;}
9208 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
9209 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9210 X"$ac_file" : 'X\(//\)[^/]' \| \
9211 X"$ac_file" : 'X\(//\)$' \| \
9212 X"$ac_file" : 'X\(/\)' \| \
9213 . : '\(.\)' 2>/dev/null ||
9215 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9216 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9217 /^X\(\/\/\)$/{ s//\1/; q; }
9218 /^X\(\/\).*/{ s//\1/; q; }
9220 { if $as_mkdir_p; then
9225 while test ! -d "$as_dir"; do
9226 as_dirs
="$as_dir $as_dirs"
9227 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
9228 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9229 X"$as_dir" : 'X\(//\)[^/]' \| \
9230 X"$as_dir" : 'X\(//\)$' \| \
9231 X"$as_dir" : 'X\(/\)' \| \
9232 . : '\(.\)' 2>/dev/null ||
9234 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9235 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9236 /^X\(\/\/\)$/{ s//\1/; q; }
9237 /^X\(\/\).*/{ s//\1/; q; }
9240 test ! -n "$as_dirs" || mkdir
$as_dirs
9241 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9242 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9243 { (exit 1); exit 1; }; }; }
9246 mv $tmp/config.h
$ac_file
9254 cat >>$CONFIG_STATUS <<\_ACEOF
9257 # CONFIG_COMMANDS section.
9259 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
9260 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
9261 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9262 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
9263 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9264 X"$ac_dest" : 'X\(//\)[^/]' \| \
9265 X"$ac_dest" : 'X\(//\)$' \| \
9266 X"$ac_dest" : 'X\(/\)' \| \
9267 . : '\(.\)' 2>/dev/null ||
9269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9270 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9271 /^X\(\/\/\)$/{ s//\1/; q; }
9272 /^X\(\/\).*/{ s//\1/; q; }
9274 { if $as_mkdir_p; then
9279 while test ! -d "$as_dir"; do
9280 as_dirs
="$as_dir $as_dirs"
9281 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
9282 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9283 X"$as_dir" : 'X\(//\)[^/]' \| \
9284 X"$as_dir" : 'X\(//\)$' \| \
9285 X"$as_dir" : 'X\(/\)' \| \
9286 . : '\(.\)' 2>/dev/null ||
9288 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9289 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9290 /^X\(\/\/\)$/{ s//\1/; q; }
9291 /^X\(\/\).*/{ s//\1/; q; }
9294 test ! -n "$as_dirs" || mkdir
$as_dirs
9295 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9296 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9297 { (exit 1); exit 1; }; }; }
9301 if test "$ac_dir" != .
; then
9302 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9303 # A "../" for each directory in $ac_dir_suffix.
9304 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9306 ac_dir_suffix
= ac_top_builddir
=
9310 .
) # No --srcdir option. We are building in place.
9312 if test -z "$ac_top_builddir"; then
9315 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
9317 [\\/]* | ?
:[\\/]* ) # Absolute path.
9318 ac_srcdir
=$srcdir$ac_dir_suffix;
9319 ac_top_srcdir
=$srcdir ;;
9321 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
9322 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
9325 # Do not use `cd foo && pwd` to compute absolute paths, because
9326 # the directories may not exist.
9328 .
) ac_abs_builddir
="$ac_dir";;
9331 .
) ac_abs_builddir
=`pwd`;;
9332 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
9333 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
9336 case $ac_abs_builddir in
9337 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
9339 case ${ac_top_builddir}.
in
9340 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
9341 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
9342 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
9345 case $ac_abs_builddir in
9346 .
) ac_abs_srcdir
=$ac_srcdir;;
9349 .
) ac_abs_srcdir
=$ac_abs_builddir;;
9350 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
9351 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
9354 case $ac_abs_builddir in
9355 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
9357 case $ac_top_srcdir in
9358 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
9359 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
9360 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
9365 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9366 echo "$as_me: executing $ac_dest commands" >&6;}
9368 default
) test -z "$CONFIG_HEADERS" ||
echo timestamp
> stamp-h
9369 if test -n "$CONFIG_FILES"; then
9370 if test -n "${with_target_subdir}"; then
9371 # FIXME: We shouldn't need to set ac_file
9373 LD
="${ORIGINAL_LD_FOR_MULTILIBS}"
9374 .
${libiberty_topdir}/config-ml.
in
9381 cat >>$CONFIG_STATUS <<\_ACEOF
9383 { (exit 0); exit 0; }
9385 chmod +x
$CONFIG_STATUS
9386 ac_clean_files
=$ac_clean_files_save
9389 # configure is writing to config.log, and then calls config.status.
9390 # config.status does its own redirection, appending to config.log.
9391 # Unfortunately, on DOS this fails, as config.log is still kept open
9392 # by configure, so config.status won't be able to write to it; its
9393 # output is simply discarded. So we exec the FD to /dev/null,
9394 # effectively closing config.log, so it can be properly (re)opened and
9395 # appended to by config.status. When coming back to configure, we
9396 # need to make the FD available again.
9397 if test "$no_create" != yes; then
9399 ac_config_status_args
=
9400 test "$silent" = yes &&
9401 ac_config_status_args
="$ac_config_status_args --quiet"
9403 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
9405 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9406 # would make configure fail if this is the last instruction.
9407 $ac_cs_success ||
{ (exit 1); exit 1; }