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 lt_cv_deplibs_check_method
='file_magic Mach-O dynamically linked shared library'
3207 lt_cv_file_magic_cmd
='/usr/bin/file -L'
3209 rhapsody
* | darwin1.012
)
3210 lt_cv_file_magic_test_file
='/System/Library/Frameworks/System.framework/System'
3213 lt_cv_file_magic_test_file
='/usr/lib/libSystem.dylib'
3218 freebsd
* | kfreebsd
*-gnu)
3219 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
3222 # Not sure whether the presence of OpenBSD here was a mistake.
3223 # Let's accept both of them until this is cleared up.
3224 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3225 lt_cv_file_magic_cmd
=/usr
/bin
/file
3226 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
3230 lt_cv_deplibs_check_method
=pass_all
3235 lt_cv_deplibs_check_method
=pass_all
3241 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3242 lt_cv_file_magic_cmd
=/usr
/bin
/file
3243 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
3246 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3247 lt_cv_file_magic_cmd
=/usr
/bin
/file
3248 lt_cv_file_magic_test_file
=/usr
/lib
/hpux32
/libc.so
3256 # this will be overridden with pass_all, but let us keep it just in case
3257 lt_cv_deplibs_check_method
="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3261 *-32|
*"-32 ") libmagic
=32-bit;;
3262 *-n32|
*"-n32 ") libmagic
=N32
;;
3263 *-64|
*"-64 ") libmagic
=64-bit;;
3264 *) libmagic
=never-match
;;
3266 # this will be overridden with pass_all, but let us keep it just in case
3267 lt_cv_deplibs_check_method
="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3270 lt_cv_file_magic_test_file
=`echo /lib${libsuff}/libc.so*`
3271 lt_cv_deplibs_check_method
=pass_all
3274 # This must be Linux ELF.
3277 alpha
* | mips
* | hppa
* | i
*86 | powerpc
* | sparc
* | ia64
* )
3278 lt_cv_deplibs_check_method
=pass_all
;;
3280 # glibc up to 2.1.1 does not perform some relocations on ARM
3281 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3283 lt_cv_file_magic_test_file
=`echo /lib/libc.so* /lib/libc-*.so`
3286 netbsd
* | knetbsd
*-gnu)
3287 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
3288 lt_cv_deplibs_check_method
='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3290 lt_cv_deplibs_check_method
='match_pattern /lib[^/\.]+\.so$'
3295 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3296 lt_cv_file_magic_cmd
=/usr
/bin
/file
3297 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
3300 osf3
* | osf4
* | osf5
*)
3301 # this will be overridden with pass_all, but let us keep it just in case
3302 lt_cv_deplibs_check_method
='file_magic COFF format alpha shared library'
3303 lt_cv_file_magic_test_file
=/shlib
/libc.so
3304 lt_cv_deplibs_check_method
=pass_all
3308 lt_cv_deplibs_check_method
=pass_all
3312 lt_cv_deplibs_check_method
=pass_all
3313 lt_cv_file_magic_test_file
=/lib
/libc.so
3316 sysv5uw
[78]* | sysv4
*uw2
*)
3317 lt_cv_deplibs_check_method
=pass_all
3320 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
3321 case $host_vendor in
3323 lt_cv_deplibs_check_method
=pass_all
3326 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]'
3327 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
3334 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3335 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3336 file_magic_cmd
=$lt_cv_file_magic_cmd
3337 deplibs_check_method
=$lt_cv_deplibs_check_method
3343 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3345 # Only perform the check for file, if the check method requires it
3346 case $deplibs_check_method in
3348 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3349 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3350 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3351 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3352 echo $ECHO_N "(cached) $ECHO_C" >&6
3356 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
3359 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
3362 ac_save_MAGIC_CMD
="$MAGIC_CMD"
3363 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3364 ac_dummy
="/usr/bin:$PATH"
3365 for ac_dir
in $ac_dummy; do
3366 test -z "$ac_dir" && ac_dir
=.
3367 if test -f $ac_dir/${ac_tool_prefix}file; then
3368 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
3369 if test -n "$file_magic_test_file"; then
3370 case $deplibs_check_method in
3372 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3373 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
3374 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
3375 egrep "$file_magic_regex" > /dev
/null
; then
3380 *** Warning: the command libtool uses to detect shared libraries,
3381 *** $file_magic_cmd, produces output that libtool cannot recognize.
3382 *** The result is that libtool may fail to recognize shared libraries
3383 *** as such. This will affect the creation of libtool libraries that
3384 *** depend on shared libraries, but programs linked with such libtool
3385 *** libraries will work regardless of this problem. Nevertheless, you
3386 *** may want to report the problem to your system manager and/or to
3387 *** bug-libtool@gnu.org
3397 MAGIC_CMD
="$ac_save_MAGIC_CMD"
3402 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
3403 if test -n "$MAGIC_CMD"; then
3404 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3405 echo "${ECHO_T}$MAGIC_CMD" >&6
3407 echo "$as_me:$LINENO: result: no" >&5
3408 echo "${ECHO_T}no" >&6
3411 if test -z "$lt_cv_path_MAGIC_CMD"; then
3412 if test -n "$ac_tool_prefix"; then
3413 echo "$as_me:$LINENO: checking for file" >&5
3414 echo $ECHO_N "checking for file... $ECHO_C" >&6
3415 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3416 echo $ECHO_N "(cached) $ECHO_C" >&6
3420 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
3423 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
3426 ac_save_MAGIC_CMD
="$MAGIC_CMD"
3427 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3428 ac_dummy
="/usr/bin:$PATH"
3429 for ac_dir
in $ac_dummy; do
3430 test -z "$ac_dir" && ac_dir
=.
3431 if test -f $ac_dir/file; then
3432 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
3433 if test -n "$file_magic_test_file"; then
3434 case $deplibs_check_method in
3436 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3437 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
3438 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
3439 egrep "$file_magic_regex" > /dev
/null
; then
3444 *** Warning: the command libtool uses to detect shared libraries,
3445 *** $file_magic_cmd, produces output that libtool cannot recognize.
3446 *** The result is that libtool may fail to recognize shared libraries
3447 *** as such. This will affect the creation of libtool libraries that
3448 *** depend on shared libraries, but programs linked with such libtool
3449 *** libraries will work regardless of this problem. Nevertheless, you
3450 *** may want to report the problem to your system manager and/or to
3451 *** bug-libtool@gnu.org
3461 MAGIC_CMD
="$ac_save_MAGIC_CMD"
3466 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
3467 if test -n "$MAGIC_CMD"; then
3468 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3469 echo "${ECHO_T}$MAGIC_CMD" >&6
3471 echo "$as_me:$LINENO: result: no" >&5
3472 echo "${ECHO_T}no" >&6
3484 if test -n "$ac_tool_prefix"; then
3485 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3486 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3487 echo "$as_me:$LINENO: checking for $ac_word" >&5
3488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3489 if test "${ac_cv_prog_RANLIB+set}" = set; then
3490 echo $ECHO_N "(cached) $ECHO_C" >&6
3492 if test -n "$RANLIB"; then
3493 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3495 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3499 test -z "$as_dir" && as_dir
=.
3500 for ac_exec_ext
in '' $ac_executable_extensions; do
3501 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3502 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3511 RANLIB
=$ac_cv_prog_RANLIB
3512 if test -n "$RANLIB"; then
3513 echo "$as_me:$LINENO: result: $RANLIB" >&5
3514 echo "${ECHO_T}$RANLIB" >&6
3516 echo "$as_me:$LINENO: result: no" >&5
3517 echo "${ECHO_T}no" >&6
3521 if test -z "$ac_cv_prog_RANLIB"; then
3522 ac_ct_RANLIB
=$RANLIB
3523 # Extract the first word of "ranlib", so it can be a program name with args.
3524 set dummy ranlib
; ac_word
=$2
3525 echo "$as_me:$LINENO: checking for $ac_word" >&5
3526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3527 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3528 echo $ECHO_N "(cached) $ECHO_C" >&6
3530 if test -n "$ac_ct_RANLIB"; then
3531 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3533 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3537 test -z "$as_dir" && as_dir
=.
3538 for ac_exec_ext
in '' $ac_executable_extensions; do
3539 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3540 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3541 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3547 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3550 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3551 if test -n "$ac_ct_RANLIB"; then
3552 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3553 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3555 echo "$as_me:$LINENO: result: no" >&5
3556 echo "${ECHO_T}no" >&6
3559 RANLIB
=$ac_ct_RANLIB
3561 RANLIB
="$ac_cv_prog_RANLIB"
3564 if test -n "$ac_tool_prefix"; then
3565 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3566 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3567 echo "$as_me:$LINENO: checking for $ac_word" >&5
3568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3569 if test "${ac_cv_prog_STRIP+set}" = set; then
3570 echo $ECHO_N "(cached) $ECHO_C" >&6
3572 if test -n "$STRIP"; then
3573 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3575 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3579 test -z "$as_dir" && as_dir
=.
3580 for ac_exec_ext
in '' $ac_executable_extensions; do
3581 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3582 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3591 STRIP
=$ac_cv_prog_STRIP
3592 if test -n "$STRIP"; then
3593 echo "$as_me:$LINENO: result: $STRIP" >&5
3594 echo "${ECHO_T}$STRIP" >&6
3596 echo "$as_me:$LINENO: result: no" >&5
3597 echo "${ECHO_T}no" >&6
3601 if test -z "$ac_cv_prog_STRIP"; then
3603 # Extract the first word of "strip", so it can be a program name with args.
3604 set dummy strip
; ac_word
=$2
3605 echo "$as_me:$LINENO: checking for $ac_word" >&5
3606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3607 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3608 echo $ECHO_N "(cached) $ECHO_C" >&6
3610 if test -n "$ac_ct_STRIP"; then
3611 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3613 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3617 test -z "$as_dir" && as_dir
=.
3618 for ac_exec_ext
in '' $ac_executable_extensions; do
3619 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3620 ac_cv_prog_ac_ct_STRIP
="strip"
3621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3627 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP
=":"
3630 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3631 if test -n "$ac_ct_STRIP"; then
3632 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3633 echo "${ECHO_T}$ac_ct_STRIP" >&6
3635 echo "$as_me:$LINENO: result: no" >&5
3636 echo "${ECHO_T}no" >&6
3641 STRIP
="$ac_cv_prog_STRIP"
3645 # Check for any special flags to pass to ltconfig.
3646 libtool_flags
="--cache-file=$cache_file"
3647 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
3648 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
3649 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
3650 test "$GCC" = yes && libtool_flags
="$libtool_flags --with-gcc"
3651 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
3654 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3655 if test "${enable_libtool_lock+set}" = set; then
3656 enableval
="$enable_libtool_lock"
3659 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
3660 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
3663 # Check whether --with-pic or --without-pic was given.
3664 if test "${with_pic+set}" = set; then
3670 test x
"$pic_mode" = xyes
&& libtool_flags
="$libtool_flags --prefer-pic"
3671 test x
"$pic_mode" = xno
&& libtool_flags
="$libtool_flags --prefer-non-pic"
3673 # Some flags need to be propagated to the compiler or linker for good
3677 # Find out which ABI we are using.
3678 echo '#line 3678 "configure"' > conftest.
$ac_ext
3679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3680 (eval $ac_compile) 2>&5
3682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683 (exit $ac_status); }; then
3684 if test "$lt_cv_prog_gnu_ld" = yes; then
3685 case `/usr/bin/file conftest.$ac_objext` in
3687 LD
="${LD-ld} -melf32bsmip"
3690 LD
="${LD-ld} -melf32bmipn32"
3693 LD
="${LD-ld} -melf64bmip"
3697 case `/usr/bin/file conftest.$ac_objext` in
3714 # Find out which ABI we are using.
3715 echo 'int i;' > conftest.
$ac_ext
3716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3717 (eval $ac_compile) 2>&5
3719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720 (exit $ac_status); }; then
3721 case "`/usr/bin/file conftest.o`" in
3734 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3735 SAVE_CFLAGS
="$CFLAGS"
3736 CFLAGS
="$CFLAGS -belf"
3737 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3738 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3739 if test "${lt_cv_cc_needs_belf+set}" = set; then
3740 echo $ECHO_N "(cached) $ECHO_C" >&6
3745 ac_cpp
='$CPP $CPPFLAGS'
3746 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3747 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3748 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3750 if test x
$gcc_no_link = xyes
; then
3751 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
3752 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
3753 { (exit 1); exit 1; }; }
3755 cat >conftest.
$ac_ext <<_ACEOF
3758 cat confdefs.h
>>conftest.
$ac_ext
3759 cat >>conftest.
$ac_ext <<_ACEOF
3760 /* end confdefs.h. */
3770 rm -f conftest.
$ac_objext conftest
$ac_exeext
3771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3772 (eval $ac_link) 2>conftest.er1
3774 grep -v '^ *+' conftest.er1
>conftest.err
3776 cat conftest.err
>&5
3777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778 (exit $ac_status); } &&
3779 { ac_try
='test -z "$ac_c_werror_flag"
3780 || test ! -s conftest.err'
3781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785 (exit $ac_status); }; } &&
3786 { ac_try
='test -s conftest$ac_exeext'
3787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791 (exit $ac_status); }; }; then
3792 lt_cv_cc_needs_belf
=yes
3794 echo "$as_me: failed program was:" >&5
3795 sed 's/^/| /' conftest.
$ac_ext >&5
3797 lt_cv_cc_needs_belf
=no
3799 rm -f conftest.err conftest.
$ac_objext \
3800 conftest
$ac_exeext conftest.
$ac_ext
3802 ac_cpp
='$CPP $CPPFLAGS'
3803 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3804 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3805 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3808 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3809 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3810 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
3811 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3812 CFLAGS
="$SAVE_CFLAGS"
3820 # Save cache, so that ltconfig can load it
3821 cat >confcache
<<\_ACEOF
3822 # This file is a shell script that caches the results of configure
3823 # tests run on this system so they can be shared between configure
3824 # scripts and configure runs, see configure's option --config-cache.
3825 # It is not useful on other systems. If it contains results you don't
3826 # want to keep, you may remove or edit it.
3828 # config.status only pays attention to the cache file if you give it
3829 # the --recheck option to rerun configure.
3831 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3832 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3837 # The following way of writing the cache mishandles newlines in values,
3838 # but we know of no workaround that is simple, portable, and efficient.
3839 # So, don't put newlines in cache variables' values.
3840 # Ultrix sh set writes to stderr and can't be redirected directly,
3841 # and sets the high bit in the cache file unless we assign to the vars.
3844 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3846 # `set' does not quote correctly, so add quotes (double-quote
3847 # substitution turns \\\\ into \\, and sed turns \\ into \).
3850 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3853 # `set' quotes correctly as required by POSIX, so do not add quotes.
3855 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3862 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3864 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3866 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
3867 if test -w $cache_file; then
3868 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3869 cat confcache
>$cache_file
3871 echo "not updating unwritable cache $cache_file"
3876 # Actually configure libtool. ac_aux_dir is where install-sh is found.
3877 AR
="$AR" LTCC
="$CC" CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
3878 MAGIC_CMD
="$MAGIC_CMD" LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
3879 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" STRIP
="$STRIP" \
3880 AS
="$AS" DLLTOOL
="$DLLTOOL" OBJDUMP
="$OBJDUMP" \
3881 objext
="$OBJEXT" exeext
="$EXEEXT" reload_flag
="$reload_flag" \
3882 deplibs_check_method
="$deplibs_check_method" file_magic_cmd
="$file_magic_cmd" \
3883 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
3884 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh
$host \
3885 ||
{ { echo "$as_me:$LINENO: error: libtool configure failed" >&5
3886 echo "$as_me: error: libtool configure failed" >&2;}
3887 { (exit 1); exit 1; }; }
3889 # Reload cache, that may have been modified by ltconfig
3890 if test -r "$cache_file"; then
3891 # Some versions of bash will fail to source /dev/null (special
3892 # files actually), so we avoid doing that.
3893 if test -f "$cache_file"; then
3894 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
3895 echo "$as_me: loading cache $cache_file" >&6;}
3897 [\\/]* | ?
:[\\/]* ) .
$cache_file;;
3898 *) . .
/$cache_file;;
3902 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
3903 echo "$as_me: creating cache $cache_file" >&6;}
3908 # This can be used to rebuild libtool when needed
3909 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
3911 # Always use our own libtool.
3912 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
3914 # Redirect the config.log output again, so that the ltconfig log is not
3915 # clobbered by the next message.
3916 exec 5>>.
/config.log
3924 if test x
$GCC = xyes
; then
3925 ac_libiberty_warn_cflags
='-W -Wall -Wtraditional -pedantic'
3929 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3930 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3931 if test "${ac_cv_c_const+set}" = set; then
3932 echo $ECHO_N "(cached) $ECHO_C" >&6
3934 cat >conftest.
$ac_ext <<_ACEOF
3937 cat confdefs.h
>>conftest.
$ac_ext
3938 cat >>conftest.
$ac_ext <<_ACEOF
3939 /* end confdefs.h. */
3944 /* FIXME: Include the comments suggested by Paul. */
3946 /* Ultrix mips cc rejects this. */
3947 typedef int charset[2];
3949 /* SunOS 4.1.1 cc rejects this. */
3950 char const *const *ccp;
3952 /* NEC SVR4.0.2 mips cc rejects this. */
3953 struct point {int x, y;};
3954 static struct point const zero = {0,0};
3955 /* AIX XL C 1.02.0.0 rejects this.
3956 It does not let you subtract one const X* pointer from another in
3957 an arm of an if-expression whose if-part is not a constant
3959 const char *g = "string";
3960 ccp = &g + (g ? g-g : 0);
3961 /* HPUX 7.0 cc rejects these. */
3964 ccp = (char const *const *) p;
3965 { /* SCO 3.2v4 cc rejects this. */
3967 char const *s = 0 ? (char *) 0 : (char const *) 0;
3971 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3973 const int *foo = &x[0];
3976 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3977 typedef const int *iptr;
3981 { /* AIX XL C 1.02.0.0 rejects this saying
3982 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3983 struct s { int j; const int *ap[3]; };
3984 struct s *b; b->j = 5;
3986 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3995 rm -f conftest.
$ac_objext
3996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3997 (eval $ac_compile) 2>conftest.er1
3999 grep -v '^ *+' conftest.er1
>conftest.err
4001 cat conftest.err
>&5
4002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003 (exit $ac_status); } &&
4004 { ac_try
='test -z "$ac_c_werror_flag"
4005 || test ! -s conftest.err'
4006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010 (exit $ac_status); }; } &&
4011 { ac_try
='test -s conftest.$ac_objext'
4012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016 (exit $ac_status); }; }; then
4019 echo "$as_me: failed program was:" >&5
4020 sed 's/^/| /' conftest.
$ac_ext >&5
4024 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4026 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4027 echo "${ECHO_T}$ac_cv_c_const" >&6
4028 if test $ac_cv_c_const = no
; then
4030 cat >>confdefs.h
<<\_ACEOF
4036 echo "$as_me:$LINENO: checking for inline" >&5
4037 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4038 if test "${ac_cv_c_inline+set}" = set; then
4039 echo $ECHO_N "(cached) $ECHO_C" >&6
4042 for ac_kw
in inline __inline__ __inline
; do
4043 cat >conftest.
$ac_ext <<_ACEOF
4046 cat confdefs.h
>>conftest.
$ac_ext
4047 cat >>conftest.
$ac_ext <<_ACEOF
4048 /* end confdefs.h. */
4051 static $ac_kw foo_t static_foo () {return 0; }
4052 $ac_kw foo_t foo () {return 0; }
4056 rm -f conftest.
$ac_objext
4057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4058 (eval $ac_compile) 2>conftest.er1
4060 grep -v '^ *+' conftest.er1
>conftest.err
4062 cat conftest.err
>&5
4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064 (exit $ac_status); } &&
4065 { ac_try
='test -z "$ac_c_werror_flag"
4066 || test ! -s conftest.err'
4067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071 (exit $ac_status); }; } &&
4072 { ac_try
='test -s conftest.$ac_objext'
4073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); }; }; then
4078 ac_cv_c_inline
=$ac_kw; break
4080 echo "$as_me: failed program was:" >&5
4081 sed 's/^/| /' conftest.
$ac_ext >&5
4084 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4088 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4089 echo "${ECHO_T}$ac_cv_c_inline" >&6
4092 case $ac_cv_c_inline in
4095 case $ac_cv_c_inline in
4097 *) ac_val
=$ac_cv_c_inline;;
4099 cat >>confdefs.h
<<_ACEOF
4101 #define inline $ac_val
4107 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4108 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4109 if test "${ac_cv_c_bigendian+set}" = set; then
4110 echo $ECHO_N "(cached) $ECHO_C" >&6
4112 ac_cv_c_bigendian
=unknown
4113 # See if sys/param.h defines the BYTE_ORDER macro.
4114 cat >conftest.
$ac_ext <<_ACEOF
4117 cat confdefs.h
>>conftest.
$ac_ext
4118 cat >>conftest.
$ac_ext <<_ACEOF
4119 /* end confdefs.h. */
4120 #include <sys/types.h>
4121 #include <sys/param.h>
4126 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4133 rm -f conftest.
$ac_objext
4134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4135 (eval $ac_compile) 2>conftest.er1
4137 grep -v '^ *+' conftest.er1
>conftest.err
4139 cat conftest.err
>&5
4140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141 (exit $ac_status); } &&
4142 { ac_try
='test -z "$ac_c_werror_flag"
4143 || test ! -s conftest.err'
4144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148 (exit $ac_status); }; } &&
4149 { ac_try
='test -s conftest.$ac_objext'
4150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); }; }; then
4155 # It does; now see whether it defined to BIG_ENDIAN or not.
4156 cat >conftest.
$ac_ext <<_ACEOF
4159 cat confdefs.h
>>conftest.
$ac_ext
4160 cat >>conftest.
$ac_ext <<_ACEOF
4161 /* end confdefs.h. */
4162 #include <sys/types.h>
4163 #include <sys/param.h>
4168 #if BYTE_ORDER != BIG_ENDIAN
4175 rm -f conftest.
$ac_objext
4176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4177 (eval $ac_compile) 2>conftest.er1
4179 grep -v '^ *+' conftest.er1
>conftest.err
4181 cat conftest.err
>&5
4182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183 (exit $ac_status); } &&
4184 { ac_try
='test -z "$ac_c_werror_flag"
4185 || test ! -s conftest.err'
4186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); }; } &&
4191 { ac_try
='test -s conftest.$ac_objext'
4192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196 (exit $ac_status); }; }; then
4197 ac_cv_c_bigendian
=yes
4199 echo "$as_me: failed program was:" >&5
4200 sed 's/^/| /' conftest.
$ac_ext >&5
4202 ac_cv_c_bigendian
=no
4204 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4206 echo "$as_me: failed program was:" >&5
4207 sed 's/^/| /' conftest.
$ac_ext >&5
4210 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4211 if test $ac_cv_c_bigendian = unknown
; then
4212 if test "$cross_compiling" = yes; then
4213 echo $ac_n "cross-compiling... " 2>&6
4215 cat >conftest.
$ac_ext <<_ACEOF
4218 cat confdefs.h
>>conftest.
$ac_ext
4219 cat >>conftest.
$ac_ext <<_ACEOF
4220 /* end confdefs.h. */
4222 /* Are we little or big endian? From Harbison&Steele. */
4226 char c[sizeof (long)];
4229 exit (u.c[sizeof (long) - 1] == 1);
4232 rm -f conftest
$ac_exeext
4233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4234 (eval $ac_link) 2>&5
4236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4242 (exit $ac_status); }; }; then
4243 ac_cv_c_bigendian
=no
4245 echo "$as_me: program exited with status $ac_status" >&5
4246 echo "$as_me: failed program was:" >&5
4247 sed 's/^/| /' conftest.
$ac_ext >&5
4250 ac_cv_c_bigendian
=yes
4252 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4256 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4257 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4258 if test $ac_cv_c_bigendian = unknown
; then
4259 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
4260 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
4262 cat >conftest.c
<<EOF
4263 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4264 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4265 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
4266 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4267 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4268 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
4269 int main() { _ascii (); _ebcdic (); return 0; }
4271 if test -f conftest.c
; then
4272 if ${CC-cc} ${CFLAGS} -c conftest.c
-o conftest.o
&& test -f conftest.o
; then
4273 if test `grep -l BIGenDianSyS conftest.o` ; then
4274 echo $ac_n ' big endian probe OK, ' 1>&6
4275 ac_cv_c_bigendian
=yes
4277 if test `grep -l LiTTleEnDian conftest.o` ; then
4278 echo $ac_n ' little endian probe OK, ' 1>&6
4279 if test $ac_cv_c_bigendian = yes ; then
4280 ac_cv_c_bigendian
=unknown
;
4282 ac_cv_c_bigendian
=no
4285 echo $ac_n 'guessing bigendian ... ' >&6
4288 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4289 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4291 if test $ac_cv_c_bigendian = yes; then
4293 cat >>confdefs.h
<<\_ACEOF
4294 #define WORDS_BIGENDIAN 1
4298 cat >>confdefs.h
<<\_ACEOF
4299 #define HOST_WORDS_BIG_ENDIAN 1
4307 cat >>confdefs.h
<<_ACEOF
4308 #define BYTEORDER $BYTEORDER
4311 if test $ac_cv_c_bigendian = unknown
; then
4312 { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
4313 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
4314 { (exit 1); exit 1; }; }
4320 ac_config_headers
="$ac_config_headers config.h:config.in"
4324 # Find a good install program. We prefer a C program (faster),
4325 # so one script is as good as another. But avoid the broken or
4326 # incompatible versions:
4327 # SysV /etc/install, /usr/sbin/install
4328 # SunOS /usr/etc/install
4329 # IRIX /sbin/install
4331 # AmigaOS /C/install, which installs bootblocks on floppy discs
4332 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4333 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4334 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4335 # OS/2's system install, which has a completely different semantic
4336 # ./install, which can be erroneously created by make from ./install.sh.
4337 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4338 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4339 if test -z "$INSTALL"; then
4340 if test "${ac_cv_path_install+set}" = set; then
4341 echo $ECHO_N "(cached) $ECHO_C" >&6
4343 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4347 test -z "$as_dir" && as_dir
=.
4348 # Account for people who put trailing slashes in PATH elements.
4350 .
/ | .
// |
/cC
/* | \
4351 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4352 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4355 # OSF1 and SCO ODT 3.0 have their own names for install.
4356 # Don't use installbsd from OSF since it installs stuff as root
4358 for ac_prog
in ginstall scoinst
install; do
4359 for ac_exec_ext
in '' $ac_executable_extensions; do
4360 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4361 if test $ac_prog = install &&
4362 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4363 # AIX install. It has an incompatible calling convention.
4365 elif test $ac_prog = install &&
4366 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4367 # program-specific install script used by HP pwplus--don't use.
4370 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4382 if test "${ac_cv_path_install+set}" = set; then
4383 INSTALL
=$ac_cv_path_install
4385 # As a last resort, use the slow shell script. We don't cache a
4386 # path for INSTALL within a source directory, because that will
4387 # break other packages using the cache if that directory is
4388 # removed, or if the path is relative.
4389 INSTALL
=$ac_install_sh
4392 echo "$as_me:$LINENO: result: $INSTALL" >&5
4393 echo "${ECHO_T}$INSTALL" >&6
4395 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4396 # It thinks the first close brace ends the variable substitution.
4397 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4399 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4401 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4404 .
${srcdir}/config.table
4405 host_makefile_frag
=${frag}
4408 # It's OK to check for header files. Although the compiler may not be
4409 # able to link anything, it had better be able to at least compile
4435 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
4437 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4438 echo "$as_me:$LINENO: checking for $ac_header" >&5
4439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4440 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4441 echo $ECHO_N "(cached) $ECHO_C" >&6
4443 cat >conftest.
$ac_ext <<_ACEOF
4446 cat confdefs.h
>>conftest.
$ac_ext
4447 cat >>conftest.
$ac_ext <<_ACEOF
4448 /* end confdefs.h. */
4449 #include <$ac_header>
4451 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4452 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4454 grep -v '^ *+' conftest.er1
>conftest.err
4456 cat conftest.err
>&5
4457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458 (exit $ac_status); } >/dev
/null
; then
4459 if test -s conftest.err
; then
4460 ac_cpp_err
=$ac_c_preproc_warn_flag
4461 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4468 if test -z "$ac_cpp_err"; then
4469 eval "$as_ac_Header=yes"
4471 echo "$as_me: failed program was:" >&5
4472 sed 's/^/| /' conftest.
$ac_ext >&5
4474 eval "$as_ac_Header=no"
4476 rm -f conftest.err conftest.
$ac_ext
4478 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4479 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4480 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4481 cat >>confdefs.h
<<_ACEOF
4482 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4488 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4489 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
4490 if test "${ac_cv_header_sys_wait_h+set}" = set; then
4491 echo $ECHO_N "(cached) $ECHO_C" >&6
4493 cat >conftest.
$ac_ext <<_ACEOF
4496 cat confdefs.h
>>conftest.
$ac_ext
4497 cat >>conftest.
$ac_ext <<_ACEOF
4498 /* end confdefs.h. */
4499 #include <sys/types.h>
4500 #include <sys/wait.h>
4502 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4505 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4513 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4518 rm -f conftest.
$ac_objext
4519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4520 (eval $ac_compile) 2>conftest.er1
4522 grep -v '^ *+' conftest.er1
>conftest.err
4524 cat conftest.err
>&5
4525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526 (exit $ac_status); } &&
4527 { ac_try
='test -z "$ac_c_werror_flag"
4528 || test ! -s conftest.err'
4529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); }; } &&
4534 { ac_try
='test -s conftest.$ac_objext'
4535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); }; }; then
4540 ac_cv_header_sys_wait_h
=yes
4542 echo "$as_me: failed program was:" >&5
4543 sed 's/^/| /' conftest.
$ac_ext >&5
4545 ac_cv_header_sys_wait_h
=no
4547 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4549 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4550 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
4551 if test $ac_cv_header_sys_wait_h = yes; then
4553 cat >>confdefs.h
<<\_ACEOF
4554 #define HAVE_SYS_WAIT_H 1
4559 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4560 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4561 if test "${ac_cv_header_time+set}" = set; then
4562 echo $ECHO_N "(cached) $ECHO_C" >&6
4564 cat >conftest.
$ac_ext <<_ACEOF
4567 cat confdefs.h
>>conftest.
$ac_ext
4568 cat >>conftest.
$ac_ext <<_ACEOF
4569 /* end confdefs.h. */
4570 #include <sys/types.h>
4571 #include <sys/time.h>
4577 if ((struct tm *) 0)
4583 rm -f conftest.
$ac_objext
4584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4585 (eval $ac_compile) 2>conftest.er1
4587 grep -v '^ *+' conftest.er1
>conftest.err
4589 cat conftest.err
>&5
4590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591 (exit $ac_status); } &&
4592 { ac_try
='test -z "$ac_c_werror_flag"
4593 || test ! -s conftest.err'
4594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598 (exit $ac_status); }; } &&
4599 { ac_try
='test -s conftest.$ac_objext'
4600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); }; }; then
4605 ac_cv_header_time
=yes
4607 echo "$as_me: failed program was:" >&5
4608 sed 's/^/| /' conftest.
$ac_ext >&5
4610 ac_cv_header_time
=no
4612 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4614 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4615 echo "${ECHO_T}$ac_cv_header_time" >&6
4616 if test $ac_cv_header_time = yes; then
4618 cat >>confdefs.h
<<\_ACEOF
4619 #define TIME_WITH_SYS_TIME 1
4625 echo "$as_me:$LINENO: checking whether errno must be declared" >&5
4626 echo $ECHO_N "checking whether errno must be declared... $ECHO_C" >&6
4627 if test "${libiberty_cv_declare_errno+set}" = set; then
4628 echo $ECHO_N "(cached) $ECHO_C" >&6
4630 cat >conftest.
$ac_ext <<_ACEOF
4633 cat confdefs.h
>>conftest.
$ac_ext
4634 cat >>conftest.
$ac_ext <<_ACEOF
4635 /* end confdefs.h. */
4645 rm -f conftest.
$ac_objext
4646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4647 (eval $ac_compile) 2>conftest.er1
4649 grep -v '^ *+' conftest.er1
>conftest.err
4651 cat conftest.err
>&5
4652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653 (exit $ac_status); } &&
4654 { ac_try
='test -z "$ac_c_werror_flag"
4655 || test ! -s conftest.err'
4656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660 (exit $ac_status); }; } &&
4661 { ac_try
='test -s conftest.$ac_objext'
4662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666 (exit $ac_status); }; }; then
4667 libiberty_cv_declare_errno
=no
4669 echo "$as_me: failed program was:" >&5
4670 sed 's/^/| /' conftest.
$ac_ext >&5
4672 libiberty_cv_declare_errno
=yes
4674 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4676 echo "$as_me:$LINENO: result: $libiberty_cv_declare_errno" >&5
4677 echo "${ECHO_T}$libiberty_cv_declare_errno" >&6
4678 if test $libiberty_cv_declare_errno = yes
4680 cat >>confdefs.h
<<\_ACEOF
4681 #define NEED_DECLARATION_ERRNO 1
4687 # Determine the size of an int for struct fibnode.
4688 echo "$as_me:$LINENO: checking for egrep" >&5
4689 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4690 if test "${ac_cv_prog_egrep+set}" = set; then
4691 echo $ECHO_N "(cached) $ECHO_C" >&6
4693 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
4694 then ac_cv_prog_egrep
='grep -E'
4695 else ac_cv_prog_egrep
='egrep'
4698 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4699 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4700 EGREP
=$ac_cv_prog_egrep
4703 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4704 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4705 if test "${ac_cv_header_stdc+set}" = set; then
4706 echo $ECHO_N "(cached) $ECHO_C" >&6
4708 cat >conftest.
$ac_ext <<_ACEOF
4711 cat confdefs.h
>>conftest.
$ac_ext
4712 cat >>conftest.
$ac_ext <<_ACEOF
4713 /* end confdefs.h. */
4727 rm -f conftest.
$ac_objext
4728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4729 (eval $ac_compile) 2>conftest.er1
4731 grep -v '^ *+' conftest.er1
>conftest.err
4733 cat conftest.err
>&5
4734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735 (exit $ac_status); } &&
4736 { ac_try
='test -z "$ac_c_werror_flag"
4737 || test ! -s conftest.err'
4738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742 (exit $ac_status); }; } &&
4743 { ac_try
='test -s conftest.$ac_objext'
4744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748 (exit $ac_status); }; }; then
4749 ac_cv_header_stdc
=yes
4751 echo "$as_me: failed program was:" >&5
4752 sed 's/^/| /' conftest.
$ac_ext >&5
4754 ac_cv_header_stdc
=no
4756 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4758 if test $ac_cv_header_stdc = yes; then
4759 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4760 cat >conftest.
$ac_ext <<_ACEOF
4763 cat confdefs.h
>>conftest.
$ac_ext
4764 cat >>conftest.
$ac_ext <<_ACEOF
4765 /* end confdefs.h. */
4769 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4770 $EGREP "memchr" >/dev
/null
2>&1; then
4773 ac_cv_header_stdc
=no
4779 if test $ac_cv_header_stdc = yes; then
4780 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4781 cat >conftest.
$ac_ext <<_ACEOF
4784 cat confdefs.h
>>conftest.
$ac_ext
4785 cat >>conftest.
$ac_ext <<_ACEOF
4786 /* end confdefs.h. */
4790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4791 $EGREP "free" >/dev
/null
2>&1; then
4794 ac_cv_header_stdc
=no
4800 if test $ac_cv_header_stdc = yes; then
4801 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4802 if test "$cross_compiling" = yes; then
4805 cat >conftest.
$ac_ext <<_ACEOF
4808 cat confdefs.h
>>conftest.
$ac_ext
4809 cat >>conftest.
$ac_ext <<_ACEOF
4810 /* end confdefs.h. */
4812 #if ((' ' & 0x0FF) == 0x020)
4813 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4814 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4816 # define ISLOWER(c) \
4817 (('a' <= (c) && (c) <= 'i') \
4818 || ('j' <= (c) && (c) <= 'r') \
4819 || ('s' <= (c) && (c) <= 'z'))
4820 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4823 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4828 for (i = 0; i < 256; i++)
4829 if (XOR (islower (i), ISLOWER (i))
4830 || toupper (i) != TOUPPER (i))
4835 rm -f conftest
$ac_exeext
4836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4837 (eval $ac_link) 2>&5
4839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4845 (exit $ac_status); }; }; then
4848 echo "$as_me: program exited with status $ac_status" >&5
4849 echo "$as_me: failed program was:" >&5
4850 sed 's/^/| /' conftest.
$ac_ext >&5
4853 ac_cv_header_stdc
=no
4855 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4859 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4860 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4861 if test $ac_cv_header_stdc = yes; then
4863 cat >>confdefs.h
<<\_ACEOF
4864 #define STDC_HEADERS 1
4869 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4879 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4880 inttypes.h stdint.h unistd.h
4882 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4883 echo "$as_me:$LINENO: checking for $ac_header" >&5
4884 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4885 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4886 echo $ECHO_N "(cached) $ECHO_C" >&6
4888 cat >conftest.
$ac_ext <<_ACEOF
4891 cat confdefs.h
>>conftest.
$ac_ext
4892 cat >>conftest.
$ac_ext <<_ACEOF
4893 /* end confdefs.h. */
4894 #include <$ac_header>
4896 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4897 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4899 grep -v '^ *+' conftest.er1
>conftest.err
4901 cat conftest.err
>&5
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); } >/dev
/null
; then
4904 if test -s conftest.err
; then
4905 ac_cpp_err
=$ac_c_preproc_warn_flag
4906 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4913 if test -z "$ac_cpp_err"; then
4914 eval "$as_ac_Header=yes"
4916 echo "$as_me: failed program was:" >&5
4917 sed 's/^/| /' conftest.
$ac_ext >&5
4919 eval "$as_ac_Header=no"
4921 rm -f conftest.err conftest.
$ac_ext
4923 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4924 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4925 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4926 cat >>confdefs.h
<<_ACEOF
4927 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4934 echo "$as_me:$LINENO: checking for int" >&5
4935 echo $ECHO_N "checking for int... $ECHO_C" >&6
4936 if test "${ac_cv_type_int+set}" = set; then
4937 echo $ECHO_N "(cached) $ECHO_C" >&6
4939 cat >conftest.
$ac_ext <<_ACEOF
4942 cat confdefs.h
>>conftest.
$ac_ext
4943 cat >>conftest.
$ac_ext <<_ACEOF
4944 /* end confdefs.h. */
4945 $ac_includes_default
4957 rm -f conftest.
$ac_objext
4958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4959 (eval $ac_compile) 2>conftest.er1
4961 grep -v '^ *+' conftest.er1
>conftest.err
4963 cat conftest.err
>&5
4964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965 (exit $ac_status); } &&
4966 { ac_try
='test -z "$ac_c_werror_flag"
4967 || test ! -s conftest.err'
4968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4972 (exit $ac_status); }; } &&
4973 { ac_try
='test -s conftest.$ac_objext'
4974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978 (exit $ac_status); }; }; then
4981 echo "$as_me: failed program was:" >&5
4982 sed 's/^/| /' conftest.
$ac_ext >&5
4986 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4988 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4989 echo "${ECHO_T}$ac_cv_type_int" >&6
4991 echo "$as_me:$LINENO: checking size of int" >&5
4992 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4993 if test "${ac_cv_sizeof_int+set}" = set; then
4994 echo $ECHO_N "(cached) $ECHO_C" >&6
4996 if test "$ac_cv_type_int" = yes; then
4997 # The cast to unsigned long works around a bug in the HP C Compiler
4998 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4999 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5000 # This bug is HP SR number 8606223364.
5001 if test "$cross_compiling" = yes; then
5002 # Depending upon the size, compute the lo and hi bounds.
5003 cat >conftest.
$ac_ext <<_ACEOF
5006 cat confdefs.h
>>conftest.
$ac_ext
5007 cat >>conftest.
$ac_ext <<_ACEOF
5008 /* end confdefs.h. */
5009 $ac_includes_default
5013 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5020 rm -f conftest.
$ac_objext
5021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5022 (eval $ac_compile) 2>conftest.er1
5024 grep -v '^ *+' conftest.er1
>conftest.err
5026 cat conftest.err
>&5
5027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028 (exit $ac_status); } &&
5029 { ac_try
='test -z "$ac_c_werror_flag"
5030 || test ! -s conftest.err'
5031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035 (exit $ac_status); }; } &&
5036 { ac_try
='test -s conftest.$ac_objext'
5037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041 (exit $ac_status); }; }; then
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))) <= $ac_mid)];
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
5083 ac_hi
=$ac_mid; break
5085 echo "$as_me: failed program was:" >&5
5086 sed 's/^/| /' conftest.
$ac_ext >&5
5088 ac_lo
=`expr $ac_mid + 1`
5089 if test $ac_lo -le $ac_mid; then
5093 ac_mid
=`expr 2 '*' $ac_mid + 1`
5095 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5098 echo "$as_me: failed program was:" >&5
5099 sed 's/^/| /' conftest.
$ac_ext >&5
5101 cat >conftest.
$ac_ext <<_ACEOF
5104 cat confdefs.h
>>conftest.
$ac_ext
5105 cat >>conftest.
$ac_ext <<_ACEOF
5106 /* end confdefs.h. */
5107 $ac_includes_default
5111 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5118 rm -f conftest.
$ac_objext
5119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5120 (eval $ac_compile) 2>conftest.er1
5122 grep -v '^ *+' conftest.er1
>conftest.err
5124 cat conftest.err
>&5
5125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5126 (exit $ac_status); } &&
5127 { ac_try
='test -z "$ac_c_werror_flag"
5128 || test ! -s conftest.err'
5129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5133 (exit $ac_status); }; } &&
5134 { ac_try
='test -s conftest.$ac_objext'
5135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139 (exit $ac_status); }; }; then
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))) >= $ac_mid)];
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
5181 ac_lo
=$ac_mid; break
5183 echo "$as_me: failed program was:" >&5
5184 sed 's/^/| /' conftest.
$ac_ext >&5
5186 ac_hi
=`expr '(' $ac_mid ')' - 1`
5187 if test $ac_mid -le $ac_hi; then
5191 ac_mid
=`expr 2 '*' $ac_mid`
5193 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5196 echo "$as_me: failed program was:" >&5
5197 sed 's/^/| /' conftest.
$ac_ext >&5
5201 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5203 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5204 # Binary search between lo and hi bounds.
5205 while test "x$ac_lo" != "x$ac_hi"; do
5206 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5207 cat >conftest.
$ac_ext <<_ACEOF
5210 cat confdefs.h
>>conftest.
$ac_ext
5211 cat >>conftest.
$ac_ext <<_ACEOF
5212 /* end confdefs.h. */
5213 $ac_includes_default
5217 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5224 rm -f conftest.
$ac_objext
5225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5226 (eval $ac_compile) 2>conftest.er1
5228 grep -v '^ *+' conftest.er1
>conftest.err
5230 cat conftest.err
>&5
5231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232 (exit $ac_status); } &&
5233 { ac_try
='test -z "$ac_c_werror_flag"
5234 || test ! -s conftest.err'
5235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5239 (exit $ac_status); }; } &&
5240 { ac_try
='test -s conftest.$ac_objext'
5241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5245 (exit $ac_status); }; }; then
5248 echo "$as_me: failed program was:" >&5
5249 sed 's/^/| /' conftest.
$ac_ext >&5
5251 ac_lo
=`expr '(' $ac_mid ')' + 1`
5253 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5256 ?
*) ac_cv_sizeof_int
=$ac_lo;;
5257 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5258 See \`config.log' for more details." >&5
5259 echo "$as_me: error: cannot compute sizeof (int), 77
5260 See \`config.log' for more details." >&2;}
5261 { (exit 1); exit 1; }; } ;;
5264 if test "$cross_compiling" = yes; then
5265 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5266 See \`config.log' for more details." >&5
5267 echo "$as_me: error: cannot run test program while cross compiling
5268 See \`config.log' for more details." >&2;}
5269 { (exit 1); exit 1; }; }
5271 cat >conftest.
$ac_ext <<_ACEOF
5274 cat confdefs.h
>>conftest.
$ac_ext
5275 cat >>conftest.
$ac_ext <<_ACEOF
5276 /* end confdefs.h. */
5277 $ac_includes_default
5278 long longval () { return (long) (sizeof (int)); }
5279 unsigned long ulongval () { return (long) (sizeof (int)); }
5286 FILE *f = fopen ("conftest.val", "w");
5289 if (((long) (sizeof (int))) < 0)
5291 long i = longval ();
5292 if (i != ((long) (sizeof (int))))
5294 fprintf (f, "%ld\n", i);
5298 unsigned long i = ulongval ();
5299 if (i != ((long) (sizeof (int))))
5301 fprintf (f, "%lu\n", i);
5303 exit (ferror (f) || fclose (f) != 0);
5309 rm -f conftest
$ac_exeext
5310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5311 (eval $ac_link) 2>&5
5313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319 (exit $ac_status); }; }; then
5320 ac_cv_sizeof_int
=`cat conftest.val`
5322 echo "$as_me: program exited with status $ac_status" >&5
5323 echo "$as_me: failed program was:" >&5
5324 sed 's/^/| /' conftest.
$ac_ext >&5
5327 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5328 See \`config.log' for more details." >&5
5329 echo "$as_me: error: cannot compute sizeof (int), 77
5330 See \`config.log' for more details." >&2;}
5331 { (exit 1); exit 1; }; }
5333 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5341 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5342 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5343 cat >>confdefs.h
<<_ACEOF
5344 #define SIZEOF_INT $ac_cv_sizeof_int
5349 echo "$as_me:$LINENO: checking for uintptr_t" >&5
5350 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
5351 if test "${ac_cv_type_uintptr_t+set}" = set; then
5352 echo $ECHO_N "(cached) $ECHO_C" >&6
5354 cat >conftest.
$ac_ext <<_ACEOF
5357 cat confdefs.h
>>conftest.
$ac_ext
5358 cat >>conftest.
$ac_ext <<_ACEOF
5359 /* end confdefs.h. */
5360 $ac_includes_default
5364 if ((uintptr_t *) 0)
5366 if (sizeof (uintptr_t))
5372 rm -f conftest.
$ac_objext
5373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5374 (eval $ac_compile) 2>conftest.er1
5376 grep -v '^ *+' conftest.er1
>conftest.err
5378 cat conftest.err
>&5
5379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380 (exit $ac_status); } &&
5381 { ac_try
='test -z "$ac_c_werror_flag"
5382 || test ! -s conftest.err'
5383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387 (exit $ac_status); }; } &&
5388 { ac_try
='test -s conftest.$ac_objext'
5389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5393 (exit $ac_status); }; }; then
5394 ac_cv_type_uintptr_t
=yes
5396 echo "$as_me: failed program was:" >&5
5397 sed 's/^/| /' conftest.
$ac_ext >&5
5399 ac_cv_type_uintptr_t
=no
5401 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5403 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
5404 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
5405 if test $ac_cv_type_uintptr_t = yes; then
5409 cat >>confdefs.h
<<_ACEOF
5410 #define uintptr_t unsigned long
5416 # Look for a 64-bit type.
5417 echo "$as_me:$LINENO: checking for a 64-bit type" >&5
5418 echo $ECHO_N "checking for a 64-bit type... $ECHO_C" >&6
5419 if test "${liberty_cv_uint64+set}" = set; then
5420 echo $ECHO_N "(cached) $ECHO_C" >&6
5422 cat >conftest.
$ac_ext <<_ACEOF
5425 cat confdefs.h
>>conftest.
$ac_ext
5426 cat >>conftest.
$ac_ext <<_ACEOF
5427 /* end confdefs.h. */
5428 #ifdef HAVE_STDINT_H
5434 extern uint64_t foo;
5439 rm -f conftest.
$ac_objext
5440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5441 (eval $ac_compile) 2>conftest.er1
5443 grep -v '^ *+' conftest.er1
>conftest.err
5445 cat conftest.err
>&5
5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447 (exit $ac_status); } &&
5448 { ac_try
='test -z "$ac_c_werror_flag"
5449 || test ! -s conftest.err'
5450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454 (exit $ac_status); }; } &&
5455 { ac_try
='test -s conftest.$ac_objext'
5456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5460 (exit $ac_status); }; }; then
5461 liberty_cv_uint64
=uint64_t
5463 echo "$as_me: failed program was:" >&5
5464 sed 's/^/| /' conftest.
$ac_ext >&5
5466 cat >conftest.
$ac_ext <<_ACEOF
5469 cat confdefs.h
>>conftest.
$ac_ext
5470 cat >>conftest.
$ac_ext <<_ACEOF
5471 /* end confdefs.h. */
5472 #ifdef HAVE_LIMITS_H
5481 extern char foo[sizeof(long) * CHAR_BIT >= 64 ? 1 : -1];
5486 rm -f conftest.
$ac_objext
5487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5488 (eval $ac_compile) 2>conftest.er1
5490 grep -v '^ *+' conftest.er1
>conftest.err
5492 cat conftest.err
>&5
5493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494 (exit $ac_status); } &&
5495 { ac_try
='test -z "$ac_c_werror_flag"
5496 || test ! -s conftest.err'
5497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501 (exit $ac_status); }; } &&
5502 { ac_try
='test -s conftest.$ac_objext'
5503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507 (exit $ac_status); }; }; then
5508 liberty_cv_uint64
="unsigned long"
5510 echo "$as_me: failed program was:" >&5
5511 sed 's/^/| /' conftest.
$ac_ext >&5
5513 cat >conftest.
$ac_ext <<_ACEOF
5516 cat confdefs.h
>>conftest.
$ac_ext
5517 cat >>conftest.
$ac_ext <<_ACEOF
5518 /* end confdefs.h. */
5519 #ifdef HAVE_LIMITS_H
5528 extern char foo[sizeof(long long) * CHAR_BIT >= 64 ? 1 : -1];
5533 rm -f conftest.
$ac_objext
5534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5535 (eval $ac_compile) 2>conftest.er1
5537 grep -v '^ *+' conftest.er1
>conftest.err
5539 cat conftest.err
>&5
5540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5541 (exit $ac_status); } &&
5542 { ac_try
='test -z "$ac_c_werror_flag"
5543 || test ! -s conftest.err'
5544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548 (exit $ac_status); }; } &&
5549 { ac_try
='test -s conftest.$ac_objext'
5550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554 (exit $ac_status); }; }; then
5555 liberty_cv_uint64
="unsigned long long"
5557 echo "$as_me: failed program was:" >&5
5558 sed 's/^/| /' conftest.
$ac_ext >&5
5560 liberty_cv_uint64
=none
5562 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5564 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5566 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5569 echo "$as_me:$LINENO: result: $liberty_cv_uint64" >&5
5570 echo "${ECHO_T}$liberty_cv_uint64" >&6
5571 if test "$liberty_cv_uint64" != none
; then
5573 cat >>confdefs.h
<<_ACEOF
5574 #define UNSIGNED_64BIT_TYPE $liberty_cv_uint64
5579 # Given the above check, we always have uintptr_t or a fallback
5580 # definition. So define HAVE_UINTPTR_T in case any imported code
5583 cat >>confdefs.h
<<\_ACEOF
5584 #define HAVE_UINTPTR_T 1
5588 echo "$as_me:$LINENO: checking for pid_t" >&5
5589 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
5590 if test "${ac_cv_type_pid_t+set}" = set; then
5591 echo $ECHO_N "(cached) $ECHO_C" >&6
5593 cat >conftest.
$ac_ext <<_ACEOF
5596 cat confdefs.h
>>conftest.
$ac_ext
5597 cat >>conftest.
$ac_ext <<_ACEOF
5598 /* end confdefs.h. */
5599 $ac_includes_default
5611 rm -f conftest.
$ac_objext
5612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5613 (eval $ac_compile) 2>conftest.er1
5615 grep -v '^ *+' conftest.er1
>conftest.err
5617 cat conftest.err
>&5
5618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619 (exit $ac_status); } &&
5620 { ac_try
='test -z "$ac_c_werror_flag"
5621 || test ! -s conftest.err'
5622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626 (exit $ac_status); }; } &&
5627 { ac_try
='test -s conftest.$ac_objext'
5628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632 (exit $ac_status); }; }; then
5633 ac_cv_type_pid_t
=yes
5635 echo "$as_me: failed program was:" >&5
5636 sed 's/^/| /' conftest.
$ac_ext >&5
5640 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5642 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5643 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
5644 if test $ac_cv_type_pid_t = yes; then
5648 cat >>confdefs.h
<<_ACEOF
5655 # This is the list of functions which libiberty will provide if they
5656 # are not available on the host.
5659 funcs
="$funcs atexit"
5660 funcs
="$funcs basename"
5662 funcs
="$funcs bcopy"
5663 funcs
="$funcs bsearch"
5664 funcs
="$funcs bzero"
5665 funcs
="$funcs calloc"
5666 funcs
="$funcs clock"
5668 funcs
="$funcs getcwd"
5669 funcs
="$funcs getpagesize"
5670 funcs
="$funcs index"
5671 funcs
="$funcs insque"
5672 funcs
="$funcs memchr"
5673 funcs
="$funcs memcmp"
5674 funcs
="$funcs memcpy"
5675 funcs
="$funcs memmove"
5676 funcs
="$funcs mempcpy"
5677 funcs
="$funcs memset"
5678 funcs
="$funcs mkstemps"
5679 funcs
="$funcs putenv"
5680 funcs
="$funcs random"
5681 funcs
="$funcs rename"
5682 funcs
="$funcs rindex"
5683 funcs
="$funcs setenv"
5684 funcs
="$funcs snprintf"
5685 funcs
="$funcs sigsetmask"
5686 funcs
="$funcs stpcpy"
5687 funcs
="$funcs stpncpy"
5688 funcs
="$funcs strcasecmp"
5689 funcs
="$funcs strchr"
5690 funcs
="$funcs strdup"
5691 funcs
="$funcs strncasecmp"
5692 funcs
="$funcs strrchr"
5693 funcs
="$funcs strstr"
5694 funcs
="$funcs strtod"
5695 funcs
="$funcs strtol"
5696 funcs
="$funcs strtoul"
5697 funcs
="$funcs tmpnam"
5698 funcs
="$funcs vasprintf"
5699 funcs
="$funcs vfprintf"
5700 funcs
="$funcs vprintf"
5701 funcs
="$funcs vsnprintf"
5702 funcs
="$funcs vsprintf"
5703 funcs
="$funcs waitpid"
5705 # Also in the old function.def file: alloca, vfork, getopt.
5707 vars
="sys_errlist sys_nerr sys_siglist"
5709 checkfuncs
="getrusage on_exit psignal strerror strsignal sysconf times sbrk gettimeofday"
5710 checkfuncs
="$checkfuncs realpath canonicalize_file_name pstat_getstatic pstat_getdynamic sysmp"
5711 checkfuncs
="$checkfuncs getsysinfo table sysctl"
5713 # These are neither executed nor required, but they help keep
5714 # autoheader happy without adding a bunch of text to acconfig.h.
5715 if test "x" = "y"; then
5779 for ac_func
in asprintf atexit
basename bcmp bcopy bsearch bzero calloc
clock \
5780 getcwd getpagesize index insque mkstemps memchr memcmp memcpy \
5781 memmove mempcpy memset putenv random rename rindex sigsetmask \
5782 strcasecmp setenv stpcpy stpncpy strchr strdup strncasecmp strrchr strstr \
5783 strtod strtol strtoul tmpnam vasprintf vfprintf vprintf \
5784 vsprintf waitpid getrusage on_exit psignal strerror strsignal \
5785 sysconf
times sbrk gettimeofday ffs snprintf vsnprintf \
5786 pstat_getstatic pstat_getdynamic sysmp getsysinfo table sysctl \
5787 realpath canonicalize_file_name
5789 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5790 echo "$as_me:$LINENO: checking for $ac_func" >&5
5791 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5792 if eval "test \"\${$as_ac_var+set}\" = set"; then
5793 echo $ECHO_N "(cached) $ECHO_C" >&6
5795 if test x
$gcc_no_link = xyes
; then
5796 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5797 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5798 { (exit 1); exit 1; }; }
5800 cat >conftest.
$ac_ext <<_ACEOF
5803 cat confdefs.h
>>conftest.
$ac_ext
5804 cat >>conftest.
$ac_ext <<_ACEOF
5805 /* end confdefs.h. */
5806 /* System header to define __stub macros and hopefully few prototypes,
5807 which can conflict with char $ac_func (); below.
5808 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5809 <limits.h> exists even on freestanding compilers. Under hpux,
5810 including <limits.h> includes <sys/time.h> and causes problems
5811 checking for functions defined therein. */
5812 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
5813 # include <limits.h>
5815 # include <assert.h>
5817 /* Override any gcc2 internal prototype to avoid an error. */
5822 /* We use char because int might match the return type of a gcc2
5823 builtin and then its argument prototype would still apply. */
5825 /* The GNU C library defines this for functions which it implements
5826 to always fail with ENOSYS. Some functions are actually named
5827 something starting with __ and the normal name is an alias. */
5828 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5831 char (*f) () = $ac_func;
5840 return f != $ac_func;
5845 rm -f conftest.
$ac_objext conftest
$ac_exeext
5846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5847 (eval $ac_link) 2>conftest.er1
5849 grep -v '^ *+' conftest.er1
>conftest.err
5851 cat conftest.err
>&5
5852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853 (exit $ac_status); } &&
5854 { ac_try
='test -z "$ac_c_werror_flag"
5855 || test ! -s conftest.err'
5856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860 (exit $ac_status); }; } &&
5861 { ac_try
='test -s conftest$ac_exeext'
5862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866 (exit $ac_status); }; }; then
5867 eval "$as_ac_var=yes"
5869 echo "$as_me: failed program was:" >&5
5870 sed 's/^/| /' conftest.
$ac_ext >&5
5872 eval "$as_ac_var=no"
5874 rm -f conftest.err conftest.
$ac_objext \
5875 conftest
$ac_exeext conftest.
$ac_ext
5877 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5878 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5879 if test `eval echo '${'$as_ac_var'}'` = yes; then
5880 cat >>confdefs.h
<<_ACEOF
5881 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5888 cat >>confdefs.h
<<\_ACEOF
5889 #define HAVE_SYS_ERRLIST 1
5893 cat >>confdefs.h
<<\_ACEOF
5894 #define HAVE_SYS_NERR 1
5898 cat >>confdefs.h
<<\_ACEOF
5899 #define HAVE_SYS_SIGLIST 1
5904 # For each of these functions, if the host does not provide the
5905 # function we want to put FN.o in LIBOBJS, and if the host does
5906 # provide the function, we want to define HAVE_FN in config.h.
5911 if test -n "${with_target_subdir}"; then
5913 # We are being configured as a target library. AC_REPLACE_FUNCS
5914 # may not work correctly, because the compiler may not be able to
5915 # link executables. Note that we may still be being configured
5918 # If we are being configured for newlib, we know which functions
5919 # newlib provide and which ones we will be expected to provide.
5921 if test "x${with_newlib}" = "xyes"; then
5923 "asprintf.$ac_objext" | \
5924 *" asprintf.$ac_objext" | \
5925 "asprintf.$ac_objext "* | \
5926 *" asprintf.$ac_objext "* ) ;;
5927 *) LIBOBJS
="$LIBOBJS asprintf.$ac_objext" ;;
5931 "basename.$ac_objext" | \
5932 *" basename.$ac_objext" | \
5933 "basename.$ac_objext "* | \
5934 *" basename.$ac_objext "* ) ;;
5935 *) LIBOBJS
="$LIBOBJS basename.$ac_objext" ;;
5939 "insque.$ac_objext" | \
5940 *" insque.$ac_objext" | \
5941 "insque.$ac_objext "* | \
5942 *" insque.$ac_objext "* ) ;;
5943 *) LIBOBJS
="$LIBOBJS insque.$ac_objext" ;;
5947 "random.$ac_objext" | \
5948 *" random.$ac_objext" | \
5949 "random.$ac_objext "* | \
5950 *" random.$ac_objext "* ) ;;
5951 *) LIBOBJS
="$LIBOBJS random.$ac_objext" ;;
5955 "strdup.$ac_objext" | \
5956 *" strdup.$ac_objext" | \
5957 "strdup.$ac_objext "* | \
5958 *" strdup.$ac_objext "* ) ;;
5959 *) LIBOBJS
="$LIBOBJS strdup.$ac_objext" ;;
5963 "vasprintf.$ac_objext" | \
5964 *" vasprintf.$ac_objext" | \
5965 "vasprintf.$ac_objext "* | \
5966 *" vasprintf.$ac_objext "* ) ;;
5967 *) LIBOBJS
="$LIBOBJS vasprintf.$ac_objext" ;;
5973 asprintf |
basename | insque | random | strdup | vasprintf
)
5976 n
=HAVE_
`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5977 cat >>confdefs.h
<<_ACEOF
5985 # newlib doesnt provide any of the variables in $vars, so we
5986 # dont have to check them here.
5988 # Of the functions in $checkfuncs, newlib only has strerror.
5989 cat >> confdefs.h
<<\EOF
5990 #define HAVE_STRERROR 1
5998 # We may wish to install the target headers somewhere.
5999 # Check whether --enable-install-libiberty or --disable-install-libiberty was given.
6000 if test "${enable_install_libiberty+set}" = set; then
6001 enableval
="$enable_install_libiberty"
6002 enable_install_libiberty
=$enableval
6004 enable_install_libiberty
=no
6006 # Option parsed, now set things appropriately.
6007 case x
"$enable_install_libiberty" in
6009 target_header_dir
=libiberty
6015 # This could be sanity-checked in various ways...
6016 target_header_dir
="${enable_install_libiberty}"
6023 # Not a target library, so we set things up to run the test suite.
6024 CHECK
=check-cplus-dem
6032 *-*-cygwin* |
*-*-mingw*)
6033 cat >> confdefs.h
<<\EOF
6034 #define HAVE_SYS_ERRLIST 1
6037 cat >> confdefs.h
<<\EOF
6038 #define HAVE_SYS_NERR 1
6044 if test -z "${setobjs}"; then
6048 # Handle VxWorks configuration specially, since on VxWorks the
6049 # libraries are actually on the target board, not in the file
6052 "basename.$ac_objext" | \
6053 *" basename.$ac_objext" | \
6054 "basename.$ac_objext "* | \
6055 *" basename.$ac_objext "* ) ;;
6056 *) LIBOBJS
="$LIBOBJS basename.$ac_objext" ;;
6060 "getpagesize.$ac_objext" | \
6061 *" getpagesize.$ac_objext" | \
6062 "getpagesize.$ac_objext "* | \
6063 *" getpagesize.$ac_objext "* ) ;;
6064 *) LIBOBJS
="$LIBOBJS getpagesize.$ac_objext" ;;
6068 "insque.$ac_objext" | \
6069 *" insque.$ac_objext" | \
6070 "insque.$ac_objext "* | \
6071 *" insque.$ac_objext "* ) ;;
6072 *) LIBOBJS
="$LIBOBJS insque.$ac_objext" ;;
6076 "random.$ac_objext" | \
6077 *" random.$ac_objext" | \
6078 "random.$ac_objext "* | \
6079 *" random.$ac_objext "* ) ;;
6080 *) LIBOBJS
="$LIBOBJS random.$ac_objext" ;;
6084 "strcasecmp.$ac_objext" | \
6085 *" strcasecmp.$ac_objext" | \
6086 "strcasecmp.$ac_objext "* | \
6087 *" strcasecmp.$ac_objext "* ) ;;
6088 *) LIBOBJS
="$LIBOBJS strcasecmp.$ac_objext" ;;
6092 "strncasecmp.$ac_objext" | \
6093 *" strncasecmp.$ac_objext" | \
6094 "strncasecmp.$ac_objext "* | \
6095 *" strncasecmp.$ac_objext "* ) ;;
6096 *) LIBOBJS
="$LIBOBJS strncasecmp.$ac_objext" ;;
6100 "strdup.$ac_objext" | \
6101 *" strdup.$ac_objext" | \
6102 "strdup.$ac_objext "* | \
6103 *" strdup.$ac_objext "* ) ;;
6104 *) LIBOBJS
="$LIBOBJS strdup.$ac_objext" ;;
6108 "vfork.$ac_objext" | \
6109 *" vfork.$ac_objext" | \
6110 "vfork.$ac_objext "* | \
6111 *" vfork.$ac_objext "* ) ;;
6112 *) LIBOBJS
="$LIBOBJS vfork.$ac_objext" ;;
6116 "waitpid.$ac_objext" | \
6117 *" waitpid.$ac_objext" | \
6118 "waitpid.$ac_objext "* | \
6119 *" waitpid.$ac_objext "* ) ;;
6120 *) LIBOBJS
="$LIBOBJS waitpid.$ac_objext" ;;
6124 "vasprintf.$ac_objext" | \
6125 *" vasprintf.$ac_objext" | \
6126 "vasprintf.$ac_objext "* | \
6127 *" vasprintf.$ac_objext "* ) ;;
6128 *) LIBOBJS
="$LIBOBJS vasprintf.$ac_objext" ;;
6133 basename | getpagesize | insque | random | strcasecmp
)
6135 strncasecmp | strdup | vfork | waitpid | vasprintf
)
6138 n
=HAVE_
`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6139 cat >>confdefs.h
<<_ACEOF
6147 # VxWorks doesn't provide any of the variables in $vars, so we
6148 # don't have to check them here.
6150 # Of the functions in $checkfuncs, VxWorks only has strerror.
6151 cat >> confdefs.h
<<\EOF
6152 #define HAVE_STRERROR 1
6162 if test -z "${setobjs}"; then
6167 # The Cygwin library actually uses a couple of files from
6168 # libiberty when it is built. If we are building a native
6169 # Cygwin, and we run the tests, we will appear to have these
6170 # files. However, when we go on to build winsup, we will wind up
6171 # with a library which does not have the files, since they should
6172 # have come from libiberty.
6174 # We handle this by removing the functions the winsup library
6175 # provides from our shell variables, so that they appear to be
6178 # DJ - only if we're *building* cygwin, not just building *with* cygwin
6180 if test -n "${with_target_subdir}"
6182 funcs
="`echo $funcs | sed -e 's/random//'`"
6184 "random.$ac_objext" | \
6185 *" random.$ac_objext" | \
6186 "random.$ac_objext "* | \
6187 *" random.$ac_objext "* ) ;;
6188 *) LIBOBJS
="$LIBOBJS random.$ac_objext" ;;
6191 vars
="`echo $vars | sed -e 's/sys_siglist//'`"
6192 checkfuncs
="`echo $checkfuncs | sed -e 's/strsignal//' -e 's/psignal//'`"
6197 # Under mingw32, sys_nerr and sys_errlist exist, but they are
6198 # macros, so the test below won't find them.
6199 libiberty_cv_var_sys_nerr
=yes
6200 libiberty_cv_var_sys_errlist
=yes
6204 # Under some versions of uwin, vfork is notoriously buggy and the test
6205 # can hang configure; on other versions, vfork exists just as a stub.
6206 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
6207 ac_cv_func_vfork_works
=no
6208 # Under uwin 2.0+, sys_nerr and sys_errlist exist, but they are
6209 # macros (actually, these are imported from a DLL, but the end effect
6210 # is the same), so the test below won't find them.
6211 libiberty_cv_var_sys_nerr
=yes
6212 libiberty_cv_var_sys_errlist
=yes
6216 # Under VMS, vfork works very different than on Unix. The standard test
6217 # won't work, and it isn't easily adaptable. It makes more sense to
6219 ac_cv_func_vfork_works
=yes
6224 # We haven't set the list of objects yet. Use the standard autoconf
6225 # tests. This will only work if the compiler works.
6226 echo "$as_me:$LINENO: checking for library containing strerror" >&5
6227 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
6228 if test "${ac_cv_search_strerror+set}" = set; then
6229 echo $ECHO_N "(cached) $ECHO_C" >&6
6231 ac_func_search_save_LIBS
=$LIBS
6232 ac_cv_search_strerror
=no
6233 if test x
$gcc_no_link = xyes
; then
6234 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6235 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6236 { (exit 1); exit 1; }; }
6238 cat >conftest.
$ac_ext <<_ACEOF
6241 cat confdefs.h
>>conftest.
$ac_ext
6242 cat >>conftest.
$ac_ext <<_ACEOF
6243 /* end confdefs.h. */
6245 /* Override any gcc2 internal prototype to avoid an error. */
6249 /* We use char because int might match the return type of a gcc2
6250 builtin and then its argument prototype would still apply. */
6260 rm -f conftest.
$ac_objext conftest
$ac_exeext
6261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6262 (eval $ac_link) 2>conftest.er1
6264 grep -v '^ *+' conftest.er1
>conftest.err
6266 cat conftest.err
>&5
6267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6268 (exit $ac_status); } &&
6269 { ac_try
='test -z "$ac_c_werror_flag"
6270 || test ! -s conftest.err'
6271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275 (exit $ac_status); }; } &&
6276 { ac_try
='test -s conftest$ac_exeext'
6277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6281 (exit $ac_status); }; }; then
6282 ac_cv_search_strerror
="none required"
6284 echo "$as_me: failed program was:" >&5
6285 sed 's/^/| /' conftest.
$ac_ext >&5
6288 rm -f conftest.err conftest.
$ac_objext \
6289 conftest
$ac_exeext conftest.
$ac_ext
6290 if test "$ac_cv_search_strerror" = no
; then
6291 for ac_lib
in cposix
; do
6292 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6293 if test x
$gcc_no_link = xyes
; then
6294 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6295 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6296 { (exit 1); exit 1; }; }
6298 cat >conftest.
$ac_ext <<_ACEOF
6301 cat confdefs.h
>>conftest.
$ac_ext
6302 cat >>conftest.
$ac_ext <<_ACEOF
6303 /* end confdefs.h. */
6305 /* Override any gcc2 internal prototype to avoid an error. */
6309 /* We use char because int might match the return type of a gcc2
6310 builtin and then its argument prototype would still apply. */
6320 rm -f conftest.
$ac_objext conftest
$ac_exeext
6321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6322 (eval $ac_link) 2>conftest.er1
6324 grep -v '^ *+' conftest.er1
>conftest.err
6326 cat conftest.err
>&5
6327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328 (exit $ac_status); } &&
6329 { ac_try
='test -z "$ac_c_werror_flag"
6330 || test ! -s conftest.err'
6331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335 (exit $ac_status); }; } &&
6336 { ac_try
='test -s conftest$ac_exeext'
6337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 (exit $ac_status); }; }; then
6342 ac_cv_search_strerror
="-l$ac_lib"
6345 echo "$as_me: failed program was:" >&5
6346 sed 's/^/| /' conftest.
$ac_ext >&5
6349 rm -f conftest.err conftest.
$ac_objext \
6350 conftest
$ac_exeext conftest.
$ac_ext
6353 LIBS
=$ac_func_search_save_LIBS
6355 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
6356 echo "${ECHO_T}$ac_cv_search_strerror" >&6
6357 if test "$ac_cv_search_strerror" != no
; then
6358 test "$ac_cv_search_strerror" = "none required" || LIBS
="$ac_cv_search_strerror $LIBS"
6363 for ac_func
in $funcs
6365 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6366 echo "$as_me:$LINENO: checking for $ac_func" >&5
6367 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6368 if eval "test \"\${$as_ac_var+set}\" = set"; then
6369 echo $ECHO_N "(cached) $ECHO_C" >&6
6371 if test x
$gcc_no_link = xyes
; then
6372 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6373 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6374 { (exit 1); exit 1; }; }
6376 cat >conftest.
$ac_ext <<_ACEOF
6379 cat confdefs.h
>>conftest.
$ac_ext
6380 cat >>conftest.
$ac_ext <<_ACEOF
6381 /* end confdefs.h. */
6382 /* System header to define __stub macros and hopefully few prototypes,
6383 which can conflict with char $ac_func (); below.
6384 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6385 <limits.h> exists even on freestanding compilers. Under hpux,
6386 including <limits.h> includes <sys/time.h> and causes problems
6387 checking for functions defined therein. */
6388 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
6389 # include <limits.h>
6391 # include <assert.h>
6393 /* Override any gcc2 internal prototype to avoid an error. */
6398 /* We use char because int might match the return type of a gcc2
6399 builtin and then its argument prototype would still apply. */
6401 /* The GNU C library defines this for functions which it implements
6402 to always fail with ENOSYS. Some functions are actually named
6403 something starting with __ and the normal name is an alias. */
6404 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6407 char (*f) () = $ac_func;
6416 return f != $ac_func;
6421 rm -f conftest.
$ac_objext conftest
$ac_exeext
6422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6423 (eval $ac_link) 2>conftest.er1
6425 grep -v '^ *+' conftest.er1
>conftest.err
6427 cat conftest.err
>&5
6428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429 (exit $ac_status); } &&
6430 { ac_try
='test -z "$ac_c_werror_flag"
6431 || test ! -s conftest.err'
6432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); }; } &&
6437 { ac_try
='test -s conftest$ac_exeext'
6438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442 (exit $ac_status); }; }; then
6443 eval "$as_ac_var=yes"
6445 echo "$as_me: failed program was:" >&5
6446 sed 's/^/| /' conftest.
$ac_ext >&5
6448 eval "$as_ac_var=no"
6450 rm -f conftest.err conftest.
$ac_objext \
6451 conftest
$ac_exeext conftest.
$ac_ext
6453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6454 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6455 if test `eval echo '${'$as_ac_var'}'` = yes; then
6456 cat >>confdefs.h
<<_ACEOF
6457 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6462 "$ac_func.$ac_objext" | \
6463 *" $ac_func.$ac_objext" | \
6464 "$ac_func.$ac_objext "* | \
6465 *" $ac_func.$ac_objext "* ) ;;
6466 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext" ;;
6473 echo "$as_me:$LINENO: checking whether alloca needs Cray hooks" >&5
6474 echo $ECHO_N "checking whether alloca needs Cray hooks... $ECHO_C" >&6
6475 if test "${ac_cv_os_cray+set}" = set; then
6476 echo $ECHO_N "(cached) $ECHO_C" >&6
6478 cat >conftest.
$ac_ext <<_ACEOF
6481 cat confdefs.h
>>conftest.
$ac_ext
6482 cat >>conftest.
$ac_ext <<_ACEOF
6483 /* end confdefs.h. */
6484 #if defined(CRAY) && ! defined(CRAY2)
6491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6492 $EGREP "webecray" >/dev
/null
2>&1; then
6500 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6501 echo "${ECHO_T}$ac_cv_os_cray" >&6
6502 if test $ac_cv_os_cray = yes; then
6503 for ac_func
in _getb67 GETB67 getb67
; do
6504 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6505 echo "$as_me:$LINENO: checking for $ac_func" >&5
6506 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6507 if eval "test \"\${$as_ac_var+set}\" = set"; then
6508 echo $ECHO_N "(cached) $ECHO_C" >&6
6510 if test x
$gcc_no_link = xyes
; then
6511 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6512 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6513 { (exit 1); exit 1; }; }
6515 cat >conftest.
$ac_ext <<_ACEOF
6518 cat confdefs.h
>>conftest.
$ac_ext
6519 cat >>conftest.
$ac_ext <<_ACEOF
6520 /* end confdefs.h. */
6521 /* System header to define __stub macros and hopefully few prototypes,
6522 which can conflict with char $ac_func (); below.
6523 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6524 <limits.h> exists even on freestanding compilers. Under hpux,
6525 including <limits.h> includes <sys/time.h> and causes problems
6526 checking for functions defined therein. */
6527 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
6528 # include <limits.h>
6530 # include <assert.h>
6532 /* Override any gcc2 internal prototype to avoid an error. */
6537 /* We use char because int might match the return type of a gcc2
6538 builtin and then its argument prototype would still apply. */
6540 /* The GNU C library defines this for functions which it implements
6541 to always fail with ENOSYS. Some functions are actually named
6542 something starting with __ and the normal name is an alias. */
6543 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6546 char (*f) () = $ac_func;
6555 return f != $ac_func;
6560 rm -f conftest.
$ac_objext conftest
$ac_exeext
6561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6562 (eval $ac_link) 2>conftest.er1
6564 grep -v '^ *+' conftest.er1
>conftest.err
6566 cat conftest.err
>&5
6567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568 (exit $ac_status); } &&
6569 { ac_try
='test -z "$ac_c_werror_flag"
6570 || test ! -s conftest.err'
6571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575 (exit $ac_status); }; } &&
6576 { ac_try
='test -s conftest$ac_exeext'
6577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581 (exit $ac_status); }; }; then
6582 eval "$as_ac_var=yes"
6584 echo "$as_me: failed program was:" >&5
6585 sed 's/^/| /' conftest.
$ac_ext >&5
6587 eval "$as_ac_var=no"
6589 rm -f conftest.err conftest.
$ac_objext \
6590 conftest
$ac_exeext conftest.
$ac_ext
6592 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6593 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6594 if test `eval echo '${'$as_ac_var'}'` = yes; then
6596 cat >>confdefs.h
<<_ACEOF
6597 #define CRAY_STACKSEG_END $ac_func
6605 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6606 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6607 if test "${ac_cv_c_stack_direction+set}" = set; then
6608 echo $ECHO_N "(cached) $ECHO_C" >&6
6610 if test "$cross_compiling" = yes; then
6611 ac_cv_c_stack_direction
=0
6613 cat >conftest.
$ac_ext <<_ACEOF
6616 cat confdefs.h
>>conftest.
$ac_ext
6617 cat >>conftest.
$ac_ext <<_ACEOF
6618 /* end confdefs.h. */
6619 find_stack_direction ()
6621 static char *addr = 0;
6626 return find_stack_direction ();
6629 return (&dummy > addr) ? 1 : -1;
6633 exit (find_stack_direction() < 0);
6636 rm -f conftest
$ac_exeext
6637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6638 (eval $ac_link) 2>&5
6640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646 (exit $ac_status); }; }; then
6647 ac_cv_c_stack_direction
=1
6649 echo "$as_me: program exited with status $ac_status" >&5
6650 echo "$as_me: failed program was:" >&5
6651 sed 's/^/| /' conftest.
$ac_ext >&5
6654 ac_cv_c_stack_direction
=-1
6656 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6659 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6660 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6662 cat >>confdefs.h
<<_ACEOF
6663 #define STACK_DIRECTION $ac_cv_c_stack_direction
6669 for ac_header
in unistd.h vfork.h
6671 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6672 echo "$as_me:$LINENO: checking for $ac_header" >&5
6673 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6674 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6675 echo $ECHO_N "(cached) $ECHO_C" >&6
6677 cat >conftest.
$ac_ext <<_ACEOF
6680 cat confdefs.h
>>conftest.
$ac_ext
6681 cat >>conftest.
$ac_ext <<_ACEOF
6682 /* end confdefs.h. */
6683 #include <$ac_header>
6685 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6686 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6688 grep -v '^ *+' conftest.er1
>conftest.err
6690 cat conftest.err
>&5
6691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692 (exit $ac_status); } >/dev
/null
; then
6693 if test -s conftest.err
; then
6694 ac_cpp_err
=$ac_c_preproc_warn_flag
6695 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6702 if test -z "$ac_cpp_err"; then
6703 eval "$as_ac_Header=yes"
6705 echo "$as_me: failed program was:" >&5
6706 sed 's/^/| /' conftest.
$ac_ext >&5
6708 eval "$as_ac_Header=no"
6710 rm -f conftest.err conftest.
$ac_ext
6712 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6713 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6714 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6715 cat >>confdefs.h
<<_ACEOF
6716 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6724 for ac_func
in fork vfork
6726 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6727 echo "$as_me:$LINENO: checking for $ac_func" >&5
6728 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6729 if eval "test \"\${$as_ac_var+set}\" = set"; then
6730 echo $ECHO_N "(cached) $ECHO_C" >&6
6732 if test x
$gcc_no_link = xyes
; then
6733 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6734 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6735 { (exit 1); exit 1; }; }
6737 cat >conftest.
$ac_ext <<_ACEOF
6740 cat confdefs.h
>>conftest.
$ac_ext
6741 cat >>conftest.
$ac_ext <<_ACEOF
6742 /* end confdefs.h. */
6743 /* System header to define __stub macros and hopefully few prototypes,
6744 which can conflict with char $ac_func (); below.
6745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6746 <limits.h> exists even on freestanding compilers. Under hpux,
6747 including <limits.h> includes <sys/time.h> and causes problems
6748 checking for functions defined therein. */
6749 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
6750 # include <limits.h>
6752 # include <assert.h>
6754 /* Override any gcc2 internal prototype to avoid an error. */
6759 /* We use char because int might match the return type of a gcc2
6760 builtin and then its argument prototype would still apply. */
6762 /* The GNU C library defines this for functions which it implements
6763 to always fail with ENOSYS. Some functions are actually named
6764 something starting with __ and the normal name is an alias. */
6765 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6768 char (*f) () = $ac_func;
6777 return f != $ac_func;
6782 rm -f conftest.
$ac_objext conftest
$ac_exeext
6783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6784 (eval $ac_link) 2>conftest.er1
6786 grep -v '^ *+' conftest.er1
>conftest.err
6788 cat conftest.err
>&5
6789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6790 (exit $ac_status); } &&
6791 { ac_try
='test -z "$ac_c_werror_flag"
6792 || test ! -s conftest.err'
6793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6797 (exit $ac_status); }; } &&
6798 { ac_try
='test -s conftest$ac_exeext'
6799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6803 (exit $ac_status); }; }; then
6804 eval "$as_ac_var=yes"
6806 echo "$as_me: failed program was:" >&5
6807 sed 's/^/| /' conftest.
$ac_ext >&5
6809 eval "$as_ac_var=no"
6811 rm -f conftest.err conftest.
$ac_objext \
6812 conftest
$ac_exeext conftest.
$ac_ext
6814 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6815 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6816 if test `eval echo '${'$as_ac_var'}'` = yes; then
6817 cat >>confdefs.h
<<_ACEOF
6818 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6824 if test "x$ac_cv_func_fork" = xyes
; then
6825 echo "$as_me:$LINENO: checking for working fork" >&5
6826 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
6827 if test "${ac_cv_func_fork_works+set}" = set; then
6828 echo $ECHO_N "(cached) $ECHO_C" >&6
6830 if test "$cross_compiling" = yes; then
6831 ac_cv_func_fork_works
=cross
6833 cat >conftest.
$ac_ext <<_ACEOF
6834 /* By Ruediger Kuhlmann. */
6835 #include <sys/types.h>
6837 # include <unistd.h>
6839 /* Some systems only have a dummy stub for fork() */
6847 rm -f conftest
$ac_exeext
6848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6849 (eval $ac_link) 2>&5
6851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6852 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6857 (exit $ac_status); }; }; then
6858 ac_cv_func_fork_works
=yes
6860 echo "$as_me: program exited with status $ac_status" >&5
6861 echo "$as_me: failed program was:" >&5
6862 sed 's/^/| /' conftest.
$ac_ext >&5
6865 ac_cv_func_fork_works
=no
6867 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6870 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
6871 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
6874 ac_cv_func_fork_works
=$ac_cv_func_fork
6876 if test "x$ac_cv_func_fork_works" = xcross
; then
6878 *-*-amigaos* |
*-*-msdosdjgpp*)
6879 # Override, as these systems have only a dummy fork() stub
6880 ac_cv_func_fork_works
=no
6883 ac_cv_func_fork_works
=yes
6886 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
6887 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
6889 ac_cv_func_vfork_works
=$ac_cv_func_vfork
6890 if test "x$ac_cv_func_vfork" = xyes
; then
6891 echo "$as_me:$LINENO: checking for working vfork" >&5
6892 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
6893 if test "${ac_cv_func_vfork_works+set}" = set; then
6894 echo $ECHO_N "(cached) $ECHO_C" >&6
6896 if test "$cross_compiling" = yes; then
6897 ac_cv_func_vfork_works
=cross
6899 cat >conftest.
$ac_ext <<_ACEOF
6902 cat confdefs.h
>>conftest.
$ac_ext
6903 cat >>conftest.
$ac_ext <<_ACEOF
6904 /* end confdefs.h. */
6905 /* Thanks to Paul Eggert for this test. */
6908 #include <sys/types.h>
6909 #include <sys/stat.h>
6910 #include <sys/wait.h>
6912 # include <unistd.h>
6917 /* On some sparc systems, changes by the child to local and incoming
6918 argument registers are propagated back to the parent. The compiler
6919 is told about this with #include <vfork.h>, but some compilers
6920 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
6921 static variable whose address is put into a register that is
6922 clobbered by the vfork. */
6925 sparc_address_test (int arg)
6927 sparc_address_test (arg) int arg;
6948 pid_t parent = getpid ();
6951 sparc_address_test (0);
6956 /* Here is another test for sparc vfork register problems. This
6957 test uses lots of local variables, at least as many local
6958 variables as main has allocated so far including compiler
6959 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
6960 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
6961 reuse the register of parent for one of the local variables,
6962 since it will think that parent can't possibly be used any more
6963 in this routine. Assigning to the local variable will thus
6964 munge parent in the parent process. */
6966 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
6967 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
6968 /* Convince the compiler that p..p7 are live; otherwise, it might
6969 use the same hardware register for all 8 local variables. */
6970 if (p != p1 || p != p2 || p != p3 || p != p4
6971 || p != p5 || p != p6 || p != p7)
6974 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
6975 from child file descriptors. If the child closes a descriptor
6976 before it execs or exits, this munges the parent's descriptor
6977 as well. Test for this by closing stdout in the child. */
6978 _exit(close(fileno(stdout)) != 0);
6983 while (wait(&status) != child)
6986 /* Was there some problem with vforking? */
6989 /* Did the child fail? (This shouldn't happen.) */
6992 /* Did the vfork/compiler bug occur? */
6993 || parent != getpid()
6995 /* Did the file descriptor bug occur? */
6996 || fstat(fileno(stdout), &st) != 0
7001 rm -f conftest
$ac_exeext
7002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7003 (eval $ac_link) 2>&5
7005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7006 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011 (exit $ac_status); }; }; then
7012 ac_cv_func_vfork_works
=yes
7014 echo "$as_me: program exited with status $ac_status" >&5
7015 echo "$as_me: failed program was:" >&5
7016 sed 's/^/| /' conftest.
$ac_ext >&5
7019 ac_cv_func_vfork_works
=no
7021 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7024 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7025 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
7028 if test "x$ac_cv_func_fork_works" = xcross
; then
7029 ac_cv_func_vfork_works
=$ac_cv_func_vfork
7030 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7031 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7034 if test "x$ac_cv_func_vfork_works" = xyes
; then
7036 cat >>confdefs.h
<<\_ACEOF
7037 #define HAVE_WORKING_VFORK 1
7042 cat >>confdefs.h
<<\_ACEOF
7047 if test "x$ac_cv_func_fork_works" = xyes
; then
7049 cat >>confdefs.h
<<\_ACEOF
7050 #define HAVE_WORKING_FORK 1
7055 if test $ac_cv_func_vfork_works = no
; then
7057 "vfork.$ac_objext" | \
7058 *" vfork.$ac_objext" | \
7059 "vfork.$ac_objext "* | \
7060 *" vfork.$ac_objext "* ) ;;
7061 *) LIBOBJS
="$LIBOBJS vfork.$ac_objext" ;;
7065 # We only need _doprnt if we might use it to implement v*printf.
7066 if test $ac_cv_func_vprintf != yes \
7067 ||
test $ac_cv_func_vfprintf != yes \
7068 ||
test $ac_cv_func_vsprintf != yes; then
7070 for ac_func
in _doprnt
7072 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7073 echo "$as_me:$LINENO: checking for $ac_func" >&5
7074 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7075 if eval "test \"\${$as_ac_var+set}\" = set"; then
7076 echo $ECHO_N "(cached) $ECHO_C" >&6
7078 if test x
$gcc_no_link = xyes
; then
7079 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7080 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7081 { (exit 1); exit 1; }; }
7083 cat >conftest.
$ac_ext <<_ACEOF
7086 cat confdefs.h
>>conftest.
$ac_ext
7087 cat >>conftest.
$ac_ext <<_ACEOF
7088 /* end confdefs.h. */
7089 /* System header to define __stub macros and hopefully few prototypes,
7090 which can conflict with char $ac_func (); below.
7091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7092 <limits.h> exists even on freestanding compilers. Under hpux,
7093 including <limits.h> includes <sys/time.h> and causes problems
7094 checking for functions defined therein. */
7095 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
7096 # include <limits.h>
7098 # include <assert.h>
7100 /* Override any gcc2 internal prototype to avoid an error. */
7105 /* We use char because int might match the return type of a gcc2
7106 builtin and then its argument prototype would still apply. */
7108 /* The GNU C library defines this for functions which it implements
7109 to always fail with ENOSYS. Some functions are actually named
7110 something starting with __ and the normal name is an alias. */
7111 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7114 char (*f) () = $ac_func;
7123 return f != $ac_func;
7128 rm -f conftest.
$ac_objext conftest
$ac_exeext
7129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7130 (eval $ac_link) 2>conftest.er1
7132 grep -v '^ *+' conftest.er1
>conftest.err
7134 cat conftest.err
>&5
7135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136 (exit $ac_status); } &&
7137 { ac_try
='test -z "$ac_c_werror_flag"
7138 || test ! -s conftest.err'
7139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7143 (exit $ac_status); }; } &&
7144 { ac_try
='test -s conftest$ac_exeext'
7145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149 (exit $ac_status); }; }; then
7150 eval "$as_ac_var=yes"
7152 echo "$as_me: failed program was:" >&5
7153 sed 's/^/| /' conftest.
$ac_ext >&5
7155 eval "$as_ac_var=no"
7157 rm -f conftest.err conftest.
$ac_objext \
7158 conftest
$ac_exeext conftest.
$ac_ext
7160 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7161 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7162 if test `eval echo '${'$as_ac_var'}'` = yes; then
7163 cat >>confdefs.h
<<_ACEOF
7164 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7169 "$ac_func.$ac_objext" | \
7170 *" $ac_func.$ac_objext" | \
7171 "$ac_func.$ac_objext "* | \
7172 *" $ac_func.$ac_objext "* ) ;;
7173 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext" ;;
7182 for ac_func
in _doprnt
7184 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7185 echo "$as_me:$LINENO: checking for $ac_func" >&5
7186 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7187 if eval "test \"\${$as_ac_var+set}\" = set"; then
7188 echo $ECHO_N "(cached) $ECHO_C" >&6
7190 if test x
$gcc_no_link = xyes
; then
7191 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7192 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7193 { (exit 1); exit 1; }; }
7195 cat >conftest.
$ac_ext <<_ACEOF
7198 cat confdefs.h
>>conftest.
$ac_ext
7199 cat >>conftest.
$ac_ext <<_ACEOF
7200 /* end confdefs.h. */
7201 /* System header to define __stub macros and hopefully few prototypes,
7202 which can conflict with char $ac_func (); below.
7203 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7204 <limits.h> exists even on freestanding compilers. Under hpux,
7205 including <limits.h> includes <sys/time.h> and causes problems
7206 checking for functions defined therein. */
7207 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
7208 # include <limits.h>
7210 # include <assert.h>
7212 /* Override any gcc2 internal prototype to avoid an error. */
7217 /* We use char because int might match the return type of a gcc2
7218 builtin and then its argument prototype would still apply. */
7220 /* The GNU C library defines this for functions which it implements
7221 to always fail with ENOSYS. Some functions are actually named
7222 something starting with __ and the normal name is an alias. */
7223 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7226 char (*f) () = $ac_func;
7235 return f != $ac_func;
7240 rm -f conftest.
$ac_objext conftest
$ac_exeext
7241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7242 (eval $ac_link) 2>conftest.er1
7244 grep -v '^ *+' conftest.er1
>conftest.err
7246 cat conftest.err
>&5
7247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7248 (exit $ac_status); } &&
7249 { ac_try
='test -z "$ac_c_werror_flag"
7250 || test ! -s conftest.err'
7251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7255 (exit $ac_status); }; } &&
7256 { ac_try
='test -s conftest$ac_exeext'
7257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7261 (exit $ac_status); }; }; then
7262 eval "$as_ac_var=yes"
7264 echo "$as_me: failed program was:" >&5
7265 sed 's/^/| /' conftest.
$ac_ext >&5
7267 eval "$as_ac_var=no"
7269 rm -f conftest.err conftest.
$ac_objext \
7270 conftest
$ac_exeext conftest.
$ac_ext
7272 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7273 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7274 if test `eval echo '${'$as_ac_var'}'` = yes; then
7275 cat >>confdefs.h
<<_ACEOF
7276 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7285 echo "$as_me:$LINENO: checking for $v" >&5
7286 echo $ECHO_N "checking for $v... $ECHO_C" >&6
7287 if eval "test \"\${libiberty_cv_var_$v+set}\" = set"; then
7288 echo $ECHO_N "(cached) $ECHO_C" >&6
7290 if test x
$gcc_no_link = xyes
; then
7291 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7292 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7293 { (exit 1); exit 1; }; }
7295 cat >conftest.
$ac_ext <<_ACEOF
7298 cat confdefs.h
>>conftest.
$ac_ext
7299 cat >>conftest.
$ac_ext <<_ACEOF
7300 /* end confdefs.h. */
7305 extern int $v []; p = $v;
7310 rm -f conftest.
$ac_objext conftest
$ac_exeext
7311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7312 (eval $ac_link) 2>conftest.er1
7314 grep -v '^ *+' conftest.er1
>conftest.err
7316 cat conftest.err
>&5
7317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7318 (exit $ac_status); } &&
7319 { ac_try
='test -z "$ac_c_werror_flag"
7320 || test ! -s conftest.err'
7321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7325 (exit $ac_status); }; } &&
7326 { ac_try
='test -s conftest$ac_exeext'
7327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7331 (exit $ac_status); }; }; then
7332 eval "libiberty_cv_var_$v=yes"
7334 echo "$as_me: failed program was:" >&5
7335 sed 's/^/| /' conftest.
$ac_ext >&5
7337 eval "libiberty_cv_var_$v=no"
7339 rm -f conftest.err conftest.
$ac_objext \
7340 conftest
$ac_exeext conftest.
$ac_ext
7343 if eval "test \"`echo '$libiberty_cv_var_'$v`\" = yes"; then
7344 echo "$as_me:$LINENO: result: yes" >&5
7345 echo "${ECHO_T}yes" >&6
7346 n
=HAVE_
`echo $v | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7347 cat >>confdefs.h
<<_ACEOF
7352 echo "$as_me:$LINENO: result: no" >&5
7353 echo "${ECHO_T}no" >&6
7357 # special check for _system_configuration because AIX <4.3.2 do not
7358 # contain the `physmem' member.
7359 echo "$as_me:$LINENO: checking for external symbol _system_configuration" >&5
7360 echo $ECHO_N "checking for external symbol _system_configuration... $ECHO_C" >&6
7361 cat >conftest.
$ac_ext <<_ACEOF
7364 cat confdefs.h
>>conftest.
$ac_ext
7365 cat >>conftest.
$ac_ext <<_ACEOF
7366 /* end confdefs.h. */
7367 #include <sys/systemcfg.h>
7371 double x = _system_configuration.physmem;
7376 rm -f conftest.
$ac_objext
7377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7378 (eval $ac_compile) 2>conftest.er1
7380 grep -v '^ *+' conftest.er1
>conftest.err
7382 cat conftest.err
>&5
7383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7384 (exit $ac_status); } &&
7385 { ac_try
='test -z "$ac_c_werror_flag"
7386 || test ! -s conftest.err'
7387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7391 (exit $ac_status); }; } &&
7392 { ac_try
='test -s conftest.$ac_objext'
7393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7397 (exit $ac_status); }; }; then
7398 echo "$as_me:$LINENO: result: yes" >&5
7399 echo "${ECHO_T}yes" >&6
7401 cat >>confdefs.h
<<\_ACEOF
7402 #define HAVE__SYSTEM_CONFIGURATION 1
7406 echo "$as_me: failed program was:" >&5
7407 sed 's/^/| /' conftest.
$ac_ext >&5
7409 echo "$as_me:$LINENO: result: no" >&5
7410 echo "${ECHO_T}no" >&6
7412 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7415 for ac_func
in $checkfuncs
7417 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7418 echo "$as_me:$LINENO: checking for $ac_func" >&5
7419 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7420 if eval "test \"\${$as_ac_var+set}\" = set"; then
7421 echo $ECHO_N "(cached) $ECHO_C" >&6
7423 if test x
$gcc_no_link = xyes
; then
7424 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7425 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7426 { (exit 1); exit 1; }; }
7428 cat >conftest.
$ac_ext <<_ACEOF
7431 cat confdefs.h
>>conftest.
$ac_ext
7432 cat >>conftest.
$ac_ext <<_ACEOF
7433 /* end confdefs.h. */
7434 /* System header to define __stub macros and hopefully few prototypes,
7435 which can conflict with char $ac_func (); below.
7436 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7437 <limits.h> exists even on freestanding compilers. Under hpux,
7438 including <limits.h> includes <sys/time.h> and causes problems
7439 checking for functions defined therein. */
7440 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
7441 # include <limits.h>
7443 # include <assert.h>
7445 /* Override any gcc2 internal prototype to avoid an error. */
7450 /* We use char because int might match the return type of a gcc2
7451 builtin and then its argument prototype would still apply. */
7453 /* The GNU C library defines this for functions which it implements
7454 to always fail with ENOSYS. Some functions are actually named
7455 something starting with __ and the normal name is an alias. */
7456 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7459 char (*f) () = $ac_func;
7468 return f != $ac_func;
7473 rm -f conftest.
$ac_objext conftest
$ac_exeext
7474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7475 (eval $ac_link) 2>conftest.er1
7477 grep -v '^ *+' conftest.er1
>conftest.err
7479 cat conftest.err
>&5
7480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7481 (exit $ac_status); } &&
7482 { ac_try
='test -z "$ac_c_werror_flag"
7483 || test ! -s conftest.err'
7484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7488 (exit $ac_status); }; } &&
7489 { ac_try
='test -s conftest$ac_exeext'
7490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7494 (exit $ac_status); }; }; then
7495 eval "$as_ac_var=yes"
7497 echo "$as_me: failed program was:" >&5
7498 sed 's/^/| /' conftest.
$ac_ext >&5
7500 eval "$as_ac_var=no"
7502 rm -f conftest.err conftest.
$ac_objext \
7503 conftest
$ac_exeext conftest.
$ac_ext
7505 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7506 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7507 if test `eval echo '${'$as_ac_var'}'` = yes; then
7508 cat >>confdefs.h
<<_ACEOF
7509 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7515 echo "$as_me:$LINENO: checking whether canonicalize_file_name must be declared" >&5
7516 echo $ECHO_N "checking whether canonicalize_file_name must be declared... $ECHO_C" >&6
7517 if test "${libiberty_cv_decl_needed_canonicalize_file_name+set}" = set; then
7518 echo $ECHO_N "(cached) $ECHO_C" >&6
7520 cat >conftest.
$ac_ext <<_ACEOF
7523 cat confdefs.h
>>conftest.
$ac_ext
7524 cat >>conftest.
$ac_ext <<_ACEOF
7525 /* end confdefs.h. */
7527 #include "confdefs.h"
7529 #ifdef HAVE_STRING_H
7532 #ifdef HAVE_STRINGS_H
7533 #include <strings.h>
7536 #ifdef HAVE_STDLIB_H
7539 #ifdef HAVE_UNISTD_H
7545 char *(*pfn) = (char *(*)) canonicalize_file_name
7550 rm -f conftest.
$ac_objext
7551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7552 (eval $ac_compile) 2>conftest.er1
7554 grep -v '^ *+' conftest.er1
>conftest.err
7556 cat conftest.err
>&5
7557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7558 (exit $ac_status); } &&
7559 { ac_try
='test -z "$ac_c_werror_flag"
7560 || test ! -s conftest.err'
7561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7565 (exit $ac_status); }; } &&
7566 { ac_try
='test -s conftest.$ac_objext'
7567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7571 (exit $ac_status); }; }; then
7572 libiberty_cv_decl_needed_canonicalize_file_name
=no
7574 echo "$as_me: failed program was:" >&5
7575 sed 's/^/| /' conftest.
$ac_ext >&5
7577 libiberty_cv_decl_needed_canonicalize_file_name
=yes
7579 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7582 echo "$as_me:$LINENO: result: $libiberty_cv_decl_needed_canonicalize_file_name" >&5
7583 echo "${ECHO_T}$libiberty_cv_decl_needed_canonicalize_file_name" >&6
7584 if test $libiberty_cv_decl_needed_canonicalize_file_name = yes; then
7586 cat >>confdefs.h
<<\_ACEOF
7587 #define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1
7594 # Figure out which version of pexecute to use.
7596 *-*-mingw* |
*-*-winnt*) pex
=.
/pex-win32
;;
7597 *-*-msdosdjgpp*) pex
=.
/pex-djgpp
;;
7598 *-*-msdos*) pex
=.
/pex-msdos
;;
7599 *-*-os2-emx*) pex
=.
/pex-os2
;;
7600 *) pex
=.
/pex-unix
;;
7603 ltpexecute
=${pex}.lo
7607 if test x
$gcc_no_link = xyes
; then
7608 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset
; then
7609 ac_cv_func_mmap_fixed_mapped
=no
7612 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset
; then
7615 for ac_header
in stdlib.h unistd.h
7617 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7618 echo "$as_me:$LINENO: checking for $ac_header" >&5
7619 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7620 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7621 echo $ECHO_N "(cached) $ECHO_C" >&6
7623 cat >conftest.
$ac_ext <<_ACEOF
7626 cat confdefs.h
>>conftest.
$ac_ext
7627 cat >>conftest.
$ac_ext <<_ACEOF
7628 /* end confdefs.h. */
7629 #include <$ac_header>
7631 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7632 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7634 grep -v '^ *+' conftest.er1
>conftest.err
7636 cat conftest.err
>&5
7637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7638 (exit $ac_status); } >/dev
/null
; then
7639 if test -s conftest.err
; then
7640 ac_cpp_err
=$ac_c_preproc_warn_flag
7641 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7648 if test -z "$ac_cpp_err"; then
7649 eval "$as_ac_Header=yes"
7651 echo "$as_me: failed program was:" >&5
7652 sed 's/^/| /' conftest.
$ac_ext >&5
7654 eval "$as_ac_Header=no"
7656 rm -f conftest.err conftest.
$ac_ext
7658 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7659 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7660 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7661 cat >>confdefs.h
<<_ACEOF
7662 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7669 for ac_func
in getpagesize
7671 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7672 echo "$as_me:$LINENO: checking for $ac_func" >&5
7673 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7674 if eval "test \"\${$as_ac_var+set}\" = set"; then
7675 echo $ECHO_N "(cached) $ECHO_C" >&6
7677 if test x
$gcc_no_link = xyes
; then
7678 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7679 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7680 { (exit 1); exit 1; }; }
7682 cat >conftest.
$ac_ext <<_ACEOF
7685 cat confdefs.h
>>conftest.
$ac_ext
7686 cat >>conftest.
$ac_ext <<_ACEOF
7687 /* end confdefs.h. */
7688 /* System header to define __stub macros and hopefully few prototypes,
7689 which can conflict with char $ac_func (); below.
7690 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7691 <limits.h> exists even on freestanding compilers. Under hpux,
7692 including <limits.h> includes <sys/time.h> and causes problems
7693 checking for functions defined therein. */
7694 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
7695 # include <limits.h>
7697 # include <assert.h>
7699 /* Override any gcc2 internal prototype to avoid an error. */
7704 /* We use char because int might match the return type of a gcc2
7705 builtin and then its argument prototype would still apply. */
7707 /* The GNU C library defines this for functions which it implements
7708 to always fail with ENOSYS. Some functions are actually named
7709 something starting with __ and the normal name is an alias. */
7710 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7713 char (*f) () = $ac_func;
7722 return f != $ac_func;
7727 rm -f conftest.
$ac_objext conftest
$ac_exeext
7728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7729 (eval $ac_link) 2>conftest.er1
7731 grep -v '^ *+' conftest.er1
>conftest.err
7733 cat conftest.err
>&5
7734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7735 (exit $ac_status); } &&
7736 { ac_try
='test -z "$ac_c_werror_flag"
7737 || test ! -s conftest.err'
7738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742 (exit $ac_status); }; } &&
7743 { ac_try
='test -s conftest$ac_exeext'
7744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7748 (exit $ac_status); }; }; then
7749 eval "$as_ac_var=yes"
7751 echo "$as_me: failed program was:" >&5
7752 sed 's/^/| /' conftest.
$ac_ext >&5
7754 eval "$as_ac_var=no"
7756 rm -f conftest.err conftest.
$ac_objext \
7757 conftest
$ac_exeext conftest.
$ac_ext
7759 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7760 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7761 if test `eval echo '${'$as_ac_var'}'` = yes; then
7762 cat >>confdefs.h
<<_ACEOF
7763 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7769 echo "$as_me:$LINENO: checking for working mmap" >&5
7770 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7771 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7772 echo $ECHO_N "(cached) $ECHO_C" >&6
7774 if test "$cross_compiling" = yes; then
7775 ac_cv_func_mmap_fixed_mapped
=no
7777 cat >conftest.
$ac_ext <<_ACEOF
7780 cat confdefs.h
>>conftest.
$ac_ext
7781 cat >>conftest.
$ac_ext <<_ACEOF
7782 /* end confdefs.h. */
7783 $ac_includes_default
7784 /* malloc might have been renamed as rpl_malloc. */
7787 /* Thanks to Mike Haertel and Jim Avera for this test.
7788 Here is a matrix of mmap possibilities:
7789 mmap private not fixed
7790 mmap private fixed at somewhere currently unmapped
7791 mmap private fixed at somewhere already mapped
7792 mmap shared not fixed
7793 mmap shared fixed at somewhere currently unmapped
7794 mmap shared fixed at somewhere already mapped
7795 For private mappings, we should verify that changes cannot be read()
7796 back from the file, nor mmap's back from the file at a different
7797 address. (There have been systems where private was not correctly
7798 implemented like the infamous i386 svr4.0, and systems where the
7799 VM page cache was not coherent with the file system buffer cache
7800 like early versions of FreeBSD and possibly contemporary NetBSD.)
7801 For shared mappings, we should conversely verify that changes get
7802 propagated back to all the places they're supposed to be.
7804 Grep wants private fixed already mapped.
7805 The main things grep needs to know about mmap are:
7806 * does it exist and is it safe to write into the mmap'd area
7807 * how to use it (BSD variants) */
7810 #include <sys/mman.h>
7812 #if !STDC_HEADERS && !HAVE_STDLIB_H
7816 /* This mess was copied from the GNU getpagesize.h. */
7817 #if !HAVE_GETPAGESIZE
7818 /* Assume that all systems that can run configure have sys/param.h. */
7819 # if !HAVE_SYS_PARAM_H
7820 # define HAVE_SYS_PARAM_H 1
7823 # ifdef _SC_PAGESIZE
7824 # define getpagesize() sysconf(_SC_PAGESIZE)
7825 # else /* no _SC_PAGESIZE */
7826 # if HAVE_SYS_PARAM_H
7827 # include <sys/param.h>
7828 # ifdef EXEC_PAGESIZE
7829 # define getpagesize() EXEC_PAGESIZE
7830 # else /* no EXEC_PAGESIZE */
7832 # define getpagesize() NBPG * CLSIZE
7835 # endif /* no CLSIZE */
7836 # else /* no NBPG */
7838 # define getpagesize() NBPC
7839 # else /* no NBPC */
7841 # define getpagesize() PAGESIZE
7842 # endif /* PAGESIZE */
7843 # endif /* no NBPC */
7844 # endif /* no NBPG */
7845 # endif /* no EXEC_PAGESIZE */
7846 # else /* no HAVE_SYS_PARAM_H */
7847 # define getpagesize() 8192 /* punt totally */
7848 # endif /* no HAVE_SYS_PARAM_H */
7849 # endif /* no _SC_PAGESIZE */
7851 #endif /* no HAVE_GETPAGESIZE */
7856 char *data, *data2, *data3;
7860 pagesize = getpagesize ();
7862 /* First, make a file with some known garbage in it. */
7863 data = (char *) malloc (pagesize);
7866 for (i = 0; i < pagesize; ++i)
7867 *(data + i) = rand ();
7869 fd = creat ("conftest.mmap", 0600);
7872 if (write (fd, data, pagesize) != pagesize)
7876 /* Next, try to mmap the file at a fixed address which already has
7877 something else allocated at it. If we can, also make sure that
7878 we see the same garbage. */
7879 fd = open ("conftest.mmap", O_RDWR);
7882 data2 = (char *) malloc (2 * pagesize);
7885 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
7886 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7887 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7889 for (i = 0; i < pagesize; ++i)
7890 if (*(data + i) != *(data2 + i))
7893 /* Finally, make sure that changes to the mapped area do not
7894 percolate back to the file as seen by read(). (This is a bug on
7895 some variants of i386 svr4.0.) */
7896 for (i = 0; i < pagesize; ++i)
7897 *(data2 + i) = *(data2 + i) + 1;
7898 data3 = (char *) malloc (pagesize);
7901 if (read (fd, data3, pagesize) != pagesize)
7903 for (i = 0; i < pagesize; ++i)
7904 if (*(data + i) != *(data3 + i))
7910 rm -f conftest
$ac_exeext
7911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7912 (eval $ac_link) 2>&5
7914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920 (exit $ac_status); }; }; then
7921 ac_cv_func_mmap_fixed_mapped
=yes
7923 echo "$as_me: program exited with status $ac_status" >&5
7924 echo "$as_me: failed program was:" >&5
7925 sed 's/^/| /' conftest.
$ac_ext >&5
7928 ac_cv_func_mmap_fixed_mapped
=no
7930 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7933 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7934 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7935 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7937 cat >>confdefs.h
<<\_ACEOF
7946 echo "$as_me:$LINENO: checking for working strncmp" >&5
7947 echo $ECHO_N "checking for working strncmp... $ECHO_C" >&6
7948 if test "${ac_cv_func_strncmp_works+set}" = set; then
7949 echo $ECHO_N "(cached) $ECHO_C" >&6
7951 if test "$cross_compiling" = yes; then
7952 ac_cv_func_strncmp_works
=no
7954 cat >conftest.
$ac_ext <<_ACEOF
7957 cat confdefs.h
>>conftest.
$ac_ext
7958 cat >>conftest.
$ac_ext <<_ACEOF
7959 /* end confdefs.h. */
7961 /* Test by Jim Wilson and Kaveh Ghazi.
7962 Check whether strncmp reads past the end of its string parameters. */
7963 #include <sys/types.h>
7969 #ifdef HAVE_SYS_MMAN_H
7970 #include <sys/mman.h>
7974 #ifdef MAP_ANONYMOUS
7975 #define MAP_ANON MAP_ANONYMOUS
7977 #define MAP_ANON MAP_FILE
7988 #define MAP_LEN 0x10000
7992 #if defined(HAVE_MMAP) || defined(HAVE_MMAP_ANYWHERE)
7996 dev_zero = open ("/dev/zero", O_RDONLY);
8000 p = (char *) mmap (0, MAP_LEN, PROT_READ|PROT_WRITE,
8001 MAP_ANON|MAP_PRIVATE, dev_zero, 0);
8002 if (p == (char *)-1)
8003 p = (char *) mmap (0, MAP_LEN, PROT_READ|PROT_WRITE,
8004 MAP_ANON|MAP_PRIVATE, -1, 0);
8005 if (p == (char *)-1)
8009 char *string = "__si_type_info";
8010 char *q = (char *) p + MAP_LEN - strlen (string) - 2;
8011 char *r = (char *) p + 0xe;
8017 #endif /* HAVE_MMAP || HAVE_MMAP_ANYWHERE */
8022 rm -f conftest
$ac_exeext
8023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8024 (eval $ac_link) 2>&5
8026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8032 (exit $ac_status); }; }; then
8033 ac_cv_func_strncmp_works
=yes
8035 echo "$as_me: program exited with status $ac_status" >&5
8036 echo "$as_me: failed program was:" >&5
8037 sed 's/^/| /' conftest.
$ac_ext >&5
8040 ac_cv_func_strncmp_works
=no
8042 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8044 rm -f core core.
* *.core
8046 echo "$as_me:$LINENO: result: $ac_cv_func_strncmp_works" >&5
8047 echo "${ECHO_T}$ac_cv_func_strncmp_works" >&6
8048 if test $ac_cv_func_strncmp_works = no
; then
8050 "strncmp.$ac_objext" | \
8051 *" strncmp.$ac_objext" | \
8052 "strncmp.$ac_objext "* | \
8053 *" strncmp.$ac_objext "* ) ;;
8054 *) LIBOBJS
="$LIBOBJS strncmp.$ac_objext" ;;
8060 # Install a library built with a cross compiler in $(tooldir) rather
8062 if test -z "${with_cross_host}"; then
8065 INSTALL_DEST
=tooldir
8069 # We need multilib support, but only if configuring for the target.
8070 ac_config_files
="$ac_config_files Makefile testsuite/Makefile"
8072 ac_config_commands
="$ac_config_commands default"
8074 cat >confcache
<<\_ACEOF
8075 # This file is a shell script that caches the results of configure
8076 # tests run on this system so they can be shared between configure
8077 # scripts and configure runs, see configure's option --config-cache.
8078 # It is not useful on other systems. If it contains results you don't
8079 # want to keep, you may remove or edit it.
8081 # config.status only pays attention to the cache file if you give it
8082 # the --recheck option to rerun configure.
8084 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8085 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8090 # The following way of writing the cache mishandles newlines in values,
8091 # but we know of no workaround that is simple, portable, and efficient.
8092 # So, don't put newlines in cache variables' values.
8093 # Ultrix sh set writes to stderr and can't be redirected directly,
8094 # and sets the high bit in the cache file unless we assign to the vars.
8097 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8099 # `set' does not quote correctly, so add quotes (double-quote
8100 # substitution turns \\\\ into \\, and sed turns \\ into \).
8103 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8106 # `set' quotes correctly as required by POSIX, so do not add quotes.
8108 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8115 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8117 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8119 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
8120 if test -w $cache_file; then
8121 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8122 cat confcache
>$cache_file
8124 echo "not updating unwritable cache $cache_file"
8129 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8130 # Let make expand exec_prefix.
8131 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8133 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8134 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8135 # trailing colons and then remove the whole line if VPATH becomes empty
8136 # (actually we leave an empty line to preserve line numbers).
8137 if test "x$srcdir" = x.
; then
8138 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
8139 s/:*\$(srcdir):*/:/;
8140 s/:*\${srcdir}:*/:/;
8142 s/^\([^=]*=[ ]*\):*/\1/;
8148 DEFS
=-DHAVE_CONFIG_H
8152 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
8153 # 1. Remove the extension, and $U if already installed.
8154 ac_i
=`echo "$ac_i" |
8155 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8157 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
8158 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
8162 LTLIBOBJS
=$ac_ltlibobjs
8166 : ${CONFIG_STATUS=./config.status}
8167 ac_clean_files_save
=$ac_clean_files
8168 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
8169 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8170 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8171 cat >$CONFIG_STATUS <<_ACEOF
8173 # Generated by $as_me.
8174 # Run this file to recreate the current configuration.
8175 # Compiler output produced by configure, useful for debugging
8176 # configure, is in config.log if it exists.
8181 SHELL=\${CONFIG_SHELL-$SHELL}
8184 cat >>$CONFIG_STATUS <<\_ACEOF
8185 ## --------------------- ##
8186 ## M4sh Initialization. ##
8187 ## --------------------- ##
8189 # Be Bourne compatible
8190 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
8193 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8194 # is contrary to our usage. Disable this feature.
8195 alias -g '${1+"$@"}'='"$@"'
8196 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
8199 DUALCASE
=1; export DUALCASE
# for MKS sh
8201 # Support unset when possible.
8202 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
8209 # Work around bugs in pre-3.0 UWIN ksh.
8210 $as_unset ENV MAIL MAILPATH
8217 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8218 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8219 LC_TELEPHONE LC_TIME
8221 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8222 eval $as_var=C
; export $as_var
8228 # Required to use basename.
8229 if expr a
: '\(a\)' >/dev
/null
2>&1; then
8235 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
8236 as_basename
=basename
8242 # Name of the executable.
8243 as_me
=`$as_basename "$0" ||
8244 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8245 X"$0" : 'X\(//\)$' \| \
8246 X"$0" : 'X\(/\)$' \| \
8247 . : '\(.\)' 2>/dev/null ||
8249 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8250 /^X\/\(\/\/\)$/{ s//\1/; q; }
8251 /^X\/\(\/\).*/{ s//\1/; q; }
8255 # PATH needs CR, and LINENO needs CR and PATH.
8256 # Avoid depending upon Character Ranges.
8257 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
8258 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8259 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
8260 as_cr_digits
='0123456789'
8261 as_cr_alnum
=$as_cr_Letters$as_cr_digits
8263 # The user is always right.
8264 if test "${PATH_SEPARATOR+set}" != set; then
8265 echo "#! /bin/sh" >conf$$.sh
8266 echo "exit 0" >>conf$$.sh
8268 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
8279 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
8280 test "x$as_lineno_1" != "x$as_lineno_2" &&
8281 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
8282 # Find who we are. Look in the path if we contain no path at all
8285 *[\\/]* ) as_myself
=$0 ;;
8286 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8290 test -z "$as_dir" && as_dir
=.
8291 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
8296 # We did not find ourselves, most probably we were run as `sh COMMAND'
8297 # in which case we are not to be found in the path.
8298 if test "x$as_myself" = x
; then
8301 if test ! -f "$as_myself"; then
8302 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8303 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8304 { (exit 1); exit 1; }; }
8306 case $CONFIG_SHELL in
8308 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8309 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
8312 test -z "$as_dir" && as_dir
=.
8313 for as_base
in sh bash ksh sh5
; do
8316 if ("$as_dir/$as_base" -c '
8319 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8320 test "x$as_lineno_1" != "x$as_lineno_2" &&
8321 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
8322 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
8323 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
8324 CONFIG_SHELL
=$as_dir/$as_base
8326 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8334 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8335 # uniformly replaced by the line number. The first 'sed' inserts a
8336 # line-number line before each line; the second 'sed' does the real
8337 # work. The second script uses 'N' to pair each line-number line
8338 # with the numbered line, and appends trailing '-' during
8339 # substitution so that $LINENO is not a special case at line end.
8340 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8341 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
8342 sed '=' <$as_myself |
8347 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8350 s,^['$as_cr_digits']*\n,,
8352 chmod +x
$as_me.lineno ||
8353 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8354 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8355 { (exit 1); exit 1; }; }
8357 # Don't try to exec as it changes $[0], causing all sort of problems
8358 # (the dirname of $[0] is not the place where we might find the
8359 # original and so on. Autoconf is especially sensible to this).
8361 # Exit status is that of the last command.
8366 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8367 *c
*,-n*) ECHO_N
= ECHO_C
='
8369 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
8370 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
8373 if expr a
: '\(a\)' >/dev
/null
2>&1; then
8379 rm -f conf$$ conf$$.exe conf$$.
file
8381 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
8382 # We could just check for DJGPP; but this test a) works b) is more generic
8383 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8384 if test -f conf$$.exe
; then
8385 # Don't use ln at all; we don't have any links
8390 elif ln conf$$.
file conf$$
2>/dev
/null
; then
8395 rm -f conf$$ conf$$.exe conf$$.
file
8397 if mkdir
-p .
2>/dev
/null
; then
8400 test -d .
/-p && rmdir .
/-p
8404 as_executable_p
="test -f"
8406 # Sed expression to map a string onto a valid CPP name.
8407 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8409 # Sed expression to map a string onto a valid variable name.
8410 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8414 # We need space, tab and new line, in precisely that order.
8424 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8425 # report actual input values of CONFIG_FILES etc. instead of their
8426 # values after options handling. Logging --version etc. is OK.
8430 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8431 ## Running $as_me. ##
8436 This file was extended by $as_me, which was
8437 generated by GNU Autoconf 2.59. Invocation command line was
8439 CONFIG_FILES = $CONFIG_FILES
8440 CONFIG_HEADERS = $CONFIG_HEADERS
8441 CONFIG_LINKS = $CONFIG_LINKS
8442 CONFIG_COMMANDS = $CONFIG_COMMANDS
8446 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8450 # Files that config.status was made for.
8451 if test -n "$ac_config_files"; then
8452 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8455 if test -n "$ac_config_headers"; then
8456 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8459 if test -n "$ac_config_links"; then
8460 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8463 if test -n "$ac_config_commands"; then
8464 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8467 cat >>$CONFIG_STATUS <<\_ACEOF
8470 \`$as_me' instantiates files from templates according to the
8471 current configuration.
8473 Usage: $0 [OPTIONS] [FILE]...
8475 -h, --help print this help, then exit
8476 -V, --version print version number, then exit
8477 -q, --quiet do not print progress messages
8478 -d, --debug don't remove temporary files
8479 --recheck update $as_me by reconfiguring in the same conditions
8480 --file=FILE[:TEMPLATE]
8481 instantiate the configuration file FILE
8482 --header=FILE[:TEMPLATE]
8483 instantiate the configuration header FILE
8485 Configuration files:
8488 Configuration headers:
8491 Configuration commands:
8494 Report bugs to <bug-autoconf@gnu.org>."
8497 cat >>$CONFIG_STATUS <<_ACEOF
8500 configured by $0, generated by GNU Autoconf 2.59,
8501 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8503 Copyright (C) 2003 Free Software Foundation, Inc.
8504 This config.status script is free software; the Free Software Foundation
8505 gives unlimited permission to copy, distribute and modify it."
8510 cat >>$CONFIG_STATUS <<\_ACEOF
8511 # If no file are specified by the user, then we need to provide default
8512 # value. By we need to know if files were specified by the user.
8518 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
8519 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
8527 *) # This is not an option, so the user has probably given explicit
8530 ac_need_defaults
=false
;;
8534 # Handling of the options.
8536 cat >>$CONFIG_STATUS <<\_ACEOF
8537 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
8539 --version |
--vers* |
-V )
8540 echo "$ac_cs_version"; exit 0 ;;
8542 # Conflict between --help and --header
8543 { { echo "$as_me:$LINENO: error: ambiguous option: $1
8544 Try \`$0 --help' for more information." >&5
8545 echo "$as_me: error: ambiguous option: $1
8546 Try \`$0 --help' for more information." >&2;}
8547 { (exit 1); exit 1; }; };;
8548 --help |
--hel |
-h )
8549 echo "$ac_cs_usage"; exit 0 ;;
8550 --debug |
--d* |
-d )
8552 --file |
--fil |
--fi |
--f )
8554 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
8555 ac_need_defaults
=false
;;
8556 --header |
--heade |
--head |
--hea )
8558 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
8559 ac_need_defaults
=false
;;
8560 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
8561 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
8565 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8566 Try \`$0 --help' for more information." >&5
8567 echo "$as_me: error: unrecognized option: $1
8568 Try \`$0 --help' for more information." >&2;}
8569 { (exit 1); exit 1; }; } ;;
8571 *) ac_config_targets
="$ac_config_targets $1" ;;
8577 ac_configure_extra_args
=
8579 if $ac_cs_silent; then
8581 ac_configure_extra_args
="$ac_configure_extra_args --silent"
8585 cat >>$CONFIG_STATUS <<_ACEOF
8586 if \$ac_cs_recheck; then
8587 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8588 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8593 cat >>$CONFIG_STATUS <<_ACEOF
8595 # INIT-COMMANDS section.
8601 with_target_subdir=${with_target_subdir}
8602 with_multisubdir=${with_multisubdir}
8603 ac_configure_args="--enable-multilib ${ac_configure_args}"
8604 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
8605 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
8606 libiberty_topdir=${libiberty_topdir}
8613 cat >>$CONFIG_STATUS <<\_ACEOF
8614 for ac_config_target
in $ac_config_targets
8616 case "$ac_config_target" in
8617 # Handling of arguments.
8618 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
8619 "testsuite/Makefile" ) CONFIG_FILES
="$CONFIG_FILES testsuite/Makefile" ;;
8620 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
8621 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
8622 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8623 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8624 { (exit 1); exit 1; }; };;
8628 # If the user did not use the arguments to specify the items to instantiate,
8629 # then the envvar interface is used. Set only those that are not.
8630 # We use the long form for the default assignment because of an extremely
8631 # bizarre bug on SunOS 4.1.3.
8632 if $ac_need_defaults; then
8633 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
8634 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
8635 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
8638 # Have a temporary directory for convenience. Make it in the build tree
8639 # simply because there is no reason to put it here, and in addition,
8640 # creating and moving files from /tmp can sometimes cause problems.
8641 # Create a temporary directory, and hook for its removal unless debugging.
8644 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8645 trap '{ (exit 1); exit 1; }' 1 2 13 15
8648 # Create a (secure) tmp directory for tmp files.
8651 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8652 test -n "$tmp" && test -d "$tmp"
8655 tmp
=.
/confstat$$
-$RANDOM
8656 (umask 077 && mkdir
$tmp)
8659 echo "$me: cannot create a temporary directory in ." >&2
8660 { (exit 1); exit 1; }
8665 cat >>$CONFIG_STATUS <<_ACEOF
8668 # CONFIG_FILES section.
8671 # No need to generate the scripts if there are no CONFIG_FILES.
8672 # This happens for instance when ./config.status config.h
8673 if test -n "\$CONFIG_FILES"; then
8674 # Protect against being on the right side of a sed subst in config.status.
8675 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8676 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8677 s,@SHELL@,$SHELL,;t t
8678 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8679 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8680 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8681 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8682 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8683 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8684 s,@exec_prefix@,$exec_prefix,;t t
8685 s,@prefix@,$prefix,;t t
8686 s,@program_transform_name@,$program_transform_name,;t t
8687 s,@bindir@,$bindir,;t t
8688 s,@sbindir@,$sbindir,;t t
8689 s,@libexecdir@,$libexecdir,;t t
8690 s,@datadir@,$datadir,;t t
8691 s,@sysconfdir@,$sysconfdir,;t t
8692 s,@sharedstatedir@,$sharedstatedir,;t t
8693 s,@localstatedir@,$localstatedir,;t t
8694 s,@libdir@,$libdir,;t t
8695 s,@includedir@,$includedir,;t t
8696 s,@oldincludedir@,$oldincludedir,;t t
8697 s,@infodir@,$infodir,;t t
8698 s,@mandir@,$mandir,;t t
8699 s,@build_alias@,$build_alias,;t t
8700 s,@host_alias@,$host_alias,;t t
8701 s,@target_alias@,$target_alias,;t t
8703 s,@ECHO_C@,$ECHO_C,;t t
8704 s,@ECHO_N@,$ECHO_N,;t t
8705 s,@ECHO_T@,$ECHO_T,;t t
8707 s,@libiberty_topdir@,$libiberty_topdir,;t t
8708 s,@MAINT@,$MAINT,;t t
8709 s,@NOTMAINT@,$NOTMAINT,;t t
8710 s,@MAKEINFO@,$MAKEINFO,;t t
8711 s,@BUILD_INFO@,$BUILD_INFO,;t t
8713 s,@HAVE_PERL@,$HAVE_PERL,;t t
8714 s,@build@,$build,;t t
8715 s,@build_cpu@,$build_cpu,;t t
8716 s,@build_vendor@,$build_vendor,;t t
8717 s,@build_os@,$build_os,;t t
8719 s,@host_cpu@,$host_cpu,;t t
8720 s,@host_vendor@,$host_vendor,;t t
8721 s,@host_os@,$host_os,;t t
8723 s,@ac_ct_AR@,$ac_ct_AR,;t t
8724 s,@RANLIB@,$RANLIB,;t t
8725 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8727 s,@CFLAGS@,$CFLAGS,;t t
8728 s,@LDFLAGS@,$LDFLAGS,;t t
8729 s,@CPPFLAGS@,$CPPFLAGS,;t t
8730 s,@ac_ct_CC@,$ac_ct_CC,;t t
8731 s,@EXEEXT@,$EXEEXT,;t t
8732 s,@OBJEXT@,$OBJEXT,;t t
8735 s,@STRIP@,$STRIP,;t t
8736 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8737 s,@LIBTOOL@,$LIBTOOL,;t t
8738 s,@ac_libiberty_warn_cflags@,$ac_libiberty_warn_cflags,;t t
8739 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8740 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8741 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8742 s,@EGREP@,$EGREP,;t t
8743 s,@LIBOBJS@,$LIBOBJS,;t t
8744 s,@CHECK@,$CHECK,;t t
8745 s,@target_header_dir@,$target_header_dir,;t t
8746 s,@pexecute@,$pexecute,;t t
8747 s,@ltpexecute@,$ltpexecute,;t t
8748 s,@INSTALL_DEST@,$INSTALL_DEST,;t t
8749 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8750 /@host_makefile_frag@/r $host_makefile_frag
8751 s,@host_makefile_frag@,,;t t
8756 cat >>$CONFIG_STATUS <<\_ACEOF
8757 # Split the substitutions into bite-sized pieces for seds with
8758 # small command number limits, like on Digital OSF/1 and HP-UX.
8760 ac_sed_frag
=1 # Number of current file.
8761 ac_beg
=1 # First line for current file.
8762 ac_end
=$ac_max_sed_lines # Line after last line for current file.
8765 while $ac_more_lines; do
8766 if test $ac_beg -gt 1; then
8767 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
8769 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
8771 if test ! -s $tmp/subs.frag
; then
8774 # The purpose of the label and of the branching condition is to
8775 # speed up the sed processing (if there are no `@' at all, there
8776 # is no need to browse any of the substitutions).
8777 # These are the two extra sed commands mentioned above.
8779 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
8780 if test -z "$ac_sed_cmds"; then
8781 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
8783 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8785 ac_sed_frag
=`expr $ac_sed_frag + 1`
8787 ac_end
=`expr $ac_end + $ac_max_sed_lines`
8790 if test -z "$ac_sed_cmds"; then
8793 fi # test -n "$CONFIG_FILES"
8796 cat >>$CONFIG_STATUS <<\_ACEOF
8797 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
8798 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8800 - |
*:- |
*:-:* ) # input from stdin
8802 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8803 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
8804 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8805 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
8806 * ) ac_file_in
=$ac_file.
in ;;
8809 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8810 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
8811 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8812 X"$ac_file" : 'X\(//\)[^/]' \| \
8813 X"$ac_file" : 'X\(//\)$' \| \
8814 X"$ac_file" : 'X\(/\)' \| \
8815 . : '\(.\)' 2>/dev/null ||
8817 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8818 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8819 /^X\(\/\/\)$/{ s//\1/; q; }
8820 /^X\(\/\).*/{ s//\1/; q; }
8822 { if $as_mkdir_p; then
8827 while test ! -d "$as_dir"; do
8828 as_dirs
="$as_dir $as_dirs"
8829 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
8830 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8831 X"$as_dir" : 'X\(//\)[^/]' \| \
8832 X"$as_dir" : 'X\(//\)$' \| \
8833 X"$as_dir" : 'X\(/\)' \| \
8834 . : '\(.\)' 2>/dev/null ||
8836 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8837 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8838 /^X\(\/\/\)$/{ s//\1/; q; }
8839 /^X\(\/\).*/{ s//\1/; q; }
8842 test ! -n "$as_dirs" || mkdir
$as_dirs
8843 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8844 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8845 { (exit 1); exit 1; }; }; }
8849 if test "$ac_dir" != .
; then
8850 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8851 # A "../" for each directory in $ac_dir_suffix.
8852 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8854 ac_dir_suffix
= ac_top_builddir
=
8858 .
) # No --srcdir option. We are building in place.
8860 if test -z "$ac_top_builddir"; then
8863 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
8865 [\\/]* | ?
:[\\/]* ) # Absolute path.
8866 ac_srcdir
=$srcdir$ac_dir_suffix;
8867 ac_top_srcdir
=$srcdir ;;
8869 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
8870 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
8873 # Do not use `cd foo && pwd` to compute absolute paths, because
8874 # the directories may not exist.
8876 .
) ac_abs_builddir
="$ac_dir";;
8879 .
) ac_abs_builddir
=`pwd`;;
8880 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
8881 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
8884 case $ac_abs_builddir in
8885 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
8887 case ${ac_top_builddir}.
in
8888 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
8889 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
8890 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
8893 case $ac_abs_builddir in
8894 .
) ac_abs_srcdir
=$ac_srcdir;;
8897 .
) ac_abs_srcdir
=$ac_abs_builddir;;
8898 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
8899 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
8902 case $ac_abs_builddir in
8903 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
8905 case $ac_top_srcdir in
8906 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
8907 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
8908 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
8914 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
8915 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
8918 if test x
"$ac_file" != x-
; then
8919 { echo "$as_me:$LINENO: creating $ac_file" >&5
8920 echo "$as_me: creating $ac_file" >&6;}
8923 # Let's still pretend it is `configure' which instantiates (i.e., don't
8924 # use $as_me), people would be surprised to read:
8925 # /* config.h. Generated by config.status. */
8926 if test x
"$ac_file" = x-
; then
8929 configure_input
="$ac_file. "
8931 configure_input
=$configure_input"Generated from `echo $ac_file_in |
8932 sed 's,.*/,,'` by configure."
8934 # First look for the input files in the build tree, otherwise in the
8936 ac_file_inputs
=`IFS=:
8937 for f in $ac_file_in; do
8939 -) echo $tmp/stdin ;;
8941 # Absolute (can't be DOS-style, as IFS=:)
8942 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8943 echo "$as_me: error: cannot find input file: $f" >&2;}
8944 { (exit 1); exit 1; }; }
8947 if test -f "$f"; then
8950 elif test -f "$srcdir/$f"; then
8955 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8956 echo "$as_me: error: cannot find input file: $f" >&2;}
8957 { (exit 1); exit 1; }; }
8960 done` ||
{ (exit 1); exit 1; }
8962 cat >>$CONFIG_STATUS <<_ACEOF
8966 cat >>$CONFIG_STATUS <<\_ACEOF
8968 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
8969 s
,@configure_input@
,$configure_input,;t t
8970 s
,@srcdir@
,$ac_srcdir,;t t
8971 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
8972 s
,@top_srcdir@
,$ac_top_srcdir,;t t
8973 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
8974 s
,@builddir@
,$ac_builddir,;t t
8975 s
,@abs_builddir@
,$ac_abs_builddir,;t t
8976 s
,@top_builddir@
,$ac_top_builddir,;t t
8977 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
8978 s
,@INSTALL@
,$ac_INSTALL,;t t
8979 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8981 if test x"$ac_file" != x-; then
8982 mv $tmp/out $ac_file
8990 cat >>$CONFIG_STATUS <<\_ACEOF
8993 # CONFIG_HEADER section.
8996 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
8997 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8999 # ac_d sets the value in "#define NAME VALUE" lines.
9000 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9001 ac_dB
='[ ].*$,\1#\2'
9004 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9005 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9006 ac_uB
='$,\1#\2define\3'
9010 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
9011 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9013 - |
*:- |
*:-:* ) # input from stdin
9015 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9016 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9017 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9018 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9019 * ) ac_file_in
=$ac_file.
in ;;
9022 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
9023 echo "$as_me: creating $ac_file" >&6;}
9025 # First look for the input files in the build tree, otherwise in the
9027 ac_file_inputs
=`IFS=:
9028 for f in $ac_file_in; do
9030 -) echo $tmp/stdin ;;
9032 # Absolute (can't be DOS-style, as IFS=:)
9033 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9034 echo "$as_me: error: cannot find input file: $f" >&2;}
9035 { (exit 1); exit 1; }; }
9036 # Do quote $f, to prevent DOS paths from being IFS'd.
9039 if test -f "$f"; then
9042 elif test -f "$srcdir/$f"; then
9047 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9048 echo "$as_me: error: cannot find input file: $f" >&2;}
9049 { (exit 1); exit 1; }; }
9052 done` ||
{ (exit 1); exit 1; }
9053 # Remove the trailing spaces.
9054 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9058 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9059 # `conftest.undefs', that substitutes the proper values into
9060 # config.h.in to produce config.h. The first handles `#define'
9061 # templates, and the second `#undef' templates.
9062 # And first: Protect against being on the right side of a sed subst in
9063 # config.status. Protect against being in an unquoted here document
9065 rm -f conftest.defines conftest.undefs
9066 # Using a here document instead of a string reduces the quoting nightmare.
9067 # Putting comments in sed scripts is not portable.
9069 # `end' is used to avoid that the second main sed command (meant for
9070 # 0-ary CPP macros) applies to n-ary macro definitions.
9071 # See the Autoconf documentation for `clear'.
9072 cat >confdef2sed.
sed <<\_ACEOF
9077 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9079 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9082 # If some macros were called several times there might be several times
9083 # the same #defines, which is useless. Nevertheless, we may not want to
9084 # sort them, since we want the *last* AC-DEFINE to be honored.
9085 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9086 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9087 rm -f confdef2sed.sed
9089 # This sed command replaces #undef with comments. This is necessary, for
9090 # example, in the case of _POSIX_SOURCE, which is predefined and required
9091 # on some systems where configure will not decide to define it.
9092 cat >>conftest.undefs <<\_ACEOF
9093 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9096 # Break up conftest.defines because some shells have a limit on the size
9097 # of here documents, and old seds have small limits too (100 cmds).
9098 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9099 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9100 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9101 echo ' :' >>$CONFIG_STATUS
9103 while grep . conftest.defines >/dev/null
9105 # Write a limited-size here document to $tmp/defines.sed.
9106 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9107 # Speed up: don't consider the non `#define' lines.
9108 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9109 # Work around the forget-to-reset-the-flag bug.
9110 echo 't clr' >>$CONFIG_STATUS
9111 echo ': clr' >>$CONFIG_STATUS
9112 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
9114 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9118 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
9119 rm -f conftest.defines
9120 mv conftest.
tail conftest.defines
9122 rm -f conftest.defines
9123 echo ' fi # grep' >>$CONFIG_STATUS
9124 echo >>$CONFIG_STATUS
9126 # Break up conftest.undefs because some shells have a limit on the size
9127 # of here documents, and old seds have small limits too (100 cmds).
9128 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9130 while grep . conftest.undefs
>/dev
/null
9132 # Write a limited-size here document to $tmp/undefs.sed.
9133 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9134 # Speed up: don't consider the non
`#undef'
9135 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9136 # Work around the forget-to-reset-the-flag bug.
9137 echo 't clr' >>$CONFIG_STATUS
9138 echo ': clr' >>$CONFIG_STATUS
9139 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9141 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9145 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9146 rm -f conftest.undefs
9147 mv conftest.tail conftest.undefs
9149 rm -f conftest.undefs
9151 cat >>$CONFIG_STATUS <<\_ACEOF
9152 # Let's still pretend it is `configure
' which instantiates (i.e., don't
9153 # use $as_me), people would be surprised to read:
9154 # /* config.h. Generated by config.status. */
9155 if test x
"$ac_file" = x-
; then
9156 echo "/* Generated by configure. */" >$tmp/config.h
9158 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
9160 cat $tmp/in >>$tmp/config.h
9162 if test x
"$ac_file" != x-
; then
9163 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
9164 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9165 echo "$as_me: $ac_file is unchanged" >&6;}
9167 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
9168 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9169 X"$ac_file" : 'X\(//\)[^/]' \| \
9170 X"$ac_file" : 'X\(//\)$' \| \
9171 X"$ac_file" : 'X\(/\)' \| \
9172 . : '\(.\)' 2>/dev/null ||
9174 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9175 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9176 /^X\(\/\/\)$/{ s//\1/; q; }
9177 /^X\(\/\).*/{ s//\1/; q; }
9179 { if $as_mkdir_p; then
9184 while test ! -d "$as_dir"; do
9185 as_dirs
="$as_dir $as_dirs"
9186 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
9187 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9188 X"$as_dir" : 'X\(//\)[^/]' \| \
9189 X"$as_dir" : 'X\(//\)$' \| \
9190 X"$as_dir" : 'X\(/\)' \| \
9191 . : '\(.\)' 2>/dev/null ||
9193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9194 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9195 /^X\(\/\/\)$/{ s//\1/; q; }
9196 /^X\(\/\).*/{ s//\1/; q; }
9199 test ! -n "$as_dirs" || mkdir
$as_dirs
9200 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9201 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9202 { (exit 1); exit 1; }; }; }
9205 mv $tmp/config.h
$ac_file
9213 cat >>$CONFIG_STATUS <<\_ACEOF
9216 # CONFIG_COMMANDS section.
9218 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
9219 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
9220 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9221 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
9222 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9223 X"$ac_dest" : 'X\(//\)[^/]' \| \
9224 X"$ac_dest" : 'X\(//\)$' \| \
9225 X"$ac_dest" : 'X\(/\)' \| \
9226 . : '\(.\)' 2>/dev/null ||
9228 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9229 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9230 /^X\(\/\/\)$/{ s//\1/; q; }
9231 /^X\(\/\).*/{ s//\1/; q; }
9233 { if $as_mkdir_p; then
9238 while test ! -d "$as_dir"; do
9239 as_dirs
="$as_dir $as_dirs"
9240 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
9241 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9242 X"$as_dir" : 'X\(//\)[^/]' \| \
9243 X"$as_dir" : 'X\(//\)$' \| \
9244 X"$as_dir" : 'X\(/\)' \| \
9245 . : '\(.\)' 2>/dev/null ||
9247 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9248 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9249 /^X\(\/\/\)$/{ s//\1/; q; }
9250 /^X\(\/\).*/{ s//\1/; q; }
9253 test ! -n "$as_dirs" || mkdir
$as_dirs
9254 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9255 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9256 { (exit 1); exit 1; }; }; }
9260 if test "$ac_dir" != .
; then
9261 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9262 # A "../" for each directory in $ac_dir_suffix.
9263 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9265 ac_dir_suffix
= ac_top_builddir
=
9269 .
) # No --srcdir option. We are building in place.
9271 if test -z "$ac_top_builddir"; then
9274 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
9276 [\\/]* | ?
:[\\/]* ) # Absolute path.
9277 ac_srcdir
=$srcdir$ac_dir_suffix;
9278 ac_top_srcdir
=$srcdir ;;
9280 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
9281 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
9284 # Do not use `cd foo && pwd` to compute absolute paths, because
9285 # the directories may not exist.
9287 .
) ac_abs_builddir
="$ac_dir";;
9290 .
) ac_abs_builddir
=`pwd`;;
9291 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
9292 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
9295 case $ac_abs_builddir in
9296 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
9298 case ${ac_top_builddir}.
in
9299 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
9300 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
9301 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
9304 case $ac_abs_builddir in
9305 .
) ac_abs_srcdir
=$ac_srcdir;;
9308 .
) ac_abs_srcdir
=$ac_abs_builddir;;
9309 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
9310 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
9313 case $ac_abs_builddir in
9314 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
9316 case $ac_top_srcdir in
9317 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
9318 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
9319 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
9324 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9325 echo "$as_me: executing $ac_dest commands" >&6;}
9327 default
) test -z "$CONFIG_HEADERS" ||
echo timestamp
> stamp-h
9328 if test -n "$CONFIG_FILES"; then
9329 if test -n "${with_target_subdir}"; then
9330 # FIXME: We shouldn't need to set ac_file
9332 LD
="${ORIGINAL_LD_FOR_MULTILIBS}"
9333 .
${libiberty_topdir}/config-ml.
in
9340 cat >>$CONFIG_STATUS <<\_ACEOF
9342 { (exit 0); exit 0; }
9344 chmod +x
$CONFIG_STATUS
9345 ac_clean_files
=$ac_clean_files_save
9348 # configure is writing to config.log, and then calls config.status.
9349 # config.status does its own redirection, appending to config.log.
9350 # Unfortunately, on DOS this fails, as config.log is still kept open
9351 # by configure, so config.status won't be able to write to it; its
9352 # output is simply discarded. So we exec the FD to /dev/null,
9353 # effectively closing config.log, so it can be properly (re)opened and
9354 # appended to by config.status. When coming back to configure, we
9355 # need to make the FD available again.
9356 if test "$no_create" != yes; then
9358 ac_config_status_args
=
9359 test "$silent" = yes &&
9360 ac_config_status_args
="$ac_config_status_args --quiet"
9362 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
9364 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9365 # would make configure fail if this is the last instruction.
9366 $ac_cs_success ||
{ (exit 1); exit 1; }