2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22 DUALCASE
=1; export DUALCASE
# for MKS sh
24 # Support unset when possible.
25 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C
; export $as_var
51 # Required to use basename.
52 if expr a
: '\(a\)' >/dev
/null
2>&1; then
58 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me
=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits
='0123456789'
84 as_cr_alnum
=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
102 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself
=$0 ;;
109 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir
=.
114 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x
; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
131 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir
=.
135 for as_base
in sh bash ksh sh5
; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
144 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
145 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
146 CONFIG_SHELL
=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x
$as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c
*,-n*) ECHO_N
= ECHO_C
='
190 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
191 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
194 if expr a
: '\(a\)' >/dev
/null
2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.
file
202 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe
; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.
file conf$$
2>/dev
/null
; then
216 rm -f conf$$ conf$$.exe conf$$.
file
218 if mkdir
-p .
2>/dev
/null
; then
221 test -d .
/-p && rmdir .
/-p
225 as_executable_p
="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix
=/usr
/local
255 ac_config_libobj_dir
=.
260 SHELL
=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file
="xmalloc.c"
275 # Factoring default headers for most tests.
276 ac_includes_default
="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS libiberty_topdir MAINT NOTMAINT MAKEINFO BUILD_INFO PERL HAVE_PERL build build_cpu build_vendor build_os host host_cpu host_vendor host_os AR ac_ct_AR RANLIB ac_ct_RANLIB CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP ac_libiberty_warn_cflags NO_MINUS_C_MINUS_O OUTPUT_OPTION INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA EGREP LIBOBJS CHECK target_header_dir pexecute 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-install-libiberty Install headers
for end users
853 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
854 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
855 --with-target-subdir=SUBDIR Configuring
in a subdirectory
for target
856 --with-build-subdir=SUBDIR Configuring
in a subdirectory
for build
857 --with-cross-host=HOST Configuring with a cross compiler
858 --with-newlib Configuring with newlib
860 Some influential environment variables
:
861 CC C compiler
command
862 CFLAGS C compiler flags
863 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
864 nonstandard directory
<lib dir
>
865 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
866 headers
in a nonstandard directory
<include dir
>
869 Use these variables to override the choices made by
`configure' or to help
870 it to find libraries and programs with nonstandard names/locations.
875 if test "$ac_init_help" = "recursive"; then
876 # If there are subdirs, report their specific --help.
878 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
879 test -d $ac_dir || continue
882 if test "$ac_dir" != .; then
883 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
884 # A "../" for each directory in $ac_dir_suffix.
885 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
887 ac_dir_suffix= ac_top_builddir=
891 .) # No --srcdir option. We are building in place.
893 if test -z "$ac_top_builddir"; then
896 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
898 [\\/]* | ?:[\\/]* ) # Absolute path.
899 ac_srcdir=$srcdir$ac_dir_suffix;
900 ac_top_srcdir=$srcdir ;;
902 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
903 ac_top_srcdir=$ac_top_builddir$srcdir ;;
906 # Do not use `cd foo
&& pwd` to compute absolute paths, because
907 # the directories may not exist.
909 .) ac_abs_builddir="$ac_dir";;
912 .) ac_abs_builddir=`pwd`;;
913 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
914 *) ac_abs_builddir=`pwd`/"$ac_dir";;
917 case $ac_abs_builddir in
918 .) ac_abs_top_builddir=${ac_top_builddir}.;;
920 case ${ac_top_builddir}. in
921 .) ac_abs_top_builddir=$ac_abs_builddir;;
922 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
923 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
926 case $ac_abs_builddir in
927 .) ac_abs_srcdir=$ac_srcdir;;
930 .) ac_abs_srcdir=$ac_abs_builddir;;
931 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
932 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
935 case $ac_abs_builddir in
936 .) ac_abs_top_srcdir=$ac_top_srcdir;;
938 case $ac_top_srcdir in
939 .) ac_abs_top_srcdir=$ac_abs_builddir;;
940 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
941 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
946 # Check for guested configure; otherwise get Cygnus style configure.
947 if test -f $ac_srcdir/configure.gnu; then
949 $SHELL $ac_srcdir/configure.gnu --help=recursive
950 elif test -f $ac_srcdir/configure; then
952 $SHELL $ac_srcdir/configure --help=recursive
953 elif test -f $ac_srcdir/configure.ac ||
954 test -f $ac_srcdir/configure.in; then
958 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
964 test -n "$ac_init_help" && exit 0
965 if $ac_init_version; then
968 Copyright (C) 2003 Free Software Foundation, Inc.
969 This configure script is free software; the Free Software Foundation
970 gives unlimited permission to copy, distribute and modify it.
976 This file contains any messages produced by compilers while
977 running configure, to aid debugging if configure makes a mistake.
979 It was created by $as_me, which was
980 generated by GNU Autoconf 2.59. Invocation command line was
991 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
992 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
993 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
994 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
995 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
997 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
998 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1000 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1001 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1002 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1003 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1004 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1005 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1006 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1014 test -z "$as_dir" && as_dir=.
1015 echo "PATH: $as_dir"
1030 # Keep a trace of the command line.
1031 # Strip out --no-create and --no-recursion so they do not pile up.
1032 # Strip out --silent because we don't want to record it for future runs.
1033 # Also quote any args containing shell meta-characters.
1034 # Make two passes to allow for proper duplicate-argument suppression.
1039 ac_must_keep_next=false
1045 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1046 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1047 | -silent | --silent | --silen | --sile | --sil)
1049 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1050 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1053 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1055 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1056 if test $ac_must_keep_next = true; then
1057 ac_must_keep_next=false # Got value, back to normal.
1060 *=* | --config-cache | -C | -disable-* | --disable-* \
1061 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1062 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1063 | -with-* | --with-* | -without-* | --without-* | --x)
1064 case "$ac_configure_args0 " in
1065 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1068 -* ) ac_must_keep_next=true ;;
1071 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1072 # Get rid of the leading space.
1078 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1079 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1081 # When interrupted or exit'd, cleanup temporary files, and complete
1082 # config.log. We remove comments because anyway the quotes in there
1083 # would cause problems or look ugly.
1084 # WARNING: Be sure not to use single quotes in there, as some shells,
1085 # such as our DU 5.0 friend, will then `close
' the trap.
1086 trap 'exit_status
=$?
1087 # Save into config.log some information that might help in debugging.
1092 ## ---------------- ##
1093 ## Cache variables. ##
1094 ## ---------------- ##
1097 # The following way of writing the cache mishandles newlines in values,
1100 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1103 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1104 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1108 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1115 ## ----------------- ##
1116 ## Output variables. ##
1117 ## ----------------- ##
1120 for ac_var
in $ac_subst_vars
1122 eval ac_val
=$
`echo $ac_var`
1123 echo "$ac_var='"'"'$ac_val'"'"'"
1127 if test -n "$ac_subst_files"; then
1134 for ac_var
in $ac_subst_files
1136 eval ac_val
=$
`echo $ac_var`
1137 echo "$ac_var='"'"'$ac_val'"'"'"
1142 if test -s confdefs.h
; then
1149 sed "/^$/d" confdefs.h |
sort
1152 test "$ac_signal" != 0 &&
1153 echo "$as_me: caught signal $ac_signal"
1154 echo "$as_me: exit $exit_status"
1156 rm -f core
*.core
&&
1157 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1160 for ac_signal in 1 2 13 15; do
1161 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1165 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1166 rm -rf conftest* confdefs.h
1167 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1170 # Predefined preprocessor variables.
1172 cat >>confdefs.h <<_ACEOF
1173 #define PACKAGE_NAME "$PACKAGE_NAME"
1177 cat >>confdefs.h <<_ACEOF
1178 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1182 cat >>confdefs.h <<_ACEOF
1183 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1187 cat >>confdefs.h <<_ACEOF
1188 #define PACKAGE_STRING "$PACKAGE_STRING"
1192 cat >>confdefs.h <<_ACEOF
1193 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1197 # Let the site file select an alternate cache file if it wants to.
1198 # Prefer explicitly selected file to automatically selected ones.
1199 if test -z "$CONFIG_SITE"; then
1200 if test "x$prefix" != xNONE; then
1201 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1203 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1206 for ac_site_file in $CONFIG_SITE; do
1207 if test -r "$ac_site_file"; then
1208 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1209 echo "$as_me: loading site script $ac_site_file" >&6;}
1210 sed 's
/^
/|
/' "$ac_site_file" >&5
1215 if test -r "$cache_file"; then
1216 # Some versions of bash will fail to source /dev/null (special
1217 # files actually), so we avoid doing that.
1218 if test -f "$cache_file"; then
1219 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1220 echo "$as_me: loading cache $cache_file" >&6;}
1222 [\\/]* | ?:[\\/]* ) . $cache_file;;
1223 *) . ./$cache_file;;
1227 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1228 echo "$as_me: creating cache $cache_file" >&6;}
1232 # Check that the precious variables saved in the cache have kept the same
1234 ac_cache_corrupted=false
1235 for ac_var in `(set) 2>&1 |
1236 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1237 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1238 eval ac_new_set=\$ac_env_${ac_var}_set
1239 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1240 eval ac_new_val="\$ac_env_${ac_var}_value"
1241 case $ac_old_set,$ac_new_set in
1243 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1244 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1245 ac_cache_corrupted=: ;;
1247 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1248 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1249 ac_cache_corrupted=: ;;
1252 if test "x$ac_old_val" != "x$ac_new_val"; then
1253 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1254 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1255 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1256 echo "$as_me: former value: $ac_old_val" >&2;}
1257 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1258 echo "$as_me: current value: $ac_new_val" >&2;}
1259 ac_cache_corrupted=:
1262 # Pass precious variables to config.status.
1263 if test "$ac_new_set" = set; then
1265 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1266 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1267 *) ac_arg=$ac_var=$ac_new_val ;;
1269 case " $ac_configure_args " in
1270 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1271 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1275 if $ac_cache_corrupted; then
1276 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1277 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1278 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1279 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1280 { (exit 1); exit 1; }; }
1284 ac_cpp='$CPP $CPPFLAGS'
1285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1286 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1309 # This works around the fact that libtool configuration may change LD
1310 # for this particular configuration, but some shells, instead of
1311 # keeping the changes in LD private, export them just because LD is
1312 # exported. We don't use libtool yet
, but some day we might
, so...
1313 ORIGINAL_LD_FOR_MULTILIBS
=$LD
1316 # Check whether --with-target-subdir or --without-target-subdir was given.
1317 if test "${with_target_subdir+set}" = set; then
1318 withval
="$with_target_subdir"
1322 # Check whether --with-build-subdir or --without-build-subdir was given.
1323 if test "${with_build_subdir+set}" = set; then
1324 withval
="$with_build_subdir"
1328 # Check whether --with-cross-host or --without-cross-host was given.
1329 if test "${with_cross_host+set}" = set; then
1330 withval
="$with_cross_host"
1334 # Check whether --with-newlib or --without-newlib was given.
1335 if test "${with_newlib+set}" = set; then
1336 withval
="$with_newlib"
1340 if test "${srcdir}" = "."; then
1341 if test -n "${with_build_subdir}"; then
1342 libiberty_topdir
="${srcdir}/../.."
1344 elif test -z "${with_target_subdir}"; then
1345 libiberty_topdir
="${srcdir}/.."
1347 if test "${with_target_subdir}" != "."; then
1348 libiberty_topdir
="${srcdir}/${with_multisrctop}../.."
1350 libiberty_topdir
="${srcdir}/${with_multisrctop}.."
1354 libiberty_topdir
="${srcdir}/.."
1358 for ac_dir
in $libiberty_topdir $srcdir/$libiberty_topdir; do
1359 if test -f $ac_dir/install-sh
; then
1361 ac_install_sh
="$ac_aux_dir/install-sh -c"
1363 elif test -f $ac_dir/install.sh
; then
1365 ac_install_sh
="$ac_aux_dir/install.sh -c"
1367 elif test -f $ac_dir/shtool
; then
1369 ac_install_sh
="$ac_aux_dir/shtool install -c"
1373 if test -z "$ac_aux_dir"; then
1374 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $libiberty_topdir $srcdir/$libiberty_topdir" >&5
1375 echo "$as_me: error: cannot find install-sh or install.sh in $libiberty_topdir $srcdir/$libiberty_topdir" >&2;}
1376 { (exit 1); exit 1; }; }
1378 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1379 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1380 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1384 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1385 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1386 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1387 if test "${enable_maintainer_mode+set}" = set; then
1388 enableval
="$enable_maintainer_mode"
1389 maintainer_mode
=$enableval
1394 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
1395 echo "${ECHO_T}$maintainer_mode" >&6
1397 if test "$maintainer_mode" = "yes"; then
1405 # Do we have a single-tree copy of texinfo? Even if we do, we can't
1406 # rely on it - libiberty is built before texinfo.
1407 # Extract the first word of "makeinfo", so it can be a program name with args.
1408 set dummy makeinfo
; ac_word
=$2
1409 echo "$as_me:$LINENO: checking for $ac_word" >&5
1410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1411 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
1412 echo $ECHO_N "(cached) $ECHO_C" >&6
1414 if test -n "$MAKEINFO"; then
1415 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
1417 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1421 test -z "$as_dir" && as_dir
=.
1422 for ac_exec_ext
in '' $ac_executable_extensions; do
1423 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1424 ac_cv_prog_MAKEINFO
="makeinfo"
1425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1433 MAKEINFO
=$ac_cv_prog_MAKEINFO
1434 if test -n "$MAKEINFO"; then
1435 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
1436 echo "${ECHO_T}$MAKEINFO" >&6
1438 echo "$as_me:$LINENO: result: no" >&5
1439 echo "${ECHO_T}no" >&6
1442 if test "x$MAKEINFO" = "x"; then
1443 MAKEINFO
="@echo makeinfo missing; true"
1448 */missing\ makeinfo
*)
1450 { echo "$as_me:$LINENO: WARNING:
1451 *** Makeinfo is missing. Info documentation will not be built." >&5
1452 echo "$as_me: WARNING:
1453 *** Makeinfo is missing. Info documentation will not be built." >&2;}
1456 case x
"`$MAKEINFO --version | grep 'GNU texinfo'`" in
1458 MAKEINFO
="@echo $MAKEINFO is too old, 4.0 or newer required; true"
1460 { echo "$as_me:$LINENO: WARNING:
1461 *** Makeinfo is too old. Info documentation will not be built." >&5
1462 echo "$as_me: WARNING:
1463 *** Makeinfo is too old. Info documentation will not be built." >&2;}
1472 # Extract the first word of "perl", so it can be a program name with args.
1473 set dummy perl
; ac_word
=$2
1474 echo "$as_me:$LINENO: checking for $ac_word" >&5
1475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1476 if test "${ac_cv_prog_PERL+set}" = set; then
1477 echo $ECHO_N "(cached) $ECHO_C" >&6
1479 if test -n "$PERL"; then
1480 ac_cv_prog_PERL
="$PERL" # Let the user override the test.
1482 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1486 test -z "$as_dir" && as_dir
=.
1487 for ac_exec_ext
in '' $ac_executable_extensions; do
1488 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1489 ac_cv_prog_PERL
="perl"
1490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1498 PERL
=$ac_cv_prog_PERL
1499 if test -n "$PERL"; then
1500 echo "$as_me:$LINENO: result: $PERL" >&5
1501 echo "${ECHO_T}$PERL" >&6
1503 echo "$as_me:$LINENO: result: no" >&5
1504 echo "${ECHO_T}no" >&6
1507 if test x
"$PERL" = x
""; then
1514 # Make sure we can run config.sub.
1515 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1516 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1517 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1518 { (exit 1); exit 1; }; }
1520 echo "$as_me:$LINENO: checking build system type" >&5
1521 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1522 if test "${ac_cv_build+set}" = set; then
1523 echo $ECHO_N "(cached) $ECHO_C" >&6
1525 ac_cv_build_alias
=$build_alias
1526 test -z "$ac_cv_build_alias" &&
1527 ac_cv_build_alias
=`$ac_config_guess`
1528 test -z "$ac_cv_build_alias" &&
1529 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1530 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1531 { (exit 1); exit 1; }; }
1532 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1533 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1534 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1535 { (exit 1); exit 1; }; }
1538 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1539 echo "${ECHO_T}$ac_cv_build" >&6
1541 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1542 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1543 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1546 echo "$as_me:$LINENO: checking host system type" >&5
1547 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1548 if test "${ac_cv_host+set}" = set; then
1549 echo $ECHO_N "(cached) $ECHO_C" >&6
1551 ac_cv_host_alias
=$host_alias
1552 test -z "$ac_cv_host_alias" &&
1553 ac_cv_host_alias
=$ac_cv_build_alias
1554 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1555 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1556 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1557 { (exit 1); exit 1; }; }
1560 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1561 echo "${ECHO_T}$ac_cv_host" >&6
1563 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1564 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1565 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1570 if test -n "$ac_tool_prefix"; then
1571 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1572 set dummy
${ac_tool_prefix}ar; ac_word
=$2
1573 echo "$as_me:$LINENO: checking for $ac_word" >&5
1574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1575 if test "${ac_cv_prog_AR+set}" = set; then
1576 echo $ECHO_N "(cached) $ECHO_C" >&6
1578 if test -n "$AR"; then
1579 ac_cv_prog_AR
="$AR" # Let the user override the test.
1581 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1585 test -z "$as_dir" && as_dir
=.
1586 for ac_exec_ext
in '' $ac_executable_extensions; do
1587 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1588 ac_cv_prog_AR
="${ac_tool_prefix}ar"
1589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1598 if test -n "$AR"; then
1599 echo "$as_me:$LINENO: result: $AR" >&5
1600 echo "${ECHO_T}$AR" >&6
1602 echo "$as_me:$LINENO: result: no" >&5
1603 echo "${ECHO_T}no" >&6
1607 if test -z "$ac_cv_prog_AR"; then
1609 # Extract the first word of "ar", so it can be a program name with args.
1610 set dummy
ar; ac_word
=$2
1611 echo "$as_me:$LINENO: checking for $ac_word" >&5
1612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1613 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
1614 echo $ECHO_N "(cached) $ECHO_C" >&6
1616 if test -n "$ac_ct_AR"; then
1617 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
1619 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1623 test -z "$as_dir" && as_dir
=.
1624 for ac_exec_ext
in '' $ac_executable_extensions; do
1625 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1626 ac_cv_prog_ac_ct_AR
="ar"
1627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1635 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
1636 if test -n "$ac_ct_AR"; then
1637 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
1638 echo "${ECHO_T}$ac_ct_AR" >&6
1640 echo "$as_me:$LINENO: result: no" >&5
1641 echo "${ECHO_T}no" >&6
1649 if test -n "$ac_tool_prefix"; then
1650 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1651 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1652 echo "$as_me:$LINENO: checking for $ac_word" >&5
1653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1654 if test "${ac_cv_prog_RANLIB+set}" = set; then
1655 echo $ECHO_N "(cached) $ECHO_C" >&6
1657 if test -n "$RANLIB"; then
1658 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1660 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1664 test -z "$as_dir" && as_dir
=.
1665 for ac_exec_ext
in '' $ac_executable_extensions; do
1666 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1667 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1676 RANLIB
=$ac_cv_prog_RANLIB
1677 if test -n "$RANLIB"; then
1678 echo "$as_me:$LINENO: result: $RANLIB" >&5
1679 echo "${ECHO_T}$RANLIB" >&6
1681 echo "$as_me:$LINENO: result: no" >&5
1682 echo "${ECHO_T}no" >&6
1686 if test -z "$ac_cv_prog_RANLIB"; then
1687 ac_ct_RANLIB
=$RANLIB
1688 # Extract the first word of "ranlib", so it can be a program name with args.
1689 set dummy ranlib
; ac_word
=$2
1690 echo "$as_me:$LINENO: checking for $ac_word" >&5
1691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1692 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1693 echo $ECHO_N "(cached) $ECHO_C" >&6
1695 if test -n "$ac_ct_RANLIB"; then
1696 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
1698 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1702 test -z "$as_dir" && as_dir
=.
1703 for ac_exec_ext
in '' $ac_executable_extensions; do
1704 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1705 ac_cv_prog_ac_ct_RANLIB
="ranlib"
1706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1712 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
1715 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
1716 if test -n "$ac_ct_RANLIB"; then
1717 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
1718 echo "${ECHO_T}$ac_ct_RANLIB" >&6
1720 echo "$as_me:$LINENO: result: no" >&5
1721 echo "${ECHO_T}no" >&6
1724 RANLIB
=$ac_ct_RANLIB
1726 RANLIB
="$ac_cv_prog_RANLIB"
1732 ac_cpp
='$CPP $CPPFLAGS'
1733 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1734 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1735 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1736 if test -n "$ac_tool_prefix"; then
1737 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1738 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1739 echo "$as_me:$LINENO: checking for $ac_word" >&5
1740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1741 if test "${ac_cv_prog_CC+set}" = set; then
1742 echo $ECHO_N "(cached) $ECHO_C" >&6
1744 if test -n "$CC"; then
1745 ac_cv_prog_CC
="$CC" # Let the user override the test.
1747 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1751 test -z "$as_dir" && as_dir
=.
1752 for ac_exec_ext
in '' $ac_executable_extensions; do
1753 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1754 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1764 if test -n "$CC"; then
1765 echo "$as_me:$LINENO: result: $CC" >&5
1766 echo "${ECHO_T}$CC" >&6
1768 echo "$as_me:$LINENO: result: no" >&5
1769 echo "${ECHO_T}no" >&6
1773 if test -z "$ac_cv_prog_CC"; then
1775 # Extract the first word of "gcc", so it can be a program name with args.
1776 set dummy gcc
; ac_word
=$2
1777 echo "$as_me:$LINENO: checking for $ac_word" >&5
1778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1779 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1780 echo $ECHO_N "(cached) $ECHO_C" >&6
1782 if test -n "$ac_ct_CC"; then
1783 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1785 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1789 test -z "$as_dir" && as_dir
=.
1790 for ac_exec_ext
in '' $ac_executable_extensions; do
1791 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1792 ac_cv_prog_ac_ct_CC
="gcc"
1793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1801 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1802 if test -n "$ac_ct_CC"; then
1803 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1804 echo "${ECHO_T}$ac_ct_CC" >&6
1806 echo "$as_me:$LINENO: result: no" >&5
1807 echo "${ECHO_T}no" >&6
1815 if test -z "$CC"; then
1816 if test -n "$ac_tool_prefix"; then
1817 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1818 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1819 echo "$as_me:$LINENO: checking for $ac_word" >&5
1820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1821 if test "${ac_cv_prog_CC+set}" = set; then
1822 echo $ECHO_N "(cached) $ECHO_C" >&6
1824 if test -n "$CC"; then
1825 ac_cv_prog_CC
="$CC" # Let the user override the test.
1827 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1831 test -z "$as_dir" && as_dir
=.
1832 for ac_exec_ext
in '' $ac_executable_extensions; do
1833 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1834 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1844 if test -n "$CC"; then
1845 echo "$as_me:$LINENO: result: $CC" >&5
1846 echo "${ECHO_T}$CC" >&6
1848 echo "$as_me:$LINENO: result: no" >&5
1849 echo "${ECHO_T}no" >&6
1853 if test -z "$ac_cv_prog_CC"; then
1855 # Extract the first word of "cc", so it can be a program name with args.
1856 set dummy cc
; ac_word
=$2
1857 echo "$as_me:$LINENO: checking for $ac_word" >&5
1858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1859 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1860 echo $ECHO_N "(cached) $ECHO_C" >&6
1862 if test -n "$ac_ct_CC"; then
1863 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1865 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1869 test -z "$as_dir" && as_dir
=.
1870 for ac_exec_ext
in '' $ac_executable_extensions; do
1871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1872 ac_cv_prog_ac_ct_CC
="cc"
1873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1881 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1882 if test -n "$ac_ct_CC"; then
1883 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1884 echo "${ECHO_T}$ac_ct_CC" >&6
1886 echo "$as_me:$LINENO: result: no" >&5
1887 echo "${ECHO_T}no" >&6
1896 if test -z "$CC"; then
1897 # Extract the first word of "cc", so it can be a program name with args.
1898 set dummy cc
; ac_word
=$2
1899 echo "$as_me:$LINENO: checking for $ac_word" >&5
1900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1901 if test "${ac_cv_prog_CC+set}" = set; then
1902 echo $ECHO_N "(cached) $ECHO_C" >&6
1904 if test -n "$CC"; then
1905 ac_cv_prog_CC
="$CC" # Let the user override the test.
1908 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1912 test -z "$as_dir" && as_dir
=.
1913 for ac_exec_ext
in '' $ac_executable_extensions; do
1914 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1915 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1916 ac_prog_rejected
=yes
1920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1926 if test $ac_prog_rejected = yes; then
1927 # We found a bogon in the path, so make sure we never use it.
1928 set dummy
$ac_cv_prog_CC
1930 if test $# != 0; then
1931 # We chose a different compiler from the bogus one.
1932 # However, it has the same basename, so the bogon will be chosen
1933 # first if we set CC to just the basename; use the full file name.
1935 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
1941 if test -n "$CC"; then
1942 echo "$as_me:$LINENO: result: $CC" >&5
1943 echo "${ECHO_T}$CC" >&6
1945 echo "$as_me:$LINENO: result: no" >&5
1946 echo "${ECHO_T}no" >&6
1950 if test -z "$CC"; then
1951 if test -n "$ac_tool_prefix"; then
1954 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1955 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1956 echo "$as_me:$LINENO: checking for $ac_word" >&5
1957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1958 if test "${ac_cv_prog_CC+set}" = set; then
1959 echo $ECHO_N "(cached) $ECHO_C" >&6
1961 if test -n "$CC"; then
1962 ac_cv_prog_CC
="$CC" # Let the user override the test.
1964 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1968 test -z "$as_dir" && as_dir
=.
1969 for ac_exec_ext
in '' $ac_executable_extensions; do
1970 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1971 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
1972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1981 if test -n "$CC"; then
1982 echo "$as_me:$LINENO: result: $CC" >&5
1983 echo "${ECHO_T}$CC" >&6
1985 echo "$as_me:$LINENO: result: no" >&5
1986 echo "${ECHO_T}no" >&6
1989 test -n "$CC" && break
1992 if test -z "$CC"; then
1996 # Extract the first word of "$ac_prog", so it can be a program name with args.
1997 set dummy
$ac_prog; ac_word
=$2
1998 echo "$as_me:$LINENO: checking for $ac_word" >&5
1999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2000 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2001 echo $ECHO_N "(cached) $ECHO_C" >&6
2003 if test -n "$ac_ct_CC"; then
2004 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2006 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2010 test -z "$as_dir" && as_dir
=.
2011 for ac_exec_ext
in '' $ac_executable_extensions; do
2012 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2013 ac_cv_prog_ac_ct_CC
="$ac_prog"
2014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2022 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2023 if test -n "$ac_ct_CC"; then
2024 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2025 echo "${ECHO_T}$ac_ct_CC" >&6
2027 echo "$as_me:$LINENO: result: no" >&5
2028 echo "${ECHO_T}no" >&6
2031 test -n "$ac_ct_CC" && break
2040 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2041 See \`config.log' for more details." >&5
2042 echo "$as_me: error: no acceptable C compiler found in \$PATH
2043 See \`config.log' for more details." >&2;}
2044 { (exit 1); exit 1; }; }
2046 # Provide some information about the compiler.
2047 echo "$as_me:$LINENO:" \
2048 "checking for C compiler version" >&5
2049 ac_compiler
=`set X $ac_compile; echo $2`
2050 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2051 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2054 (exit $ac_status); }
2055 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2056 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2059 (exit $ac_status); }
2060 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2061 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2064 (exit $ac_status); }
2066 cat >conftest.
$ac_ext <<_ACEOF
2069 cat confdefs.h
>>conftest.
$ac_ext
2070 cat >>conftest.
$ac_ext <<_ACEOF
2071 /* end confdefs.h. */
2082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2083 (eval $ac_link) 2>&5
2085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086 (exit $ac_status); }; then
2092 if test x
$gcc_no_link = xyes
; then
2093 # Setting cross_compile will disable run tests; it will
2094 # also disable AC_CHECK_FILE but that's generally
2095 # correct if we can't link.
2099 cat >conftest.
$ac_ext <<_ACEOF
2102 cat confdefs.h
>>conftest.
$ac_ext
2103 cat >>conftest.
$ac_ext <<_ACEOF
2104 /* end confdefs.h. */
2114 ac_clean_files_save
=$ac_clean_files
2115 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2116 # Try to create an executable without -o first, disregard a.out.
2117 # It will help us diagnose broken compilers, and finding out an intuition
2119 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2120 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2121 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2122 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2123 (eval $ac_link_default) 2>&5
2125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2126 (exit $ac_status); }; then
2127 # Find the output, starting from the most likely. This scheme is
2128 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2131 # Be careful to initialize this variable, since it used to be cached.
2132 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2134 # b.out is created by i960 compilers.
2135 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2137 test -f "$ac_file" ||
continue
2139 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2142 # This is the source file.
2145 # We found the default executable, but exeext='' is most
2149 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2150 # FIXME: I believe we export ac_cv_exeext for Libtool,
2151 # but it would be cool to find out if it's true. Does anybody
2152 # maintain Libtool? --akim.
2160 echo "$as_me: failed program was:" >&5
2161 sed 's/^/| /' conftest.
$ac_ext >&5
2163 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2164 See \`config.log' for more details." >&5
2165 echo "$as_me: error: C compiler cannot create executables
2166 See \`config.log' for more details." >&2;}
2167 { (exit 77); exit 77; }; }
2170 ac_exeext
=$ac_cv_exeext
2171 echo "$as_me:$LINENO: result: $ac_file" >&5
2172 echo "${ECHO_T}$ac_file" >&6
2174 # Check the compiler produces executables we can run. If not, either
2175 # the compiler is broken, or we cross compile.
2176 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2177 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2178 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2179 # If not cross compiling, check that we can run a simple program.
2180 if test "$cross_compiling" != yes; then
2181 if { ac_try
='./$ac_file'
2182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186 (exit $ac_status); }; }; then
2189 if test "$cross_compiling" = maybe
; then
2192 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2193 If you meant to cross compile, use \`--host'.
2194 See \`config.log' for more details." >&5
2195 echo "$as_me: error: cannot run C compiled programs.
2196 If you meant to cross compile, use \`--host'.
2197 See \`config.log' for more details." >&2;}
2198 { (exit 1); exit 1; }; }
2202 echo "$as_me:$LINENO: result: yes" >&5
2203 echo "${ECHO_T}yes" >&6
2205 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2206 ac_clean_files
=$ac_clean_files_save
2207 # Check the compiler produces executables we can run. If not, either
2208 # the compiler is broken, or we cross compile.
2209 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2210 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2211 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2212 echo "${ECHO_T}$cross_compiling" >&6
2214 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2215 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2217 (eval $ac_link) 2>&5
2219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220 (exit $ac_status); }; then
2221 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2222 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2223 # work properly (i.e., refer to `conftest.exe'), while it won't with
2225 for ac_file
in conftest.exe conftest conftest.
*; do
2226 test -f "$ac_file" ||
continue
2228 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2229 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2236 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2237 See \`config.log' for more details." >&5
2238 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2239 See \`config.log' for more details." >&2;}
2240 { (exit 1); exit 1; }; }
2243 rm -f conftest
$ac_cv_exeext
2244 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2245 echo "${ECHO_T}$ac_cv_exeext" >&6
2247 rm -f conftest.
$ac_ext
2248 EXEEXT
=$ac_cv_exeext
2251 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2252 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2253 if test "${ac_cv_objext+set}" = set; then
2254 echo $ECHO_N "(cached) $ECHO_C" >&6
2256 cat >conftest.
$ac_ext <<_ACEOF
2259 cat confdefs.h
>>conftest.
$ac_ext
2260 cat >>conftest.
$ac_ext <<_ACEOF
2261 /* end confdefs.h. */
2271 rm -f conftest.o conftest.obj
2272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2273 (eval $ac_compile) 2>&5
2275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276 (exit $ac_status); }; then
2277 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2279 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2280 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2285 echo "$as_me: failed program was:" >&5
2286 sed 's/^/| /' conftest.
$ac_ext >&5
2288 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2289 See \`config.log' for more details." >&5
2290 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2291 See \`config.log' for more details." >&2;}
2292 { (exit 1); exit 1; }; }
2295 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2297 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2298 echo "${ECHO_T}$ac_cv_objext" >&6
2299 OBJEXT
=$ac_cv_objext
2301 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2302 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2303 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2304 echo $ECHO_N "(cached) $ECHO_C" >&6
2306 cat >conftest.
$ac_ext <<_ACEOF
2309 cat confdefs.h
>>conftest.
$ac_ext
2310 cat >>conftest.
$ac_ext <<_ACEOF
2311 /* end confdefs.h. */
2324 rm -f conftest.
$ac_objext
2325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2326 (eval $ac_compile) 2>conftest.er1
2328 grep -v '^ *+' conftest.er1
>conftest.err
2330 cat conftest.err
>&5
2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); } &&
2333 { ac_try
='test -z "$ac_c_werror_flag"
2334 || test ! -s conftest.err'
2335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339 (exit $ac_status); }; } &&
2340 { ac_try
='test -s conftest.$ac_objext'
2341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345 (exit $ac_status); }; }; then
2348 echo "$as_me: failed program was:" >&5
2349 sed 's/^/| /' conftest.
$ac_ext >&5
2353 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2354 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2357 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2358 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2359 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2360 ac_test_CFLAGS
=${CFLAGS+set}
2361 ac_save_CFLAGS
=$CFLAGS
2363 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2364 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2365 if test "${ac_cv_prog_cc_g+set}" = set; then
2366 echo $ECHO_N "(cached) $ECHO_C" >&6
2368 cat >conftest.
$ac_ext <<_ACEOF
2371 cat confdefs.h
>>conftest.
$ac_ext
2372 cat >>conftest.
$ac_ext <<_ACEOF
2373 /* end confdefs.h. */
2383 rm -f conftest.
$ac_objext
2384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2385 (eval $ac_compile) 2>conftest.er1
2387 grep -v '^ *+' conftest.er1
>conftest.err
2389 cat conftest.err
>&5
2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391 (exit $ac_status); } &&
2392 { ac_try
='test -z "$ac_c_werror_flag"
2393 || test ! -s conftest.err'
2394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); }; } &&
2399 { ac_try
='test -s conftest.$ac_objext'
2400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); }; }; then
2407 echo "$as_me: failed program was:" >&5
2408 sed 's/^/| /' conftest.
$ac_ext >&5
2412 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2414 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2415 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2416 if test "$ac_test_CFLAGS" = set; then
2417 CFLAGS
=$ac_save_CFLAGS
2418 elif test $ac_cv_prog_cc_g = yes; then
2419 if test "$GCC" = yes; then
2425 if test "$GCC" = yes; then
2431 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2432 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2433 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2434 echo $ECHO_N "(cached) $ECHO_C" >&6
2436 ac_cv_prog_cc_stdc
=no
2438 cat >conftest.
$ac_ext <<_ACEOF
2441 cat confdefs.h
>>conftest.
$ac_ext
2442 cat >>conftest.
$ac_ext <<_ACEOF
2443 /* end confdefs.h. */
2446 #include <sys/types.h>
2447 #include <sys/stat.h>
2448 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2449 struct buf { int x; };
2450 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2451 static char *e (p, i)
2457 static char *f (char * (*g) (char **, int), char **p, ...)
2462 s = g (p, va_arg (v,int));
2467 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2468 function prototypes and stuff, but not '\xHH' hex character constants.
2469 These don't provoke an error unfortunately, instead are silently treated
2470 as 'x'. The following induces an error, until -std1 is added to get
2471 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2472 array size at least. It's necessary to write '\x00'==0 to get something
2473 that's true only with -std1. */
2474 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2476 int test (int i, double x);
2477 struct s1 {int (*f) (int a);};
2478 struct s2 {int (*f) (double a);};
2479 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2485 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2490 # Don't try gcc -ansi; that turns off useful extensions and
2491 # breaks some systems' header files.
2492 # AIX -qlanglvl=ansi
2493 # Ultrix and OSF/1 -std1
2494 # HP-UX 10.20 and later -Ae
2495 # HP-UX older versions -Aa -D_HPUX_SOURCE
2496 # SVR4 -Xc -D__EXTENSIONS__
2497 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2499 CC
="$ac_save_CC $ac_arg"
2500 rm -f conftest.
$ac_objext
2501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2502 (eval $ac_compile) 2>conftest.er1
2504 grep -v '^ *+' conftest.er1
>conftest.err
2506 cat conftest.err
>&5
2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); } &&
2509 { ac_try
='test -z "$ac_c_werror_flag"
2510 || test ! -s conftest.err'
2511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); }; } &&
2516 { ac_try
='test -s conftest.$ac_objext'
2517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521 (exit $ac_status); }; }; then
2522 ac_cv_prog_cc_stdc
=$ac_arg
2525 echo "$as_me: failed program was:" >&5
2526 sed 's/^/| /' conftest.
$ac_ext >&5
2529 rm -f conftest.err conftest.
$ac_objext
2531 rm -f conftest.
$ac_ext conftest.
$ac_objext
2536 case "x$ac_cv_prog_cc_stdc" in
2538 echo "$as_me:$LINENO: result: none needed" >&5
2539 echo "${ECHO_T}none needed" >&6 ;;
2541 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2542 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2543 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2546 # Some people use a C++ compiler to compile C. Since we use `exit',
2547 # in C++ we need to declare it. In case someone uses the same compiler
2548 # for both compiling C and C++ we need to have the C++ compiler decide
2549 # the declaration of exit, since it's the most demanding environment.
2550 cat >conftest.
$ac_ext <<_ACEOF
2555 rm -f conftest.
$ac_objext
2556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2557 (eval $ac_compile) 2>conftest.er1
2559 grep -v '^ *+' conftest.er1
>conftest.err
2561 cat conftest.err
>&5
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); } &&
2564 { ac_try
='test -z "$ac_c_werror_flag"
2565 || test ! -s conftest.err'
2566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); }; } &&
2571 { ac_try
='test -s conftest.$ac_objext'
2572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); }; }; then
2577 for ac_declaration
in \
2579 'extern "C" void std::exit (int) throw (); using std::exit;' \
2580 'extern "C" void std::exit (int); using std::exit;' \
2581 'extern "C" void exit (int) throw ();' \
2582 'extern "C" void exit (int);' \
2585 cat >conftest.
$ac_ext <<_ACEOF
2588 cat confdefs.h
>>conftest.
$ac_ext
2589 cat >>conftest.
$ac_ext <<_ACEOF
2590 /* end confdefs.h. */
2601 rm -f conftest.
$ac_objext
2602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2603 (eval $ac_compile) 2>conftest.er1
2605 grep -v '^ *+' conftest.er1
>conftest.err
2607 cat conftest.err
>&5
2608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609 (exit $ac_status); } &&
2610 { ac_try
='test -z "$ac_c_werror_flag"
2611 || test ! -s conftest.err'
2612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616 (exit $ac_status); }; } &&
2617 { ac_try
='test -s conftest.$ac_objext'
2618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622 (exit $ac_status); }; }; then
2625 echo "$as_me: failed program was:" >&5
2626 sed 's/^/| /' conftest.
$ac_ext >&5
2630 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2631 cat >conftest.
$ac_ext <<_ACEOF
2634 cat confdefs.h
>>conftest.
$ac_ext
2635 cat >>conftest.
$ac_ext <<_ACEOF
2636 /* end confdefs.h. */
2646 rm -f conftest.
$ac_objext
2647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2648 (eval $ac_compile) 2>conftest.er1
2650 grep -v '^ *+' conftest.er1
>conftest.err
2652 cat conftest.err
>&5
2653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654 (exit $ac_status); } &&
2655 { ac_try
='test -z "$ac_c_werror_flag"
2656 || test ! -s conftest.err'
2657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661 (exit $ac_status); }; } &&
2662 { ac_try
='test -s conftest.$ac_objext'
2663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667 (exit $ac_status); }; }; then
2670 echo "$as_me: failed program was:" >&5
2671 sed 's/^/| /' conftest.
$ac_ext >&5
2674 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2677 if test -n "$ac_declaration"; then
2678 echo '#ifdef __cplusplus' >>confdefs.h
2679 echo $ac_declaration >>confdefs.h
2680 echo '#endif' >>confdefs.h
2684 echo "$as_me: failed program was:" >&5
2685 sed 's/^/| /' conftest.
$ac_ext >&5
2688 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2690 ac_cpp
='$CPP $CPPFLAGS'
2691 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2692 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2693 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
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
2700 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2701 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2702 # On Suns, sometimes $CPP names a directory.
2703 if test -n "$CPP" && test -d "$CPP"; then
2706 if test -z "$CPP"; then
2707 if test "${ac_cv_prog_CPP+set}" = set; then
2708 echo $ECHO_N "(cached) $ECHO_C" >&6
2710 # Double quotes because CPP needs to be expanded
2711 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2714 for ac_c_preproc_warn_flag
in '' yes
2716 # Use a header file that comes with gcc, so configuring glibc
2717 # with a fresh cross-compiler works.
2718 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2719 # <limits.h> exists even on freestanding compilers.
2720 # On the NeXT, cc -E runs the code through the compiler's parser,
2721 # not just through cpp. "Syntax error" is here to catch this case.
2722 cat >conftest.
$ac_ext <<_ACEOF
2725 cat confdefs.h
>>conftest.
$ac_ext
2726 cat >>conftest.
$ac_ext <<_ACEOF
2727 /* end confdefs.h. */
2729 # include <limits.h>
2731 # include <assert.h>
2735 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2736 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2738 grep -v '^ *+' conftest.er1
>conftest.err
2740 cat conftest.err
>&5
2741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742 (exit $ac_status); } >/dev
/null
; then
2743 if test -s conftest.err
; then
2744 ac_cpp_err
=$ac_c_preproc_warn_flag
2745 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2752 if test -z "$ac_cpp_err"; then
2755 echo "$as_me: failed program was:" >&5
2756 sed 's/^/| /' conftest.
$ac_ext >&5
2758 # Broken: fails on valid input.
2761 rm -f conftest.err conftest.
$ac_ext
2763 # OK, works on sane cases. Now check whether non-existent headers
2764 # can be detected and how.
2765 cat >conftest.
$ac_ext <<_ACEOF
2768 cat confdefs.h
>>conftest.
$ac_ext
2769 cat >>conftest.
$ac_ext <<_ACEOF
2770 /* end confdefs.h. */
2771 #include <ac_nonexistent.h>
2773 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2774 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2776 grep -v '^ *+' conftest.er1
>conftest.err
2778 cat conftest.err
>&5
2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780 (exit $ac_status); } >/dev
/null
; then
2781 if test -s conftest.err
; then
2782 ac_cpp_err
=$ac_c_preproc_warn_flag
2783 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2790 if test -z "$ac_cpp_err"; then
2791 # Broken: success on invalid input.
2794 echo "$as_me: failed program was:" >&5
2795 sed 's/^/| /' conftest.
$ac_ext >&5
2797 # Passes both tests.
2801 rm -f conftest.err conftest.
$ac_ext
2804 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2805 rm -f conftest.err conftest.
$ac_ext
2806 if $ac_preproc_ok; then
2818 echo "$as_me:$LINENO: result: $CPP" >&5
2819 echo "${ECHO_T}$CPP" >&6
2821 for ac_c_preproc_warn_flag
in '' yes
2823 # Use a header file that comes with gcc, so configuring glibc
2824 # with a fresh cross-compiler works.
2825 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2826 # <limits.h> exists even on freestanding compilers.
2827 # On the NeXT, cc -E runs the code through the compiler's parser,
2828 # not just through cpp. "Syntax error" is here to catch this case.
2829 cat >conftest.
$ac_ext <<_ACEOF
2832 cat confdefs.h
>>conftest.
$ac_ext
2833 cat >>conftest.
$ac_ext <<_ACEOF
2834 /* end confdefs.h. */
2836 # include <limits.h>
2838 # include <assert.h>
2842 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2843 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2845 grep -v '^ *+' conftest.er1
>conftest.err
2847 cat conftest.err
>&5
2848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849 (exit $ac_status); } >/dev
/null
; then
2850 if test -s conftest.err
; then
2851 ac_cpp_err
=$ac_c_preproc_warn_flag
2852 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2859 if test -z "$ac_cpp_err"; then
2862 echo "$as_me: failed program was:" >&5
2863 sed 's/^/| /' conftest.
$ac_ext >&5
2865 # Broken: fails on valid input.
2868 rm -f conftest.err conftest.
$ac_ext
2870 # OK, works on sane cases. Now check whether non-existent headers
2871 # can be detected and how.
2872 cat >conftest.
$ac_ext <<_ACEOF
2875 cat confdefs.h
>>conftest.
$ac_ext
2876 cat >>conftest.
$ac_ext <<_ACEOF
2877 /* end confdefs.h. */
2878 #include <ac_nonexistent.h>
2880 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2881 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2883 grep -v '^ *+' conftest.er1
>conftest.err
2885 cat conftest.err
>&5
2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); } >/dev
/null
; then
2888 if test -s conftest.err
; then
2889 ac_cpp_err
=$ac_c_preproc_warn_flag
2890 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2897 if test -z "$ac_cpp_err"; then
2898 # Broken: success on invalid input.
2901 echo "$as_me: failed program was:" >&5
2902 sed 's/^/| /' conftest.
$ac_ext >&5
2904 # Passes both tests.
2908 rm -f conftest.err conftest.
$ac_ext
2911 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2912 rm -f conftest.err conftest.
$ac_ext
2913 if $ac_preproc_ok; then
2916 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2917 See \`config.log' for more details." >&5
2918 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2919 See \`config.log' for more details." >&2;}
2920 { (exit 1); exit 1; }; }
2924 ac_cpp
='$CPP $CPPFLAGS'
2925 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2926 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2927 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2930 ac_c_preproc_warn_flag
=yes
2932 if test x
$GCC = xyes
; then
2933 ac_libiberty_warn_cflags
='-W -Wall -pedantic -Wwrite-strings -Wstrict-prototypes'
2937 if test "x$CC" != xcc
; then
2938 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2939 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2941 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2942 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2944 set dummy
$CC; ac_cc
=`echo $2 |
2945 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2946 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2947 echo $ECHO_N "(cached) $ECHO_C" >&6
2949 cat >conftest.
$ac_ext <<_ACEOF
2952 cat confdefs.h
>>conftest.
$ac_ext
2953 cat >>conftest.
$ac_ext <<_ACEOF
2954 /* end confdefs.h. */
2964 # Make sure it works both with $CC and with simple cc.
2965 # We do the test twice because some compilers refuse to overwrite an
2966 # existing .o file with -o, though they will create one.
2967 ac_try
='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2968 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972 (exit $ac_status); } &&
2973 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977 (exit $ac_status); };
2979 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
2980 if test "x$CC" != xcc
; then
2981 # Test first that cc exists at all.
2982 if { ac_try
='cc -c conftest.$ac_ext >&5'
2983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987 (exit $ac_status); }; }; then
2988 ac_try
='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2989 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993 (exit $ac_status); } &&
2994 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998 (exit $ac_status); };
3003 # cc exists but doesn't like -o.
3004 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
3009 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
3014 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3015 echo "$as_me:$LINENO: result: yes" >&5
3016 echo "${ECHO_T}yes" >&6
3018 echo "$as_me:$LINENO: result: no" >&5
3019 echo "${ECHO_T}no" >&6
3021 cat >>confdefs.h
<<\_ACEOF
3022 #define NO_MINUS_C_MINUS_O 1
3027 # autoconf is lame and doesn't give us any substitution variable for this.
3028 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
3029 NO_MINUS_C_MINUS_O
=yes
3031 OUTPUT_OPTION
='-o $@'
3037 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3038 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3039 if test "${ac_cv_c_const+set}" = set; then
3040 echo $ECHO_N "(cached) $ECHO_C" >&6
3042 cat >conftest.
$ac_ext <<_ACEOF
3045 cat confdefs.h
>>conftest.
$ac_ext
3046 cat >>conftest.
$ac_ext <<_ACEOF
3047 /* end confdefs.h. */
3052 /* FIXME: Include the comments suggested by Paul. */
3054 /* Ultrix mips cc rejects this. */
3055 typedef int charset[2];
3057 /* SunOS 4.1.1 cc rejects this. */
3058 char const *const *ccp;
3060 /* NEC SVR4.0.2 mips cc rejects this. */
3061 struct point {int x, y;};
3062 static struct point const zero = {0,0};
3063 /* AIX XL C 1.02.0.0 rejects this.
3064 It does not let you subtract one const X* pointer from another in
3065 an arm of an if-expression whose if-part is not a constant
3067 const char *g = "string";
3068 ccp = &g + (g ? g-g : 0);
3069 /* HPUX 7.0 cc rejects these. */
3072 ccp = (char const *const *) p;
3073 { /* SCO 3.2v4 cc rejects this. */
3075 char const *s = 0 ? (char *) 0 : (char const *) 0;
3079 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3081 const int *foo = &x[0];
3084 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3085 typedef const int *iptr;
3089 { /* AIX XL C 1.02.0.0 rejects this saying
3090 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3091 struct s { int j; const int *ap[3]; };
3092 struct s *b; b->j = 5;
3094 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3103 rm -f conftest.
$ac_objext
3104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3105 (eval $ac_compile) 2>conftest.er1
3107 grep -v '^ *+' conftest.er1
>conftest.err
3109 cat conftest.err
>&5
3110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111 (exit $ac_status); } &&
3112 { ac_try
='test -z "$ac_c_werror_flag"
3113 || test ! -s conftest.err'
3114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118 (exit $ac_status); }; } &&
3119 { ac_try
='test -s conftest.$ac_objext'
3120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124 (exit $ac_status); }; }; then
3127 echo "$as_me: failed program was:" >&5
3128 sed 's/^/| /' conftest.
$ac_ext >&5
3132 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3134 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3135 echo "${ECHO_T}$ac_cv_c_const" >&6
3136 if test $ac_cv_c_const = no
; then
3138 cat >>confdefs.h
<<\_ACEOF
3144 echo "$as_me:$LINENO: checking for inline" >&5
3145 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3146 if test "${ac_cv_c_inline+set}" = set; then
3147 echo $ECHO_N "(cached) $ECHO_C" >&6
3150 for ac_kw
in inline __inline__ __inline
; do
3151 cat >conftest.
$ac_ext <<_ACEOF
3154 cat confdefs.h
>>conftest.
$ac_ext
3155 cat >>conftest.
$ac_ext <<_ACEOF
3156 /* end confdefs.h. */
3159 static $ac_kw foo_t static_foo () {return 0; }
3160 $ac_kw foo_t foo () {return 0; }
3164 rm -f conftest.
$ac_objext
3165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3166 (eval $ac_compile) 2>conftest.er1
3168 grep -v '^ *+' conftest.er1
>conftest.err
3170 cat conftest.err
>&5
3171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172 (exit $ac_status); } &&
3173 { ac_try
='test -z "$ac_c_werror_flag"
3174 || test ! -s conftest.err'
3175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179 (exit $ac_status); }; } &&
3180 { ac_try
='test -s conftest.$ac_objext'
3181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185 (exit $ac_status); }; }; then
3186 ac_cv_c_inline
=$ac_kw; break
3188 echo "$as_me: failed program was:" >&5
3189 sed 's/^/| /' conftest.
$ac_ext >&5
3192 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3196 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3197 echo "${ECHO_T}$ac_cv_c_inline" >&6
3200 case $ac_cv_c_inline in
3203 case $ac_cv_c_inline in
3205 *) ac_val
=$ac_cv_c_inline;;
3207 cat >>confdefs.h
<<_ACEOF
3209 #define inline $ac_val
3215 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3216 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3217 if test "${ac_cv_c_bigendian+set}" = set; then
3218 echo $ECHO_N "(cached) $ECHO_C" >&6
3220 ac_cv_c_bigendian
=unknown
3221 # See if sys/param.h defines the BYTE_ORDER macro.
3222 cat >conftest.
$ac_ext <<_ACEOF
3225 cat confdefs.h
>>conftest.
$ac_ext
3226 cat >>conftest.
$ac_ext <<_ACEOF
3227 /* end confdefs.h. */
3228 #include <sys/types.h>
3229 #include <sys/param.h>
3234 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3241 rm -f conftest.
$ac_objext
3242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3243 (eval $ac_compile) 2>conftest.er1
3245 grep -v '^ *+' conftest.er1
>conftest.err
3247 cat conftest.err
>&5
3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); } &&
3250 { ac_try
='test -z "$ac_c_werror_flag"
3251 || test ! -s conftest.err'
3252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256 (exit $ac_status); }; } &&
3257 { ac_try
='test -s conftest.$ac_objext'
3258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 (exit $ac_status); }; }; then
3263 # It does; now see whether it defined to BIG_ENDIAN or not.
3264 cat >conftest.
$ac_ext <<_ACEOF
3267 cat confdefs.h
>>conftest.
$ac_ext
3268 cat >>conftest.
$ac_ext <<_ACEOF
3269 /* end confdefs.h. */
3270 #include <sys/types.h>
3271 #include <sys/param.h>
3276 #if BYTE_ORDER != BIG_ENDIAN
3283 rm -f conftest.
$ac_objext
3284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3285 (eval $ac_compile) 2>conftest.er1
3287 grep -v '^ *+' conftest.er1
>conftest.err
3289 cat conftest.err
>&5
3290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291 (exit $ac_status); } &&
3292 { ac_try
='test -z "$ac_c_werror_flag"
3293 || test ! -s conftest.err'
3294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); }; } &&
3299 { ac_try
='test -s conftest.$ac_objext'
3300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304 (exit $ac_status); }; }; then
3305 ac_cv_c_bigendian
=yes
3307 echo "$as_me: failed program was:" >&5
3308 sed 's/^/| /' conftest.
$ac_ext >&5
3310 ac_cv_c_bigendian
=no
3312 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3314 echo "$as_me: failed program was:" >&5
3315 sed 's/^/| /' conftest.
$ac_ext >&5
3318 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3319 if test $ac_cv_c_bigendian = unknown
; then
3320 if test "$cross_compiling" = yes; then
3321 echo $ac_n "cross-compiling... " 2>&6
3323 cat >conftest.
$ac_ext <<_ACEOF
3326 cat confdefs.h
>>conftest.
$ac_ext
3327 cat >>conftest.
$ac_ext <<_ACEOF
3328 /* end confdefs.h. */
3330 /* Are we little or big endian? From Harbison&Steele. */
3334 char c[sizeof (long)];
3337 exit (u.c[sizeof (long) - 1] == 1);
3340 rm -f conftest
$ac_exeext
3341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3342 (eval $ac_link) 2>&5
3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); }; }; then
3351 ac_cv_c_bigendian
=no
3353 echo "$as_me: program exited with status $ac_status" >&5
3354 echo "$as_me: failed program was:" >&5
3355 sed 's/^/| /' conftest.
$ac_ext >&5
3358 ac_cv_c_bigendian
=yes
3360 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3364 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3365 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3366 if test $ac_cv_c_bigendian = unknown
; then
3367 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
3368 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
3370 cat >conftest.c
<<EOF
3371 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3372 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3373 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
3374 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3375 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3376 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
3377 int main() { _ascii (); _ebcdic (); return 0; }
3379 if test -f conftest.c
; then
3380 if ${CC-cc} ${CFLAGS} -c conftest.c
-o conftest.o
&& test -f conftest.o
; then
3381 if test `grep -l BIGenDianSyS conftest.o` ; then
3382 echo $ac_n ' big endian probe OK, ' 1>&6
3383 ac_cv_c_bigendian
=yes
3385 if test `grep -l LiTTleEnDian conftest.o` ; then
3386 echo $ac_n ' little endian probe OK, ' 1>&6
3387 if test $ac_cv_c_bigendian = yes ; then
3388 ac_cv_c_bigendian
=unknown
;
3390 ac_cv_c_bigendian
=no
3393 echo $ac_n 'guessing bigendian ... ' >&6
3396 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3397 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3399 if test $ac_cv_c_bigendian = yes; then
3401 cat >>confdefs.h
<<\_ACEOF
3402 #define WORDS_BIGENDIAN 1
3406 cat >>confdefs.h
<<\_ACEOF
3407 #define HOST_WORDS_BIG_ENDIAN 1
3415 cat >>confdefs.h
<<_ACEOF
3416 #define BYTEORDER $BYTEORDER
3419 if test $ac_cv_c_bigendian = unknown
; then
3420 { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
3421 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
3422 { (exit 1); exit 1; }; }
3428 ac_config_headers
="$ac_config_headers config.h:config.in"
3432 # Find a good install program. We prefer a C program (faster),
3433 # so one script is as good as another. But avoid the broken or
3434 # incompatible versions:
3435 # SysV /etc/install, /usr/sbin/install
3436 # SunOS /usr/etc/install
3437 # IRIX /sbin/install
3439 # AmigaOS /C/install, which installs bootblocks on floppy discs
3440 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3441 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3442 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3443 # OS/2's system install, which has a completely different semantic
3444 # ./install, which can be erroneously created by make from ./install.sh.
3445 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3446 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3447 if test -z "$INSTALL"; then
3448 if test "${ac_cv_path_install+set}" = set; then
3449 echo $ECHO_N "(cached) $ECHO_C" >&6
3451 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3455 test -z "$as_dir" && as_dir
=.
3456 # Account for people who put trailing slashes in PATH elements.
3458 .
/ | .
// |
/cC
/* | \
3459 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3460 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
3463 # OSF1 and SCO ODT 3.0 have their own names for install.
3464 # Don't use installbsd from OSF since it installs stuff as root
3466 for ac_prog
in ginstall scoinst
install; do
3467 for ac_exec_ext
in '' $ac_executable_extensions; do
3468 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3469 if test $ac_prog = install &&
3470 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3471 # AIX install. It has an incompatible calling convention.
3473 elif test $ac_prog = install &&
3474 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3475 # program-specific install script used by HP pwplus--don't use.
3478 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3490 if test "${ac_cv_path_install+set}" = set; then
3491 INSTALL
=$ac_cv_path_install
3493 # As a last resort, use the slow shell script. We don't cache a
3494 # path for INSTALL within a source directory, because that will
3495 # break other packages using the cache if that directory is
3496 # removed, or if the path is relative.
3497 INSTALL
=$ac_install_sh
3500 echo "$as_me:$LINENO: result: $INSTALL" >&5
3501 echo "${ECHO_T}$INSTALL" >&6
3503 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3504 # It thinks the first close brace ends the variable substitution.
3505 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3507 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3509 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3512 .
${srcdir}/config.table
3513 host_makefile_frag
=${frag}
3516 # It's OK to check for header files. Although the compiler may not be
3517 # able to link anything, it had better be able to at least compile
3544 for ac_header
in sys
/file.h sys
/param.h limits.h stdlib.h malloc.h string.h unistd.h
strings.h sys
/time.h
time.h sys
/resource.h sys
/stat.h sys
/mman.h fcntl.h alloca.h sys
/pstat.h sys
/sysmp.h sys
/sysinfo.h machine
/hal_sysinfo.h sys
/table.h sys
/sysctl.h sys
/systemcfg.h stdint.h stdio_ext.h
3546 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3547 echo "$as_me:$LINENO: checking for $ac_header" >&5
3548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3549 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3550 echo $ECHO_N "(cached) $ECHO_C" >&6
3552 cat >conftest.
$ac_ext <<_ACEOF
3555 cat confdefs.h
>>conftest.
$ac_ext
3556 cat >>conftest.
$ac_ext <<_ACEOF
3557 /* end confdefs.h. */
3558 #include <$ac_header>
3560 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3561 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3563 grep -v '^ *+' conftest.er1
>conftest.err
3565 cat conftest.err
>&5
3566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567 (exit $ac_status); } >/dev
/null
; then
3568 if test -s conftest.err
; then
3569 ac_cpp_err
=$ac_c_preproc_warn_flag
3570 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3577 if test -z "$ac_cpp_err"; then
3578 eval "$as_ac_Header=yes"
3580 echo "$as_me: failed program was:" >&5
3581 sed 's/^/| /' conftest.
$ac_ext >&5
3583 eval "$as_ac_Header=no"
3585 rm -f conftest.err conftest.
$ac_ext
3587 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3588 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3589 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3590 cat >>confdefs.h
<<_ACEOF
3591 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3597 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3598 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
3599 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3600 echo $ECHO_N "(cached) $ECHO_C" >&6
3602 cat >conftest.
$ac_ext <<_ACEOF
3605 cat confdefs.h
>>conftest.
$ac_ext
3606 cat >>conftest.
$ac_ext <<_ACEOF
3607 /* end confdefs.h. */
3608 #include <sys/types.h>
3609 #include <sys/wait.h>
3611 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3614 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3622 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3627 rm -f conftest.
$ac_objext
3628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3629 (eval $ac_compile) 2>conftest.er1
3631 grep -v '^ *+' conftest.er1
>conftest.err
3633 cat conftest.err
>&5
3634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635 (exit $ac_status); } &&
3636 { ac_try
='test -z "$ac_c_werror_flag"
3637 || test ! -s conftest.err'
3638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642 (exit $ac_status); }; } &&
3643 { ac_try
='test -s conftest.$ac_objext'
3644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648 (exit $ac_status); }; }; then
3649 ac_cv_header_sys_wait_h
=yes
3651 echo "$as_me: failed program was:" >&5
3652 sed 's/^/| /' conftest.
$ac_ext >&5
3654 ac_cv_header_sys_wait_h
=no
3656 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3658 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3659 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
3660 if test $ac_cv_header_sys_wait_h = yes; then
3662 cat >>confdefs.h
<<\_ACEOF
3663 #define HAVE_SYS_WAIT_H 1
3668 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3669 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3670 if test "${ac_cv_header_time+set}" = set; then
3671 echo $ECHO_N "(cached) $ECHO_C" >&6
3673 cat >conftest.
$ac_ext <<_ACEOF
3676 cat confdefs.h
>>conftest.
$ac_ext
3677 cat >>conftest.
$ac_ext <<_ACEOF
3678 /* end confdefs.h. */
3679 #include <sys/types.h>
3680 #include <sys/time.h>
3686 if ((struct tm *) 0)
3692 rm -f conftest.
$ac_objext
3693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3694 (eval $ac_compile) 2>conftest.er1
3696 grep -v '^ *+' conftest.er1
>conftest.err
3698 cat conftest.err
>&5
3699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700 (exit $ac_status); } &&
3701 { ac_try
='test -z "$ac_c_werror_flag"
3702 || test ! -s conftest.err'
3703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707 (exit $ac_status); }; } &&
3708 { ac_try
='test -s conftest.$ac_objext'
3709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713 (exit $ac_status); }; }; then
3714 ac_cv_header_time
=yes
3716 echo "$as_me: failed program was:" >&5
3717 sed 's/^/| /' conftest.
$ac_ext >&5
3719 ac_cv_header_time
=no
3721 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3723 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3724 echo "${ECHO_T}$ac_cv_header_time" >&6
3725 if test $ac_cv_header_time = yes; then
3727 cat >>confdefs.h
<<\_ACEOF
3728 #define TIME_WITH_SYS_TIME 1
3734 echo "$as_me:$LINENO: checking whether errno must be declared" >&5
3735 echo $ECHO_N "checking whether errno must be declared... $ECHO_C" >&6
3736 if test "${libiberty_cv_declare_errno+set}" = set; then
3737 echo $ECHO_N "(cached) $ECHO_C" >&6
3739 cat >conftest.
$ac_ext <<_ACEOF
3742 cat confdefs.h
>>conftest.
$ac_ext
3743 cat >>conftest.
$ac_ext <<_ACEOF
3744 /* end confdefs.h. */
3754 rm -f conftest.
$ac_objext
3755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3756 (eval $ac_compile) 2>conftest.er1
3758 grep -v '^ *+' conftest.er1
>conftest.err
3760 cat conftest.err
>&5
3761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762 (exit $ac_status); } &&
3763 { ac_try
='test -z "$ac_c_werror_flag"
3764 || test ! -s conftest.err'
3765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3769 (exit $ac_status); }; } &&
3770 { ac_try
='test -s conftest.$ac_objext'
3771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775 (exit $ac_status); }; }; then
3776 libiberty_cv_declare_errno
=no
3778 echo "$as_me: failed program was:" >&5
3779 sed 's/^/| /' conftest.
$ac_ext >&5
3781 libiberty_cv_declare_errno
=yes
3783 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3785 echo "$as_me:$LINENO: result: $libiberty_cv_declare_errno" >&5
3786 echo "${ECHO_T}$libiberty_cv_declare_errno" >&6
3787 if test $libiberty_cv_declare_errno = yes
3789 cat >>confdefs.h
<<\_ACEOF
3790 #define NEED_DECLARATION_ERRNO 1
3796 # Determine the size of an int for struct fibnode.
3797 echo "$as_me:$LINENO: checking for egrep" >&5
3798 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3799 if test "${ac_cv_prog_egrep+set}" = set; then
3800 echo $ECHO_N "(cached) $ECHO_C" >&6
3802 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3803 then ac_cv_prog_egrep
='grep -E'
3804 else ac_cv_prog_egrep
='egrep'
3807 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3808 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3809 EGREP
=$ac_cv_prog_egrep
3812 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3813 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3814 if test "${ac_cv_header_stdc+set}" = set; then
3815 echo $ECHO_N "(cached) $ECHO_C" >&6
3817 cat >conftest.
$ac_ext <<_ACEOF
3820 cat confdefs.h
>>conftest.
$ac_ext
3821 cat >>conftest.
$ac_ext <<_ACEOF
3822 /* end confdefs.h. */
3836 rm -f conftest.
$ac_objext
3837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3838 (eval $ac_compile) 2>conftest.er1
3840 grep -v '^ *+' conftest.er1
>conftest.err
3842 cat conftest.err
>&5
3843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844 (exit $ac_status); } &&
3845 { ac_try
='test -z "$ac_c_werror_flag"
3846 || test ! -s conftest.err'
3847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851 (exit $ac_status); }; } &&
3852 { ac_try
='test -s conftest.$ac_objext'
3853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857 (exit $ac_status); }; }; then
3858 ac_cv_header_stdc
=yes
3860 echo "$as_me: failed program was:" >&5
3861 sed 's/^/| /' conftest.
$ac_ext >&5
3863 ac_cv_header_stdc
=no
3865 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3867 if test $ac_cv_header_stdc = yes; then
3868 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3869 cat >conftest.
$ac_ext <<_ACEOF
3872 cat confdefs.h
>>conftest.
$ac_ext
3873 cat >>conftest.
$ac_ext <<_ACEOF
3874 /* end confdefs.h. */
3878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3879 $EGREP "memchr" >/dev
/null
2>&1; then
3882 ac_cv_header_stdc
=no
3888 if test $ac_cv_header_stdc = yes; then
3889 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3890 cat >conftest.
$ac_ext <<_ACEOF
3893 cat confdefs.h
>>conftest.
$ac_ext
3894 cat >>conftest.
$ac_ext <<_ACEOF
3895 /* end confdefs.h. */
3899 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3900 $EGREP "free" >/dev
/null
2>&1; then
3903 ac_cv_header_stdc
=no
3909 if test $ac_cv_header_stdc = yes; then
3910 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3911 if test "$cross_compiling" = yes; then
3914 cat >conftest.
$ac_ext <<_ACEOF
3917 cat confdefs.h
>>conftest.
$ac_ext
3918 cat >>conftest.
$ac_ext <<_ACEOF
3919 /* end confdefs.h. */
3921 #if ((' ' & 0x0FF) == 0x020)
3922 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3923 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3925 # define ISLOWER(c) \
3926 (('a' <= (c) && (c) <= 'i') \
3927 || ('j' <= (c) && (c) <= 'r') \
3928 || ('s' <= (c) && (c) <= 'z'))
3929 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3932 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3937 for (i = 0; i < 256; i++)
3938 if (XOR (islower (i), ISLOWER (i))
3939 || toupper (i) != TOUPPER (i))
3944 rm -f conftest
$ac_exeext
3945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3946 (eval $ac_link) 2>&5
3948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3954 (exit $ac_status); }; }; then
3957 echo "$as_me: program exited with status $ac_status" >&5
3958 echo "$as_me: failed program was:" >&5
3959 sed 's/^/| /' conftest.
$ac_ext >&5
3962 ac_cv_header_stdc
=no
3964 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3968 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3969 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3970 if test $ac_cv_header_stdc = yes; then
3972 cat >>confdefs.h
<<\_ACEOF
3973 #define STDC_HEADERS 1
3978 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3988 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3989 inttypes.h stdint.h unistd.h
3991 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3992 echo "$as_me:$LINENO: checking for $ac_header" >&5
3993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3994 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3995 echo $ECHO_N "(cached) $ECHO_C" >&6
3997 cat >conftest.
$ac_ext <<_ACEOF
4000 cat confdefs.h
>>conftest.
$ac_ext
4001 cat >>conftest.
$ac_ext <<_ACEOF
4002 /* end confdefs.h. */
4003 #include <$ac_header>
4005 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4006 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4008 grep -v '^ *+' conftest.er1
>conftest.err
4010 cat conftest.err
>&5
4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); } >/dev
/null
; then
4013 if test -s conftest.err
; then
4014 ac_cpp_err
=$ac_c_preproc_warn_flag
4015 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4022 if test -z "$ac_cpp_err"; then
4023 eval "$as_ac_Header=yes"
4025 echo "$as_me: failed program was:" >&5
4026 sed 's/^/| /' conftest.
$ac_ext >&5
4028 eval "$as_ac_Header=no"
4030 rm -f conftest.err conftest.
$ac_ext
4032 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4033 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4034 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4035 cat >>confdefs.h
<<_ACEOF
4036 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4043 echo "$as_me:$LINENO: checking for int" >&5
4044 echo $ECHO_N "checking for int... $ECHO_C" >&6
4045 if test "${ac_cv_type_int+set}" = set; then
4046 echo $ECHO_N "(cached) $ECHO_C" >&6
4048 cat >conftest.
$ac_ext <<_ACEOF
4051 cat confdefs.h
>>conftest.
$ac_ext
4052 cat >>conftest.
$ac_ext <<_ACEOF
4053 /* end confdefs.h. */
4054 $ac_includes_default
4066 rm -f conftest.
$ac_objext
4067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4068 (eval $ac_compile) 2>conftest.er1
4070 grep -v '^ *+' conftest.er1
>conftest.err
4072 cat conftest.err
>&5
4073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074 (exit $ac_status); } &&
4075 { ac_try
='test -z "$ac_c_werror_flag"
4076 || test ! -s conftest.err'
4077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081 (exit $ac_status); }; } &&
4082 { ac_try
='test -s conftest.$ac_objext'
4083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087 (exit $ac_status); }; }; then
4090 echo "$as_me: failed program was:" >&5
4091 sed 's/^/| /' conftest.
$ac_ext >&5
4095 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4097 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4098 echo "${ECHO_T}$ac_cv_type_int" >&6
4100 echo "$as_me:$LINENO: checking size of int" >&5
4101 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4102 if test "${ac_cv_sizeof_int+set}" = set; then
4103 echo $ECHO_N "(cached) $ECHO_C" >&6
4105 if test "$ac_cv_type_int" = yes; then
4106 # The cast to unsigned long works around a bug in the HP C Compiler
4107 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4108 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4109 # This bug is HP SR number 8606223364.
4110 if test "$cross_compiling" = yes; then
4111 # Depending upon the size, compute the lo and hi bounds.
4112 cat >conftest.
$ac_ext <<_ACEOF
4115 cat confdefs.h
>>conftest.
$ac_ext
4116 cat >>conftest.
$ac_ext <<_ACEOF
4117 /* end confdefs.h. */
4118 $ac_includes_default
4122 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4129 rm -f conftest.
$ac_objext
4130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4131 (eval $ac_compile) 2>conftest.er1
4133 grep -v '^ *+' conftest.er1
>conftest.err
4135 cat conftest.err
>&5
4136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137 (exit $ac_status); } &&
4138 { ac_try
='test -z "$ac_c_werror_flag"
4139 || test ! -s conftest.err'
4140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144 (exit $ac_status); }; } &&
4145 { ac_try
='test -s conftest.$ac_objext'
4146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150 (exit $ac_status); }; }; then
4153 cat >conftest.
$ac_ext <<_ACEOF
4156 cat confdefs.h
>>conftest.
$ac_ext
4157 cat >>conftest.
$ac_ext <<_ACEOF
4158 /* end confdefs.h. */
4159 $ac_includes_default
4163 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4170 rm -f conftest.
$ac_objext
4171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4172 (eval $ac_compile) 2>conftest.er1
4174 grep -v '^ *+' conftest.er1
>conftest.err
4176 cat conftest.err
>&5
4177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178 (exit $ac_status); } &&
4179 { ac_try
='test -z "$ac_c_werror_flag"
4180 || test ! -s conftest.err'
4181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185 (exit $ac_status); }; } &&
4186 { ac_try
='test -s conftest.$ac_objext'
4187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191 (exit $ac_status); }; }; then
4192 ac_hi
=$ac_mid; break
4194 echo "$as_me: failed program was:" >&5
4195 sed 's/^/| /' conftest.
$ac_ext >&5
4197 ac_lo
=`expr $ac_mid + 1`
4198 if test $ac_lo -le $ac_mid; then
4202 ac_mid
=`expr 2 '*' $ac_mid + 1`
4204 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4207 echo "$as_me: failed program was:" >&5
4208 sed 's/^/| /' conftest.
$ac_ext >&5
4210 cat >conftest.
$ac_ext <<_ACEOF
4213 cat confdefs.h
>>conftest.
$ac_ext
4214 cat >>conftest.
$ac_ext <<_ACEOF
4215 /* end confdefs.h. */
4216 $ac_includes_default
4220 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4227 rm -f conftest.
$ac_objext
4228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4229 (eval $ac_compile) 2>conftest.er1
4231 grep -v '^ *+' conftest.er1
>conftest.err
4233 cat conftest.err
>&5
4234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); } &&
4236 { ac_try
='test -z "$ac_c_werror_flag"
4237 || test ! -s conftest.err'
4238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4242 (exit $ac_status); }; } &&
4243 { ac_try
='test -s conftest.$ac_objext'
4244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248 (exit $ac_status); }; }; then
4251 cat >conftest.
$ac_ext <<_ACEOF
4254 cat confdefs.h
>>conftest.
$ac_ext
4255 cat >>conftest.
$ac_ext <<_ACEOF
4256 /* end confdefs.h. */
4257 $ac_includes_default
4261 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4268 rm -f conftest.
$ac_objext
4269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4270 (eval $ac_compile) 2>conftest.er1
4272 grep -v '^ *+' conftest.er1
>conftest.err
4274 cat conftest.err
>&5
4275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276 (exit $ac_status); } &&
4277 { ac_try
='test -z "$ac_c_werror_flag"
4278 || test ! -s conftest.err'
4279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283 (exit $ac_status); }; } &&
4284 { ac_try
='test -s conftest.$ac_objext'
4285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289 (exit $ac_status); }; }; then
4290 ac_lo
=$ac_mid; break
4292 echo "$as_me: failed program was:" >&5
4293 sed 's/^/| /' conftest.
$ac_ext >&5
4295 ac_hi
=`expr '(' $ac_mid ')' - 1`
4296 if test $ac_mid -le $ac_hi; then
4300 ac_mid
=`expr 2 '*' $ac_mid`
4302 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4305 echo "$as_me: failed program was:" >&5
4306 sed 's/^/| /' conftest.
$ac_ext >&5
4310 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4312 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4313 # Binary search between lo and hi bounds.
4314 while test "x$ac_lo" != "x$ac_hi"; do
4315 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4316 cat >conftest.
$ac_ext <<_ACEOF
4319 cat confdefs.h
>>conftest.
$ac_ext
4320 cat >>conftest.
$ac_ext <<_ACEOF
4321 /* end confdefs.h. */
4322 $ac_includes_default
4326 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4333 rm -f conftest.
$ac_objext
4334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4335 (eval $ac_compile) 2>conftest.er1
4337 grep -v '^ *+' conftest.er1
>conftest.err
4339 cat conftest.err
>&5
4340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341 (exit $ac_status); } &&
4342 { ac_try
='test -z "$ac_c_werror_flag"
4343 || test ! -s conftest.err'
4344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348 (exit $ac_status); }; } &&
4349 { ac_try
='test -s conftest.$ac_objext'
4350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); }; }; then
4357 echo "$as_me: failed program was:" >&5
4358 sed 's/^/| /' conftest.
$ac_ext >&5
4360 ac_lo
=`expr '(' $ac_mid ')' + 1`
4362 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4365 ?
*) ac_cv_sizeof_int
=$ac_lo;;
4366 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4367 See \`config.log' for more details." >&5
4368 echo "$as_me: error: cannot compute sizeof (int), 77
4369 See \`config.log' for more details." >&2;}
4370 { (exit 1); exit 1; }; } ;;
4373 if test "$cross_compiling" = yes; then
4374 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4375 See \`config.log' for more details." >&5
4376 echo "$as_me: error: cannot run test program while cross compiling
4377 See \`config.log' for more details." >&2;}
4378 { (exit 1); exit 1; }; }
4380 cat >conftest.
$ac_ext <<_ACEOF
4383 cat confdefs.h
>>conftest.
$ac_ext
4384 cat >>conftest.
$ac_ext <<_ACEOF
4385 /* end confdefs.h. */
4386 $ac_includes_default
4387 long longval () { return (long) (sizeof (int)); }
4388 unsigned long ulongval () { return (long) (sizeof (int)); }
4395 FILE *f = fopen ("conftest.val", "w");
4398 if (((long) (sizeof (int))) < 0)
4400 long i = longval ();
4401 if (i != ((long) (sizeof (int))))
4403 fprintf (f, "%ld\n", i);
4407 unsigned long i = ulongval ();
4408 if (i != ((long) (sizeof (int))))
4410 fprintf (f, "%lu\n", i);
4412 exit (ferror (f) || fclose (f) != 0);
4418 rm -f conftest
$ac_exeext
4419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4420 (eval $ac_link) 2>&5
4422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428 (exit $ac_status); }; }; then
4429 ac_cv_sizeof_int
=`cat conftest.val`
4431 echo "$as_me: program exited with status $ac_status" >&5
4432 echo "$as_me: failed program was:" >&5
4433 sed 's/^/| /' conftest.
$ac_ext >&5
4436 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4437 See \`config.log' for more details." >&5
4438 echo "$as_me: error: cannot compute sizeof (int), 77
4439 See \`config.log' for more details." >&2;}
4440 { (exit 1); exit 1; }; }
4442 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4450 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4451 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4452 cat >>confdefs.h
<<_ACEOF
4453 #define SIZEOF_INT $ac_cv_sizeof_int
4458 echo "$as_me:$LINENO: checking for uintptr_t" >&5
4459 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
4460 if test "${ac_cv_type_uintptr_t+set}" = set; then
4461 echo $ECHO_N "(cached) $ECHO_C" >&6
4463 cat >conftest.
$ac_ext <<_ACEOF
4466 cat confdefs.h
>>conftest.
$ac_ext
4467 cat >>conftest.
$ac_ext <<_ACEOF
4468 /* end confdefs.h. */
4469 $ac_includes_default
4473 if ((uintptr_t *) 0)
4475 if (sizeof (uintptr_t))
4481 rm -f conftest.
$ac_objext
4482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4483 (eval $ac_compile) 2>conftest.er1
4485 grep -v '^ *+' conftest.er1
>conftest.err
4487 cat conftest.err
>&5
4488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489 (exit $ac_status); } &&
4490 { ac_try
='test -z "$ac_c_werror_flag"
4491 || test ! -s conftest.err'
4492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); }; } &&
4497 { ac_try
='test -s conftest.$ac_objext'
4498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502 (exit $ac_status); }; }; then
4503 ac_cv_type_uintptr_t
=yes
4505 echo "$as_me: failed program was:" >&5
4506 sed 's/^/| /' conftest.
$ac_ext >&5
4508 ac_cv_type_uintptr_t
=no
4510 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4512 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
4513 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
4514 if test $ac_cv_type_uintptr_t = yes; then
4518 cat >>confdefs.h
<<_ACEOF
4519 #define uintptr_t unsigned long
4525 # Look for a 64-bit type.
4526 echo "$as_me:$LINENO: checking for a 64-bit type" >&5
4527 echo $ECHO_N "checking for a 64-bit type... $ECHO_C" >&6
4528 if test "${liberty_cv_uint64+set}" = set; then
4529 echo $ECHO_N "(cached) $ECHO_C" >&6
4531 cat >conftest.
$ac_ext <<_ACEOF
4534 cat confdefs.h
>>conftest.
$ac_ext
4535 cat >>conftest.
$ac_ext <<_ACEOF
4536 /* end confdefs.h. */
4537 #ifdef HAVE_STDINT_H
4543 extern uint64_t foo;
4548 rm -f conftest.
$ac_objext
4549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4550 (eval $ac_compile) 2>conftest.er1
4552 grep -v '^ *+' conftest.er1
>conftest.err
4554 cat conftest.err
>&5
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); } &&
4557 { ac_try
='test -z "$ac_c_werror_flag"
4558 || test ! -s conftest.err'
4559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); }; } &&
4564 { ac_try
='test -s conftest.$ac_objext'
4565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569 (exit $ac_status); }; }; then
4570 liberty_cv_uint64
=uint64_t
4572 echo "$as_me: failed program was:" >&5
4573 sed 's/^/| /' conftest.
$ac_ext >&5
4575 cat >conftest.
$ac_ext <<_ACEOF
4578 cat confdefs.h
>>conftest.
$ac_ext
4579 cat >>conftest.
$ac_ext <<_ACEOF
4580 /* end confdefs.h. */
4581 #ifdef HAVE_LIMITS_H
4590 extern char foo[sizeof(long) * CHAR_BIT >= 64 ? 1 : -1];
4595 rm -f conftest.
$ac_objext
4596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4597 (eval $ac_compile) 2>conftest.er1
4599 grep -v '^ *+' conftest.er1
>conftest.err
4601 cat conftest.err
>&5
4602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603 (exit $ac_status); } &&
4604 { ac_try
='test -z "$ac_c_werror_flag"
4605 || test ! -s conftest.err'
4606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); }; } &&
4611 { ac_try
='test -s conftest.$ac_objext'
4612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616 (exit $ac_status); }; }; then
4617 liberty_cv_uint64
="unsigned long"
4619 echo "$as_me: failed program was:" >&5
4620 sed 's/^/| /' conftest.
$ac_ext >&5
4622 cat >conftest.
$ac_ext <<_ACEOF
4625 cat confdefs.h
>>conftest.
$ac_ext
4626 cat >>conftest.
$ac_ext <<_ACEOF
4627 /* end confdefs.h. */
4628 #ifdef HAVE_LIMITS_H
4637 extern char foo[sizeof(long long) * CHAR_BIT >= 64 ? 1 : -1];
4642 rm -f conftest.
$ac_objext
4643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4644 (eval $ac_compile) 2>conftest.er1
4646 grep -v '^ *+' conftest.er1
>conftest.err
4648 cat conftest.err
>&5
4649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650 (exit $ac_status); } &&
4651 { ac_try
='test -z "$ac_c_werror_flag"
4652 || test ! -s conftest.err'
4653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657 (exit $ac_status); }; } &&
4658 { ac_try
='test -s conftest.$ac_objext'
4659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663 (exit $ac_status); }; }; then
4664 liberty_cv_uint64
="unsigned long long"
4666 echo "$as_me: failed program was:" >&5
4667 sed 's/^/| /' conftest.
$ac_ext >&5
4669 liberty_cv_uint64
=none
4671 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4673 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4675 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4678 echo "$as_me:$LINENO: result: $liberty_cv_uint64" >&5
4679 echo "${ECHO_T}$liberty_cv_uint64" >&6
4680 if test "$liberty_cv_uint64" != none
; then
4682 cat >>confdefs.h
<<_ACEOF
4683 #define UNSIGNED_64BIT_TYPE $liberty_cv_uint64
4688 # Given the above check, we always have uintptr_t or a fallback
4689 # definition. So define HAVE_UINTPTR_T in case any imported code
4692 cat >>confdefs.h
<<\_ACEOF
4693 #define HAVE_UINTPTR_T 1
4697 echo "$as_me:$LINENO: checking for pid_t" >&5
4698 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
4699 if test "${ac_cv_type_pid_t+set}" = set; then
4700 echo $ECHO_N "(cached) $ECHO_C" >&6
4702 cat >conftest.
$ac_ext <<_ACEOF
4705 cat confdefs.h
>>conftest.
$ac_ext
4706 cat >>conftest.
$ac_ext <<_ACEOF
4707 /* end confdefs.h. */
4708 $ac_includes_default
4720 rm -f conftest.
$ac_objext
4721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4722 (eval $ac_compile) 2>conftest.er1
4724 grep -v '^ *+' conftest.er1
>conftest.err
4726 cat conftest.err
>&5
4727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728 (exit $ac_status); } &&
4729 { ac_try
='test -z "$ac_c_werror_flag"
4730 || test ! -s conftest.err'
4731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735 (exit $ac_status); }; } &&
4736 { ac_try
='test -s conftest.$ac_objext'
4737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); }; }; then
4742 ac_cv_type_pid_t
=yes
4744 echo "$as_me: failed program was:" >&5
4745 sed 's/^/| /' conftest.
$ac_ext >&5
4749 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4751 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
4752 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
4753 if test $ac_cv_type_pid_t = yes; then
4757 cat >>confdefs.h
<<_ACEOF
4764 # This is the list of functions which libiberty will provide if they
4765 # are not available on the host.
4768 funcs
="$funcs atexit"
4769 funcs
="$funcs basename"
4771 funcs
="$funcs bcopy"
4772 funcs
="$funcs bsearch"
4773 funcs
="$funcs bzero"
4774 funcs
="$funcs calloc"
4775 funcs
="$funcs clock"
4777 funcs
="$funcs getcwd"
4778 funcs
="$funcs getpagesize"
4779 funcs
="$funcs gettimeofday"
4780 funcs
="$funcs index"
4781 funcs
="$funcs insque"
4782 funcs
="$funcs memchr"
4783 funcs
="$funcs memcmp"
4784 funcs
="$funcs memcpy"
4785 funcs
="$funcs memmove"
4786 funcs
="$funcs mempcpy"
4787 funcs
="$funcs memset"
4788 funcs
="$funcs mkstemps"
4789 funcs
="$funcs putenv"
4790 funcs
="$funcs random"
4791 funcs
="$funcs rename"
4792 funcs
="$funcs rindex"
4793 funcs
="$funcs setenv"
4794 funcs
="$funcs snprintf"
4795 funcs
="$funcs sigsetmask"
4796 funcs
="$funcs stpcpy"
4797 funcs
="$funcs stpncpy"
4798 funcs
="$funcs strcasecmp"
4799 funcs
="$funcs strchr"
4800 funcs
="$funcs strdup"
4801 funcs
="$funcs strncasecmp"
4802 funcs
="$funcs strndup"
4803 funcs
="$funcs strrchr"
4804 funcs
="$funcs strstr"
4805 funcs
="$funcs strtod"
4806 funcs
="$funcs strtol"
4807 funcs
="$funcs strtoul"
4808 funcs
="$funcs tmpnam"
4809 funcs
="$funcs vasprintf"
4810 funcs
="$funcs vfprintf"
4811 funcs
="$funcs vprintf"
4812 funcs
="$funcs vsnprintf"
4813 funcs
="$funcs vsprintf"
4814 funcs
="$funcs waitpid"
4816 # Also in the old function.def file: alloca, vfork, getopt.
4818 vars
="sys_errlist sys_nerr sys_siglist"
4820 checkfuncs
="getrusage on_exit psignal strerror strsignal sysconf times sbrk gettimeofday"
4821 checkfuncs
="$checkfuncs realpath canonicalize_file_name pstat_getstatic pstat_getdynamic sysmp"
4822 checkfuncs
="$checkfuncs getsysinfo table sysctl wait3 wait4 __fsetlocking"
4824 # These are neither executed nor required, but they help keep
4825 # autoheader happy without adding a bunch of text to acconfig.h.
4826 if test "x" = "y"; then
4895 for ac_func
in asprintf atexit
basename bcmp bcopy bsearch bzero calloc
clock \
4896 getcwd getpagesize gettimeofday index insque mkstemps memchr memcmp memcpy \
4897 memmove mempcpy memset putenv random rename rindex sigsetmask \
4898 strcasecmp setenv stpcpy stpncpy strchr strdup strncasecmp strndup strrchr strstr \
4899 strtod strtol strtoul tmpnam vasprintf vfprintf vprintf \
4900 vsprintf waitpid getrusage on_exit psignal strerror strsignal \
4901 sysconf
times sbrk gettimeofday ffs snprintf vsnprintf \
4902 pstat_getstatic pstat_getdynamic sysmp getsysinfo table sysctl wait3 wait4 \
4903 realpath canonicalize_file_name __fsetlocking
4905 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4906 echo "$as_me:$LINENO: checking for $ac_func" >&5
4907 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4908 if eval "test \"\${$as_ac_var+set}\" = set"; then
4909 echo $ECHO_N "(cached) $ECHO_C" >&6
4911 if test x
$gcc_no_link = xyes
; then
4912 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4913 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4914 { (exit 1); exit 1; }; }
4916 cat >conftest.
$ac_ext <<_ACEOF
4919 cat confdefs.h
>>conftest.
$ac_ext
4920 cat >>conftest.
$ac_ext <<_ACEOF
4921 /* end confdefs.h. */
4922 /* System header to define __stub macros and hopefully few prototypes,
4923 which can conflict with char $ac_func (); below.
4924 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4925 <limits.h> exists even on freestanding compilers. Under hpux,
4926 including <limits.h> includes <sys/time.h> and causes problems
4927 checking for functions defined therein. */
4928 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
4929 # include <limits.h>
4931 # include <assert.h>
4933 /* Override any gcc2 internal prototype to avoid an error. */
4938 /* We use char because int might match the return type of a gcc2
4939 builtin and then its argument prototype would still apply. */
4941 /* The GNU C library defines this for functions which it implements
4942 to always fail with ENOSYS. Some functions are actually named
4943 something starting with __ and the normal name is an alias. */
4944 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4947 char (*f) () = $ac_func;
4956 return f != $ac_func;
4961 rm -f conftest.
$ac_objext conftest
$ac_exeext
4962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4963 (eval $ac_link) 2>conftest.er1
4965 grep -v '^ *+' conftest.er1
>conftest.err
4967 cat conftest.err
>&5
4968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969 (exit $ac_status); } &&
4970 { ac_try
='test -z "$ac_c_werror_flag"
4971 || test ! -s conftest.err'
4972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976 (exit $ac_status); }; } &&
4977 { ac_try
='test -s conftest$ac_exeext'
4978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982 (exit $ac_status); }; }; then
4983 eval "$as_ac_var=yes"
4985 echo "$as_me: failed program was:" >&5
4986 sed 's/^/| /' conftest.
$ac_ext >&5
4988 eval "$as_ac_var=no"
4990 rm -f conftest.err conftest.
$ac_objext \
4991 conftest
$ac_exeext conftest.
$ac_ext
4993 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4994 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4995 if test `eval echo '${'$as_ac_var'}'` = yes; then
4996 cat >>confdefs.h
<<_ACEOF
4997 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5004 cat >>confdefs.h
<<\_ACEOF
5005 #define HAVE_SYS_ERRLIST 1
5009 cat >>confdefs.h
<<\_ACEOF
5010 #define HAVE_SYS_NERR 1
5014 cat >>confdefs.h
<<\_ACEOF
5015 #define HAVE_SYS_SIGLIST 1
5020 # For each of these functions, if the host does not provide the
5021 # function we want to put FN.o in LIBOBJS, and if the host does
5022 # provide the function, we want to define HAVE_FN in config.h.
5027 if test -n "${with_target_subdir}"; then
5029 # We are being configured as a target library. AC_REPLACE_FUNCS
5030 # may not work correctly, because the compiler may not be able to
5031 # link executables. Note that we may still be being configured
5034 # If we are being configured for newlib, we know which functions
5035 # newlib provide and which ones we will be expected to provide.
5037 if test "x${with_newlib}" = "xyes"; then
5039 "asprintf.$ac_objext" | \
5040 *" asprintf.$ac_objext" | \
5041 "asprintf.$ac_objext "* | \
5042 *" asprintf.$ac_objext "* ) ;;
5043 *) LIBOBJS
="$LIBOBJS asprintf.$ac_objext" ;;
5047 "basename.$ac_objext" | \
5048 *" basename.$ac_objext" | \
5049 "basename.$ac_objext "* | \
5050 *" basename.$ac_objext "* ) ;;
5051 *) LIBOBJS
="$LIBOBJS basename.$ac_objext" ;;
5055 "insque.$ac_objext" | \
5056 *" insque.$ac_objext" | \
5057 "insque.$ac_objext "* | \
5058 *" insque.$ac_objext "* ) ;;
5059 *) LIBOBJS
="$LIBOBJS insque.$ac_objext" ;;
5063 "random.$ac_objext" | \
5064 *" random.$ac_objext" | \
5065 "random.$ac_objext "* | \
5066 *" random.$ac_objext "* ) ;;
5067 *) LIBOBJS
="$LIBOBJS random.$ac_objext" ;;
5071 "strdup.$ac_objext" | \
5072 *" strdup.$ac_objext" | \
5073 "strdup.$ac_objext "* | \
5074 *" strdup.$ac_objext "* ) ;;
5075 *) LIBOBJS
="$LIBOBJS strdup.$ac_objext" ;;
5079 "vasprintf.$ac_objext" | \
5080 *" vasprintf.$ac_objext" | \
5081 "vasprintf.$ac_objext "* | \
5082 *" vasprintf.$ac_objext "* ) ;;
5083 *) LIBOBJS
="$LIBOBJS vasprintf.$ac_objext" ;;
5089 asprintf |
basename | insque | random | strdup | vasprintf
)
5092 n
=HAVE_
`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5093 cat >>confdefs.h
<<_ACEOF
5101 # newlib doesnt provide any of the variables in $vars, so we
5102 # dont have to check them here.
5104 # Of the functions in $checkfuncs, newlib only has strerror.
5105 cat >> confdefs.h
<<\EOF
5106 #define HAVE_STRERROR 1
5114 # We may wish to install the target headers somewhere.
5115 # Check whether --enable-install-libiberty or --disable-install-libiberty was given.
5116 if test "${enable_install_libiberty+set}" = set; then
5117 enableval
="$enable_install_libiberty"
5118 enable_install_libiberty
=$enableval
5120 enable_install_libiberty
=no
5122 # Option parsed, now set things appropriately.
5123 case x
"$enable_install_libiberty" in
5125 target_header_dir
=libiberty
5131 # This could be sanity-checked in various ways...
5132 target_header_dir
="${enable_install_libiberty}"
5139 # Not a target library, so we set things up to run the test suite.
5148 *-*-cygwin* |
*-*-mingw*)
5149 cat >> confdefs.h
<<\EOF
5150 #define HAVE_SYS_ERRLIST 1
5153 cat >> confdefs.h
<<\EOF
5154 #define HAVE_SYS_NERR 1
5160 if test -z "${setobjs}"; then
5164 # Handle VxWorks configuration specially, since on VxWorks the
5165 # libraries are actually on the target board, not in the file
5168 "basename.$ac_objext" | \
5169 *" basename.$ac_objext" | \
5170 "basename.$ac_objext "* | \
5171 *" basename.$ac_objext "* ) ;;
5172 *) LIBOBJS
="$LIBOBJS basename.$ac_objext" ;;
5176 "getpagesize.$ac_objext" | \
5177 *" getpagesize.$ac_objext" | \
5178 "getpagesize.$ac_objext "* | \
5179 *" getpagesize.$ac_objext "* ) ;;
5180 *) LIBOBJS
="$LIBOBJS getpagesize.$ac_objext" ;;
5184 "insque.$ac_objext" | \
5185 *" insque.$ac_objext" | \
5186 "insque.$ac_objext "* | \
5187 *" insque.$ac_objext "* ) ;;
5188 *) LIBOBJS
="$LIBOBJS insque.$ac_objext" ;;
5192 "random.$ac_objext" | \
5193 *" random.$ac_objext" | \
5194 "random.$ac_objext "* | \
5195 *" random.$ac_objext "* ) ;;
5196 *) LIBOBJS
="$LIBOBJS random.$ac_objext" ;;
5200 "strcasecmp.$ac_objext" | \
5201 *" strcasecmp.$ac_objext" | \
5202 "strcasecmp.$ac_objext "* | \
5203 *" strcasecmp.$ac_objext "* ) ;;
5204 *) LIBOBJS
="$LIBOBJS strcasecmp.$ac_objext" ;;
5208 "strncasecmp.$ac_objext" | \
5209 *" strncasecmp.$ac_objext" | \
5210 "strncasecmp.$ac_objext "* | \
5211 *" strncasecmp.$ac_objext "* ) ;;
5212 *) LIBOBJS
="$LIBOBJS strncasecmp.$ac_objext" ;;
5216 "strdup.$ac_objext" | \
5217 *" strdup.$ac_objext" | \
5218 "strdup.$ac_objext "* | \
5219 *" strdup.$ac_objext "* ) ;;
5220 *) LIBOBJS
="$LIBOBJS strdup.$ac_objext" ;;
5224 "vfork.$ac_objext" | \
5225 *" vfork.$ac_objext" | \
5226 "vfork.$ac_objext "* | \
5227 *" vfork.$ac_objext "* ) ;;
5228 *) LIBOBJS
="$LIBOBJS vfork.$ac_objext" ;;
5232 "waitpid.$ac_objext" | \
5233 *" waitpid.$ac_objext" | \
5234 "waitpid.$ac_objext "* | \
5235 *" waitpid.$ac_objext "* ) ;;
5236 *) LIBOBJS
="$LIBOBJS waitpid.$ac_objext" ;;
5240 "vasprintf.$ac_objext" | \
5241 *" vasprintf.$ac_objext" | \
5242 "vasprintf.$ac_objext "* | \
5243 *" vasprintf.$ac_objext "* ) ;;
5244 *) LIBOBJS
="$LIBOBJS vasprintf.$ac_objext" ;;
5249 basename | getpagesize | insque | random | strcasecmp
)
5251 strncasecmp | strdup | vfork | waitpid | vasprintf
)
5254 n
=HAVE_
`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5255 cat >>confdefs.h
<<_ACEOF
5263 # VxWorks doesn't provide any of the variables in $vars, so we
5264 # don't have to check them here.
5266 # Of the functions in $checkfuncs, VxWorks only has strerror.
5267 cat >> confdefs.h
<<\EOF
5268 #define HAVE_STRERROR 1
5278 if test -z "${setobjs}"; then
5283 # The Cygwin library actually uses a couple of files from
5284 # libiberty when it is built. If we are building a native
5285 # Cygwin, and we run the tests, we will appear to have these
5286 # files. However, when we go on to build winsup, we will wind up
5287 # with a library which does not have the files, since they should
5288 # have come from libiberty.
5290 # We handle this by removing the functions the winsup library
5291 # provides from our shell variables, so that they appear to be
5294 # DJ - only if we're *building* cygwin, not just building *with* cygwin
5296 if test -n "${with_target_subdir}"
5298 funcs
="`echo $funcs | sed -e 's/random//'`"
5300 "random.$ac_objext" | \
5301 *" random.$ac_objext" | \
5302 "random.$ac_objext "* | \
5303 *" random.$ac_objext "* ) ;;
5304 *) LIBOBJS
="$LIBOBJS random.$ac_objext" ;;
5307 vars
="`echo $vars | sed -e 's/sys_siglist//'`"
5308 checkfuncs
="`echo $checkfuncs | sed -e 's/strsignal//' -e 's/psignal//'`"
5313 # Under mingw32, sys_nerr and sys_errlist exist, but they are
5314 # macros, so the test below won't find them.
5315 libiberty_cv_var_sys_nerr
=yes
5316 libiberty_cv_var_sys_errlist
=yes
5320 # vfork and fork are stubs.
5321 ac_cv_func_vfork_works
=no
5325 # Under some versions of uwin, vfork is notoriously buggy and the test
5326 # can hang configure; on other versions, vfork exists just as a stub.
5327 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
5328 ac_cv_func_vfork_works
=no
5329 # Under uwin 2.0+, sys_nerr and sys_errlist exist, but they are
5330 # macros (actually, these are imported from a DLL, but the end effect
5331 # is the same), so the test below won't find them.
5332 libiberty_cv_var_sys_nerr
=yes
5333 libiberty_cv_var_sys_errlist
=yes
5337 # Under VMS, vfork works very different than on Unix. The standard test
5338 # won't work, and it isn't easily adaptable. It makes more sense to
5340 ac_cv_func_vfork_works
=yes
5345 # We haven't set the list of objects yet. Use the standard autoconf
5346 # tests. This will only work if the compiler works.
5347 echo "$as_me:$LINENO: checking for library containing strerror" >&5
5348 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
5349 if test "${ac_cv_search_strerror+set}" = set; then
5350 echo $ECHO_N "(cached) $ECHO_C" >&6
5352 ac_func_search_save_LIBS
=$LIBS
5353 ac_cv_search_strerror
=no
5354 if test x
$gcc_no_link = xyes
; then
5355 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5356 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5357 { (exit 1); exit 1; }; }
5359 cat >conftest.
$ac_ext <<_ACEOF
5362 cat confdefs.h
>>conftest.
$ac_ext
5363 cat >>conftest.
$ac_ext <<_ACEOF
5364 /* end confdefs.h. */
5366 /* Override any gcc2 internal prototype to avoid an error. */
5370 /* We use char because int might match the return type of a gcc2
5371 builtin and then its argument prototype would still apply. */
5381 rm -f conftest.
$ac_objext conftest
$ac_exeext
5382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5383 (eval $ac_link) 2>conftest.er1
5385 grep -v '^ *+' conftest.er1
>conftest.err
5387 cat conftest.err
>&5
5388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389 (exit $ac_status); } &&
5390 { ac_try
='test -z "$ac_c_werror_flag"
5391 || test ! -s conftest.err'
5392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396 (exit $ac_status); }; } &&
5397 { ac_try
='test -s conftest$ac_exeext'
5398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402 (exit $ac_status); }; }; then
5403 ac_cv_search_strerror
="none required"
5405 echo "$as_me: failed program was:" >&5
5406 sed 's/^/| /' conftest.
$ac_ext >&5
5409 rm -f conftest.err conftest.
$ac_objext \
5410 conftest
$ac_exeext conftest.
$ac_ext
5411 if test "$ac_cv_search_strerror" = no
; then
5412 for ac_lib
in cposix
; do
5413 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5414 if test x
$gcc_no_link = xyes
; then
5415 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5416 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5417 { (exit 1); exit 1; }; }
5419 cat >conftest.
$ac_ext <<_ACEOF
5422 cat confdefs.h
>>conftest.
$ac_ext
5423 cat >>conftest.
$ac_ext <<_ACEOF
5424 /* end confdefs.h. */
5426 /* Override any gcc2 internal prototype to avoid an error. */
5430 /* We use char because int might match the return type of a gcc2
5431 builtin and then its argument prototype would still apply. */
5441 rm -f conftest.
$ac_objext conftest
$ac_exeext
5442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5443 (eval $ac_link) 2>conftest.er1
5445 grep -v '^ *+' conftest.er1
>conftest.err
5447 cat conftest.err
>&5
5448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449 (exit $ac_status); } &&
5450 { ac_try
='test -z "$ac_c_werror_flag"
5451 || test ! -s conftest.err'
5452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456 (exit $ac_status); }; } &&
5457 { ac_try
='test -s conftest$ac_exeext'
5458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462 (exit $ac_status); }; }; then
5463 ac_cv_search_strerror
="-l$ac_lib"
5466 echo "$as_me: failed program was:" >&5
5467 sed 's/^/| /' conftest.
$ac_ext >&5
5470 rm -f conftest.err conftest.
$ac_objext \
5471 conftest
$ac_exeext conftest.
$ac_ext
5474 LIBS
=$ac_func_search_save_LIBS
5476 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
5477 echo "${ECHO_T}$ac_cv_search_strerror" >&6
5478 if test "$ac_cv_search_strerror" != no
; then
5479 test "$ac_cv_search_strerror" = "none required" || LIBS
="$ac_cv_search_strerror $LIBS"
5484 for ac_func
in $funcs
5486 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5487 echo "$as_me:$LINENO: checking for $ac_func" >&5
5488 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5489 if eval "test \"\${$as_ac_var+set}\" = set"; then
5490 echo $ECHO_N "(cached) $ECHO_C" >&6
5492 if test x
$gcc_no_link = xyes
; then
5493 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5494 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5495 { (exit 1); exit 1; }; }
5497 cat >conftest.
$ac_ext <<_ACEOF
5500 cat confdefs.h
>>conftest.
$ac_ext
5501 cat >>conftest.
$ac_ext <<_ACEOF
5502 /* end confdefs.h. */
5503 /* System header to define __stub macros and hopefully few prototypes,
5504 which can conflict with char $ac_func (); below.
5505 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5506 <limits.h> exists even on freestanding compilers. Under hpux,
5507 including <limits.h> includes <sys/time.h> and causes problems
5508 checking for functions defined therein. */
5509 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
5510 # include <limits.h>
5512 # include <assert.h>
5514 /* Override any gcc2 internal prototype to avoid an error. */
5519 /* We use char because int might match the return type of a gcc2
5520 builtin and then its argument prototype would still apply. */
5522 /* The GNU C library defines this for functions which it implements
5523 to always fail with ENOSYS. Some functions are actually named
5524 something starting with __ and the normal name is an alias. */
5525 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5528 char (*f) () = $ac_func;
5537 return f != $ac_func;
5542 rm -f conftest.
$ac_objext conftest
$ac_exeext
5543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5544 (eval $ac_link) 2>conftest.er1
5546 grep -v '^ *+' conftest.er1
>conftest.err
5548 cat conftest.err
>&5
5549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550 (exit $ac_status); } &&
5551 { ac_try
='test -z "$ac_c_werror_flag"
5552 || test ! -s conftest.err'
5553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5557 (exit $ac_status); }; } &&
5558 { ac_try
='test -s conftest$ac_exeext'
5559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563 (exit $ac_status); }; }; then
5564 eval "$as_ac_var=yes"
5566 echo "$as_me: failed program was:" >&5
5567 sed 's/^/| /' conftest.
$ac_ext >&5
5569 eval "$as_ac_var=no"
5571 rm -f conftest.err conftest.
$ac_objext \
5572 conftest
$ac_exeext conftest.
$ac_ext
5574 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5575 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5576 if test `eval echo '${'$as_ac_var'}'` = yes; then
5577 cat >>confdefs.h
<<_ACEOF
5578 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5583 "$ac_func.$ac_objext" | \
5584 *" $ac_func.$ac_objext" | \
5585 "$ac_func.$ac_objext "* | \
5586 *" $ac_func.$ac_objext "* ) ;;
5587 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext" ;;
5594 echo "$as_me:$LINENO: checking whether alloca needs Cray hooks" >&5
5595 echo $ECHO_N "checking whether alloca needs Cray hooks... $ECHO_C" >&6
5596 if test "${ac_cv_os_cray+set}" = set; then
5597 echo $ECHO_N "(cached) $ECHO_C" >&6
5599 cat >conftest.
$ac_ext <<_ACEOF
5602 cat confdefs.h
>>conftest.
$ac_ext
5603 cat >>conftest.
$ac_ext <<_ACEOF
5604 /* end confdefs.h. */
5605 #if defined(CRAY) && ! defined(CRAY2)
5612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5613 $EGREP "webecray" >/dev
/null
2>&1; then
5621 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5622 echo "${ECHO_T}$ac_cv_os_cray" >&6
5623 if test $ac_cv_os_cray = yes; then
5624 for ac_func
in _getb67 GETB67 getb67
; do
5625 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5626 echo "$as_me:$LINENO: checking for $ac_func" >&5
5627 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5628 if eval "test \"\${$as_ac_var+set}\" = set"; then
5629 echo $ECHO_N "(cached) $ECHO_C" >&6
5631 if test x
$gcc_no_link = xyes
; then
5632 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5633 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5634 { (exit 1); exit 1; }; }
5636 cat >conftest.
$ac_ext <<_ACEOF
5639 cat confdefs.h
>>conftest.
$ac_ext
5640 cat >>conftest.
$ac_ext <<_ACEOF
5641 /* end confdefs.h. */
5642 /* System header to define __stub macros and hopefully few prototypes,
5643 which can conflict with char $ac_func (); below.
5644 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5645 <limits.h> exists even on freestanding compilers. Under hpux,
5646 including <limits.h> includes <sys/time.h> and causes problems
5647 checking for functions defined therein. */
5648 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
5649 # include <limits.h>
5651 # include <assert.h>
5653 /* Override any gcc2 internal prototype to avoid an error. */
5658 /* We use char because int might match the return type of a gcc2
5659 builtin and then its argument prototype would still apply. */
5661 /* The GNU C library defines this for functions which it implements
5662 to always fail with ENOSYS. Some functions are actually named
5663 something starting with __ and the normal name is an alias. */
5664 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5667 char (*f) () = $ac_func;
5676 return f != $ac_func;
5681 rm -f conftest.
$ac_objext conftest
$ac_exeext
5682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5683 (eval $ac_link) 2>conftest.er1
5685 grep -v '^ *+' conftest.er1
>conftest.err
5687 cat conftest.err
>&5
5688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689 (exit $ac_status); } &&
5690 { ac_try
='test -z "$ac_c_werror_flag"
5691 || test ! -s conftest.err'
5692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); }; } &&
5697 { ac_try
='test -s conftest$ac_exeext'
5698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702 (exit $ac_status); }; }; then
5703 eval "$as_ac_var=yes"
5705 echo "$as_me: failed program was:" >&5
5706 sed 's/^/| /' conftest.
$ac_ext >&5
5708 eval "$as_ac_var=no"
5710 rm -f conftest.err conftest.
$ac_objext \
5711 conftest
$ac_exeext conftest.
$ac_ext
5713 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5714 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5715 if test `eval echo '${'$as_ac_var'}'` = yes; then
5717 cat >>confdefs.h
<<_ACEOF
5718 #define CRAY_STACKSEG_END $ac_func
5726 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5727 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
5728 if test "${ac_cv_c_stack_direction+set}" = set; then
5729 echo $ECHO_N "(cached) $ECHO_C" >&6
5731 if test "$cross_compiling" = yes; then
5732 ac_cv_c_stack_direction
=0
5734 cat >conftest.
$ac_ext <<_ACEOF
5737 cat confdefs.h
>>conftest.
$ac_ext
5738 cat >>conftest.
$ac_ext <<_ACEOF
5739 /* end confdefs.h. */
5740 find_stack_direction ()
5742 static char *addr = 0;
5747 return find_stack_direction ();
5750 return (&dummy > addr) ? 1 : -1;
5754 exit (find_stack_direction() < 0);
5757 rm -f conftest
$ac_exeext
5758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5759 (eval $ac_link) 2>&5
5761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5762 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767 (exit $ac_status); }; }; then
5768 ac_cv_c_stack_direction
=1
5770 echo "$as_me: program exited with status $ac_status" >&5
5771 echo "$as_me: failed program was:" >&5
5772 sed 's/^/| /' conftest.
$ac_ext >&5
5775 ac_cv_c_stack_direction
=-1
5777 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5780 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5781 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
5783 cat >>confdefs.h
<<_ACEOF
5784 #define STACK_DIRECTION $ac_cv_c_stack_direction
5790 for ac_header
in unistd.h vfork.h
5792 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5793 echo "$as_me:$LINENO: checking for $ac_header" >&5
5794 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5795 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5796 echo $ECHO_N "(cached) $ECHO_C" >&6
5798 cat >conftest.
$ac_ext <<_ACEOF
5801 cat confdefs.h
>>conftest.
$ac_ext
5802 cat >>conftest.
$ac_ext <<_ACEOF
5803 /* end confdefs.h. */
5804 #include <$ac_header>
5806 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5807 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5809 grep -v '^ *+' conftest.er1
>conftest.err
5811 cat conftest.err
>&5
5812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5813 (exit $ac_status); } >/dev
/null
; then
5814 if test -s conftest.err
; then
5815 ac_cpp_err
=$ac_c_preproc_warn_flag
5816 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5823 if test -z "$ac_cpp_err"; then
5824 eval "$as_ac_Header=yes"
5826 echo "$as_me: failed program was:" >&5
5827 sed 's/^/| /' conftest.
$ac_ext >&5
5829 eval "$as_ac_Header=no"
5831 rm -f conftest.err conftest.
$ac_ext
5833 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5834 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5835 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5836 cat >>confdefs.h
<<_ACEOF
5837 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5845 for ac_func
in fork vfork
5847 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5848 echo "$as_me:$LINENO: checking for $ac_func" >&5
5849 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5850 if eval "test \"\${$as_ac_var+set}\" = set"; then
5851 echo $ECHO_N "(cached) $ECHO_C" >&6
5853 if test x
$gcc_no_link = xyes
; then
5854 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5855 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5856 { (exit 1); exit 1; }; }
5858 cat >conftest.
$ac_ext <<_ACEOF
5861 cat confdefs.h
>>conftest.
$ac_ext
5862 cat >>conftest.
$ac_ext <<_ACEOF
5863 /* end confdefs.h. */
5864 /* System header to define __stub macros and hopefully few prototypes,
5865 which can conflict with char $ac_func (); below.
5866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5867 <limits.h> exists even on freestanding compilers. Under hpux,
5868 including <limits.h> includes <sys/time.h> and causes problems
5869 checking for functions defined therein. */
5870 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
5871 # include <limits.h>
5873 # include <assert.h>
5875 /* Override any gcc2 internal prototype to avoid an error. */
5880 /* We use char because int might match the return type of a gcc2
5881 builtin and then its argument prototype would still apply. */
5883 /* The GNU C library defines this for functions which it implements
5884 to always fail with ENOSYS. Some functions are actually named
5885 something starting with __ and the normal name is an alias. */
5886 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5889 char (*f) () = $ac_func;
5898 return f != $ac_func;
5903 rm -f conftest.
$ac_objext conftest
$ac_exeext
5904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5905 (eval $ac_link) 2>conftest.er1
5907 grep -v '^ *+' conftest.er1
>conftest.err
5909 cat conftest.err
>&5
5910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911 (exit $ac_status); } &&
5912 { ac_try
='test -z "$ac_c_werror_flag"
5913 || test ! -s conftest.err'
5914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918 (exit $ac_status); }; } &&
5919 { ac_try
='test -s conftest$ac_exeext'
5920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924 (exit $ac_status); }; }; then
5925 eval "$as_ac_var=yes"
5927 echo "$as_me: failed program was:" >&5
5928 sed 's/^/| /' conftest.
$ac_ext >&5
5930 eval "$as_ac_var=no"
5932 rm -f conftest.err conftest.
$ac_objext \
5933 conftest
$ac_exeext conftest.
$ac_ext
5935 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5936 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5937 if test `eval echo '${'$as_ac_var'}'` = yes; then
5938 cat >>confdefs.h
<<_ACEOF
5939 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5945 if test "x$ac_cv_func_fork" = xyes
; then
5946 echo "$as_me:$LINENO: checking for working fork" >&5
5947 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
5948 if test "${ac_cv_func_fork_works+set}" = set; then
5949 echo $ECHO_N "(cached) $ECHO_C" >&6
5951 if test "$cross_compiling" = yes; then
5952 ac_cv_func_fork_works
=cross
5954 cat >conftest.
$ac_ext <<_ACEOF
5955 /* By Ruediger Kuhlmann. */
5956 #include <sys/types.h>
5958 # include <unistd.h>
5960 /* Some systems only have a dummy stub for fork() */
5968 rm -f conftest
$ac_exeext
5969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5970 (eval $ac_link) 2>&5
5972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5978 (exit $ac_status); }; }; then
5979 ac_cv_func_fork_works
=yes
5981 echo "$as_me: program exited with status $ac_status" >&5
5982 echo "$as_me: failed program was:" >&5
5983 sed 's/^/| /' conftest.
$ac_ext >&5
5986 ac_cv_func_fork_works
=no
5988 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5991 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
5992 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
5995 ac_cv_func_fork_works
=$ac_cv_func_fork
5997 if test "x$ac_cv_func_fork_works" = xcross
; then
5999 *-*-amigaos* |
*-*-msdosdjgpp*)
6000 # Override, as these systems have only a dummy fork() stub
6001 ac_cv_func_fork_works
=no
6004 ac_cv_func_fork_works
=yes
6007 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
6008 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
6010 ac_cv_func_vfork_works
=$ac_cv_func_vfork
6011 if test "x$ac_cv_func_vfork" = xyes
; then
6012 echo "$as_me:$LINENO: checking for working vfork" >&5
6013 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
6014 if test "${ac_cv_func_vfork_works+set}" = set; then
6015 echo $ECHO_N "(cached) $ECHO_C" >&6
6017 if test "$cross_compiling" = yes; then
6018 ac_cv_func_vfork_works
=cross
6020 cat >conftest.
$ac_ext <<_ACEOF
6023 cat confdefs.h
>>conftest.
$ac_ext
6024 cat >>conftest.
$ac_ext <<_ACEOF
6025 /* end confdefs.h. */
6026 /* Thanks to Paul Eggert for this test. */
6029 #include <sys/types.h>
6030 #include <sys/stat.h>
6031 #include <sys/wait.h>
6033 # include <unistd.h>
6038 /* On some sparc systems, changes by the child to local and incoming
6039 argument registers are propagated back to the parent. The compiler
6040 is told about this with #include <vfork.h>, but some compilers
6041 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
6042 static variable whose address is put into a register that is
6043 clobbered by the vfork. */
6046 sparc_address_test (int arg)
6048 sparc_address_test (arg) int arg;
6069 pid_t parent = getpid ();
6072 sparc_address_test (0);
6077 /* Here is another test for sparc vfork register problems. This
6078 test uses lots of local variables, at least as many local
6079 variables as main has allocated so far including compiler
6080 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
6081 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
6082 reuse the register of parent for one of the local variables,
6083 since it will think that parent can't possibly be used any more
6084 in this routine. Assigning to the local variable will thus
6085 munge parent in the parent process. */
6087 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
6088 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
6089 /* Convince the compiler that p..p7 are live; otherwise, it might
6090 use the same hardware register for all 8 local variables. */
6091 if (p != p1 || p != p2 || p != p3 || p != p4
6092 || p != p5 || p != p6 || p != p7)
6095 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
6096 from child file descriptors. If the child closes a descriptor
6097 before it execs or exits, this munges the parent's descriptor
6098 as well. Test for this by closing stdout in the child. */
6099 _exit(close(fileno(stdout)) != 0);
6104 while (wait(&status) != child)
6107 /* Was there some problem with vforking? */
6110 /* Did the child fail? (This shouldn't happen.) */
6113 /* Did the vfork/compiler bug occur? */
6114 || parent != getpid()
6116 /* Did the file descriptor bug occur? */
6117 || fstat(fileno(stdout), &st) != 0
6122 rm -f conftest
$ac_exeext
6123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6124 (eval $ac_link) 2>&5
6126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132 (exit $ac_status); }; }; then
6133 ac_cv_func_vfork_works
=yes
6135 echo "$as_me: program exited with status $ac_status" >&5
6136 echo "$as_me: failed program was:" >&5
6137 sed 's/^/| /' conftest.
$ac_ext >&5
6140 ac_cv_func_vfork_works
=no
6142 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6145 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
6146 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
6149 if test "x$ac_cv_func_fork_works" = xcross
; then
6150 ac_cv_func_vfork_works
=$ac_cv_func_vfork
6151 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
6152 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
6155 if test "x$ac_cv_func_vfork_works" = xyes
; then
6157 cat >>confdefs.h
<<\_ACEOF
6158 #define HAVE_WORKING_VFORK 1
6163 cat >>confdefs.h
<<\_ACEOF
6168 if test "x$ac_cv_func_fork_works" = xyes
; then
6170 cat >>confdefs.h
<<\_ACEOF
6171 #define HAVE_WORKING_FORK 1
6176 if test $ac_cv_func_vfork_works = no
; then
6178 "vfork.$ac_objext" | \
6179 *" vfork.$ac_objext" | \
6180 "vfork.$ac_objext "* | \
6181 *" vfork.$ac_objext "* ) ;;
6182 *) LIBOBJS
="$LIBOBJS vfork.$ac_objext" ;;
6186 # We only need _doprnt if we might use it to implement v*printf.
6187 if test $ac_cv_func_vprintf != yes \
6188 ||
test $ac_cv_func_vfprintf != yes \
6189 ||
test $ac_cv_func_vsprintf != yes; then
6191 for ac_func
in _doprnt
6193 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6194 echo "$as_me:$LINENO: checking for $ac_func" >&5
6195 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6196 if eval "test \"\${$as_ac_var+set}\" = set"; then
6197 echo $ECHO_N "(cached) $ECHO_C" >&6
6199 if test x
$gcc_no_link = xyes
; then
6200 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6201 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6202 { (exit 1); exit 1; }; }
6204 cat >conftest.
$ac_ext <<_ACEOF
6207 cat confdefs.h
>>conftest.
$ac_ext
6208 cat >>conftest.
$ac_ext <<_ACEOF
6209 /* end confdefs.h. */
6210 /* System header to define __stub macros and hopefully few prototypes,
6211 which can conflict with char $ac_func (); below.
6212 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6213 <limits.h> exists even on freestanding compilers. Under hpux,
6214 including <limits.h> includes <sys/time.h> and causes problems
6215 checking for functions defined therein. */
6216 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
6217 # include <limits.h>
6219 # include <assert.h>
6221 /* Override any gcc2 internal prototype to avoid an error. */
6226 /* We use char because int might match the return type of a gcc2
6227 builtin and then its argument prototype would still apply. */
6229 /* The GNU C library defines this for functions which it implements
6230 to always fail with ENOSYS. Some functions are actually named
6231 something starting with __ and the normal name is an alias. */
6232 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6235 char (*f) () = $ac_func;
6244 return f != $ac_func;
6249 rm -f conftest.
$ac_objext conftest
$ac_exeext
6250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6251 (eval $ac_link) 2>conftest.er1
6253 grep -v '^ *+' conftest.er1
>conftest.err
6255 cat conftest.err
>&5
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); } &&
6258 { ac_try
='test -z "$ac_c_werror_flag"
6259 || test ! -s conftest.err'
6260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264 (exit $ac_status); }; } &&
6265 { ac_try
='test -s conftest$ac_exeext'
6266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270 (exit $ac_status); }; }; then
6271 eval "$as_ac_var=yes"
6273 echo "$as_me: failed program was:" >&5
6274 sed 's/^/| /' conftest.
$ac_ext >&5
6276 eval "$as_ac_var=no"
6278 rm -f conftest.err conftest.
$ac_objext \
6279 conftest
$ac_exeext conftest.
$ac_ext
6281 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6282 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6283 if test `eval echo '${'$as_ac_var'}'` = yes; then
6284 cat >>confdefs.h
<<_ACEOF
6285 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6290 "$ac_func.$ac_objext" | \
6291 *" $ac_func.$ac_objext" | \
6292 "$ac_func.$ac_objext "* | \
6293 *" $ac_func.$ac_objext "* ) ;;
6294 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext" ;;
6303 for ac_func
in _doprnt
6305 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6306 echo "$as_me:$LINENO: checking for $ac_func" >&5
6307 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6308 if eval "test \"\${$as_ac_var+set}\" = set"; then
6309 echo $ECHO_N "(cached) $ECHO_C" >&6
6311 if test x
$gcc_no_link = xyes
; then
6312 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6313 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6314 { (exit 1); exit 1; }; }
6316 cat >conftest.
$ac_ext <<_ACEOF
6319 cat confdefs.h
>>conftest.
$ac_ext
6320 cat >>conftest.
$ac_ext <<_ACEOF
6321 /* end confdefs.h. */
6322 /* System header to define __stub macros and hopefully few prototypes,
6323 which can conflict with char $ac_func (); below.
6324 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6325 <limits.h> exists even on freestanding compilers. Under hpux,
6326 including <limits.h> includes <sys/time.h> and causes problems
6327 checking for functions defined therein. */
6328 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
6329 # include <limits.h>
6331 # include <assert.h>
6333 /* Override any gcc2 internal prototype to avoid an error. */
6338 /* We use char because int might match the return type of a gcc2
6339 builtin and then its argument prototype would still apply. */
6341 /* The GNU C library defines this for functions which it implements
6342 to always fail with ENOSYS. Some functions are actually named
6343 something starting with __ and the normal name is an alias. */
6344 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6347 char (*f) () = $ac_func;
6356 return f != $ac_func;
6361 rm -f conftest.
$ac_objext conftest
$ac_exeext
6362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6363 (eval $ac_link) 2>conftest.er1
6365 grep -v '^ *+' conftest.er1
>conftest.err
6367 cat conftest.err
>&5
6368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369 (exit $ac_status); } &&
6370 { ac_try
='test -z "$ac_c_werror_flag"
6371 || test ! -s conftest.err'
6372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376 (exit $ac_status); }; } &&
6377 { ac_try
='test -s conftest$ac_exeext'
6378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382 (exit $ac_status); }; }; then
6383 eval "$as_ac_var=yes"
6385 echo "$as_me: failed program was:" >&5
6386 sed 's/^/| /' conftest.
$ac_ext >&5
6388 eval "$as_ac_var=no"
6390 rm -f conftest.err conftest.
$ac_objext \
6391 conftest
$ac_exeext conftest.
$ac_ext
6393 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6394 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6395 if test `eval echo '${'$as_ac_var'}'` = yes; then
6396 cat >>confdefs.h
<<_ACEOF
6397 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6406 echo "$as_me:$LINENO: checking for $v" >&5
6407 echo $ECHO_N "checking for $v... $ECHO_C" >&6
6408 if eval "test \"\${libiberty_cv_var_$v+set}\" = set"; then
6409 echo $ECHO_N "(cached) $ECHO_C" >&6
6411 if test x
$gcc_no_link = xyes
; then
6412 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6413 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6414 { (exit 1); exit 1; }; }
6416 cat >conftest.
$ac_ext <<_ACEOF
6419 cat confdefs.h
>>conftest.
$ac_ext
6420 cat >>conftest.
$ac_ext <<_ACEOF
6421 /* end confdefs.h. */
6426 extern int $v []; p = $v;
6431 rm -f conftest.
$ac_objext conftest
$ac_exeext
6432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6433 (eval $ac_link) 2>conftest.er1
6435 grep -v '^ *+' conftest.er1
>conftest.err
6437 cat conftest.err
>&5
6438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6439 (exit $ac_status); } &&
6440 { ac_try
='test -z "$ac_c_werror_flag"
6441 || test ! -s conftest.err'
6442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446 (exit $ac_status); }; } &&
6447 { ac_try
='test -s conftest$ac_exeext'
6448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452 (exit $ac_status); }; }; then
6453 eval "libiberty_cv_var_$v=yes"
6455 echo "$as_me: failed program was:" >&5
6456 sed 's/^/| /' conftest.
$ac_ext >&5
6458 eval "libiberty_cv_var_$v=no"
6460 rm -f conftest.err conftest.
$ac_objext \
6461 conftest
$ac_exeext conftest.
$ac_ext
6464 if eval "test \"`echo '$libiberty_cv_var_'$v`\" = yes"; then
6465 echo "$as_me:$LINENO: result: yes" >&5
6466 echo "${ECHO_T}yes" >&6
6467 n
=HAVE_
`echo $v | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6468 cat >>confdefs.h
<<_ACEOF
6473 echo "$as_me:$LINENO: result: no" >&5
6474 echo "${ECHO_T}no" >&6
6478 # special check for _system_configuration because AIX <4.3.2 do not
6479 # contain the `physmem' member.
6480 echo "$as_me:$LINENO: checking for external symbol _system_configuration" >&5
6481 echo $ECHO_N "checking for external symbol _system_configuration... $ECHO_C" >&6
6482 cat >conftest.
$ac_ext <<_ACEOF
6485 cat confdefs.h
>>conftest.
$ac_ext
6486 cat >>conftest.
$ac_ext <<_ACEOF
6487 /* end confdefs.h. */
6488 #include <sys/systemcfg.h>
6492 double x = _system_configuration.physmem;
6497 rm -f conftest.
$ac_objext
6498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6499 (eval $ac_compile) 2>conftest.er1
6501 grep -v '^ *+' conftest.er1
>conftest.err
6503 cat conftest.err
>&5
6504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6505 (exit $ac_status); } &&
6506 { ac_try
='test -z "$ac_c_werror_flag"
6507 || test ! -s conftest.err'
6508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6512 (exit $ac_status); }; } &&
6513 { ac_try
='test -s conftest.$ac_objext'
6514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6518 (exit $ac_status); }; }; then
6519 echo "$as_me:$LINENO: result: yes" >&5
6520 echo "${ECHO_T}yes" >&6
6522 cat >>confdefs.h
<<\_ACEOF
6523 #define HAVE__SYSTEM_CONFIGURATION 1
6527 echo "$as_me: failed program was:" >&5
6528 sed 's/^/| /' conftest.
$ac_ext >&5
6530 echo "$as_me:$LINENO: result: no" >&5
6531 echo "${ECHO_T}no" >&6
6533 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6536 for ac_func
in $checkfuncs
6538 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6539 echo "$as_me:$LINENO: checking for $ac_func" >&5
6540 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6541 if eval "test \"\${$as_ac_var+set}\" = set"; then
6542 echo $ECHO_N "(cached) $ECHO_C" >&6
6544 if test x
$gcc_no_link = xyes
; then
6545 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6546 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6547 { (exit 1); exit 1; }; }
6549 cat >conftest.
$ac_ext <<_ACEOF
6552 cat confdefs.h
>>conftest.
$ac_ext
6553 cat >>conftest.
$ac_ext <<_ACEOF
6554 /* end confdefs.h. */
6555 /* System header to define __stub macros and hopefully few prototypes,
6556 which can conflict with char $ac_func (); below.
6557 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6558 <limits.h> exists even on freestanding compilers. Under hpux,
6559 including <limits.h> includes <sys/time.h> and causes problems
6560 checking for functions defined therein. */
6561 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
6562 # include <limits.h>
6564 # include <assert.h>
6566 /* Override any gcc2 internal prototype to avoid an error. */
6571 /* We use char because int might match the return type of a gcc2
6572 builtin and then its argument prototype would still apply. */
6574 /* The GNU C library defines this for functions which it implements
6575 to always fail with ENOSYS. Some functions are actually named
6576 something starting with __ and the normal name is an alias. */
6577 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6580 char (*f) () = $ac_func;
6589 return f != $ac_func;
6594 rm -f conftest.
$ac_objext conftest
$ac_exeext
6595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6596 (eval $ac_link) 2>conftest.er1
6598 grep -v '^ *+' conftest.er1
>conftest.err
6600 cat conftest.err
>&5
6601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602 (exit $ac_status); } &&
6603 { ac_try
='test -z "$ac_c_werror_flag"
6604 || test ! -s conftest.err'
6605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609 (exit $ac_status); }; } &&
6610 { ac_try
='test -s conftest$ac_exeext'
6611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615 (exit $ac_status); }; }; then
6616 eval "$as_ac_var=yes"
6618 echo "$as_me: failed program was:" >&5
6619 sed 's/^/| /' conftest.
$ac_ext >&5
6621 eval "$as_ac_var=no"
6623 rm -f conftest.err conftest.
$ac_objext \
6624 conftest
$ac_exeext conftest.
$ac_ext
6626 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6627 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6628 if test `eval echo '${'$as_ac_var'}'` = yes; then
6629 cat >>confdefs.h
<<_ACEOF
6630 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6636 echo "$as_me:$LINENO: checking whether canonicalize_file_name must be declared" >&5
6637 echo $ECHO_N "checking whether canonicalize_file_name must be declared... $ECHO_C" >&6
6638 if test "${libiberty_cv_decl_needed_canonicalize_file_name+set}" = set; then
6639 echo $ECHO_N "(cached) $ECHO_C" >&6
6641 cat >conftest.
$ac_ext <<_ACEOF
6644 cat confdefs.h
>>conftest.
$ac_ext
6645 cat >>conftest.
$ac_ext <<_ACEOF
6646 /* end confdefs.h. */
6648 #include "confdefs.h"
6650 #ifdef HAVE_STRING_H
6653 #ifdef HAVE_STRINGS_H
6654 #include <strings.h>
6657 #ifdef HAVE_STDLIB_H
6660 #ifdef HAVE_UNISTD_H
6666 char *(*pfn) = (char *(*)) canonicalize_file_name
6671 rm -f conftest.
$ac_objext
6672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6673 (eval $ac_compile) 2>conftest.er1
6675 grep -v '^ *+' conftest.er1
>conftest.err
6677 cat conftest.err
>&5
6678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6679 (exit $ac_status); } &&
6680 { ac_try
='test -z "$ac_c_werror_flag"
6681 || test ! -s conftest.err'
6682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686 (exit $ac_status); }; } &&
6687 { ac_try
='test -s conftest.$ac_objext'
6688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692 (exit $ac_status); }; }; then
6693 libiberty_cv_decl_needed_canonicalize_file_name
=no
6695 echo "$as_me: failed program was:" >&5
6696 sed 's/^/| /' conftest.
$ac_ext >&5
6698 libiberty_cv_decl_needed_canonicalize_file_name
=yes
6700 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6703 echo "$as_me:$LINENO: result: $libiberty_cv_decl_needed_canonicalize_file_name" >&5
6704 echo "${ECHO_T}$libiberty_cv_decl_needed_canonicalize_file_name" >&6
6705 if test $libiberty_cv_decl_needed_canonicalize_file_name = yes; then
6707 cat >>confdefs.h
<<\_ACEOF
6708 #define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1
6715 # Figure out which version of pexecute to use.
6717 *-*-mingw* |
*-*-winnt*) pexecute
=.
/pex-win32.o
;;
6718 *-*-msdosdjgpp*) pexecute
=.
/pex-djgpp.o
;;
6719 *-*-msdos*) pexecute
=.
/pex-msdos.o
;;
6720 *) pexecute
=.
/pex-unix.o
;;
6724 if test x
$gcc_no_link = xyes
; then
6725 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset
; then
6726 ac_cv_func_mmap_fixed_mapped
=no
6729 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset
; then
6732 for ac_header
in stdlib.h unistd.h
6734 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6735 echo "$as_me:$LINENO: checking for $ac_header" >&5
6736 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6737 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6738 echo $ECHO_N "(cached) $ECHO_C" >&6
6740 cat >conftest.
$ac_ext <<_ACEOF
6743 cat confdefs.h
>>conftest.
$ac_ext
6744 cat >>conftest.
$ac_ext <<_ACEOF
6745 /* end confdefs.h. */
6746 #include <$ac_header>
6748 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6749 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6751 grep -v '^ *+' conftest.er1
>conftest.err
6753 cat conftest.err
>&5
6754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6755 (exit $ac_status); } >/dev
/null
; then
6756 if test -s conftest.err
; then
6757 ac_cpp_err
=$ac_c_preproc_warn_flag
6758 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6765 if test -z "$ac_cpp_err"; then
6766 eval "$as_ac_Header=yes"
6768 echo "$as_me: failed program was:" >&5
6769 sed 's/^/| /' conftest.
$ac_ext >&5
6771 eval "$as_ac_Header=no"
6773 rm -f conftest.err conftest.
$ac_ext
6775 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6776 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6777 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6778 cat >>confdefs.h
<<_ACEOF
6779 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6786 for ac_func
in getpagesize
6788 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6789 echo "$as_me:$LINENO: checking for $ac_func" >&5
6790 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6791 if eval "test \"\${$as_ac_var+set}\" = set"; then
6792 echo $ECHO_N "(cached) $ECHO_C" >&6
6794 if test x
$gcc_no_link = xyes
; then
6795 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6796 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6797 { (exit 1); exit 1; }; }
6799 cat >conftest.
$ac_ext <<_ACEOF
6802 cat confdefs.h
>>conftest.
$ac_ext
6803 cat >>conftest.
$ac_ext <<_ACEOF
6804 /* end confdefs.h. */
6805 /* System header to define __stub macros and hopefully few prototypes,
6806 which can conflict with char $ac_func (); below.
6807 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6808 <limits.h> exists even on freestanding compilers. Under hpux,
6809 including <limits.h> includes <sys/time.h> and causes problems
6810 checking for functions defined therein. */
6811 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
6812 # include <limits.h>
6814 # include <assert.h>
6816 /* Override any gcc2 internal prototype to avoid an error. */
6821 /* We use char because int might match the return type of a gcc2
6822 builtin and then its argument prototype would still apply. */
6824 /* The GNU C library defines this for functions which it implements
6825 to always fail with ENOSYS. Some functions are actually named
6826 something starting with __ and the normal name is an alias. */
6827 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6830 char (*f) () = $ac_func;
6839 return f != $ac_func;
6844 rm -f conftest.
$ac_objext conftest
$ac_exeext
6845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6846 (eval $ac_link) 2>conftest.er1
6848 grep -v '^ *+' conftest.er1
>conftest.err
6850 cat conftest.err
>&5
6851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6852 (exit $ac_status); } &&
6853 { ac_try
='test -z "$ac_c_werror_flag"
6854 || test ! -s conftest.err'
6855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6859 (exit $ac_status); }; } &&
6860 { ac_try
='test -s conftest$ac_exeext'
6861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6865 (exit $ac_status); }; }; then
6866 eval "$as_ac_var=yes"
6868 echo "$as_me: failed program was:" >&5
6869 sed 's/^/| /' conftest.
$ac_ext >&5
6871 eval "$as_ac_var=no"
6873 rm -f conftest.err conftest.
$ac_objext \
6874 conftest
$ac_exeext conftest.
$ac_ext
6876 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6877 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6878 if test `eval echo '${'$as_ac_var'}'` = yes; then
6879 cat >>confdefs.h
<<_ACEOF
6880 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6886 echo "$as_me:$LINENO: checking for working mmap" >&5
6887 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6888 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6889 echo $ECHO_N "(cached) $ECHO_C" >&6
6891 if test "$cross_compiling" = yes; then
6892 ac_cv_func_mmap_fixed_mapped
=no
6894 cat >conftest.
$ac_ext <<_ACEOF
6897 cat confdefs.h
>>conftest.
$ac_ext
6898 cat >>conftest.
$ac_ext <<_ACEOF
6899 /* end confdefs.h. */
6900 $ac_includes_default
6901 /* malloc might have been renamed as rpl_malloc. */
6904 /* Thanks to Mike Haertel and Jim Avera for this test.
6905 Here is a matrix of mmap possibilities:
6906 mmap private not fixed
6907 mmap private fixed at somewhere currently unmapped
6908 mmap private fixed at somewhere already mapped
6909 mmap shared not fixed
6910 mmap shared fixed at somewhere currently unmapped
6911 mmap shared fixed at somewhere already mapped
6912 For private mappings, we should verify that changes cannot be read()
6913 back from the file, nor mmap's back from the file at a different
6914 address. (There have been systems where private was not correctly
6915 implemented like the infamous i386 svr4.0, and systems where the
6916 VM page cache was not coherent with the file system buffer cache
6917 like early versions of FreeBSD and possibly contemporary NetBSD.)
6918 For shared mappings, we should conversely verify that changes get
6919 propagated back to all the places they're supposed to be.
6921 Grep wants private fixed already mapped.
6922 The main things grep needs to know about mmap are:
6923 * does it exist and is it safe to write into the mmap'd area
6924 * how to use it (BSD variants) */
6927 #include <sys/mman.h>
6929 #if !STDC_HEADERS && !HAVE_STDLIB_H
6933 /* This mess was copied from the GNU getpagesize.h. */
6934 #if !HAVE_GETPAGESIZE
6935 /* Assume that all systems that can run configure have sys/param.h. */
6936 # if !HAVE_SYS_PARAM_H
6937 # define HAVE_SYS_PARAM_H 1
6940 # ifdef _SC_PAGESIZE
6941 # define getpagesize() sysconf(_SC_PAGESIZE)
6942 # else /* no _SC_PAGESIZE */
6943 # if HAVE_SYS_PARAM_H
6944 # include <sys/param.h>
6945 # ifdef EXEC_PAGESIZE
6946 # define getpagesize() EXEC_PAGESIZE
6947 # else /* no EXEC_PAGESIZE */
6949 # define getpagesize() NBPG * CLSIZE
6952 # endif /* no CLSIZE */
6953 # else /* no NBPG */
6955 # define getpagesize() NBPC
6956 # else /* no NBPC */
6958 # define getpagesize() PAGESIZE
6959 # endif /* PAGESIZE */
6960 # endif /* no NBPC */
6961 # endif /* no NBPG */
6962 # endif /* no EXEC_PAGESIZE */
6963 # else /* no HAVE_SYS_PARAM_H */
6964 # define getpagesize() 8192 /* punt totally */
6965 # endif /* no HAVE_SYS_PARAM_H */
6966 # endif /* no _SC_PAGESIZE */
6968 #endif /* no HAVE_GETPAGESIZE */
6973 char *data, *data2, *data3;
6977 pagesize = getpagesize ();
6979 /* First, make a file with some known garbage in it. */
6980 data = (char *) malloc (pagesize);
6983 for (i = 0; i < pagesize; ++i)
6984 *(data + i) = rand ();
6986 fd = creat ("conftest.mmap", 0600);
6989 if (write (fd, data, pagesize) != pagesize)
6993 /* Next, try to mmap the file at a fixed address which already has
6994 something else allocated at it. If we can, also make sure that
6995 we see the same garbage. */
6996 fd = open ("conftest.mmap", O_RDWR);
6999 data2 = (char *) malloc (2 * pagesize);
7002 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
7003 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7004 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7006 for (i = 0; i < pagesize; ++i)
7007 if (*(data + i) != *(data2 + i))
7010 /* Finally, make sure that changes to the mapped area do not
7011 percolate back to the file as seen by read(). (This is a bug on
7012 some variants of i386 svr4.0.) */
7013 for (i = 0; i < pagesize; ++i)
7014 *(data2 + i) = *(data2 + i) + 1;
7015 data3 = (char *) malloc (pagesize);
7018 if (read (fd, data3, pagesize) != pagesize)
7020 for (i = 0; i < pagesize; ++i)
7021 if (*(data + i) != *(data3 + i))
7027 rm -f conftest
$ac_exeext
7028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7029 (eval $ac_link) 2>&5
7031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7032 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037 (exit $ac_status); }; }; then
7038 ac_cv_func_mmap_fixed_mapped
=yes
7040 echo "$as_me: program exited with status $ac_status" >&5
7041 echo "$as_me: failed program was:" >&5
7042 sed 's/^/| /' conftest.
$ac_ext >&5
7045 ac_cv_func_mmap_fixed_mapped
=no
7047 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7050 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7051 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7052 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7054 cat >>confdefs.h
<<\_ACEOF
7063 echo "$as_me:$LINENO: checking for working strncmp" >&5
7064 echo $ECHO_N "checking for working strncmp... $ECHO_C" >&6
7065 if test "${ac_cv_func_strncmp_works+set}" = set; then
7066 echo $ECHO_N "(cached) $ECHO_C" >&6
7068 if test "$cross_compiling" = yes; then
7069 ac_cv_func_strncmp_works
=no
7071 cat >conftest.
$ac_ext <<_ACEOF
7074 cat confdefs.h
>>conftest.
$ac_ext
7075 cat >>conftest.
$ac_ext <<_ACEOF
7076 /* end confdefs.h. */
7078 /* Test by Jim Wilson and Kaveh Ghazi.
7079 Check whether strncmp reads past the end of its string parameters. */
7080 #include <sys/types.h>
7086 #ifdef HAVE_SYS_MMAN_H
7087 #include <sys/mman.h>
7091 #ifdef MAP_ANONYMOUS
7092 #define MAP_ANON MAP_ANONYMOUS
7094 #define MAP_ANON MAP_FILE
7105 #define MAP_LEN 0x10000
7109 #if defined(HAVE_MMAP) || defined(HAVE_MMAP_ANYWHERE)
7113 dev_zero = open ("/dev/zero", O_RDONLY);
7117 p = (char *) mmap (0, MAP_LEN, PROT_READ|PROT_WRITE,
7118 MAP_ANON|MAP_PRIVATE, dev_zero, 0);
7119 if (p == (char *)-1)
7120 p = (char *) mmap (0, MAP_LEN, PROT_READ|PROT_WRITE,
7121 MAP_ANON|MAP_PRIVATE, -1, 0);
7122 if (p == (char *)-1)
7126 char *string = "__si_type_info";
7127 char *q = (char *) p + MAP_LEN - strlen (string) - 2;
7128 char *r = (char *) p + 0xe;
7134 #endif /* HAVE_MMAP || HAVE_MMAP_ANYWHERE */
7139 rm -f conftest
$ac_exeext
7140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7141 (eval $ac_link) 2>&5
7143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7144 (exit $ac_status); } && { ac_try
='./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 ac_cv_func_strncmp_works
=yes
7152 echo "$as_me: program exited with status $ac_status" >&5
7153 echo "$as_me: failed program was:" >&5
7154 sed 's/^/| /' conftest.
$ac_ext >&5
7157 ac_cv_func_strncmp_works
=no
7159 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7161 rm -f core core.
* *.core
7163 echo "$as_me:$LINENO: result: $ac_cv_func_strncmp_works" >&5
7164 echo "${ECHO_T}$ac_cv_func_strncmp_works" >&6
7165 if test $ac_cv_func_strncmp_works = no
; then
7167 "strncmp.$ac_objext" | \
7168 *" strncmp.$ac_objext" | \
7169 "strncmp.$ac_objext "* | \
7170 *" strncmp.$ac_objext "* ) ;;
7171 *) LIBOBJS
="$LIBOBJS strncmp.$ac_objext" ;;
7177 # Install a library built with a cross compiler in $(tooldir) rather
7179 if test -z "${with_cross_host}"; then
7182 INSTALL_DEST
=tooldir
7188 for l
in x
$LIBOBJS; do
7196 # We need multilib support, but only if configuring for the target.
7197 ac_config_files
="$ac_config_files Makefile testsuite/Makefile"
7199 ac_config_commands
="$ac_config_commands default"
7201 cat >confcache
<<\_ACEOF
7202 # This file is a shell script that caches the results of configure
7203 # tests run on this system so they can be shared between configure
7204 # scripts and configure runs, see configure's option --config-cache.
7205 # It is not useful on other systems. If it contains results you don't
7206 # want to keep, you may remove or edit it.
7208 # config.status only pays attention to the cache file if you give it
7209 # the --recheck option to rerun configure.
7211 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7212 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7217 # The following way of writing the cache mishandles newlines in values,
7218 # but we know of no workaround that is simple, portable, and efficient.
7219 # So, don't put newlines in cache variables' values.
7220 # Ultrix sh set writes to stderr and can't be redirected directly,
7221 # and sets the high bit in the cache file unless we assign to the vars.
7224 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7226 # `set' does not quote correctly, so add quotes (double-quote
7227 # substitution turns \\\\ into \\, and sed turns \\ into \).
7230 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7233 # `set' quotes correctly as required by POSIX, so do not add quotes.
7235 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7242 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7244 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7246 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
7247 if test -w $cache_file; then
7248 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7249 cat confcache
>$cache_file
7251 echo "not updating unwritable cache $cache_file"
7256 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7257 # Let make expand exec_prefix.
7258 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7260 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7261 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7262 # trailing colons and then remove the whole line if VPATH becomes empty
7263 # (actually we leave an empty line to preserve line numbers).
7264 if test "x$srcdir" = x.
; then
7265 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
7266 s/:*\$(srcdir):*/:/;
7267 s/:*\${srcdir}:*/:/;
7269 s/^\([^=]*=[ ]*\):*/\1/;
7275 DEFS
=-DHAVE_CONFIG_H
7279 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
7280 # 1. Remove the extension, and $U if already installed.
7281 ac_i
=`echo "$ac_i" |
7282 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7284 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
7285 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
7289 LTLIBOBJS
=$ac_ltlibobjs
7293 : ${CONFIG_STATUS=./config.status}
7294 ac_clean_files_save
=$ac_clean_files
7295 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
7296 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7297 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7298 cat >$CONFIG_STATUS <<_ACEOF
7300 # Generated by $as_me.
7301 # Run this file to recreate the current configuration.
7302 # Compiler output produced by configure, useful for debugging
7303 # configure, is in config.log if it exists.
7308 SHELL=\${CONFIG_SHELL-$SHELL}
7311 cat >>$CONFIG_STATUS <<\_ACEOF
7312 ## --------------------- ##
7313 ## M4sh Initialization. ##
7314 ## --------------------- ##
7316 # Be Bourne compatible
7317 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
7320 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7321 # is contrary to our usage. Disable this feature.
7322 alias -g '${1+"$@"}'='"$@"'
7323 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
7326 DUALCASE
=1; export DUALCASE
# for MKS sh
7328 # Support unset when possible.
7329 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
7336 # Work around bugs in pre-3.0 UWIN ksh.
7337 $as_unset ENV MAIL MAILPATH
7344 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7345 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7346 LC_TELEPHONE LC_TIME
7348 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7349 eval $as_var=C
; export $as_var
7355 # Required to use basename.
7356 if expr a
: '\(a\)' >/dev
/null
2>&1; then
7362 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
7363 as_basename
=basename
7369 # Name of the executable.
7370 as_me
=`$as_basename "$0" ||
7371 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7372 X"$0" : 'X\(//\)$' \| \
7373 X"$0" : 'X\(/\)$' \| \
7374 . : '\(.\)' 2>/dev/null ||
7376 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7377 /^X\/\(\/\/\)$/{ s//\1/; q; }
7378 /^X\/\(\/\).*/{ s//\1/; q; }
7382 # PATH needs CR, and LINENO needs CR and PATH.
7383 # Avoid depending upon Character Ranges.
7384 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
7385 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7386 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
7387 as_cr_digits
='0123456789'
7388 as_cr_alnum
=$as_cr_Letters$as_cr_digits
7390 # The user is always right.
7391 if test "${PATH_SEPARATOR+set}" != set; then
7392 echo "#! /bin/sh" >conf$$.sh
7393 echo "exit 0" >>conf$$.sh
7395 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7406 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
7407 test "x$as_lineno_1" != "x$as_lineno_2" &&
7408 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
7409 # Find who we are. Look in the path if we contain no path at all
7412 *[\\/]* ) as_myself
=$0 ;;
7413 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7417 test -z "$as_dir" && as_dir
=.
7418 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
7423 # We did not find ourselves, most probably we were run as `sh COMMAND'
7424 # in which case we are not to be found in the path.
7425 if test "x$as_myself" = x
; then
7428 if test ! -f "$as_myself"; then
7429 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7430 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7431 { (exit 1); exit 1; }; }
7433 case $CONFIG_SHELL in
7435 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7436 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
7439 test -z "$as_dir" && as_dir
=.
7440 for as_base
in sh bash ksh sh5
; do
7443 if ("$as_dir/$as_base" -c '
7446 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7447 test "x$as_lineno_1" != "x$as_lineno_2" &&
7448 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
7449 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
7450 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
7451 CONFIG_SHELL
=$as_dir/$as_base
7453 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7461 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7462 # uniformly replaced by the line number. The first 'sed' inserts a
7463 # line-number line before each line; the second 'sed' does the real
7464 # work. The second script uses 'N' to pair each line-number line
7465 # with the numbered line, and appends trailing '-' during
7466 # substitution so that $LINENO is not a special case at line end.
7467 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7468 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7469 sed '=' <$as_myself |
7474 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7477 s,^['$as_cr_digits']*\n,,
7479 chmod +x
$as_me.lineno ||
7480 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7481 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7482 { (exit 1); exit 1; }; }
7484 # Don't try to exec as it changes $[0], causing all sort of problems
7485 # (the dirname of $[0] is not the place where we might find the
7486 # original and so on. Autoconf is especially sensible to this).
7488 # Exit status is that of the last command.
7493 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7494 *c
*,-n*) ECHO_N
= ECHO_C
='
7496 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
7497 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
7500 if expr a
: '\(a\)' >/dev
/null
2>&1; then
7506 rm -f conf$$ conf$$.exe conf$$.
file
7508 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
7509 # We could just check for DJGPP; but this test a) works b) is more generic
7510 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7511 if test -f conf$$.exe
; then
7512 # Don't use ln at all; we don't have any links
7517 elif ln conf$$.
file conf$$
2>/dev
/null
; then
7522 rm -f conf$$ conf$$.exe conf$$.
file
7524 if mkdir
-p .
2>/dev
/null
; then
7527 test -d .
/-p && rmdir .
/-p
7531 as_executable_p
="test -f"
7533 # Sed expression to map a string onto a valid CPP name.
7534 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7536 # Sed expression to map a string onto a valid variable name.
7537 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7541 # We need space, tab and new line, in precisely that order.
7551 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7552 # report actual input values of CONFIG_FILES etc. instead of their
7553 # values after options handling. Logging --version etc. is OK.
7557 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7558 ## Running $as_me. ##
7563 This file was extended by $as_me, which was
7564 generated by GNU Autoconf 2.59. Invocation command line was
7566 CONFIG_FILES = $CONFIG_FILES
7567 CONFIG_HEADERS = $CONFIG_HEADERS
7568 CONFIG_LINKS = $CONFIG_LINKS
7569 CONFIG_COMMANDS = $CONFIG_COMMANDS
7573 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7577 # Files that config.status was made for.
7578 if test -n "$ac_config_files"; then
7579 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7582 if test -n "$ac_config_headers"; then
7583 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7586 if test -n "$ac_config_links"; then
7587 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7590 if test -n "$ac_config_commands"; then
7591 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7594 cat >>$CONFIG_STATUS <<\_ACEOF
7597 \`$as_me' instantiates files from templates according to the
7598 current configuration.
7600 Usage: $0 [OPTIONS] [FILE]...
7602 -h, --help print this help, then exit
7603 -V, --version print version number, then exit
7604 -q, --quiet do not print progress messages
7605 -d, --debug don't remove temporary files
7606 --recheck update $as_me by reconfiguring in the same conditions
7607 --file=FILE[:TEMPLATE]
7608 instantiate the configuration file FILE
7609 --header=FILE[:TEMPLATE]
7610 instantiate the configuration header FILE
7612 Configuration files:
7615 Configuration headers:
7618 Configuration commands:
7621 Report bugs to <bug-autoconf@gnu.org>."
7624 cat >>$CONFIG_STATUS <<_ACEOF
7627 configured by $0, generated by GNU Autoconf 2.59,
7628 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7630 Copyright (C) 2003 Free Software Foundation, Inc.
7631 This config.status script is free software; the Free Software Foundation
7632 gives unlimited permission to copy, distribute and modify it."
7637 cat >>$CONFIG_STATUS <<\_ACEOF
7638 # If no file are specified by the user, then we need to provide default
7639 # value. By we need to know if files were specified by the user.
7645 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
7646 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
7654 *) # This is not an option, so the user has probably given explicit
7657 ac_need_defaults
=false
;;
7661 # Handling of the options.
7663 cat >>$CONFIG_STATUS <<\_ACEOF
7664 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
7666 --version |
--vers* |
-V )
7667 echo "$ac_cs_version"; exit 0 ;;
7669 # Conflict between --help and --header
7670 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7671 Try \`$0 --help' for more information." >&5
7672 echo "$as_me: error: ambiguous option: $1
7673 Try \`$0 --help' for more information." >&2;}
7674 { (exit 1); exit 1; }; };;
7675 --help |
--hel |
-h )
7676 echo "$ac_cs_usage"; exit 0 ;;
7677 --debug |
--d* |
-d )
7679 --file |
--fil |
--fi |
--f )
7681 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
7682 ac_need_defaults
=false
;;
7683 --header |
--heade |
--head |
--hea )
7685 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
7686 ac_need_defaults
=false
;;
7687 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
7688 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
7692 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7693 Try \`$0 --help' for more information." >&5
7694 echo "$as_me: error: unrecognized option: $1
7695 Try \`$0 --help' for more information." >&2;}
7696 { (exit 1); exit 1; }; } ;;
7698 *) ac_config_targets
="$ac_config_targets $1" ;;
7704 ac_configure_extra_args
=
7706 if $ac_cs_silent; then
7708 ac_configure_extra_args
="$ac_configure_extra_args --silent"
7712 cat >>$CONFIG_STATUS <<_ACEOF
7713 if \$ac_cs_recheck; then
7714 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7715 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7720 cat >>$CONFIG_STATUS <<_ACEOF
7722 # INIT-COMMANDS section.
7728 with_target_subdir=${with_target_subdir}
7729 with_multisubdir=${with_multisubdir}
7730 ac_configure_args="--enable-multilib ${ac_configure_args}"
7731 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
7732 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
7733 libiberty_topdir=${libiberty_topdir}
7740 cat >>$CONFIG_STATUS <<\_ACEOF
7741 for ac_config_target
in $ac_config_targets
7743 case "$ac_config_target" in
7744 # Handling of arguments.
7745 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
7746 "testsuite/Makefile" ) CONFIG_FILES
="$CONFIG_FILES testsuite/Makefile" ;;
7747 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
7748 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
7749 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7750 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7751 { (exit 1); exit 1; }; };;
7755 # If the user did not use the arguments to specify the items to instantiate,
7756 # then the envvar interface is used. Set only those that are not.
7757 # We use the long form for the default assignment because of an extremely
7758 # bizarre bug on SunOS 4.1.3.
7759 if $ac_need_defaults; then
7760 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
7761 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
7762 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
7765 # Have a temporary directory for convenience. Make it in the build tree
7766 # simply because there is no reason to put it here, and in addition,
7767 # creating and moving files from /tmp can sometimes cause problems.
7768 # Create a temporary directory, and hook for its removal unless debugging.
7771 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7772 trap '{ (exit 1); exit 1; }' 1 2 13 15
7775 # Create a (secure) tmp directory for tmp files.
7778 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7779 test -n "$tmp" && test -d "$tmp"
7782 tmp
=.
/confstat$$
-$RANDOM
7783 (umask 077 && mkdir
$tmp)
7786 echo "$me: cannot create a temporary directory in ." >&2
7787 { (exit 1); exit 1; }
7792 cat >>$CONFIG_STATUS <<_ACEOF
7795 # CONFIG_FILES section.
7798 # No need to generate the scripts if there are no CONFIG_FILES.
7799 # This happens for instance when ./config.status config.h
7800 if test -n "\$CONFIG_FILES"; then
7801 # Protect against being on the right side of a sed subst in config.status.
7802 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7803 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7804 s,@SHELL@,$SHELL,;t t
7805 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7806 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7807 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7808 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7809 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7810 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7811 s,@exec_prefix@,$exec_prefix,;t t
7812 s,@prefix@,$prefix,;t t
7813 s,@program_transform_name@,$program_transform_name,;t t
7814 s,@bindir@,$bindir,;t t
7815 s,@sbindir@,$sbindir,;t t
7816 s,@libexecdir@,$libexecdir,;t t
7817 s,@datadir@,$datadir,;t t
7818 s,@sysconfdir@,$sysconfdir,;t t
7819 s,@sharedstatedir@,$sharedstatedir,;t t
7820 s,@localstatedir@,$localstatedir,;t t
7821 s,@libdir@,$libdir,;t t
7822 s,@includedir@,$includedir,;t t
7823 s,@oldincludedir@,$oldincludedir,;t t
7824 s,@infodir@,$infodir,;t t
7825 s,@mandir@,$mandir,;t t
7826 s,@build_alias@,$build_alias,;t t
7827 s,@host_alias@,$host_alias,;t t
7828 s,@target_alias@,$target_alias,;t t
7830 s,@ECHO_C@,$ECHO_C,;t t
7831 s,@ECHO_N@,$ECHO_N,;t t
7832 s,@ECHO_T@,$ECHO_T,;t t
7834 s,@libiberty_topdir@,$libiberty_topdir,;t t
7835 s,@MAINT@,$MAINT,;t t
7836 s,@NOTMAINT@,$NOTMAINT,;t t
7837 s,@MAKEINFO@,$MAKEINFO,;t t
7838 s,@BUILD_INFO@,$BUILD_INFO,;t t
7840 s,@HAVE_PERL@,$HAVE_PERL,;t t
7841 s,@build@,$build,;t t
7842 s,@build_cpu@,$build_cpu,;t t
7843 s,@build_vendor@,$build_vendor,;t t
7844 s,@build_os@,$build_os,;t t
7846 s,@host_cpu@,$host_cpu,;t t
7847 s,@host_vendor@,$host_vendor,;t t
7848 s,@host_os@,$host_os,;t t
7850 s,@ac_ct_AR@,$ac_ct_AR,;t t
7851 s,@RANLIB@,$RANLIB,;t t
7852 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7854 s,@CFLAGS@,$CFLAGS,;t t
7855 s,@LDFLAGS@,$LDFLAGS,;t t
7856 s,@CPPFLAGS@,$CPPFLAGS,;t t
7857 s,@ac_ct_CC@,$ac_ct_CC,;t t
7858 s,@EXEEXT@,$EXEEXT,;t t
7859 s,@OBJEXT@,$OBJEXT,;t t
7861 s,@ac_libiberty_warn_cflags@,$ac_libiberty_warn_cflags,;t t
7862 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
7863 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
7864 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7865 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7866 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7867 s,@EGREP@,$EGREP,;t t
7868 s,@LIBOBJS@,$LIBOBJS,;t t
7869 s,@CHECK@,$CHECK,;t t
7870 s,@target_header_dir@,$target_header_dir,;t t
7871 s,@pexecute@,$pexecute,;t t
7872 s,@INSTALL_DEST@,$INSTALL_DEST,;t t
7873 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7874 /@host_makefile_frag@/r $host_makefile_frag
7875 s,@host_makefile_frag@,,;t t
7880 cat >>$CONFIG_STATUS <<\_ACEOF
7881 # Split the substitutions into bite-sized pieces for seds with
7882 # small command number limits, like on Digital OSF/1 and HP-UX.
7884 ac_sed_frag
=1 # Number of current file.
7885 ac_beg
=1 # First line for current file.
7886 ac_end
=$ac_max_sed_lines # Line after last line for current file.
7889 while $ac_more_lines; do
7890 if test $ac_beg -gt 1; then
7891 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
7893 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
7895 if test ! -s $tmp/subs.frag
; then
7898 # The purpose of the label and of the branching condition is to
7899 # speed up the sed processing (if there are no `@' at all, there
7900 # is no need to browse any of the substitutions).
7901 # These are the two extra sed commands mentioned above.
7903 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
7904 if test -z "$ac_sed_cmds"; then
7905 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
7907 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7909 ac_sed_frag
=`expr $ac_sed_frag + 1`
7911 ac_end
=`expr $ac_end + $ac_max_sed_lines`
7914 if test -z "$ac_sed_cmds"; then
7917 fi # test -n "$CONFIG_FILES"
7920 cat >>$CONFIG_STATUS <<\_ACEOF
7921 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
7922 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7924 - |
*:- |
*:-:* ) # input from stdin
7926 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7927 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
7928 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7929 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
7930 * ) ac_file_in
=$ac_file.
in ;;
7933 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7934 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
7935 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7936 X"$ac_file" : 'X\(//\)[^/]' \| \
7937 X"$ac_file" : 'X\(//\)$' \| \
7938 X"$ac_file" : 'X\(/\)' \| \
7939 . : '\(.\)' 2>/dev/null ||
7941 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7942 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7943 /^X\(\/\/\)$/{ s//\1/; q; }
7944 /^X\(\/\).*/{ s//\1/; q; }
7946 { if $as_mkdir_p; then
7951 while test ! -d "$as_dir"; do
7952 as_dirs
="$as_dir $as_dirs"
7953 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
7954 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7955 X"$as_dir" : 'X\(//\)[^/]' \| \
7956 X"$as_dir" : 'X\(//\)$' \| \
7957 X"$as_dir" : 'X\(/\)' \| \
7958 . : '\(.\)' 2>/dev/null ||
7960 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7961 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7962 /^X\(\/\/\)$/{ s//\1/; q; }
7963 /^X\(\/\).*/{ s//\1/; q; }
7966 test ! -n "$as_dirs" || mkdir
$as_dirs
7967 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7968 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7969 { (exit 1); exit 1; }; }; }
7973 if test "$ac_dir" != .
; then
7974 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7975 # A "../" for each directory in $ac_dir_suffix.
7976 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7978 ac_dir_suffix
= ac_top_builddir
=
7982 .
) # No --srcdir option. We are building in place.
7984 if test -z "$ac_top_builddir"; then
7987 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
7989 [\\/]* | ?
:[\\/]* ) # Absolute path.
7990 ac_srcdir
=$srcdir$ac_dir_suffix;
7991 ac_top_srcdir
=$srcdir ;;
7993 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
7994 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
7997 # Do not use `cd foo && pwd` to compute absolute paths, because
7998 # the directories may not exist.
8000 .
) ac_abs_builddir
="$ac_dir";;
8003 .
) ac_abs_builddir
=`pwd`;;
8004 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
8005 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
8008 case $ac_abs_builddir in
8009 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
8011 case ${ac_top_builddir}.
in
8012 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
8013 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
8014 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
8017 case $ac_abs_builddir in
8018 .
) ac_abs_srcdir
=$ac_srcdir;;
8021 .
) ac_abs_srcdir
=$ac_abs_builddir;;
8022 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
8023 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
8026 case $ac_abs_builddir in
8027 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
8029 case $ac_top_srcdir in
8030 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
8031 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
8032 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
8038 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
8039 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
8042 if test x
"$ac_file" != x-
; then
8043 { echo "$as_me:$LINENO: creating $ac_file" >&5
8044 echo "$as_me: creating $ac_file" >&6;}
8047 # Let's still pretend it is `configure' which instantiates (i.e., don't
8048 # use $as_me), people would be surprised to read:
8049 # /* config.h. Generated by config.status. */
8050 if test x
"$ac_file" = x-
; then
8053 configure_input
="$ac_file. "
8055 configure_input
=$configure_input"Generated from `echo $ac_file_in |
8056 sed 's,.*/,,'` by configure."
8058 # First look for the input files in the build tree, otherwise in the
8060 ac_file_inputs
=`IFS=:
8061 for f in $ac_file_in; do
8063 -) echo $tmp/stdin ;;
8065 # Absolute (can't be DOS-style, as IFS=:)
8066 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8067 echo "$as_me: error: cannot find input file: $f" >&2;}
8068 { (exit 1); exit 1; }; }
8071 if test -f "$f"; then
8074 elif test -f "$srcdir/$f"; then
8079 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8080 echo "$as_me: error: cannot find input file: $f" >&2;}
8081 { (exit 1); exit 1; }; }
8084 done` ||
{ (exit 1); exit 1; }
8086 cat >>$CONFIG_STATUS <<_ACEOF
8090 cat >>$CONFIG_STATUS <<\_ACEOF
8092 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
8093 s
,@configure_input@
,$configure_input,;t t
8094 s
,@srcdir@
,$ac_srcdir,;t t
8095 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
8096 s
,@top_srcdir@
,$ac_top_srcdir,;t t
8097 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
8098 s
,@builddir@
,$ac_builddir,;t t
8099 s
,@abs_builddir@
,$ac_abs_builddir,;t t
8100 s
,@top_builddir@
,$ac_top_builddir,;t t
8101 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
8102 s
,@INSTALL@
,$ac_INSTALL,;t t
8103 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8105 if test x"$ac_file" != x-; then
8106 mv $tmp/out $ac_file
8114 cat >>$CONFIG_STATUS <<\_ACEOF
8117 # CONFIG_HEADER section.
8120 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
8121 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8123 # ac_d sets the value in "#define NAME VALUE" lines.
8124 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8125 ac_dB
='[ ].*$,\1#\2'
8128 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8129 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8130 ac_uB
='$,\1#\2define\3'
8134 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
8135 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8137 - |
*:- |
*:-:* ) # input from stdin
8139 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8140 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
8141 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8142 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
8143 * ) ac_file_in
=$ac_file.
in ;;
8146 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
8147 echo "$as_me: creating $ac_file" >&6;}
8149 # First look for the input files in the build tree, otherwise in the
8151 ac_file_inputs
=`IFS=:
8152 for f in $ac_file_in; do
8154 -) echo $tmp/stdin ;;
8156 # Absolute (can't be DOS-style, as IFS=:)
8157 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8158 echo "$as_me: error: cannot find input file: $f" >&2;}
8159 { (exit 1); exit 1; }; }
8160 # Do quote $f, to prevent DOS paths from being IFS'd.
8163 if test -f "$f"; then
8166 elif test -f "$srcdir/$f"; then
8171 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8172 echo "$as_me: error: cannot find input file: $f" >&2;}
8173 { (exit 1); exit 1; }; }
8176 done` ||
{ (exit 1); exit 1; }
8177 # Remove the trailing spaces.
8178 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8182 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8183 # `conftest.undefs', that substitutes the proper values into
8184 # config.h.in to produce config.h. The first handles `#define'
8185 # templates, and the second `#undef' templates.
8186 # And first: Protect against being on the right side of a sed subst in
8187 # config.status. Protect against being in an unquoted here document
8189 rm -f conftest.defines conftest.undefs
8190 # Using a here document instead of a string reduces the quoting nightmare.
8191 # Putting comments in sed scripts is not portable.
8193 # `end' is used to avoid that the second main sed command (meant for
8194 # 0-ary CPP macros) applies to n-ary macro definitions.
8195 # See the Autoconf documentation for `clear'.
8196 cat >confdef2sed.
sed <<\_ACEOF
8201 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8203 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8206 # If some macros were called several times there might be several times
8207 # the same #defines, which is useless. Nevertheless, we may not want to
8208 # sort them, since we want the *last* AC-DEFINE to be honored.
8209 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8210 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8211 rm -f confdef2sed.sed
8213 # This sed command replaces #undef with comments. This is necessary, for
8214 # example, in the case of _POSIX_SOURCE, which is predefined and required
8215 # on some systems where configure will not decide to define it.
8216 cat >>conftest.undefs <<\_ACEOF
8217 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8220 # Break up conftest.defines because some shells have a limit on the size
8221 # of here documents, and old seds have small limits too (100 cmds).
8222 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8223 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8224 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8225 echo ' :' >>$CONFIG_STATUS
8227 while grep . conftest.defines >/dev/null
8229 # Write a limited-size here document to $tmp/defines.sed.
8230 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8231 # Speed up: don't consider the non `#define' lines.
8232 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8233 # Work around the forget-to-reset-the-flag bug.
8234 echo 't clr' >>$CONFIG_STATUS
8235 echo ': clr' >>$CONFIG_STATUS
8236 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
8238 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8242 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
8243 rm -f conftest.defines
8244 mv conftest.
tail conftest.defines
8246 rm -f conftest.defines
8247 echo ' fi # grep' >>$CONFIG_STATUS
8248 echo >>$CONFIG_STATUS
8250 # Break up conftest.undefs because some shells have a limit on the size
8251 # of here documents, and old seds have small limits too (100 cmds).
8252 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8254 while grep . conftest.undefs
>/dev
/null
8256 # Write a limited-size here document to $tmp/undefs.sed.
8257 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8258 # Speed up: don't consider the non
`#undef'
8259 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8260 # Work around the forget-to-reset-the-flag bug.
8261 echo 't clr' >>$CONFIG_STATUS
8262 echo ': clr' >>$CONFIG_STATUS
8263 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8265 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8269 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8270 rm -f conftest.undefs
8271 mv conftest.tail conftest.undefs
8273 rm -f conftest.undefs
8275 cat >>$CONFIG_STATUS <<\_ACEOF
8276 # Let's still pretend it is `configure
' which instantiates (i.e., don't
8277 # use $as_me), people would be surprised to read:
8278 # /* config.h. Generated by config.status. */
8279 if test x
"$ac_file" = x-
; then
8280 echo "/* Generated by configure. */" >$tmp/config.h
8282 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8284 cat $tmp/in >>$tmp/config.h
8286 if test x
"$ac_file" != x-
; then
8287 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
8288 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8289 echo "$as_me: $ac_file is unchanged" >&6;}
8291 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
8292 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8293 X"$ac_file" : 'X\(//\)[^/]' \| \
8294 X"$ac_file" : 'X\(//\)$' \| \
8295 X"$ac_file" : 'X\(/\)' \| \
8296 . : '\(.\)' 2>/dev/null ||
8298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8299 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8300 /^X\(\/\/\)$/{ s//\1/; q; }
8301 /^X\(\/\).*/{ s//\1/; q; }
8303 { if $as_mkdir_p; then
8308 while test ! -d "$as_dir"; do
8309 as_dirs
="$as_dir $as_dirs"
8310 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
8311 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8312 X"$as_dir" : 'X\(//\)[^/]' \| \
8313 X"$as_dir" : 'X\(//\)$' \| \
8314 X"$as_dir" : 'X\(/\)' \| \
8315 . : '\(.\)' 2>/dev/null ||
8317 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8318 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8319 /^X\(\/\/\)$/{ s//\1/; q; }
8320 /^X\(\/\).*/{ s//\1/; q; }
8323 test ! -n "$as_dirs" || mkdir
$as_dirs
8324 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8325 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8326 { (exit 1); exit 1; }; }; }
8329 mv $tmp/config.h
$ac_file
8337 cat >>$CONFIG_STATUS <<\_ACEOF
8340 # CONFIG_COMMANDS section.
8342 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
8343 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
8344 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
8345 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
8346 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8347 X"$ac_dest" : 'X\(//\)[^/]' \| \
8348 X"$ac_dest" : 'X\(//\)$' \| \
8349 X"$ac_dest" : 'X\(/\)' \| \
8350 . : '\(.\)' 2>/dev/null ||
8352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8353 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8354 /^X\(\/\/\)$/{ s//\1/; q; }
8355 /^X\(\/\).*/{ s//\1/; q; }
8357 { if $as_mkdir_p; then
8362 while test ! -d "$as_dir"; do
8363 as_dirs
="$as_dir $as_dirs"
8364 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
8365 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8366 X"$as_dir" : 'X\(//\)[^/]' \| \
8367 X"$as_dir" : 'X\(//\)$' \| \
8368 X"$as_dir" : 'X\(/\)' \| \
8369 . : '\(.\)' 2>/dev/null ||
8371 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8372 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8373 /^X\(\/\/\)$/{ s//\1/; q; }
8374 /^X\(\/\).*/{ s//\1/; q; }
8377 test ! -n "$as_dirs" || mkdir
$as_dirs
8378 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8379 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8380 { (exit 1); exit 1; }; }; }
8384 if test "$ac_dir" != .
; then
8385 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8386 # A "../" for each directory in $ac_dir_suffix.
8387 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8389 ac_dir_suffix
= ac_top_builddir
=
8393 .
) # No --srcdir option. We are building in place.
8395 if test -z "$ac_top_builddir"; then
8398 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
8400 [\\/]* | ?
:[\\/]* ) # Absolute path.
8401 ac_srcdir
=$srcdir$ac_dir_suffix;
8402 ac_top_srcdir
=$srcdir ;;
8404 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
8405 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
8408 # Do not use `cd foo && pwd` to compute absolute paths, because
8409 # the directories may not exist.
8411 .
) ac_abs_builddir
="$ac_dir";;
8414 .
) ac_abs_builddir
=`pwd`;;
8415 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
8416 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
8419 case $ac_abs_builddir in
8420 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
8422 case ${ac_top_builddir}.
in
8423 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
8424 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
8425 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
8428 case $ac_abs_builddir in
8429 .
) ac_abs_srcdir
=$ac_srcdir;;
8432 .
) ac_abs_srcdir
=$ac_abs_builddir;;
8433 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
8434 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
8437 case $ac_abs_builddir in
8438 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
8440 case $ac_top_srcdir in
8441 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
8442 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
8443 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
8448 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
8449 echo "$as_me: executing $ac_dest commands" >&6;}
8451 default
) test -z "$CONFIG_HEADERS" ||
echo timestamp
> stamp-h
8452 if test -n "$CONFIG_FILES"; then
8453 if test -n "${with_target_subdir}"; then
8454 # FIXME: We shouldn't need to set ac_file
8456 LD
="${ORIGINAL_LD_FOR_MULTILIBS}"
8457 .
${libiberty_topdir}/config-ml.
in
8464 cat >>$CONFIG_STATUS <<\_ACEOF
8466 { (exit 0); exit 0; }
8468 chmod +x
$CONFIG_STATUS
8469 ac_clean_files
=$ac_clean_files_save
8472 # configure is writing to config.log, and then calls config.status.
8473 # config.status does its own redirection, appending to config.log.
8474 # Unfortunately, on DOS this fails, as config.log is still kept open
8475 # by configure, so config.status won't be able to write to it; its
8476 # output is simply discarded. So we exec the FD to /dev/null,
8477 # effectively closing config.log, so it can be properly (re)opened and
8478 # appended to by config.status. When coming back to configure, we
8479 # need to make the FD available again.
8480 if test "$no_create" != yes; then
8482 ac_config_status_args
=
8483 test "$silent" = yes &&
8484 ac_config_status_args
="$ac_config_status_args --quiet"
8486 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
8488 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8489 # would make configure fail if this is the last instruction.
8490 $ac_cs_success ||
{ (exit 1); exit 1; }