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 datarootdir docdir htmldir 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-multilib build many library versions (default)
851 --enable-install-libiberty Install headers for end users
854 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
855 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
856 --with-target-subdir=SUBDIR Configuring in a subdirectory for target
857 --with-build-subdir=SUBDIR Configuring in a subdirectory for build
858 --with-cross-host=HOST Configuring with a cross compiler
859 --with-newlib Configuring with newlib
861 Some influential environment variables:
862 CC C compiler command
863 CFLAGS C compiler flags
864 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
865 nonstandard directory <lib dir>
866 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
867 headers in a nonstandard directory <include dir>
870 Use these variables to override the choices made by `configure' or to help
871 it to find libraries and programs with nonstandard names/locations.
876 if test "$ac_init_help" = "recursive"; then
877 # If there are subdirs, report their specific --help.
879 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
880 test -d $ac_dir || continue
883 if test "$ac_dir" != .; then
884 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
885 # A "../" for each directory in $ac_dir_suffix.
886 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
888 ac_dir_suffix= ac_top_builddir=
892 .) # No --srcdir option. We are building in place.
894 if test -z "$ac_top_builddir"; then
897 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
899 [\\/]* | ?:[\\/]* ) # Absolute path.
900 ac_srcdir=$srcdir$ac_dir_suffix;
901 ac_top_srcdir=$srcdir ;;
903 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
904 ac_top_srcdir=$ac_top_builddir$srcdir ;;
907 # Do not use `cd foo && pwd` to compute absolute paths, because
908 # the directories may not exist.
910 .) ac_abs_builddir="$ac_dir";;
913 .) ac_abs_builddir=`pwd`;;
914 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
915 *) ac_abs_builddir=`pwd`/"$ac_dir";;
918 case $ac_abs_builddir in
919 .) ac_abs_top_builddir=${ac_top_builddir}.;;
921 case ${ac_top_builddir}. in
922 .) ac_abs_top_builddir=$ac_abs_builddir;;
923 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
924 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
927 case $ac_abs_builddir in
928 .) ac_abs_srcdir=$ac_srcdir;;
931 .) ac_abs_srcdir=$ac_abs_builddir;;
932 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
933 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
936 case $ac_abs_builddir in
937 .) ac_abs_top_srcdir=$ac_top_srcdir;;
939 case $ac_top_srcdir in
940 .) ac_abs_top_srcdir=$ac_abs_builddir;;
941 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
942 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
947 # Check for guested configure; otherwise get Cygnus style configure.
948 if test -f $ac_srcdir/configure.gnu; then
950 $SHELL $ac_srcdir/configure.gnu --help=recursive
951 elif test -f $ac_srcdir/configure; then
953 $SHELL $ac_srcdir/configure --help=recursive
954 elif test -f $ac_srcdir/configure.ac ||
955 test -f $ac_srcdir/configure.in; then
959 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
965 test -n "$ac_init_help" && exit 0
966 if $ac_init_version; then
969 Copyright (C) 2003 Free Software Foundation, Inc.
970 This configure script is free software; the Free Software Foundation
971 gives unlimited permission to copy, distribute and modify it.
977 This file contains any messages produced by compilers while
978 running configure, to aid debugging if configure makes a mistake.
980 It was created by $as_me, which was
981 generated by GNU Autoconf 2.59. Invocation command line was
992 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
993 uname -m = `(uname -m) 2>/dev/null || echo unknown`
994 uname -r = `(uname -r) 2>/dev/null || echo unknown`
995 uname -s = `(uname -s) 2>/dev/null || echo unknown`
996 uname -v = `(uname -v) 2>/dev/null || echo unknown`
998 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
999 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1001 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1002 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1003 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1004 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1005 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1006 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1007 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1015 test -z "$as_dir" && as_dir=.
1016 echo "PATH: $as_dir"
1031 # Keep a trace of the command line.
1032 # Strip out --no-create and --no-recursion so they do not pile up.
1033 # Strip out --silent because we don't want to record it for future runs.
1034 # Also quote any args containing shell meta-characters.
1035 # Make two passes to allow for proper duplicate-argument suppression.
1040 ac_must_keep_next=false
1046 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1047 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1048 | -silent | --silent | --silen | --sile | --sil)
1050 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1051 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1054 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1056 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1057 if test $ac_must_keep_next = true; then
1058 ac_must_keep_next=false # Got value, back to normal.
1061 *=* | --config-cache | -C | -disable-* | --disable-* \
1062 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1063 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1064 | -with-* | --with-* | -without-* | --without-* | --x)
1065 case "$ac_configure_args0 " in
1066 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1069 -* ) ac_must_keep_next=true ;;
1072 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1073 # Get rid of the leading space.
1079 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1080 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1082 # When interrupted or exit'd, cleanup temporary files, and complete
1083 # config.log. We remove comments because anyway the quotes in there
1084 # would cause problems or look ugly.
1085 # WARNING: Be sure not to use single quotes in there, as some shells,
1086 # such as our DU 5.0 friend, will then `close' the trap.
1087 trap 'exit_status=$?
1088 # Save into config.log some information that might help in debugging.
1093 ## ---------------- ##
1094 ## Cache variables. ##
1095 ## ---------------- ##
1098 # The following way of writing the cache mishandles newlines in values,
1101 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1104 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1105 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1109 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1116 ## ----------------- ##
1117 ## Output variables. ##
1118 ## ----------------- ##
1121 for ac_var in $ac_subst_vars
1123 eval ac_val=$`echo $ac_var`
1124 echo "$ac_var='"'"'$ac_val'"'"'"
1128 if test -n "$ac_subst_files"; then
1135 for ac_var in $ac_subst_files
1137 eval ac_val=$`echo $ac_var`
1138 echo "$ac_var='"'"'$ac_val'"'"'"
1143 if test -s confdefs.h; then
1150 sed "/^$/d" confdefs.h | sort
1153 test "$ac_signal" != 0 &&
1154 echo "$as_me: caught signal $ac_signal"
1155 echo "$as_me: exit $exit_status"
1157 rm -f core *.core &&
1158 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1161 for ac_signal in 1 2 13 15; do
1162 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1166 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1167 rm -rf conftest* confdefs.h
1168 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1171 # Predefined preprocessor variables.
1173 cat >>confdefs.h <<_ACEOF
1174 #define PACKAGE_NAME "$PACKAGE_NAME"
1178 cat >>confdefs.h <<_ACEOF
1179 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1183 cat >>confdefs.h <<_ACEOF
1184 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1188 cat >>confdefs.h <<_ACEOF
1189 #define PACKAGE_STRING "$PACKAGE_STRING"
1193 cat >>confdefs.h <<_ACEOF
1194 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1198 # Let the site file select an alternate cache file if it wants to.
1199 # Prefer explicitly selected file to automatically selected ones.
1200 if test -z "$CONFIG_SITE"; then
1201 if test "x$prefix" != xNONE; then
1202 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1204 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1207 for ac_site_file in $CONFIG_SITE; do
1208 if test -r "$ac_site_file"; then
1209 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1210 echo "$as_me: loading site script $ac_site_file" >&6;}
1211 sed 's/^/| /' "$ac_site_file" >&5
1216 if test -r "$cache_file"; then
1217 # Some versions of bash will fail to source /dev/null (special
1218 # files actually), so we avoid doing that.
1219 if test -f "$cache_file"; then
1220 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1221 echo "$as_me: loading cache $cache_file" >&6;}
1223 [\\/]* | ?:[\\/]* ) . $cache_file;;
1224 *) . ./$cache_file;;
1228 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1229 echo "$as_me: creating cache $cache_file" >&6;}
1233 # Check that the precious variables saved in the cache have kept the same
1235 ac_cache_corrupted=false
1236 for ac_var in `(set) 2>&1 |
1237 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1238 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1239 eval ac_new_set=\$ac_env_${ac_var}_set
1240 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1241 eval ac_new_val="\$ac_env_${ac_var}_value"
1242 case $ac_old_set,$ac_new_set in
1244 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1245 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1246 ac_cache_corrupted=: ;;
1248 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1249 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1250 ac_cache_corrupted=: ;;
1253 if test "x$ac_old_val" != "x$ac_new_val"; then
1254 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1255 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1256 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1257 echo "$as_me: former value: $ac_old_val" >&2;}
1258 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1259 echo "$as_me: current value: $ac_new_val" >&2;}
1260 ac_cache_corrupted=:
1263 # Pass precious variables to config.status.
1264 if test "$ac_new_set" = set; then
1266 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1267 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1268 *) ac_arg=$ac_var=$ac_new_val ;;
1270 case " $ac_configure_args " in
1271 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1272 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1276 if $ac_cache_corrupted; then
1277 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1278 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1279 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1280 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1281 { (exit 1); exit 1; }; }
1285 ac_cpp='$CPP $CPPFLAGS'
1286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1310 # This works around the fact that libtool configuration may change LD
1311 # for this particular configuration, but some shells, instead of
1312 # keeping the changes in LD private, export them just because LD is
1313 # exported. We don't use libtool yet, but some day we might, so...
1314 ORIGINAL_LD_FOR_MULTILIBS=$LD
1317 # Check whether --with-target-subdir or --without-target-subdir was given.
1318 if test "${with_target_subdir+set}" = set; then
1319 withval="$with_target_subdir"
1323 # Check whether --with-build-subdir or --without-build-subdir was given.
1324 if test "${with_build_subdir+set}" = set; then
1325 withval="$with_build_subdir"
1329 # Check whether --with-cross-host or --without-cross-host was given.
1330 if test "${with_cross_host+set}" = set; then
1331 withval="$with_cross_host"
1335 # Check whether --with-newlib or --without-newlib was given.
1336 if test "${with_newlib+set}" = set; then
1337 withval="$with_newlib"
1341 if test "${srcdir}" = "."; then
1342 if test -n "${with_build_subdir}"; then
1343 libiberty_topdir="${srcdir}/../.."
1345 elif test -z "${with_target_subdir}"; then
1346 libiberty_topdir="${srcdir}/.."
1348 if test "${with_target_subdir}" != "."; then
1349 libiberty_topdir="${srcdir}/${with_multisrctop}../.."
1351 libiberty_topdir="${srcdir}/${with_multisrctop}.."
1355 libiberty_topdir="${srcdir}/.."
1359 for ac_dir in $libiberty_topdir $srcdir/$libiberty_topdir; do
1360 if test -f $ac_dir/install-sh; then
1362 ac_install_sh="$ac_aux_dir/install-sh -c"
1364 elif test -f $ac_dir/install.sh; then
1366 ac_install_sh="$ac_aux_dir/install.sh -c"
1368 elif test -f $ac_dir/shtool; then
1370 ac_install_sh="$ac_aux_dir/shtool install -c"
1374 if test -z "$ac_aux_dir"; then
1375 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $libiberty_topdir $srcdir/$libiberty_topdir" >&5
1376 echo "$as_me: error: cannot find install-sh or install.sh in $libiberty_topdir $srcdir/$libiberty_topdir" >&2;}
1377 { (exit 1); exit 1; }; }
1379 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1380 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1381 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1385 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1386 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1387 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1388 if test "${enable_maintainer_mode+set}" = set; then
1389 enableval="$enable_maintainer_mode"
1390 maintainer_mode=$enableval
1395 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
1396 echo "${ECHO_T}$maintainer_mode" >&6
1398 if test "$maintainer_mode" = "yes"; then
1406 # Do we have a single-tree copy of texinfo? Even if we do, we can't
1407 # rely on it - libiberty is built before texinfo.
1408 # Extract the first word of "makeinfo", so it can be a program name with args.
1409 set dummy makeinfo; ac_word=$2
1410 echo "$as_me:$LINENO: checking for $ac_word" >&5
1411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1412 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
1413 echo $ECHO_N "(cached) $ECHO_C" >&6
1415 if test -n "$MAKEINFO"; then
1416 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
1418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1422 test -z "$as_dir" && as_dir=.
1423 for ac_exec_ext in '' $ac_executable_extensions; do
1424 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1425 ac_cv_prog_MAKEINFO="makeinfo"
1426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1434 MAKEINFO=$ac_cv_prog_MAKEINFO
1435 if test -n "$MAKEINFO"; then
1436 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
1437 echo "${ECHO_T}$MAKEINFO" >&6
1439 echo "$as_me:$LINENO: result: no" >&5
1440 echo "${ECHO_T}no" >&6
1443 if test "x$MAKEINFO" = "x"; then
1444 MAKEINFO="@echo makeinfo missing; true"
1449 */missing\ makeinfo*)
1451 { echo "$as_me:$LINENO: WARNING:
1452 *** Makeinfo is missing. Info documentation will not be built." >&5
1453 echo "$as_me: WARNING:
1454 *** Makeinfo is missing. Info documentation will not be built." >&2;}
1457 case x"`$MAKEINFO --version | grep 'GNU texinfo'`" in
1459 MAKEINFO="@echo $MAKEINFO is too old, 4.0 or newer required; true"
1461 { echo "$as_me:$LINENO: WARNING:
1462 *** Makeinfo is too old. Info documentation will not be built." >&5
1463 echo "$as_me: WARNING:
1464 *** Makeinfo is too old. Info documentation will not be built." >&2;}
1473 # Extract the first word of "perl", so it can be a program name with args.
1474 set dummy perl; ac_word=$2
1475 echo "$as_me:$LINENO: checking for $ac_word" >&5
1476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1477 if test "${ac_cv_prog_PERL+set}" = set; then
1478 echo $ECHO_N "(cached) $ECHO_C" >&6
1480 if test -n "$PERL"; then
1481 ac_cv_prog_PERL="$PERL" # Let the user override the test.
1483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1487 test -z "$as_dir" && as_dir=.
1488 for ac_exec_ext in '' $ac_executable_extensions; do
1489 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1490 ac_cv_prog_PERL="perl"
1491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1499 PERL=$ac_cv_prog_PERL
1500 if test -n "$PERL"; then
1501 echo "$as_me:$LINENO: result: $PERL" >&5
1502 echo "${ECHO_T}$PERL" >&6
1504 echo "$as_me:$LINENO: result: no" >&5
1505 echo "${ECHO_T}no" >&6
1508 if test x"$PERL" = x""; then
1515 # Make sure we can run config.sub.
1516 $ac_config_sub sun4 >/dev/null 2>&1 ||
1517 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1518 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1519 { (exit 1); exit 1; }; }
1521 echo "$as_me:$LINENO: checking build system type" >&5
1522 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1523 if test "${ac_cv_build+set}" = set; then
1524 echo $ECHO_N "(cached) $ECHO_C" >&6
1526 ac_cv_build_alias=$build_alias
1527 test -z "$ac_cv_build_alias" &&
1528 ac_cv_build_alias=`$ac_config_guess`
1529 test -z "$ac_cv_build_alias" &&
1530 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1531 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1532 { (exit 1); exit 1; }; }
1533 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1534 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1535 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1536 { (exit 1); exit 1; }; }
1539 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1540 echo "${ECHO_T}$ac_cv_build" >&6
1542 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1543 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1544 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1547 echo "$as_me:$LINENO: checking host system type" >&5
1548 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1549 if test "${ac_cv_host+set}" = set; then
1550 echo $ECHO_N "(cached) $ECHO_C" >&6
1552 ac_cv_host_alias=$host_alias
1553 test -z "$ac_cv_host_alias" &&
1554 ac_cv_host_alias=$ac_cv_build_alias
1555 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1556 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1557 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1558 { (exit 1); exit 1; }; }
1561 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1562 echo "${ECHO_T}$ac_cv_host" >&6
1564 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1565 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1566 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1571 if test -n "$ac_tool_prefix"; then
1572 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1573 set dummy ${ac_tool_prefix}ar; ac_word=$2
1574 echo "$as_me:$LINENO: checking for $ac_word" >&5
1575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1576 if test "${ac_cv_prog_AR+set}" = set; then
1577 echo $ECHO_N "(cached) $ECHO_C" >&6
1579 if test -n "$AR"; then
1580 ac_cv_prog_AR="$AR" # Let the user override the test.
1582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1586 test -z "$as_dir" && as_dir=.
1587 for ac_exec_ext in '' $ac_executable_extensions; do
1588 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1589 ac_cv_prog_AR="${ac_tool_prefix}ar"
1590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1599 if test -n "$AR"; then
1600 echo "$as_me:$LINENO: result: $AR" >&5
1601 echo "${ECHO_T}$AR" >&6
1603 echo "$as_me:$LINENO: result: no" >&5
1604 echo "${ECHO_T}no" >&6
1608 if test -z "$ac_cv_prog_AR"; then
1610 # Extract the first word of "ar", so it can be a program name with args.
1611 set dummy ar; ac_word=$2
1612 echo "$as_me:$LINENO: checking for $ac_word" >&5
1613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1614 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
1615 echo $ECHO_N "(cached) $ECHO_C" >&6
1617 if test -n "$ac_ct_AR"; then
1618 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
1620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1624 test -z "$as_dir" && as_dir=.
1625 for ac_exec_ext in '' $ac_executable_extensions; do
1626 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1627 ac_cv_prog_ac_ct_AR="ar"
1628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1636 ac_ct_AR=$ac_cv_prog_ac_ct_AR
1637 if test -n "$ac_ct_AR"; then
1638 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
1639 echo "${ECHO_T}$ac_ct_AR" >&6
1641 echo "$as_me:$LINENO: result: no" >&5
1642 echo "${ECHO_T}no" >&6
1650 if test -n "$ac_tool_prefix"; then
1651 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1652 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1653 echo "$as_me:$LINENO: checking for $ac_word" >&5
1654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1655 if test "${ac_cv_prog_RANLIB+set}" = set; then
1656 echo $ECHO_N "(cached) $ECHO_C" >&6
1658 if test -n "$RANLIB"; then
1659 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1665 test -z "$as_dir" && as_dir=.
1666 for ac_exec_ext in '' $ac_executable_extensions; do
1667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1668 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1677 RANLIB=$ac_cv_prog_RANLIB
1678 if test -n "$RANLIB"; then
1679 echo "$as_me:$LINENO: result: $RANLIB" >&5
1680 echo "${ECHO_T}$RANLIB" >&6
1682 echo "$as_me:$LINENO: result: no" >&5
1683 echo "${ECHO_T}no" >&6
1687 if test -z "$ac_cv_prog_RANLIB"; then
1688 ac_ct_RANLIB=$RANLIB
1689 # Extract the first word of "ranlib", so it can be a program name with args.
1690 set dummy ranlib; ac_word=$2
1691 echo "$as_me:$LINENO: checking for $ac_word" >&5
1692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1693 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1694 echo $ECHO_N "(cached) $ECHO_C" >&6
1696 if test -n "$ac_ct_RANLIB"; then
1697 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1703 test -z "$as_dir" && as_dir=.
1704 for ac_exec_ext in '' $ac_executable_extensions; do
1705 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1706 ac_cv_prog_ac_ct_RANLIB="ranlib"
1707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1713 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1716 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
1717 if test -n "$ac_ct_RANLIB"; then
1718 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
1719 echo "${ECHO_T}$ac_ct_RANLIB" >&6
1721 echo "$as_me:$LINENO: result: no" >&5
1722 echo "${ECHO_T}no" >&6
1725 RANLIB=$ac_ct_RANLIB
1727 RANLIB="$ac_cv_prog_RANLIB"
1731 # Add --enable-multilib to configure.
1732 # Default to --enable-multilib
1733 # Check whether --enable-multilib or --disable-multilib was given.
1734 if test "${enable_multilib+set}" = set; then
1735 enableval="$enable_multilib"
1736 case "$enableval" in
1737 yes) multilib=yes ;;
1739 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1740 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1741 { (exit 1); exit 1; }; } ;;
1747 # Even if the default multilib is not a cross compilation,
1748 # it may be that some of the other multilibs are.
1749 if test $cross_compiling = no && test $multilib = yes \
1750 && test "x${with_multisubdir}" != x ; then
1751 cross_compiling=maybe
1756 ac_cpp='$CPP $CPPFLAGS'
1757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1760 if test -n "$ac_tool_prefix"; then
1761 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1762 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1763 echo "$as_me:$LINENO: checking for $ac_word" >&5
1764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1765 if test "${ac_cv_prog_CC+set}" = set; then
1766 echo $ECHO_N "(cached) $ECHO_C" >&6
1768 if test -n "$CC"; then
1769 ac_cv_prog_CC="$CC" # Let the user override the test.
1771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1775 test -z "$as_dir" && as_dir=.
1776 for ac_exec_ext in '' $ac_executable_extensions; do
1777 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1778 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1788 if test -n "$CC"; then
1789 echo "$as_me:$LINENO: result: $CC" >&5
1790 echo "${ECHO_T}$CC" >&6
1792 echo "$as_me:$LINENO: result: no" >&5
1793 echo "${ECHO_T}no" >&6
1797 if test -z "$ac_cv_prog_CC"; then
1799 # Extract the first word of "gcc", so it can be a program name with args.
1800 set dummy gcc; ac_word=$2
1801 echo "$as_me:$LINENO: checking for $ac_word" >&5
1802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1803 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1804 echo $ECHO_N "(cached) $ECHO_C" >&6
1806 if test -n "$ac_ct_CC"; then
1807 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1813 test -z "$as_dir" && as_dir=.
1814 for ac_exec_ext in '' $ac_executable_extensions; do
1815 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1816 ac_cv_prog_ac_ct_CC="gcc"
1817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1825 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1826 if test -n "$ac_ct_CC"; then
1827 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1828 echo "${ECHO_T}$ac_ct_CC" >&6
1830 echo "$as_me:$LINENO: result: no" >&5
1831 echo "${ECHO_T}no" >&6
1839 if test -z "$CC"; then
1840 if test -n "$ac_tool_prefix"; then
1841 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1842 set dummy ${ac_tool_prefix}cc; ac_word=$2
1843 echo "$as_me:$LINENO: checking for $ac_word" >&5
1844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1845 if test "${ac_cv_prog_CC+set}" = set; then
1846 echo $ECHO_N "(cached) $ECHO_C" >&6
1848 if test -n "$CC"; then
1849 ac_cv_prog_CC="$CC" # Let the user override the test.
1851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1855 test -z "$as_dir" && as_dir=.
1856 for ac_exec_ext in '' $ac_executable_extensions; do
1857 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1858 ac_cv_prog_CC="${ac_tool_prefix}cc"
1859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1868 if test -n "$CC"; then
1869 echo "$as_me:$LINENO: result: $CC" >&5
1870 echo "${ECHO_T}$CC" >&6
1872 echo "$as_me:$LINENO: result: no" >&5
1873 echo "${ECHO_T}no" >&6
1877 if test -z "$ac_cv_prog_CC"; then
1879 # Extract the first word of "cc", so it can be a program name with args.
1880 set dummy cc; ac_word=$2
1881 echo "$as_me:$LINENO: checking for $ac_word" >&5
1882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1883 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1884 echo $ECHO_N "(cached) $ECHO_C" >&6
1886 if test -n "$ac_ct_CC"; then
1887 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1893 test -z "$as_dir" && as_dir=.
1894 for ac_exec_ext in '' $ac_executable_extensions; do
1895 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1896 ac_cv_prog_ac_ct_CC="cc"
1897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1905 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1906 if test -n "$ac_ct_CC"; then
1907 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1908 echo "${ECHO_T}$ac_ct_CC" >&6
1910 echo "$as_me:$LINENO: result: no" >&5
1911 echo "${ECHO_T}no" >&6
1920 if test -z "$CC"; then
1921 # Extract the first word of "cc", so it can be a program name with args.
1922 set dummy cc; ac_word=$2
1923 echo "$as_me:$LINENO: checking for $ac_word" >&5
1924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1925 if test "${ac_cv_prog_CC+set}" = set; then
1926 echo $ECHO_N "(cached) $ECHO_C" >&6
1928 if test -n "$CC"; then
1929 ac_cv_prog_CC="$CC" # Let the user override the test.
1932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1936 test -z "$as_dir" && as_dir=.
1937 for ac_exec_ext in '' $ac_executable_extensions; do
1938 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1939 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1940 ac_prog_rejected=yes
1944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1950 if test $ac_prog_rejected = yes; then
1951 # We found a bogon in the path, so make sure we never use it.
1952 set dummy $ac_cv_prog_CC
1954 if test $# != 0; then
1955 # We chose a different compiler from the bogus one.
1956 # However, it has the same basename, so the bogon will be chosen
1957 # first if we set CC to just the basename; use the full file name.
1959 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1965 if test -n "$CC"; then
1966 echo "$as_me:$LINENO: result: $CC" >&5
1967 echo "${ECHO_T}$CC" >&6
1969 echo "$as_me:$LINENO: result: no" >&5
1970 echo "${ECHO_T}no" >&6
1974 if test -z "$CC"; then
1975 if test -n "$ac_tool_prefix"; then
1978 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1979 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1980 echo "$as_me:$LINENO: checking for $ac_word" >&5
1981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1982 if test "${ac_cv_prog_CC+set}" = set; then
1983 echo $ECHO_N "(cached) $ECHO_C" >&6
1985 if test -n "$CC"; then
1986 ac_cv_prog_CC="$CC" # Let the user override the test.
1988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1992 test -z "$as_dir" && as_dir=.
1993 for ac_exec_ext in '' $ac_executable_extensions; do
1994 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1995 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2005 if test -n "$CC"; then
2006 echo "$as_me:$LINENO: result: $CC" >&5
2007 echo "${ECHO_T}$CC" >&6
2009 echo "$as_me:$LINENO: result: no" >&5
2010 echo "${ECHO_T}no" >&6
2013 test -n "$CC" && break
2016 if test -z "$CC"; then
2020 # Extract the first word of "$ac_prog", so it can be a program name with args.
2021 set dummy $ac_prog; ac_word=$2
2022 echo "$as_me:$LINENO: checking for $ac_word" >&5
2023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2024 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2025 echo $ECHO_N "(cached) $ECHO_C" >&6
2027 if test -n "$ac_ct_CC"; then
2028 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2034 test -z "$as_dir" && as_dir=.
2035 for ac_exec_ext in '' $ac_executable_extensions; do
2036 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2037 ac_cv_prog_ac_ct_CC="$ac_prog"
2038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2046 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2047 if test -n "$ac_ct_CC"; then
2048 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2049 echo "${ECHO_T}$ac_ct_CC" >&6
2051 echo "$as_me:$LINENO: result: no" >&5
2052 echo "${ECHO_T}no" >&6
2055 test -n "$ac_ct_CC" && break
2064 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2065 See \`config.log' for more details." >&5
2066 echo "$as_me: error: no acceptable C compiler found in \$PATH
2067 See \`config.log' for more details." >&2;}
2068 { (exit 1); exit 1; }; }
2070 # Provide some information about the compiler.
2071 echo "$as_me:$LINENO:" \
2072 "checking for C compiler version" >&5
2073 ac_compiler=`set X $ac_compile; echo $2`
2074 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2075 (eval $ac_compiler --version </dev/null >&5) 2>&5
2077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2078 (exit $ac_status); }
2079 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2080 (eval $ac_compiler -v </dev/null >&5) 2>&5
2082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2083 (exit $ac_status); }
2084 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2085 (eval $ac_compiler -V </dev/null >&5) 2>&5
2087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2088 (exit $ac_status); }
2090 cat >conftest.$ac_ext <<_ACEOF
2093 cat confdefs.h >>conftest.$ac_ext
2094 cat >>conftest.$ac_ext <<_ACEOF
2095 /* end confdefs.h. */
2106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2107 (eval $ac_link) 2>&5
2109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2110 (exit $ac_status); }; then
2116 if test x$gcc_no_link = xyes; then
2117 # Setting cross_compile will disable run tests; it will
2118 # also disable AC_CHECK_FILE but that's generally
2119 # correct if we can't link.
2123 cat >conftest.$ac_ext <<_ACEOF
2126 cat confdefs.h >>conftest.$ac_ext
2127 cat >>conftest.$ac_ext <<_ACEOF
2128 /* end confdefs.h. */
2138 ac_clean_files_save=$ac_clean_files
2139 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2140 # Try to create an executable without -o first, disregard a.out.
2141 # It will help us diagnose broken compilers, and finding out an intuition
2143 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2144 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2145 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2146 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2147 (eval $ac_link_default) 2>&5
2149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150 (exit $ac_status); }; then
2151 # Find the output, starting from the most likely. This scheme is
2152 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2155 # Be careful to initialize this variable, since it used to be cached.
2156 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2158 # b.out is created by i960 compilers.
2159 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2161 test -f "$ac_file" || continue
2163 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2166 # This is the source file.
2169 # We found the default executable, but exeext='' is most
2173 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2174 # FIXME: I believe we export ac_cv_exeext for Libtool,
2175 # but it would be cool to find out if it's true. Does anybody
2176 # maintain Libtool? --akim.
2184 echo "$as_me: failed program was:" >&5
2185 sed 's/^/| /' conftest.$ac_ext >&5
2187 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2188 See \`config.log' for more details." >&5
2189 echo "$as_me: error: C compiler cannot create executables
2190 See \`config.log' for more details." >&2;}
2191 { (exit 77); exit 77; }; }
2194 ac_exeext=$ac_cv_exeext
2195 echo "$as_me:$LINENO: result: $ac_file" >&5
2196 echo "${ECHO_T}$ac_file" >&6
2198 # Check the compiler produces executables we can run. If not, either
2199 # the compiler is broken, or we cross compile.
2200 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2201 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2202 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2203 # If not cross compiling, check that we can run a simple program.
2204 if test "$cross_compiling" != yes; then
2205 if { ac_try='./$ac_file'
2206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210 (exit $ac_status); }; }; then
2213 if test "$cross_compiling" = maybe; then
2216 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2217 If you meant to cross compile, use \`--host'.
2218 See \`config.log' for more details." >&5
2219 echo "$as_me: error: cannot run C compiled programs.
2220 If you meant to cross compile, use \`--host'.
2221 See \`config.log' for more details." >&2;}
2222 { (exit 1); exit 1; }; }
2226 echo "$as_me:$LINENO: result: yes" >&5
2227 echo "${ECHO_T}yes" >&6
2229 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2230 ac_clean_files=$ac_clean_files_save
2231 # Check the compiler produces executables we can run. If not, either
2232 # the compiler is broken, or we cross compile.
2233 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2234 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2235 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2236 echo "${ECHO_T}$cross_compiling" >&6
2238 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2239 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2241 (eval $ac_link) 2>&5
2243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244 (exit $ac_status); }; then
2245 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2246 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2247 # work properly (i.e., refer to `conftest.exe'), while it won't with
2249 for ac_file in conftest.exe conftest conftest.*; do
2250 test -f "$ac_file" || continue
2252 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2253 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2260 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2261 See \`config.log' for more details." >&5
2262 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2263 See \`config.log' for more details." >&2;}
2264 { (exit 1); exit 1; }; }
2267 rm -f conftest$ac_cv_exeext
2268 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2269 echo "${ECHO_T}$ac_cv_exeext" >&6
2271 rm -f conftest.$ac_ext
2272 EXEEXT=$ac_cv_exeext
2275 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2276 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2277 if test "${ac_cv_objext+set}" = set; then
2278 echo $ECHO_N "(cached) $ECHO_C" >&6
2280 cat >conftest.$ac_ext <<_ACEOF
2283 cat confdefs.h >>conftest.$ac_ext
2284 cat >>conftest.$ac_ext <<_ACEOF
2285 /* end confdefs.h. */
2295 rm -f conftest.o conftest.obj
2296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2297 (eval $ac_compile) 2>&5
2299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2300 (exit $ac_status); }; then
2301 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2303 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2304 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2309 echo "$as_me: failed program was:" >&5
2310 sed 's/^/| /' conftest.$ac_ext >&5
2312 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2313 See \`config.log' for more details." >&5
2314 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2315 See \`config.log' for more details." >&2;}
2316 { (exit 1); exit 1; }; }
2319 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2321 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2322 echo "${ECHO_T}$ac_cv_objext" >&6
2323 OBJEXT=$ac_cv_objext
2325 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2326 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2327 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2328 echo $ECHO_N "(cached) $ECHO_C" >&6
2330 cat >conftest.$ac_ext <<_ACEOF
2333 cat confdefs.h >>conftest.$ac_ext
2334 cat >>conftest.$ac_ext <<_ACEOF
2335 /* end confdefs.h. */
2348 rm -f conftest.$ac_objext
2349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2350 (eval $ac_compile) 2>conftest.er1
2352 grep -v '^ *+' conftest.er1 >conftest.err
2354 cat conftest.err >&5
2355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356 (exit $ac_status); } &&
2357 { ac_try='test -z "$ac_c_werror_flag"
2358 || test ! -s conftest.err'
2359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); }; } &&
2364 { ac_try='test -s conftest.$ac_objext'
2365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369 (exit $ac_status); }; }; then
2372 echo "$as_me: failed program was:" >&5
2373 sed 's/^/| /' conftest.$ac_ext >&5
2377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2378 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2381 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2382 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2383 GCC=`test $ac_compiler_gnu = yes && echo yes`
2384 ac_test_CFLAGS=${CFLAGS+set}
2385 ac_save_CFLAGS=$CFLAGS
2387 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2388 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2389 if test "${ac_cv_prog_cc_g+set}" = set; then
2390 echo $ECHO_N "(cached) $ECHO_C" >&6
2392 cat >conftest.$ac_ext <<_ACEOF
2395 cat confdefs.h >>conftest.$ac_ext
2396 cat >>conftest.$ac_ext <<_ACEOF
2397 /* end confdefs.h. */
2407 rm -f conftest.$ac_objext
2408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2409 (eval $ac_compile) 2>conftest.er1
2411 grep -v '^ *+' conftest.er1 >conftest.err
2413 cat conftest.err >&5
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); } &&
2416 { ac_try='test -z "$ac_c_werror_flag"
2417 || test ! -s conftest.err'
2418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422 (exit $ac_status); }; } &&
2423 { ac_try='test -s conftest.$ac_objext'
2424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428 (exit $ac_status); }; }; then
2431 echo "$as_me: failed program was:" >&5
2432 sed 's/^/| /' conftest.$ac_ext >&5
2436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2438 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2439 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2440 if test "$ac_test_CFLAGS" = set; then
2441 CFLAGS=$ac_save_CFLAGS
2442 elif test $ac_cv_prog_cc_g = yes; then
2443 if test "$GCC" = yes; then
2449 if test "$GCC" = yes; then
2455 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2456 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2457 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2458 echo $ECHO_N "(cached) $ECHO_C" >&6
2460 ac_cv_prog_cc_stdc=no
2462 cat >conftest.$ac_ext <<_ACEOF
2465 cat confdefs.h >>conftest.$ac_ext
2466 cat >>conftest.$ac_ext <<_ACEOF
2467 /* end confdefs.h. */
2470 #include <sys/types.h>
2471 #include <sys/stat.h>
2472 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2473 struct buf { int x; };
2474 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2475 static char *e (p, i)
2481 static char *f (char * (*g) (char **, int), char **p, ...)
2486 s = g (p, va_arg (v,int));
2491 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2492 function prototypes and stuff, but not '\xHH' hex character constants.
2493 These don't provoke an error unfortunately, instead are silently treated
2494 as 'x'. The following induces an error, until -std1 is added to get
2495 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2496 array size at least. It's necessary to write '\x00'==0 to get something
2497 that's true only with -std1. */
2498 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2500 int test (int i, double x);
2501 struct s1 {int (*f) (int a);};
2502 struct s2 {int (*f) (double a);};
2503 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2509 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2514 # Don't try gcc -ansi; that turns off useful extensions and
2515 # breaks some systems' header files.
2516 # AIX -qlanglvl=ansi
2517 # Ultrix and OSF/1 -std1
2518 # HP-UX 10.20 and later -Ae
2519 # HP-UX older versions -Aa -D_HPUX_SOURCE
2520 # SVR4 -Xc -D__EXTENSIONS__
2521 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2523 CC="$ac_save_CC $ac_arg"
2524 rm -f conftest.$ac_objext
2525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2526 (eval $ac_compile) 2>conftest.er1
2528 grep -v '^ *+' conftest.er1 >conftest.err
2530 cat conftest.err >&5
2531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532 (exit $ac_status); } &&
2533 { ac_try='test -z "$ac_c_werror_flag"
2534 || test ! -s conftest.err'
2535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 (exit $ac_status); }; } &&
2540 { ac_try='test -s conftest.$ac_objext'
2541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545 (exit $ac_status); }; }; then
2546 ac_cv_prog_cc_stdc=$ac_arg
2549 echo "$as_me: failed program was:" >&5
2550 sed 's/^/| /' conftest.$ac_ext >&5
2553 rm -f conftest.err conftest.$ac_objext
2555 rm -f conftest.$ac_ext conftest.$ac_objext
2560 case "x$ac_cv_prog_cc_stdc" in
2562 echo "$as_me:$LINENO: result: none needed" >&5
2563 echo "${ECHO_T}none needed" >&6 ;;
2565 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2566 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2567 CC="$CC $ac_cv_prog_cc_stdc" ;;
2570 # Some people use a C++ compiler to compile C. Since we use `exit',
2571 # in C++ we need to declare it. In case someone uses the same compiler
2572 # for both compiling C and C++ we need to have the C++ compiler decide
2573 # the declaration of exit, since it's the most demanding environment.
2574 cat >conftest.$ac_ext <<_ACEOF
2579 rm -f conftest.$ac_objext
2580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2581 (eval $ac_compile) 2>conftest.er1
2583 grep -v '^ *+' conftest.er1 >conftest.err
2585 cat conftest.err >&5
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); } &&
2588 { ac_try='test -z "$ac_c_werror_flag"
2589 || test ! -s conftest.err'
2590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594 (exit $ac_status); }; } &&
2595 { ac_try='test -s conftest.$ac_objext'
2596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600 (exit $ac_status); }; }; then
2601 for ac_declaration in \
2603 'extern "C" void std::exit (int) throw (); using std::exit;' \
2604 'extern "C" void std::exit (int); using std::exit;' \
2605 'extern "C" void exit (int) throw ();' \
2606 'extern "C" void exit (int);' \
2609 cat >conftest.$ac_ext <<_ACEOF
2612 cat confdefs.h >>conftest.$ac_ext
2613 cat >>conftest.$ac_ext <<_ACEOF
2614 /* end confdefs.h. */
2625 rm -f conftest.$ac_objext
2626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2627 (eval $ac_compile) 2>conftest.er1
2629 grep -v '^ *+' conftest.er1 >conftest.err
2631 cat conftest.err >&5
2632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633 (exit $ac_status); } &&
2634 { ac_try='test -z "$ac_c_werror_flag"
2635 || test ! -s conftest.err'
2636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640 (exit $ac_status); }; } &&
2641 { ac_try='test -s conftest.$ac_objext'
2642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646 (exit $ac_status); }; }; then
2649 echo "$as_me: failed program was:" >&5
2650 sed 's/^/| /' conftest.$ac_ext >&5
2654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2655 cat >conftest.$ac_ext <<_ACEOF
2658 cat confdefs.h >>conftest.$ac_ext
2659 cat >>conftest.$ac_ext <<_ACEOF
2660 /* end confdefs.h. */
2670 rm -f conftest.$ac_objext
2671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2672 (eval $ac_compile) 2>conftest.er1
2674 grep -v '^ *+' conftest.er1 >conftest.err
2676 cat conftest.err >&5
2677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678 (exit $ac_status); } &&
2679 { ac_try='test -z "$ac_c_werror_flag"
2680 || test ! -s conftest.err'
2681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685 (exit $ac_status); }; } &&
2686 { ac_try='test -s conftest.$ac_objext'
2687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691 (exit $ac_status); }; }; then
2694 echo "$as_me: failed program was:" >&5
2695 sed 's/^/| /' conftest.$ac_ext >&5
2698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2701 if test -n "$ac_declaration"; then
2702 echo '#ifdef __cplusplus' >>confdefs.h
2703 echo $ac_declaration >>confdefs.h
2704 echo '#endif' >>confdefs.h
2708 echo "$as_me: failed program was:" >&5
2709 sed 's/^/| /' conftest.$ac_ext >&5
2712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2714 ac_cpp='$CPP $CPPFLAGS'
2715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2720 ac_cpp='$CPP $CPPFLAGS'
2721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2724 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2725 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2726 # On Suns, sometimes $CPP names a directory.
2727 if test -n "$CPP" && test -d "$CPP"; then
2730 if test -z "$CPP"; then
2731 if test "${ac_cv_prog_CPP+set}" = set; then
2732 echo $ECHO_N "(cached) $ECHO_C" >&6
2734 # Double quotes because CPP needs to be expanded
2735 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2738 for ac_c_preproc_warn_flag in '' yes
2740 # Use a header file that comes with gcc, so configuring glibc
2741 # with a fresh cross-compiler works.
2742 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2743 # <limits.h> exists even on freestanding compilers.
2744 # On the NeXT, cc -E runs the code through the compiler's parser,
2745 # not just through cpp. "Syntax error" is here to catch this case.
2746 cat >conftest.$ac_ext <<_ACEOF
2749 cat confdefs.h >>conftest.$ac_ext
2750 cat >>conftest.$ac_ext <<_ACEOF
2751 /* end confdefs.h. */
2753 # include <limits.h>
2755 # include <assert.h>
2759 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2760 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2762 grep -v '^ *+' conftest.er1 >conftest.err
2764 cat conftest.err >&5
2765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766 (exit $ac_status); } >/dev/null; then
2767 if test -s conftest.err; then
2768 ac_cpp_err=$ac_c_preproc_warn_flag
2769 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2776 if test -z "$ac_cpp_err"; then
2779 echo "$as_me: failed program was:" >&5
2780 sed 's/^/| /' conftest.$ac_ext >&5
2782 # Broken: fails on valid input.
2785 rm -f conftest.err conftest.$ac_ext
2787 # OK, works on sane cases. Now check whether non-existent headers
2788 # can be detected and how.
2789 cat >conftest.$ac_ext <<_ACEOF
2792 cat confdefs.h >>conftest.$ac_ext
2793 cat >>conftest.$ac_ext <<_ACEOF
2794 /* end confdefs.h. */
2795 #include <ac_nonexistent.h>
2797 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2798 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2800 grep -v '^ *+' conftest.er1 >conftest.err
2802 cat conftest.err >&5
2803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804 (exit $ac_status); } >/dev/null; then
2805 if test -s conftest.err; then
2806 ac_cpp_err=$ac_c_preproc_warn_flag
2807 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2814 if test -z "$ac_cpp_err"; then
2815 # Broken: success on invalid input.
2818 echo "$as_me: failed program was:" >&5
2819 sed 's/^/| /' conftest.$ac_ext >&5
2821 # Passes both tests.
2825 rm -f conftest.err conftest.$ac_ext
2828 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2829 rm -f conftest.err conftest.$ac_ext
2830 if $ac_preproc_ok; then
2842 echo "$as_me:$LINENO: result: $CPP" >&5
2843 echo "${ECHO_T}$CPP" >&6
2845 for ac_c_preproc_warn_flag in '' yes
2847 # Use a header file that comes with gcc, so configuring glibc
2848 # with a fresh cross-compiler works.
2849 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2850 # <limits.h> exists even on freestanding compilers.
2851 # On the NeXT, cc -E runs the code through the compiler's parser,
2852 # not just through cpp. "Syntax error" is here to catch this case.
2853 cat >conftest.$ac_ext <<_ACEOF
2856 cat confdefs.h >>conftest.$ac_ext
2857 cat >>conftest.$ac_ext <<_ACEOF
2858 /* end confdefs.h. */
2860 # include <limits.h>
2862 # include <assert.h>
2866 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2867 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2869 grep -v '^ *+' conftest.er1 >conftest.err
2871 cat conftest.err >&5
2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 (exit $ac_status); } >/dev/null; then
2874 if test -s conftest.err; then
2875 ac_cpp_err=$ac_c_preproc_warn_flag
2876 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2883 if test -z "$ac_cpp_err"; then
2886 echo "$as_me: failed program was:" >&5
2887 sed 's/^/| /' conftest.$ac_ext >&5
2889 # Broken: fails on valid input.
2892 rm -f conftest.err conftest.$ac_ext
2894 # OK, works on sane cases. Now check whether non-existent headers
2895 # can be detected and how.
2896 cat >conftest.$ac_ext <<_ACEOF
2899 cat confdefs.h >>conftest.$ac_ext
2900 cat >>conftest.$ac_ext <<_ACEOF
2901 /* end confdefs.h. */
2902 #include <ac_nonexistent.h>
2904 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2905 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2907 grep -v '^ *+' conftest.er1 >conftest.err
2909 cat conftest.err >&5
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); } >/dev/null; then
2912 if test -s conftest.err; then
2913 ac_cpp_err=$ac_c_preproc_warn_flag
2914 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2921 if test -z "$ac_cpp_err"; then
2922 # Broken: success on invalid input.
2925 echo "$as_me: failed program was:" >&5
2926 sed 's/^/| /' conftest.$ac_ext >&5
2928 # Passes both tests.
2932 rm -f conftest.err conftest.$ac_ext
2935 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2936 rm -f conftest.err conftest.$ac_ext
2937 if $ac_preproc_ok; then
2940 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2941 See \`config.log' for more details." >&5
2942 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2943 See \`config.log' for more details." >&2;}
2944 { (exit 1); exit 1; }; }
2948 ac_cpp='$CPP $CPPFLAGS'
2949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2954 ac_c_preproc_warn_flag=yes
2956 # Warn C++ incompatibilities if supported.
2958 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wc++-compat" >&5
2959 echo $ECHO_N "checking whether ${CC} accepts -Wc++-compat... $ECHO_C" >&6
2960 if test "${ac_cv_prog_cc_w_cxx_compat+set}" = set; then
2961 echo $ECHO_N "(cached) $ECHO_C" >&6
2963 save_CFLAGS="$CFLAGS"
2964 CFLAGS="-Wc++-compat"
2965 cat >conftest.$ac_ext <<_ACEOF
2968 cat confdefs.h >>conftest.$ac_ext
2969 cat >>conftest.$ac_ext <<_ACEOF
2970 /* end confdefs.h. */
2973 rm -f conftest.$ac_objext
2974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2975 (eval $ac_compile) 2>conftest.er1
2977 grep -v '^ *+' conftest.er1 >conftest.err
2979 cat conftest.err >&5
2980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981 (exit $ac_status); } &&
2982 { ac_try='test -z "$ac_c_werror_flag"
2983 || test ! -s conftest.err'
2984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988 (exit $ac_status); }; } &&
2989 { ac_try='test -s conftest.$ac_objext'
2990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994 (exit $ac_status); }; }; then
2995 ac_cv_prog_cc_w_cxx_compat=yes
2997 echo "$as_me: failed program was:" >&5
2998 sed 's/^/| /' conftest.$ac_ext >&5
3000 ac_cv_prog_cc_w_cxx_compat=no
3002 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3003 CFLAGS="$save_CFLAGS"
3006 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_cxx_compat" >&5
3007 echo "${ECHO_T}$ac_cv_prog_cc_w_cxx_compat" >&6
3010 if test x$GCC = xyes; then
3011 ac_libiberty_warn_cflags='-W -Wall -pedantic -Wwrite-strings -Wstrict-prototypes'
3013 if test $ac_cv_prog_cc_w_cxx_compat = yes ; then
3014 ac_libiberty_warn_cflags="${ac_libiberty_warn_cflags} -Wc++-compat"
3018 if test "x$CC" != xcc; then
3019 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3020 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
3022 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3023 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
3025 set dummy $CC; ac_cc=`echo $2 |
3026 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3027 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
3028 echo $ECHO_N "(cached) $ECHO_C" >&6
3030 cat >conftest.$ac_ext <<_ACEOF
3033 cat confdefs.h >>conftest.$ac_ext
3034 cat >>conftest.$ac_ext <<_ACEOF
3035 /* end confdefs.h. */
3045 # Make sure it works both with $CC and with simple cc.
3046 # We do the test twice because some compilers refuse to overwrite an
3047 # existing .o file with -o, though they will create one.
3048 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3049 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053 (exit $ac_status); } &&
3054 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); };
3060 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3061 if test "x$CC" != xcc; then
3062 # Test first that cc exists at all.
3063 if { ac_try='cc -c conftest.$ac_ext >&5'
3064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068 (exit $ac_status); }; }; then
3069 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3070 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074 (exit $ac_status); } &&
3075 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 (exit $ac_status); };
3084 # cc exists but doesn't like -o.
3085 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3090 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3095 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3096 echo "$as_me:$LINENO: result: yes" >&5
3097 echo "${ECHO_T}yes" >&6
3099 echo "$as_me:$LINENO: result: no" >&5
3100 echo "${ECHO_T}no" >&6
3102 cat >>confdefs.h <<\_ACEOF
3103 #define NO_MINUS_C_MINUS_O 1
3108 # autoconf is lame and doesn't give us any substitution variable for this.
3109 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
3110 NO_MINUS_C_MINUS_O=yes
3112 OUTPUT_OPTION='-o $@'
3117 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3118 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3119 if test "${ac_cv_c_const+set}" = set; then
3120 echo $ECHO_N "(cached) $ECHO_C" >&6
3122 cat >conftest.$ac_ext <<_ACEOF
3125 cat confdefs.h >>conftest.$ac_ext
3126 cat >>conftest.$ac_ext <<_ACEOF
3127 /* end confdefs.h. */
3132 /* FIXME: Include the comments suggested by Paul. */
3134 /* Ultrix mips cc rejects this. */
3135 typedef int charset[2];
3137 /* SunOS 4.1.1 cc rejects this. */
3138 char const *const *ccp;
3140 /* NEC SVR4.0.2 mips cc rejects this. */
3141 struct point {int x, y;};
3142 static struct point const zero = {0,0};
3143 /* AIX XL C 1.02.0.0 rejects this.
3144 It does not let you subtract one const X* pointer from another in
3145 an arm of an if-expression whose if-part is not a constant
3147 const char *g = "string";
3148 ccp = &g + (g ? g-g : 0);
3149 /* HPUX 7.0 cc rejects these. */
3152 ccp = (char const *const *) p;
3153 { /* SCO 3.2v4 cc rejects this. */
3155 char const *s = 0 ? (char *) 0 : (char const *) 0;
3159 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3161 const int *foo = &x[0];
3164 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3165 typedef const int *iptr;
3169 { /* AIX XL C 1.02.0.0 rejects this saying
3170 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3171 struct s { int j; const int *ap[3]; };
3172 struct s *b; b->j = 5;
3174 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3183 rm -f conftest.$ac_objext
3184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3185 (eval $ac_compile) 2>conftest.er1
3187 grep -v '^ *+' conftest.er1 >conftest.err
3189 cat conftest.err >&5
3190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191 (exit $ac_status); } &&
3192 { ac_try='test -z "$ac_c_werror_flag"
3193 || test ! -s conftest.err'
3194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198 (exit $ac_status); }; } &&
3199 { ac_try='test -s conftest.$ac_objext'
3200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204 (exit $ac_status); }; }; then
3207 echo "$as_me: failed program was:" >&5
3208 sed 's/^/| /' conftest.$ac_ext >&5
3212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3214 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3215 echo "${ECHO_T}$ac_cv_c_const" >&6
3216 if test $ac_cv_c_const = no; then
3218 cat >>confdefs.h <<\_ACEOF
3224 echo "$as_me:$LINENO: checking for inline" >&5
3225 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3226 if test "${ac_cv_c_inline+set}" = set; then
3227 echo $ECHO_N "(cached) $ECHO_C" >&6
3230 for ac_kw in inline __inline__ __inline; do
3231 cat >conftest.$ac_ext <<_ACEOF
3234 cat confdefs.h >>conftest.$ac_ext
3235 cat >>conftest.$ac_ext <<_ACEOF
3236 /* end confdefs.h. */
3239 static $ac_kw foo_t static_foo () {return 0; }
3240 $ac_kw foo_t foo () {return 0; }
3244 rm -f conftest.$ac_objext
3245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3246 (eval $ac_compile) 2>conftest.er1
3248 grep -v '^ *+' conftest.er1 >conftest.err
3250 cat conftest.err >&5
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); } &&
3253 { ac_try='test -z "$ac_c_werror_flag"
3254 || test ! -s conftest.err'
3255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); }; } &&
3260 { ac_try='test -s conftest.$ac_objext'
3261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265 (exit $ac_status); }; }; then
3266 ac_cv_c_inline=$ac_kw; break
3268 echo "$as_me: failed program was:" >&5
3269 sed 's/^/| /' conftest.$ac_ext >&5
3272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3276 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3277 echo "${ECHO_T}$ac_cv_c_inline" >&6
3280 case $ac_cv_c_inline in
3283 case $ac_cv_c_inline in
3285 *) ac_val=$ac_cv_c_inline;;
3287 cat >>confdefs.h <<_ACEOF
3289 #define inline $ac_val
3295 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3296 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3297 if test "${ac_cv_c_bigendian+set}" = set; then
3298 echo $ECHO_N "(cached) $ECHO_C" >&6
3300 # See if sys/param.h defines the BYTE_ORDER macro.
3301 cat >conftest.$ac_ext <<_ACEOF
3304 cat confdefs.h >>conftest.$ac_ext
3305 cat >>conftest.$ac_ext <<_ACEOF
3306 /* end confdefs.h. */
3307 #include <sys/types.h>
3308 #include <sys/param.h>
3313 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3321 rm -f conftest.$ac_objext
3322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3323 (eval $ac_compile) 2>conftest.er1
3325 grep -v '^ *+' conftest.er1 >conftest.err
3327 cat conftest.err >&5
3328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329 (exit $ac_status); } &&
3330 { ac_try='test -z "$ac_c_werror_flag"
3331 || test ! -s conftest.err'
3332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336 (exit $ac_status); }; } &&
3337 { ac_try='test -s conftest.$ac_objext'
3338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342 (exit $ac_status); }; }; then
3343 # It does; now see whether it defined to BIG_ENDIAN or not.
3344 cat >conftest.$ac_ext <<_ACEOF
3347 cat confdefs.h >>conftest.$ac_ext
3348 cat >>conftest.$ac_ext <<_ACEOF
3349 /* end confdefs.h. */
3350 #include <sys/types.h>
3351 #include <sys/param.h>
3356 #if BYTE_ORDER != BIG_ENDIAN
3364 rm -f conftest.$ac_objext
3365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3366 (eval $ac_compile) 2>conftest.er1
3368 grep -v '^ *+' conftest.er1 >conftest.err
3370 cat conftest.err >&5
3371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372 (exit $ac_status); } &&
3373 { ac_try='test -z "$ac_c_werror_flag"
3374 || test ! -s conftest.err'
3375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379 (exit $ac_status); }; } &&
3380 { ac_try='test -s conftest.$ac_objext'
3381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385 (exit $ac_status); }; }; then
3386 ac_cv_c_bigendian=yes
3388 echo "$as_me: failed program was:" >&5
3389 sed 's/^/| /' conftest.$ac_ext >&5
3391 ac_cv_c_bigendian=no
3393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3395 echo "$as_me: failed program was:" >&5
3396 sed 's/^/| /' conftest.$ac_ext >&5
3398 # It does not; compile a test program.
3399 if test "$cross_compiling" = yes; then
3400 # try to guess the endianness by grepping values into an object file
3401 ac_cv_c_bigendian=unknown
3402 cat >conftest.$ac_ext <<_ACEOF
3405 cat confdefs.h >>conftest.$ac_ext
3406 cat >>conftest.$ac_ext <<_ACEOF
3407 /* end confdefs.h. */
3408 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3409 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3410 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3411 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3412 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3413 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3417 _ascii (); _ebcdic ();
3422 rm -f conftest.$ac_objext
3423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3424 (eval $ac_compile) 2>conftest.er1
3426 grep -v '^ *+' conftest.er1 >conftest.err
3428 cat conftest.err >&5
3429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430 (exit $ac_status); } &&
3431 { ac_try='test -z "$ac_c_werror_flag"
3432 || test ! -s conftest.err'
3433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437 (exit $ac_status); }; } &&
3438 { ac_try='test -s conftest.$ac_objext'
3439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443 (exit $ac_status); }; }; then
3444 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3445 ac_cv_c_bigendian=yes
3447 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3448 if test "$ac_cv_c_bigendian" = unknown; then
3449 ac_cv_c_bigendian=no
3451 # finding both strings is unlikely to happen, but who knows?
3452 ac_cv_c_bigendian=unknown
3456 echo "$as_me: failed program was:" >&5
3457 sed 's/^/| /' conftest.$ac_ext >&5
3460 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3462 cat >conftest.$ac_ext <<_ACEOF
3465 cat confdefs.h >>conftest.$ac_ext
3466 cat >>conftest.$ac_ext <<_ACEOF
3467 /* end confdefs.h. */
3471 /* Are we little or big endian? From Harbison&Steele. */
3475 char c[sizeof (long)];
3478 exit (u.c[sizeof (long) - 1] == 1);
3481 rm -f conftest$ac_exeext
3482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3483 (eval $ac_link) 2>&5
3485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491 (exit $ac_status); }; }; then
3492 ac_cv_c_bigendian=no
3494 echo "$as_me: program exited with status $ac_status" >&5
3495 echo "$as_me: failed program was:" >&5
3496 sed 's/^/| /' conftest.$ac_ext >&5
3499 ac_cv_c_bigendian=yes
3501 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3506 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3507 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3508 case $ac_cv_c_bigendian in
3511 cat >>confdefs.h <<\_ACEOF
3512 #define WORDS_BIGENDIAN 1
3518 { { echo "$as_me:$LINENO: error: unknown endianness
3519 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3520 echo "$as_me: error: unknown endianness
3521 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3522 { (exit 1); exit 1; }; } ;;
3528 ac_config_headers="$ac_config_headers config.h:config.in"
3532 # Find a good install program. We prefer a C program (faster),
3533 # so one script is as good as another. But avoid the broken or
3534 # incompatible versions:
3535 # SysV /etc/install, /usr/sbin/install
3536 # SunOS /usr/etc/install
3537 # IRIX /sbin/install
3539 # AmigaOS /C/install, which installs bootblocks on floppy discs
3540 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3541 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3542 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3543 # OS/2's system install, which has a completely different semantic
3544 # ./install, which can be erroneously created by make from ./install.sh.
3545 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3546 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3547 if test -z "$INSTALL"; then
3548 if test "${ac_cv_path_install+set}" = set; then
3549 echo $ECHO_N "(cached) $ECHO_C" >&6
3551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3555 test -z "$as_dir" && as_dir=.
3556 # Account for people who put trailing slashes in PATH elements.
3558 ./ | .// | /cC/* | \
3559 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3560 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3563 # OSF1 and SCO ODT 3.0 have their own names for install.
3564 # Don't use installbsd from OSF since it installs stuff as root
3566 for ac_prog in ginstall scoinst install; do
3567 for ac_exec_ext in '' $ac_executable_extensions; do
3568 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3569 if test $ac_prog = install &&
3570 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3571 # AIX install. It has an incompatible calling convention.
3573 elif test $ac_prog = install &&
3574 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3575 # program-specific install script used by HP pwplus--don't use.
3578 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3590 if test "${ac_cv_path_install+set}" = set; then
3591 INSTALL=$ac_cv_path_install
3593 # As a last resort, use the slow shell script. We don't cache a
3594 # path for INSTALL within a source directory, because that will
3595 # break other packages using the cache if that directory is
3596 # removed, or if the path is relative.
3597 INSTALL=$ac_install_sh
3600 echo "$as_me:$LINENO: result: $INSTALL" >&5
3601 echo "${ECHO_T}$INSTALL" >&6
3603 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3604 # It thinks the first close brace ends the variable substitution.
3605 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3607 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3609 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3612 # Don't build the shared library for build.
3613 if [ -n "${with_build_subdir}" ]; then
3619 rs6000-ibm-aix3.1 | rs6000-ibm-aix)
3621 *-*-cxux7*) frag=mh-cxux7 ;;
3622 *-*-freebsd2.1.*) frag=mh-fbsd21 ;;
3623 *-*-freebsd2.2.[012]) frag=mh-fbsd21 ;;
3624 i370-*-opened*) frag=mh-openedition ;;
3625 i[34567]86-*-windows*) frag=mh-windows ;;
3628 if [ -n "${frag}" ]; then
3629 frags=${libiberty_topdir}/libiberty/config/$frag
3634 # If they didn't specify --enable-shared, don't generate shared libs.
3635 case "${enable_shared}" in
3641 if [ "${shared}" = "yes" ]; then
3645 alpha*-*-linux*) frag=mh-elfalphapic ;;
3646 arm*-*-*) frag=mh-armpic ;;
3647 hppa*-*-*) frag=mh-papic ;;
3648 i[34567]86-*-* | x86_64-*-*)
3651 powerpc*-*-*) frag=mh-ppcpic ;;
3652 sparc*-*-*) frag=mh-sparcpic ;;
3653 s390*-*-*) frag=mh-s390pic ;;
3654 *) frag=mh-${host_cpu}pic ;;
3656 if [ -n "${frag}" ]; then
3657 frags="${frags} ${libiberty_topdir}/config/${frag}"
3661 echo "# Warning: this fragment is automatically generated" > temp-frag
3663 for frag in ${frags}; do
3664 if [ -f ${frag} ]; then
3665 echo "Appending ${frag} to xhost-mkfrag"
3666 echo "# Following fragment copied from ${frag}" >> temp-frag
3667 cat ${frag} >> temp-frag
3671 # record if we want to build shared libs.
3672 if [ "${shared}" = "yes" ]; then
3673 echo enable_shared = yes >> temp-frag
3675 echo enable_shared = no >> temp-frag
3679 ${CONFIG_SHELL-/bin/sh} ${libiberty_topdir}/move-if-change temp-frag xhost-mkfrag
3681 host_makefile_frag=${frag}
3684 # It's OK to check for header files. Although the compiler may not be
3685 # able to link anything, it had better be able to at least compile
3712 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
3714 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3715 echo "$as_me:$LINENO: checking for $ac_header" >&5
3716 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3717 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3718 echo $ECHO_N "(cached) $ECHO_C" >&6
3720 cat >conftest.$ac_ext <<_ACEOF
3723 cat confdefs.h >>conftest.$ac_ext
3724 cat >>conftest.$ac_ext <<_ACEOF
3725 /* end confdefs.h. */
3726 #include <$ac_header>
3728 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3729 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3731 grep -v '^ *+' conftest.er1 >conftest.err
3733 cat conftest.err >&5
3734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735 (exit $ac_status); } >/dev/null; then
3736 if test -s conftest.err; then
3737 ac_cpp_err=$ac_c_preproc_warn_flag
3738 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3745 if test -z "$ac_cpp_err"; then
3746 eval "$as_ac_Header=yes"
3748 echo "$as_me: failed program was:" >&5
3749 sed 's/^/| /' conftest.$ac_ext >&5
3751 eval "$as_ac_Header=no"
3753 rm -f conftest.err conftest.$ac_ext
3755 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3756 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3757 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3758 cat >>confdefs.h <<_ACEOF
3759 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3765 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3766 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
3767 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3768 echo $ECHO_N "(cached) $ECHO_C" >&6
3770 cat >conftest.$ac_ext <<_ACEOF
3773 cat confdefs.h >>conftest.$ac_ext
3774 cat >>conftest.$ac_ext <<_ACEOF
3775 /* end confdefs.h. */
3776 #include <sys/types.h>
3777 #include <sys/wait.h>
3779 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3782 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3790 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3795 rm -f conftest.$ac_objext
3796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3797 (eval $ac_compile) 2>conftest.er1
3799 grep -v '^ *+' conftest.er1 >conftest.err
3801 cat conftest.err >&5
3802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803 (exit $ac_status); } &&
3804 { ac_try='test -z "$ac_c_werror_flag"
3805 || test ! -s conftest.err'
3806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810 (exit $ac_status); }; } &&
3811 { ac_try='test -s conftest.$ac_objext'
3812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816 (exit $ac_status); }; }; then
3817 ac_cv_header_sys_wait_h=yes
3819 echo "$as_me: failed program was:" >&5
3820 sed 's/^/| /' conftest.$ac_ext >&5
3822 ac_cv_header_sys_wait_h=no
3824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3826 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3827 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
3828 if test $ac_cv_header_sys_wait_h = yes; then
3830 cat >>confdefs.h <<\_ACEOF
3831 #define HAVE_SYS_WAIT_H 1
3836 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3837 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3838 if test "${ac_cv_header_time+set}" = set; then
3839 echo $ECHO_N "(cached) $ECHO_C" >&6
3841 cat >conftest.$ac_ext <<_ACEOF
3844 cat confdefs.h >>conftest.$ac_ext
3845 cat >>conftest.$ac_ext <<_ACEOF
3846 /* end confdefs.h. */
3847 #include <sys/types.h>
3848 #include <sys/time.h>
3854 if ((struct tm *) 0)
3860 rm -f conftest.$ac_objext
3861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3862 (eval $ac_compile) 2>conftest.er1
3864 grep -v '^ *+' conftest.er1 >conftest.err
3866 cat conftest.err >&5
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); } &&
3869 { ac_try='test -z "$ac_c_werror_flag"
3870 || test ! -s conftest.err'
3871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875 (exit $ac_status); }; } &&
3876 { ac_try='test -s conftest.$ac_objext'
3877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3881 (exit $ac_status); }; }; then
3882 ac_cv_header_time=yes
3884 echo "$as_me: failed program was:" >&5
3885 sed 's/^/| /' conftest.$ac_ext >&5
3887 ac_cv_header_time=no
3889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3891 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3892 echo "${ECHO_T}$ac_cv_header_time" >&6
3893 if test $ac_cv_header_time = yes; then
3895 cat >>confdefs.h <<\_ACEOF
3896 #define TIME_WITH_SYS_TIME 1
3902 echo "$as_me:$LINENO: checking whether errno must be declared" >&5
3903 echo $ECHO_N "checking whether errno must be declared... $ECHO_C" >&6
3904 if test "${libiberty_cv_declare_errno+set}" = set; then
3905 echo $ECHO_N "(cached) $ECHO_C" >&6
3907 cat >conftest.$ac_ext <<_ACEOF
3910 cat confdefs.h >>conftest.$ac_ext
3911 cat >>conftest.$ac_ext <<_ACEOF
3912 /* end confdefs.h. */
3922 rm -f conftest.$ac_objext
3923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3924 (eval $ac_compile) 2>conftest.er1
3926 grep -v '^ *+' conftest.er1 >conftest.err
3928 cat conftest.err >&5
3929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930 (exit $ac_status); } &&
3931 { ac_try='test -z "$ac_c_werror_flag"
3932 || test ! -s conftest.err'
3933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937 (exit $ac_status); }; } &&
3938 { ac_try='test -s conftest.$ac_objext'
3939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943 (exit $ac_status); }; }; then
3944 libiberty_cv_declare_errno=no
3946 echo "$as_me: failed program was:" >&5
3947 sed 's/^/| /' conftest.$ac_ext >&5
3949 libiberty_cv_declare_errno=yes
3951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3953 echo "$as_me:$LINENO: result: $libiberty_cv_declare_errno" >&5
3954 echo "${ECHO_T}$libiberty_cv_declare_errno" >&6
3955 if test $libiberty_cv_declare_errno = yes
3957 cat >>confdefs.h <<\_ACEOF
3958 #define NEED_DECLARATION_ERRNO 1
3964 # Determine the size of an int for struct fibnode.
3965 echo "$as_me:$LINENO: checking for egrep" >&5
3966 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3967 if test "${ac_cv_prog_egrep+set}" = set; then
3968 echo $ECHO_N "(cached) $ECHO_C" >&6
3970 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3971 then ac_cv_prog_egrep='grep -E'
3972 else ac_cv_prog_egrep='egrep'
3975 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3976 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3977 EGREP=$ac_cv_prog_egrep
3980 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3981 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3982 if test "${ac_cv_header_stdc+set}" = set; then
3983 echo $ECHO_N "(cached) $ECHO_C" >&6
3985 cat >conftest.$ac_ext <<_ACEOF
3988 cat confdefs.h >>conftest.$ac_ext
3989 cat >>conftest.$ac_ext <<_ACEOF
3990 /* end confdefs.h. */
4004 rm -f conftest.$ac_objext
4005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4006 (eval $ac_compile) 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); } &&
4013 { ac_try='test -z "$ac_c_werror_flag"
4014 || test ! -s conftest.err'
4015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019 (exit $ac_status); }; } &&
4020 { ac_try='test -s conftest.$ac_objext'
4021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); }; }; then
4026 ac_cv_header_stdc=yes
4028 echo "$as_me: failed program was:" >&5
4029 sed 's/^/| /' conftest.$ac_ext >&5
4031 ac_cv_header_stdc=no
4033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4035 if test $ac_cv_header_stdc = yes; then
4036 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4037 cat >conftest.$ac_ext <<_ACEOF
4040 cat confdefs.h >>conftest.$ac_ext
4041 cat >>conftest.$ac_ext <<_ACEOF
4042 /* end confdefs.h. */
4046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4047 $EGREP "memchr" >/dev/null 2>&1; then
4050 ac_cv_header_stdc=no
4056 if test $ac_cv_header_stdc = yes; then
4057 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4058 cat >conftest.$ac_ext <<_ACEOF
4061 cat confdefs.h >>conftest.$ac_ext
4062 cat >>conftest.$ac_ext <<_ACEOF
4063 /* end confdefs.h. */
4067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4068 $EGREP "free" >/dev/null 2>&1; then
4071 ac_cv_header_stdc=no
4077 if test $ac_cv_header_stdc = yes; then
4078 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4079 if test "$cross_compiling" = yes; then
4082 cat >conftest.$ac_ext <<_ACEOF
4085 cat confdefs.h >>conftest.$ac_ext
4086 cat >>conftest.$ac_ext <<_ACEOF
4087 /* end confdefs.h. */
4089 #if ((' ' & 0x0FF) == 0x020)
4090 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4091 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4093 # define ISLOWER(c) \
4094 (('a' <= (c) && (c) <= 'i') \
4095 || ('j' <= (c) && (c) <= 'r') \
4096 || ('s' <= (c) && (c) <= 'z'))
4097 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4100 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4105 for (i = 0; i < 256; i++)
4106 if (XOR (islower (i), ISLOWER (i))
4107 || toupper (i) != TOUPPER (i))
4112 rm -f conftest$ac_exeext
4113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4114 (eval $ac_link) 2>&5
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122 (exit $ac_status); }; }; then
4125 echo "$as_me: program exited with status $ac_status" >&5
4126 echo "$as_me: failed program was:" >&5
4127 sed 's/^/| /' conftest.$ac_ext >&5
4130 ac_cv_header_stdc=no
4132 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4136 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4137 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4138 if test $ac_cv_header_stdc = yes; then
4140 cat >>confdefs.h <<\_ACEOF
4141 #define STDC_HEADERS 1
4146 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4156 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4157 inttypes.h stdint.h unistd.h
4159 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4160 echo "$as_me:$LINENO: checking for $ac_header" >&5
4161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4162 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4163 echo $ECHO_N "(cached) $ECHO_C" >&6
4165 cat >conftest.$ac_ext <<_ACEOF
4168 cat confdefs.h >>conftest.$ac_ext
4169 cat >>conftest.$ac_ext <<_ACEOF
4170 /* end confdefs.h. */
4171 #include <$ac_header>
4173 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4174 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4176 grep -v '^ *+' conftest.er1 >conftest.err
4178 cat conftest.err >&5
4179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180 (exit $ac_status); } >/dev/null; then
4181 if test -s conftest.err; then
4182 ac_cpp_err=$ac_c_preproc_warn_flag
4183 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4190 if test -z "$ac_cpp_err"; then
4191 eval "$as_ac_Header=yes"
4193 echo "$as_me: failed program was:" >&5
4194 sed 's/^/| /' conftest.$ac_ext >&5
4196 eval "$as_ac_Header=no"
4198 rm -f conftest.err conftest.$ac_ext
4200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4201 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4202 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4203 cat >>confdefs.h <<_ACEOF
4204 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4211 echo "$as_me:$LINENO: checking for int" >&5
4212 echo $ECHO_N "checking for int... $ECHO_C" >&6
4213 if test "${ac_cv_type_int+set}" = set; then
4214 echo $ECHO_N "(cached) $ECHO_C" >&6
4216 cat >conftest.$ac_ext <<_ACEOF
4219 cat confdefs.h >>conftest.$ac_ext
4220 cat >>conftest.$ac_ext <<_ACEOF
4221 /* end confdefs.h. */
4222 $ac_includes_default
4234 rm -f conftest.$ac_objext
4235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4236 (eval $ac_compile) 2>conftest.er1
4238 grep -v '^ *+' conftest.er1 >conftest.err
4240 cat conftest.err >&5
4241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4242 (exit $ac_status); } &&
4243 { ac_try='test -z "$ac_c_werror_flag"
4244 || test ! -s conftest.err'
4245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249 (exit $ac_status); }; } &&
4250 { ac_try='test -s conftest.$ac_objext'
4251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255 (exit $ac_status); }; }; then
4258 echo "$as_me: failed program was:" >&5
4259 sed 's/^/| /' conftest.$ac_ext >&5
4263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4265 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4266 echo "${ECHO_T}$ac_cv_type_int" >&6
4268 echo "$as_me:$LINENO: checking size of int" >&5
4269 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4270 if test "${ac_cv_sizeof_int+set}" = set; then
4271 echo $ECHO_N "(cached) $ECHO_C" >&6
4273 if test "$ac_cv_type_int" = yes; then
4274 # The cast to unsigned long works around a bug in the HP C Compiler
4275 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4276 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4277 # This bug is HP SR number 8606223364.
4278 if test "$cross_compiling" = yes; then
4279 # Depending upon the size, compute the lo and hi bounds.
4280 cat >conftest.$ac_ext <<_ACEOF
4283 cat confdefs.h >>conftest.$ac_ext
4284 cat >>conftest.$ac_ext <<_ACEOF
4285 /* end confdefs.h. */
4286 $ac_includes_default
4290 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4297 rm -f conftest.$ac_objext
4298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4299 (eval $ac_compile) 2>conftest.er1
4301 grep -v '^ *+' conftest.er1 >conftest.err
4303 cat conftest.err >&5
4304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305 (exit $ac_status); } &&
4306 { ac_try='test -z "$ac_c_werror_flag"
4307 || test ! -s conftest.err'
4308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312 (exit $ac_status); }; } &&
4313 { ac_try='test -s conftest.$ac_objext'
4314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); }; }; then
4321 cat >conftest.$ac_ext <<_ACEOF
4324 cat confdefs.h >>conftest.$ac_ext
4325 cat >>conftest.$ac_ext <<_ACEOF
4326 /* end confdefs.h. */
4327 $ac_includes_default
4331 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4338 rm -f conftest.$ac_objext
4339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4340 (eval $ac_compile) 2>conftest.er1
4342 grep -v '^ *+' conftest.er1 >conftest.err
4344 cat conftest.err >&5
4345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346 (exit $ac_status); } &&
4347 { ac_try='test -z "$ac_c_werror_flag"
4348 || test ! -s conftest.err'
4349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353 (exit $ac_status); }; } &&
4354 { ac_try='test -s conftest.$ac_objext'
4355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359 (exit $ac_status); }; }; then
4360 ac_hi=$ac_mid; break
4362 echo "$as_me: failed program was:" >&5
4363 sed 's/^/| /' conftest.$ac_ext >&5
4365 ac_lo=`expr $ac_mid + 1`
4366 if test $ac_lo -le $ac_mid; then
4370 ac_mid=`expr 2 '*' $ac_mid + 1`
4372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4375 echo "$as_me: failed program was:" >&5
4376 sed 's/^/| /' conftest.$ac_ext >&5
4378 cat >conftest.$ac_ext <<_ACEOF
4381 cat confdefs.h >>conftest.$ac_ext
4382 cat >>conftest.$ac_ext <<_ACEOF
4383 /* end confdefs.h. */
4384 $ac_includes_default
4388 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4395 rm -f conftest.$ac_objext
4396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4397 (eval $ac_compile) 2>conftest.er1
4399 grep -v '^ *+' conftest.er1 >conftest.err
4401 cat conftest.err >&5
4402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403 (exit $ac_status); } &&
4404 { ac_try='test -z "$ac_c_werror_flag"
4405 || test ! -s conftest.err'
4406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410 (exit $ac_status); }; } &&
4411 { ac_try='test -s conftest.$ac_objext'
4412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416 (exit $ac_status); }; }; then
4419 cat >conftest.$ac_ext <<_ACEOF
4422 cat confdefs.h >>conftest.$ac_ext
4423 cat >>conftest.$ac_ext <<_ACEOF
4424 /* end confdefs.h. */
4425 $ac_includes_default
4429 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4436 rm -f conftest.$ac_objext
4437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4438 (eval $ac_compile) 2>conftest.er1
4440 grep -v '^ *+' conftest.er1 >conftest.err
4442 cat conftest.err >&5
4443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4444 (exit $ac_status); } &&
4445 { ac_try='test -z "$ac_c_werror_flag"
4446 || test ! -s conftest.err'
4447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451 (exit $ac_status); }; } &&
4452 { ac_try='test -s conftest.$ac_objext'
4453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457 (exit $ac_status); }; }; then
4458 ac_lo=$ac_mid; break
4460 echo "$as_me: failed program was:" >&5
4461 sed 's/^/| /' conftest.$ac_ext >&5
4463 ac_hi=`expr '(' $ac_mid ')' - 1`
4464 if test $ac_mid -le $ac_hi; then
4468 ac_mid=`expr 2 '*' $ac_mid`
4470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4473 echo "$as_me: failed program was:" >&5
4474 sed 's/^/| /' conftest.$ac_ext >&5
4478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4481 # Binary search between lo and hi bounds.
4482 while test "x$ac_lo" != "x$ac_hi"; do
4483 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4484 cat >conftest.$ac_ext <<_ACEOF
4487 cat confdefs.h >>conftest.$ac_ext
4488 cat >>conftest.$ac_ext <<_ACEOF
4489 /* end confdefs.h. */
4490 $ac_includes_default
4494 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4501 rm -f conftest.$ac_objext
4502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4503 (eval $ac_compile) 2>conftest.er1
4505 grep -v '^ *+' conftest.er1 >conftest.err
4507 cat conftest.err >&5
4508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509 (exit $ac_status); } &&
4510 { ac_try='test -z "$ac_c_werror_flag"
4511 || test ! -s conftest.err'
4512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516 (exit $ac_status); }; } &&
4517 { ac_try='test -s conftest.$ac_objext'
4518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); }; }; then
4525 echo "$as_me: failed program was:" >&5
4526 sed 's/^/| /' conftest.$ac_ext >&5
4528 ac_lo=`expr '(' $ac_mid ')' + 1`
4530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4533 ?*) ac_cv_sizeof_int=$ac_lo;;
4534 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4535 See \`config.log' for more details." >&5
4536 echo "$as_me: error: cannot compute sizeof (int), 77
4537 See \`config.log' for more details." >&2;}
4538 { (exit 1); exit 1; }; } ;;
4541 if test "$cross_compiling" = yes; then
4542 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4543 See \`config.log' for more details." >&5
4544 echo "$as_me: error: cannot run test program while cross compiling
4545 See \`config.log' for more details." >&2;}
4546 { (exit 1); exit 1; }; }
4548 cat >conftest.$ac_ext <<_ACEOF
4551 cat confdefs.h >>conftest.$ac_ext
4552 cat >>conftest.$ac_ext <<_ACEOF
4553 /* end confdefs.h. */
4554 $ac_includes_default
4555 long longval () { return (long) (sizeof (int)); }
4556 unsigned long ulongval () { return (long) (sizeof (int)); }
4563 FILE *f = fopen ("conftest.val", "w");
4566 if (((long) (sizeof (int))) < 0)
4568 long i = longval ();
4569 if (i != ((long) (sizeof (int))))
4571 fprintf (f, "%ld\n", i);
4575 unsigned long i = ulongval ();
4576 if (i != ((long) (sizeof (int))))
4578 fprintf (f, "%lu\n", i);
4580 exit (ferror (f) || fclose (f) != 0);
4586 rm -f conftest$ac_exeext
4587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4588 (eval $ac_link) 2>&5
4590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596 (exit $ac_status); }; }; then
4597 ac_cv_sizeof_int=`cat conftest.val`
4599 echo "$as_me: program exited with status $ac_status" >&5
4600 echo "$as_me: failed program was:" >&5
4601 sed 's/^/| /' conftest.$ac_ext >&5
4604 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4605 See \`config.log' for more details." >&5
4606 echo "$as_me: error: cannot compute sizeof (int), 77
4607 See \`config.log' for more details." >&2;}
4608 { (exit 1); exit 1; }; }
4610 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4618 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4619 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4620 cat >>confdefs.h <<_ACEOF
4621 #define SIZEOF_INT $ac_cv_sizeof_int
4626 echo "$as_me:$LINENO: checking for uintptr_t" >&5
4627 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
4628 if test "${ac_cv_type_uintptr_t+set}" = set; then
4629 echo $ECHO_N "(cached) $ECHO_C" >&6
4631 cat >conftest.$ac_ext <<_ACEOF
4634 cat confdefs.h >>conftest.$ac_ext
4635 cat >>conftest.$ac_ext <<_ACEOF
4636 /* end confdefs.h. */
4637 $ac_includes_default
4641 if ((uintptr_t *) 0)
4643 if (sizeof (uintptr_t))
4649 rm -f conftest.$ac_objext
4650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4651 (eval $ac_compile) 2>conftest.er1
4653 grep -v '^ *+' conftest.er1 >conftest.err
4655 cat conftest.err >&5
4656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657 (exit $ac_status); } &&
4658 { ac_try='test -z "$ac_c_werror_flag"
4659 || test ! -s conftest.err'
4660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664 (exit $ac_status); }; } &&
4665 { ac_try='test -s conftest.$ac_objext'
4666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670 (exit $ac_status); }; }; then
4671 ac_cv_type_uintptr_t=yes
4673 echo "$as_me: failed program was:" >&5
4674 sed 's/^/| /' conftest.$ac_ext >&5
4676 ac_cv_type_uintptr_t=no
4678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4680 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
4681 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
4682 if test $ac_cv_type_uintptr_t = yes; then
4686 cat >>confdefs.h <<_ACEOF
4687 #define uintptr_t unsigned long
4693 # Look for a 64-bit type.
4694 echo "$as_me:$LINENO: checking for a 64-bit type" >&5
4695 echo $ECHO_N "checking for a 64-bit type... $ECHO_C" >&6
4696 if test "${liberty_cv_uint64+set}" = set; then
4697 echo $ECHO_N "(cached) $ECHO_C" >&6
4699 cat >conftest.$ac_ext <<_ACEOF
4702 cat confdefs.h >>conftest.$ac_ext
4703 cat >>conftest.$ac_ext <<_ACEOF
4704 /* end confdefs.h. */
4705 #ifdef HAVE_STDINT_H
4711 extern uint64_t foo;
4716 rm -f conftest.$ac_objext
4717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4718 (eval $ac_compile) 2>conftest.er1
4720 grep -v '^ *+' conftest.er1 >conftest.err
4722 cat conftest.err >&5
4723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724 (exit $ac_status); } &&
4725 { ac_try='test -z "$ac_c_werror_flag"
4726 || test ! -s conftest.err'
4727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731 (exit $ac_status); }; } &&
4732 { ac_try='test -s conftest.$ac_objext'
4733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737 (exit $ac_status); }; }; then
4738 liberty_cv_uint64=uint64_t
4740 echo "$as_me: failed program was:" >&5
4741 sed 's/^/| /' conftest.$ac_ext >&5
4743 cat >conftest.$ac_ext <<_ACEOF
4746 cat confdefs.h >>conftest.$ac_ext
4747 cat >>conftest.$ac_ext <<_ACEOF
4748 /* end confdefs.h. */
4749 #ifdef HAVE_LIMITS_H
4758 extern char foo[sizeof(long) * CHAR_BIT >= 64 ? 1 : -1];
4763 rm -f conftest.$ac_objext
4764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4765 (eval $ac_compile) 2>conftest.er1
4767 grep -v '^ *+' conftest.er1 >conftest.err
4769 cat conftest.err >&5
4770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771 (exit $ac_status); } &&
4772 { ac_try='test -z "$ac_c_werror_flag"
4773 || test ! -s conftest.err'
4774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778 (exit $ac_status); }; } &&
4779 { ac_try='test -s conftest.$ac_objext'
4780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784 (exit $ac_status); }; }; then
4785 liberty_cv_uint64="unsigned long"
4787 echo "$as_me: failed program was:" >&5
4788 sed 's/^/| /' conftest.$ac_ext >&5
4790 cat >conftest.$ac_ext <<_ACEOF
4793 cat confdefs.h >>conftest.$ac_ext
4794 cat >>conftest.$ac_ext <<_ACEOF
4795 /* end confdefs.h. */
4796 #ifdef HAVE_LIMITS_H
4805 extern char foo[sizeof(long long) * CHAR_BIT >= 64 ? 1 : -1];
4810 rm -f conftest.$ac_objext
4811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4812 (eval $ac_compile) 2>conftest.er1
4814 grep -v '^ *+' conftest.er1 >conftest.err
4816 cat conftest.err >&5
4817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818 (exit $ac_status); } &&
4819 { ac_try='test -z "$ac_c_werror_flag"
4820 || test ! -s conftest.err'
4821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825 (exit $ac_status); }; } &&
4826 { ac_try='test -s conftest.$ac_objext'
4827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831 (exit $ac_status); }; }; then
4832 liberty_cv_uint64="unsigned long long"
4834 echo "$as_me: failed program was:" >&5
4835 sed 's/^/| /' conftest.$ac_ext >&5
4837 liberty_cv_uint64=none
4839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4846 echo "$as_me:$LINENO: result: $liberty_cv_uint64" >&5
4847 echo "${ECHO_T}$liberty_cv_uint64" >&6
4848 if test "$liberty_cv_uint64" != none; then
4850 cat >>confdefs.h <<_ACEOF
4851 #define UNSIGNED_64BIT_TYPE $liberty_cv_uint64
4856 # Given the above check, we always have uintptr_t or a fallback
4857 # definition. So define HAVE_UINTPTR_T in case any imported code
4860 cat >>confdefs.h <<\_ACEOF
4861 #define HAVE_UINTPTR_T 1
4865 echo "$as_me:$LINENO: checking for pid_t" >&5
4866 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
4867 if test "${ac_cv_type_pid_t+set}" = set; then
4868 echo $ECHO_N "(cached) $ECHO_C" >&6
4870 cat >conftest.$ac_ext <<_ACEOF
4873 cat confdefs.h >>conftest.$ac_ext
4874 cat >>conftest.$ac_ext <<_ACEOF
4875 /* end confdefs.h. */
4876 $ac_includes_default
4888 rm -f conftest.$ac_objext
4889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4890 (eval $ac_compile) 2>conftest.er1
4892 grep -v '^ *+' conftest.er1 >conftest.err
4894 cat conftest.err >&5
4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); } &&
4897 { ac_try='test -z "$ac_c_werror_flag"
4898 || test ! -s conftest.err'
4899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); }; } &&
4904 { ac_try='test -s conftest.$ac_objext'
4905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909 (exit $ac_status); }; }; then
4910 ac_cv_type_pid_t=yes
4912 echo "$as_me: failed program was:" >&5
4913 sed 's/^/| /' conftest.$ac_ext >&5
4917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4919 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
4920 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
4921 if test $ac_cv_type_pid_t = yes; then
4925 cat >>confdefs.h <<_ACEOF
4932 # This is the list of functions which libiberty will provide if they
4933 # are not available on the host.
4936 funcs="$funcs atexit"
4937 funcs="$funcs basename"
4939 funcs="$funcs bcopy"
4940 funcs="$funcs bsearch"
4941 funcs="$funcs bzero"
4942 funcs="$funcs calloc"
4943 funcs="$funcs clock"
4945 funcs="$funcs getcwd"
4946 funcs="$funcs getpagesize"
4947 funcs="$funcs gettimeofday"
4948 funcs="$funcs index"
4949 funcs="$funcs insque"
4950 funcs="$funcs memchr"
4951 funcs="$funcs memcmp"
4952 funcs="$funcs memcpy"
4953 funcs="$funcs memmove"
4954 funcs="$funcs mempcpy"
4955 funcs="$funcs memset"
4956 funcs="$funcs mkstemps"
4957 funcs="$funcs putenv"
4958 funcs="$funcs random"
4959 funcs="$funcs rename"
4960 funcs="$funcs rindex"
4961 funcs="$funcs setenv"
4962 funcs="$funcs snprintf"
4963 funcs="$funcs sigsetmask"
4964 funcs="$funcs stpcpy"
4965 funcs="$funcs stpncpy"
4966 funcs="$funcs strcasecmp"
4967 funcs="$funcs strchr"
4968 funcs="$funcs strdup"
4969 funcs="$funcs strncasecmp"
4970 funcs="$funcs strndup"
4971 funcs="$funcs strrchr"
4972 funcs="$funcs strstr"
4973 funcs="$funcs strtod"
4974 funcs="$funcs strtol"
4975 funcs="$funcs strtoul"
4976 funcs="$funcs strverscmp"
4977 funcs="$funcs tmpnam"
4978 funcs="$funcs vasprintf"
4979 funcs="$funcs vfprintf"
4980 funcs="$funcs vprintf"
4981 funcs="$funcs vsnprintf"
4982 funcs="$funcs vsprintf"
4983 funcs="$funcs waitpid"
4985 # Also in the old function.def file: alloca, vfork, getopt.
4987 vars="sys_errlist sys_nerr sys_siglist"
4989 checkfuncs="getrusage on_exit psignal strerror strsignal sysconf times sbrk gettimeofday"
4990 checkfuncs="$checkfuncs realpath canonicalize_file_name pstat_getstatic pstat_getdynamic sysmp"
4991 checkfuncs="$checkfuncs getsysinfo table sysctl wait3 wait4 __fsetlocking"
4993 # These are neither executed nor required, but they help keep
4994 # autoheader happy without adding a bunch of text to acconfig.h.
4995 if test "x" = "y"; then
5065 for ac_func in asprintf atexit basename bcmp bcopy bsearch bzero calloc clock \
5066 getcwd getpagesize gettimeofday index insque mkstemps memchr memcmp memcpy \
5067 memmove mempcpy memset putenv random rename rindex sigsetmask \
5068 strcasecmp setenv stpcpy stpncpy strchr strdup strncasecmp strndup strrchr strstr \
5069 strtod strtol strtoul strverscmp tmpnam vasprintf vfprintf vprintf \
5070 vsprintf waitpid getrusage on_exit psignal strerror strsignal \
5071 sysconf times sbrk gettimeofday ffs snprintf vsnprintf \
5072 pstat_getstatic pstat_getdynamic sysmp getsysinfo table sysctl wait3 wait4 \
5073 realpath canonicalize_file_name __fsetlocking
5075 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5076 echo "$as_me:$LINENO: checking for $ac_func" >&5
5077 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5078 if eval "test \"\${$as_ac_var+set}\" = set"; then
5079 echo $ECHO_N "(cached) $ECHO_C" >&6
5081 if test x$gcc_no_link = xyes; then
5082 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5083 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5084 { (exit 1); exit 1; }; }
5086 cat >conftest.$ac_ext <<_ACEOF
5089 cat confdefs.h >>conftest.$ac_ext
5090 cat >>conftest.$ac_ext <<_ACEOF
5091 /* end confdefs.h. */
5092 /* System header to define __stub macros and hopefully few prototypes,
5093 which can conflict with char $ac_func (); below.
5094 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5095 <limits.h> exists even on freestanding compilers. Under hpux,
5096 including <limits.h> includes <sys/time.h> and causes problems
5097 checking for functions defined therein. */
5098 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
5099 # include <limits.h>
5101 # include <assert.h>
5103 /* Override any gcc2 internal prototype to avoid an error. */
5108 /* We use char because int might match the return type of a gcc2
5109 builtin and then its argument prototype would still apply. */
5111 /* The GNU C library defines this for functions which it implements
5112 to always fail with ENOSYS. Some functions are actually named
5113 something starting with __ and the normal name is an alias. */
5114 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5117 char (*f) () = $ac_func;
5126 return f != $ac_func;
5131 rm -f conftest.$ac_objext conftest$ac_exeext
5132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5133 (eval $ac_link) 2>conftest.er1
5135 grep -v '^ *+' conftest.er1 >conftest.err
5137 cat conftest.err >&5
5138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139 (exit $ac_status); } &&
5140 { ac_try='test -z "$ac_c_werror_flag"
5141 || test ! -s conftest.err'
5142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5146 (exit $ac_status); }; } &&
5147 { ac_try='test -s conftest$ac_exeext'
5148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5152 (exit $ac_status); }; }; then
5153 eval "$as_ac_var=yes"
5155 echo "$as_me: failed program was:" >&5
5156 sed 's/^/| /' conftest.$ac_ext >&5
5158 eval "$as_ac_var=no"
5160 rm -f conftest.err conftest.$ac_objext \
5161 conftest$ac_exeext conftest.$ac_ext
5163 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5164 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5165 if test `eval echo '${'$as_ac_var'}'` = yes; then
5166 cat >>confdefs.h <<_ACEOF
5167 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5173 echo "$as_me:$LINENO: checking whether basename is declared" >&5
5174 echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
5175 if test "${ac_cv_have_decl_basename+set}" = set; then
5176 echo $ECHO_N "(cached) $ECHO_C" >&6
5178 cat >conftest.$ac_ext <<_ACEOF
5181 cat confdefs.h >>conftest.$ac_ext
5182 cat >>conftest.$ac_ext <<_ACEOF
5183 /* end confdefs.h. */
5184 $ac_includes_default
5189 char *p = (char *) basename;
5196 rm -f conftest.$ac_objext
5197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5198 (eval $ac_compile) 2>conftest.er1
5200 grep -v '^ *+' conftest.er1 >conftest.err
5202 cat conftest.err >&5
5203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204 (exit $ac_status); } &&
5205 { ac_try='test -z "$ac_c_werror_flag"
5206 || test ! -s conftest.err'
5207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211 (exit $ac_status); }; } &&
5212 { ac_try='test -s conftest.$ac_objext'
5213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217 (exit $ac_status); }; }; then
5218 ac_cv_have_decl_basename=yes
5220 echo "$as_me: failed program was:" >&5
5221 sed 's/^/| /' conftest.$ac_ext >&5
5223 ac_cv_have_decl_basename=no
5225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5227 echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
5228 echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
5229 if test $ac_cv_have_decl_basename = yes; then
5231 cat >>confdefs.h <<_ACEOF
5232 #define HAVE_DECL_BASENAME 1
5237 cat >>confdefs.h <<_ACEOF
5238 #define HAVE_DECL_BASENAME 0
5243 echo "$as_me:$LINENO: checking whether ffs is declared" >&5
5244 echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
5245 if test "${ac_cv_have_decl_ffs+set}" = set; then
5246 echo $ECHO_N "(cached) $ECHO_C" >&6
5248 cat >conftest.$ac_ext <<_ACEOF
5251 cat confdefs.h >>conftest.$ac_ext
5252 cat >>conftest.$ac_ext <<_ACEOF
5253 /* end confdefs.h. */
5254 $ac_includes_default
5259 char *p = (char *) ffs;
5266 rm -f conftest.$ac_objext
5267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5268 (eval $ac_compile) 2>conftest.er1
5270 grep -v '^ *+' conftest.er1 >conftest.err
5272 cat conftest.err >&5
5273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274 (exit $ac_status); } &&
5275 { ac_try='test -z "$ac_c_werror_flag"
5276 || test ! -s conftest.err'
5277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281 (exit $ac_status); }; } &&
5282 { ac_try='test -s conftest.$ac_objext'
5283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287 (exit $ac_status); }; }; then
5288 ac_cv_have_decl_ffs=yes
5290 echo "$as_me: failed program was:" >&5
5291 sed 's/^/| /' conftest.$ac_ext >&5
5293 ac_cv_have_decl_ffs=no
5295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5297 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
5298 echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
5299 if test $ac_cv_have_decl_ffs = yes; then
5301 cat >>confdefs.h <<_ACEOF
5302 #define HAVE_DECL_FFS 1
5307 cat >>confdefs.h <<_ACEOF
5308 #define HAVE_DECL_FFS 0
5313 echo "$as_me:$LINENO: checking whether asprintf is declared" >&5
5314 echo $ECHO_N "checking whether asprintf is declared... $ECHO_C" >&6
5315 if test "${ac_cv_have_decl_asprintf+set}" = set; then
5316 echo $ECHO_N "(cached) $ECHO_C" >&6
5318 cat >conftest.$ac_ext <<_ACEOF
5321 cat confdefs.h >>conftest.$ac_ext
5322 cat >>conftest.$ac_ext <<_ACEOF
5323 /* end confdefs.h. */
5324 $ac_includes_default
5329 char *p = (char *) asprintf;
5336 rm -f conftest.$ac_objext
5337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5338 (eval $ac_compile) 2>conftest.er1
5340 grep -v '^ *+' conftest.er1 >conftest.err
5342 cat conftest.err >&5
5343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344 (exit $ac_status); } &&
5345 { ac_try='test -z "$ac_c_werror_flag"
5346 || test ! -s conftest.err'
5347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351 (exit $ac_status); }; } &&
5352 { ac_try='test -s conftest.$ac_objext'
5353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357 (exit $ac_status); }; }; then
5358 ac_cv_have_decl_asprintf=yes
5360 echo "$as_me: failed program was:" >&5
5361 sed 's/^/| /' conftest.$ac_ext >&5
5363 ac_cv_have_decl_asprintf=no
5365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5367 echo "$as_me:$LINENO: result: $ac_cv_have_decl_asprintf" >&5
5368 echo "${ECHO_T}$ac_cv_have_decl_asprintf" >&6
5369 if test $ac_cv_have_decl_asprintf = yes; then
5371 cat >>confdefs.h <<_ACEOF
5372 #define HAVE_DECL_ASPRINTF 1
5377 cat >>confdefs.h <<_ACEOF
5378 #define HAVE_DECL_ASPRINTF 0
5383 echo "$as_me:$LINENO: checking whether vasprintf is declared" >&5
5384 echo $ECHO_N "checking whether vasprintf is declared... $ECHO_C" >&6
5385 if test "${ac_cv_have_decl_vasprintf+set}" = set; then
5386 echo $ECHO_N "(cached) $ECHO_C" >&6
5388 cat >conftest.$ac_ext <<_ACEOF
5391 cat confdefs.h >>conftest.$ac_ext
5392 cat >>conftest.$ac_ext <<_ACEOF
5393 /* end confdefs.h. */
5394 $ac_includes_default
5399 char *p = (char *) vasprintf;
5406 rm -f conftest.$ac_objext
5407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5408 (eval $ac_compile) 2>conftest.er1
5410 grep -v '^ *+' conftest.er1 >conftest.err
5412 cat conftest.err >&5
5413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414 (exit $ac_status); } &&
5415 { ac_try='test -z "$ac_c_werror_flag"
5416 || test ! -s conftest.err'
5417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5421 (exit $ac_status); }; } &&
5422 { ac_try='test -s conftest.$ac_objext'
5423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427 (exit $ac_status); }; }; then
5428 ac_cv_have_decl_vasprintf=yes
5430 echo "$as_me: failed program was:" >&5
5431 sed 's/^/| /' conftest.$ac_ext >&5
5433 ac_cv_have_decl_vasprintf=no
5435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5437 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vasprintf" >&5
5438 echo "${ECHO_T}$ac_cv_have_decl_vasprintf" >&6
5439 if test $ac_cv_have_decl_vasprintf = yes; then
5441 cat >>confdefs.h <<_ACEOF
5442 #define HAVE_DECL_VASPRINTF 1
5447 cat >>confdefs.h <<_ACEOF
5448 #define HAVE_DECL_VASPRINTF 0
5453 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
5454 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
5455 if test "${ac_cv_have_decl_snprintf+set}" = set; then
5456 echo $ECHO_N "(cached) $ECHO_C" >&6
5458 cat >conftest.$ac_ext <<_ACEOF
5461 cat confdefs.h >>conftest.$ac_ext
5462 cat >>conftest.$ac_ext <<_ACEOF
5463 /* end confdefs.h. */
5464 $ac_includes_default
5469 char *p = (char *) snprintf;
5476 rm -f conftest.$ac_objext
5477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5478 (eval $ac_compile) 2>conftest.er1
5480 grep -v '^ *+' conftest.er1 >conftest.err
5482 cat conftest.err >&5
5483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484 (exit $ac_status); } &&
5485 { ac_try='test -z "$ac_c_werror_flag"
5486 || test ! -s conftest.err'
5487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491 (exit $ac_status); }; } &&
5492 { ac_try='test -s conftest.$ac_objext'
5493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497 (exit $ac_status); }; }; then
5498 ac_cv_have_decl_snprintf=yes
5500 echo "$as_me: failed program was:" >&5
5501 sed 's/^/| /' conftest.$ac_ext >&5
5503 ac_cv_have_decl_snprintf=no
5505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5507 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
5508 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
5509 if test $ac_cv_have_decl_snprintf = yes; then
5511 cat >>confdefs.h <<_ACEOF
5512 #define HAVE_DECL_SNPRINTF 1
5517 cat >>confdefs.h <<_ACEOF
5518 #define HAVE_DECL_SNPRINTF 0
5523 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
5524 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
5525 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
5526 echo $ECHO_N "(cached) $ECHO_C" >&6
5528 cat >conftest.$ac_ext <<_ACEOF
5531 cat confdefs.h >>conftest.$ac_ext
5532 cat >>conftest.$ac_ext <<_ACEOF
5533 /* end confdefs.h. */
5534 $ac_includes_default
5539 char *p = (char *) vsnprintf;
5546 rm -f conftest.$ac_objext
5547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5548 (eval $ac_compile) 2>conftest.er1
5550 grep -v '^ *+' conftest.er1 >conftest.err
5552 cat conftest.err >&5
5553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554 (exit $ac_status); } &&
5555 { ac_try='test -z "$ac_c_werror_flag"
5556 || test ! -s conftest.err'
5557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561 (exit $ac_status); }; } &&
5562 { ac_try='test -s conftest.$ac_objext'
5563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5567 (exit $ac_status); }; }; then
5568 ac_cv_have_decl_vsnprintf=yes
5570 echo "$as_me: failed program was:" >&5
5571 sed 's/^/| /' conftest.$ac_ext >&5
5573 ac_cv_have_decl_vsnprintf=no
5575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5577 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
5578 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
5579 if test $ac_cv_have_decl_vsnprintf = yes; then
5581 cat >>confdefs.h <<_ACEOF
5582 #define HAVE_DECL_VSNPRINTF 1
5587 cat >>confdefs.h <<_ACEOF
5588 #define HAVE_DECL_VSNPRINTF 0
5596 cat >>confdefs.h <<\_ACEOF
5597 #define HAVE_SYS_ERRLIST 1
5601 cat >>confdefs.h <<\_ACEOF
5602 #define HAVE_SYS_NERR 1
5606 cat >>confdefs.h <<\_ACEOF
5607 #define HAVE_SYS_SIGLIST 1
5612 # For each of these functions, if the host does not provide the
5613 # function we want to put FN.o in LIBOBJS, and if the host does
5614 # provide the function, we want to define HAVE_FN in config.h.
5619 if test -n "${with_target_subdir}"; then
5621 # We are being configured as a target library. AC_REPLACE_FUNCS
5622 # may not work correctly, because the compiler may not be able to
5623 # link executables. Note that we may still be being configured
5626 # If we are being configured for newlib, we know which functions
5627 # newlib provide and which ones we will be expected to provide.
5629 if test "x${with_newlib}" = "xyes"; then
5631 "asprintf.$ac_objext" | \
5632 *" asprintf.$ac_objext" | \
5633 "asprintf.$ac_objext "* | \
5634 *" asprintf.$ac_objext "* ) ;;
5635 *) LIBOBJS="$LIBOBJS asprintf.$ac_objext" ;;
5639 "basename.$ac_objext" | \
5640 *" basename.$ac_objext" | \
5641 "basename.$ac_objext "* | \
5642 *" basename.$ac_objext "* ) ;;
5643 *) LIBOBJS="$LIBOBJS basename.$ac_objext" ;;
5647 "insque.$ac_objext" | \
5648 *" insque.$ac_objext" | \
5649 "insque.$ac_objext "* | \
5650 *" insque.$ac_objext "* ) ;;
5651 *) LIBOBJS="$LIBOBJS insque.$ac_objext" ;;
5655 "random.$ac_objext" | \
5656 *" random.$ac_objext" | \
5657 "random.$ac_objext "* | \
5658 *" random.$ac_objext "* ) ;;
5659 *) LIBOBJS="$LIBOBJS random.$ac_objext" ;;
5663 "strdup.$ac_objext" | \
5664 *" strdup.$ac_objext" | \
5665 "strdup.$ac_objext "* | \
5666 *" strdup.$ac_objext "* ) ;;
5667 *) LIBOBJS="$LIBOBJS strdup.$ac_objext" ;;
5671 "vasprintf.$ac_objext" | \
5672 *" vasprintf.$ac_objext" | \
5673 "vasprintf.$ac_objext "* | \
5674 *" vasprintf.$ac_objext "* ) ;;
5675 *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext" ;;
5681 asprintf | basename | insque | random | strdup | vasprintf)
5684 n=HAVE_`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5685 cat >>confdefs.h <<_ACEOF
5693 # newlib doesnt provide any of the variables in $vars, so we
5694 # dont have to check them here.
5696 # Of the functions in $checkfuncs, newlib only has strerror.
5697 cat >>confdefs.h <<\_ACEOF
5698 #define HAVE_STRERROR 1
5706 # If we are being configured for Mingw, we know which functions
5707 # Mingw provides and which ones we will be expected to provide.
5712 "asprintf.$ac_objext" | \
5713 *" asprintf.$ac_objext" | \
5714 "asprintf.$ac_objext "* | \
5715 *" asprintf.$ac_objext "* ) ;;
5716 *) LIBOBJS="$LIBOBJS asprintf.$ac_objext" ;;
5720 "basename.$ac_objext" | \
5721 *" basename.$ac_objext" | \
5722 "basename.$ac_objext "* | \
5723 *" basename.$ac_objext "* ) ;;
5724 *) LIBOBJS="$LIBOBJS basename.$ac_objext" ;;
5728 "bcmp.$ac_objext" | \
5729 *" bcmp.$ac_objext" | \
5730 "bcmp.$ac_objext "* | \
5731 *" bcmp.$ac_objext "* ) ;;
5732 *) LIBOBJS="$LIBOBJS bcmp.$ac_objext" ;;
5736 "bcopy.$ac_objext" | \
5737 *" bcopy.$ac_objext" | \
5738 "bcopy.$ac_objext "* | \
5739 *" bcopy.$ac_objext "* ) ;;
5740 *) LIBOBJS="$LIBOBJS bcopy.$ac_objext" ;;
5744 "bzero.$ac_objext" | \
5745 *" bzero.$ac_objext" | \
5746 "bzero.$ac_objext "* | \
5747 *" bzero.$ac_objext "* ) ;;
5748 *) LIBOBJS="$LIBOBJS bzero.$ac_objext" ;;
5752 "clock.$ac_objext" | \
5753 *" clock.$ac_objext" | \
5754 "clock.$ac_objext "* | \
5755 *" clock.$ac_objext "* ) ;;
5756 *) LIBOBJS="$LIBOBJS clock.$ac_objext" ;;
5760 "ffs.$ac_objext" | \
5761 *" ffs.$ac_objext" | \
5762 "ffs.$ac_objext "* | \
5763 *" ffs.$ac_objext "* ) ;;
5764 *) LIBOBJS="$LIBOBJS ffs.$ac_objext" ;;
5768 "getpagesize.$ac_objext" | \
5769 *" getpagesize.$ac_objext" | \
5770 "getpagesize.$ac_objext "* | \
5771 *" getpagesize.$ac_objext "* ) ;;
5772 *) LIBOBJS="$LIBOBJS getpagesize.$ac_objext" ;;
5776 "index.$ac_objext" | \
5777 *" index.$ac_objext" | \
5778 "index.$ac_objext "* | \
5779 *" index.$ac_objext "* ) ;;
5780 *) LIBOBJS="$LIBOBJS index.$ac_objext" ;;
5784 "insque.$ac_objext" | \
5785 *" insque.$ac_objext" | \
5786 "insque.$ac_objext "* | \
5787 *" insque.$ac_objext "* ) ;;
5788 *) LIBOBJS="$LIBOBJS insque.$ac_objext" ;;
5792 "mempcpy.$ac_objext" | \
5793 *" mempcpy.$ac_objext" | \
5794 "mempcpy.$ac_objext "* | \
5795 *" mempcpy.$ac_objext "* ) ;;
5796 *) LIBOBJS="$LIBOBJS mempcpy.$ac_objext" ;;
5800 "mkstemps.$ac_objext" | \
5801 *" mkstemps.$ac_objext" | \
5802 "mkstemps.$ac_objext "* | \
5803 *" mkstemps.$ac_objext "* ) ;;
5804 *) LIBOBJS="$LIBOBJS mkstemps.$ac_objext" ;;
5808 "random.$ac_objext" | \
5809 *" random.$ac_objext" | \
5810 "random.$ac_objext "* | \
5811 *" random.$ac_objext "* ) ;;
5812 *) LIBOBJS="$LIBOBJS random.$ac_objext" ;;
5816 "rindex.$ac_objext" | \
5817 *" rindex.$ac_objext" | \
5818 "rindex.$ac_objext "* | \
5819 *" rindex.$ac_objext "* ) ;;
5820 *) LIBOBJS="$LIBOBJS rindex.$ac_objext" ;;
5824 "sigsetmask.$ac_objext" | \
5825 *" sigsetmask.$ac_objext" | \
5826 "sigsetmask.$ac_objext "* | \
5827 *" sigsetmask.$ac_objext "* ) ;;
5828 *) LIBOBJS="$LIBOBJS sigsetmask.$ac_objext" ;;
5832 "stpcpy.$ac_objext" | \
5833 *" stpcpy.$ac_objext" | \
5834 "stpcpy.$ac_objext "* | \
5835 *" stpcpy.$ac_objext "* ) ;;
5836 *) LIBOBJS="$LIBOBJS stpcpy.$ac_objext" ;;
5840 "stpncpy.$ac_objext" | \
5841 *" stpncpy.$ac_objext" | \
5842 "stpncpy.$ac_objext "* | \
5843 *" stpncpy.$ac_objext "* ) ;;
5844 *) LIBOBJS="$LIBOBJS stpncpy.$ac_objext" ;;
5848 "strndup.$ac_objext" | \
5849 *" strndup.$ac_objext" | \
5850 "strndup.$ac_objext "* | \
5851 *" strndup.$ac_objext "* ) ;;
5852 *) LIBOBJS="$LIBOBJS strndup.$ac_objext" ;;
5856 "strverscmp.$ac_objext" | \
5857 *" strverscmp.$ac_objext" | \
5858 "strverscmp.$ac_objext "* | \
5859 *" strverscmp.$ac_objext "* ) ;;
5860 *) LIBOBJS="$LIBOBJS strverscmp.$ac_objext" ;;
5864 "vasprintf.$ac_objext" | \
5865 *" vasprintf.$ac_objext" | \
5866 "vasprintf.$ac_objext "* | \
5867 *" vasprintf.$ac_objext "* ) ;;
5868 *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext" ;;
5872 "waitpid.$ac_objext" | \
5873 *" waitpid.$ac_objext" | \
5874 "waitpid.$ac_objext "* | \
5875 *" waitpid.$ac_objext "* ) ;;
5876 *) LIBOBJS="$LIBOBJS waitpid.$ac_objext" ;;
5882 asprintf | basename | bcmp | bcopy | bzero | clock | ffs | getpagesize | index | insque | mempcpy | mkstemps | random | rindex | sigsetmask | stpcpy | stpncpy | strdup | strndup | strverscmp | vasprintf | waitpid)
5885 n=HAVE_`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5886 cat >>confdefs.h <<_ACEOF
5894 # Mingw doesnt provide any of the variables in $vars, so we
5895 # dont have to check them here.
5897 # Of the functions in $checkfuncs, Mingw only has strerror.
5898 cat >>confdefs.h <<\_ACEOF
5899 #define HAVE_STRERROR 1
5908 # We may wish to install the target headers somewhere.
5909 # Check whether --enable-install-libiberty or --disable-install-libiberty was given.
5910 if test "${enable_install_libiberty+set}" = set; then
5911 enableval="$enable_install_libiberty"
5912 enable_install_libiberty=$enableval
5914 enable_install_libiberty=no
5916 # Option parsed, now set things appropriately.
5917 case x"$enable_install_libiberty" in
5919 target_header_dir=libiberty
5925 # This could be sanity-checked in various ways...
5926 target_header_dir="${enable_install_libiberty}"
5933 # Not a target library, so we set things up to run the test suite.
5942 *-*-cygwin* | *-*-mingw*)
5943 cat >>confdefs.h <<\_ACEOF
5944 #define HAVE_SYS_ERRLIST 1
5947 cat >>confdefs.h <<\_ACEOF
5948 #define HAVE_SYS_NERR 1
5954 if test -z "${setobjs}"; then
5958 # Handle VxWorks configuration specially, since on VxWorks the
5959 # libraries are actually on the target board, not in the file
5962 "basename.$ac_objext" | \
5963 *" basename.$ac_objext" | \
5964 "basename.$ac_objext "* | \
5965 *" basename.$ac_objext "* ) ;;
5966 *) LIBOBJS="$LIBOBJS basename.$ac_objext" ;;
5970 "getpagesize.$ac_objext" | \
5971 *" getpagesize.$ac_objext" | \
5972 "getpagesize.$ac_objext "* | \
5973 *" getpagesize.$ac_objext "* ) ;;
5974 *) LIBOBJS="$LIBOBJS getpagesize.$ac_objext" ;;
5978 "insque.$ac_objext" | \
5979 *" insque.$ac_objext" | \
5980 "insque.$ac_objext "* | \
5981 *" insque.$ac_objext "* ) ;;
5982 *) LIBOBJS="$LIBOBJS insque.$ac_objext" ;;
5986 "random.$ac_objext" | \
5987 *" random.$ac_objext" | \
5988 "random.$ac_objext "* | \
5989 *" random.$ac_objext "* ) ;;
5990 *) LIBOBJS="$LIBOBJS random.$ac_objext" ;;
5994 "strcasecmp.$ac_objext" | \
5995 *" strcasecmp.$ac_objext" | \
5996 "strcasecmp.$ac_objext "* | \
5997 *" strcasecmp.$ac_objext "* ) ;;
5998 *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext" ;;
6002 "strncasecmp.$ac_objext" | \
6003 *" strncasecmp.$ac_objext" | \
6004 "strncasecmp.$ac_objext "* | \
6005 *" strncasecmp.$ac_objext "* ) ;;
6006 *) LIBOBJS="$LIBOBJS strncasecmp.$ac_objext" ;;
6010 "strdup.$ac_objext" | \
6011 *" strdup.$ac_objext" | \
6012 "strdup.$ac_objext "* | \
6013 *" strdup.$ac_objext "* ) ;;
6014 *) LIBOBJS="$LIBOBJS strdup.$ac_objext" ;;
6018 "vfork.$ac_objext" | \
6019 *" vfork.$ac_objext" | \
6020 "vfork.$ac_objext "* | \
6021 *" vfork.$ac_objext "* ) ;;
6022 *) LIBOBJS="$LIBOBJS vfork.$ac_objext" ;;
6026 "waitpid.$ac_objext" | \
6027 *" waitpid.$ac_objext" | \
6028 "waitpid.$ac_objext "* | \
6029 *" waitpid.$ac_objext "* ) ;;
6030 *) LIBOBJS="$LIBOBJS waitpid.$ac_objext" ;;
6034 "vasprintf.$ac_objext" | \
6035 *" vasprintf.$ac_objext" | \
6036 "vasprintf.$ac_objext "* | \
6037 *" vasprintf.$ac_objext "* ) ;;
6038 *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext" ;;
6043 basename | getpagesize | insque | random | strcasecmp)
6045 strncasecmp | strdup | vfork | waitpid | vasprintf)
6048 n=HAVE_`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6049 cat >>confdefs.h <<_ACEOF
6057 # VxWorks doesn't provide any of the variables in $vars, so we
6058 # don't have to check them here.
6060 # Of the functions in $checkfuncs, VxWorks only has strerror.
6061 cat >>confdefs.h <<\_ACEOF
6062 #define HAVE_STRERROR 1
6070 for f in atexit basename bcmp bcopy bsearch bzero calloc clock ffs \
6071 getcwd getpagesize getrusage gettimeofday gettimeofday \
6072 index insque memchr memcmp memcpy memmove memset psignal \
6073 putenv random rename rindex sbrk setenv stpcpy strcasecmp \
6074 strchr strdup strerror strncasecmp strrchr strstr strtod \
6075 strtol strtoul sysconf times tmpnam vfprintf vprintf \
6078 n=HAVE_`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6079 cat >>confdefs.h <<_ACEOF
6092 if test -z "${setobjs}"; then
6097 # The Cygwin library actually uses a couple of files from
6098 # libiberty when it is built. If we are building a native
6099 # Cygwin, and we run the tests, we will appear to have these
6100 # files. However, when we go on to build winsup, we will wind up
6101 # with a library which does not have the files, since they should
6102 # have come from libiberty.
6104 # We handle this by removing the functions the winsup library
6105 # provides from our shell variables, so that they appear to be
6108 # DJ - only if we're *building* cygwin, not just building *with* cygwin
6110 if test -n "${with_target_subdir}"
6112 funcs="`echo $funcs | sed -e 's/random//'`"
6114 "random.$ac_objext" | \
6115 *" random.$ac_objext" | \
6116 "random.$ac_objext "* | \
6117 *" random.$ac_objext "* ) ;;
6118 *) LIBOBJS="$LIBOBJS random.$ac_objext" ;;
6121 vars="`echo $vars | sed -e 's/sys_siglist//'`"
6122 checkfuncs="`echo $checkfuncs | sed -e 's/strsignal//' -e 's/psignal//'`"
6127 # Under mingw32, sys_nerr and sys_errlist exist, but they are
6128 # macros, so the test below won't find them.
6129 libiberty_cv_var_sys_nerr=yes
6130 libiberty_cv_var_sys_errlist=yes
6134 # vfork and fork are stubs.
6135 ac_cv_func_vfork_works=no
6139 # Under some versions of uwin, vfork is notoriously buggy and the test
6140 # can hang configure; on other versions, vfork exists just as a stub.
6141 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
6142 ac_cv_func_vfork_works=no
6143 # Under uwin 2.0+, sys_nerr and sys_errlist exist, but they are
6144 # macros (actually, these are imported from a DLL, but the end effect
6145 # is the same), so the test below won't find them.
6146 libiberty_cv_var_sys_nerr=yes
6147 libiberty_cv_var_sys_errlist=yes
6151 # Under VMS, vfork works very different than on Unix. The standard test
6152 # won't work, and it isn't easily adaptable. It makes more sense to
6154 ac_cv_func_vfork_works=yes
6159 # We haven't set the list of objects yet. Use the standard autoconf
6160 # tests. This will only work if the compiler works.
6161 echo "$as_me:$LINENO: checking for library containing strerror" >&5
6162 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
6163 if test "${ac_cv_search_strerror+set}" = set; then
6164 echo $ECHO_N "(cached) $ECHO_C" >&6
6166 ac_func_search_save_LIBS=$LIBS
6167 ac_cv_search_strerror=no
6168 if test x$gcc_no_link = xyes; then
6169 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6170 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6171 { (exit 1); exit 1; }; }
6173 cat >conftest.$ac_ext <<_ACEOF
6176 cat confdefs.h >>conftest.$ac_ext
6177 cat >>conftest.$ac_ext <<_ACEOF
6178 /* end confdefs.h. */
6180 /* Override any gcc2 internal prototype to avoid an error. */
6184 /* We use char because int might match the return type of a gcc2
6185 builtin and then its argument prototype would still apply. */
6195 rm -f conftest.$ac_objext conftest$ac_exeext
6196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6197 (eval $ac_link) 2>conftest.er1
6199 grep -v '^ *+' conftest.er1 >conftest.err
6201 cat conftest.err >&5
6202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203 (exit $ac_status); } &&
6204 { ac_try='test -z "$ac_c_werror_flag"
6205 || test ! -s conftest.err'
6206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210 (exit $ac_status); }; } &&
6211 { ac_try='test -s conftest$ac_exeext'
6212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216 (exit $ac_status); }; }; then
6217 ac_cv_search_strerror="none required"
6219 echo "$as_me: failed program was:" >&5
6220 sed 's/^/| /' conftest.$ac_ext >&5
6223 rm -f conftest.err conftest.$ac_objext \
6224 conftest$ac_exeext conftest.$ac_ext
6225 if test "$ac_cv_search_strerror" = no; then
6226 for ac_lib in cposix; do
6227 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6228 if test x$gcc_no_link = xyes; then
6229 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6230 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6231 { (exit 1); exit 1; }; }
6233 cat >conftest.$ac_ext <<_ACEOF
6236 cat confdefs.h >>conftest.$ac_ext
6237 cat >>conftest.$ac_ext <<_ACEOF
6238 /* end confdefs.h. */
6240 /* Override any gcc2 internal prototype to avoid an error. */
6244 /* We use char because int might match the return type of a gcc2
6245 builtin and then its argument prototype would still apply. */
6255 rm -f conftest.$ac_objext conftest$ac_exeext
6256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6257 (eval $ac_link) 2>conftest.er1
6259 grep -v '^ *+' conftest.er1 >conftest.err
6261 cat conftest.err >&5
6262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263 (exit $ac_status); } &&
6264 { ac_try='test -z "$ac_c_werror_flag"
6265 || test ! -s conftest.err'
6266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270 (exit $ac_status); }; } &&
6271 { ac_try='test -s conftest$ac_exeext'
6272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276 (exit $ac_status); }; }; then
6277 ac_cv_search_strerror="-l$ac_lib"
6280 echo "$as_me: failed program was:" >&5
6281 sed 's/^/| /' conftest.$ac_ext >&5
6284 rm -f conftest.err conftest.$ac_objext \
6285 conftest$ac_exeext conftest.$ac_ext
6288 LIBS=$ac_func_search_save_LIBS
6290 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
6291 echo "${ECHO_T}$ac_cv_search_strerror" >&6
6292 if test "$ac_cv_search_strerror" != no; then
6293 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
6298 for ac_func in $funcs
6300 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6301 echo "$as_me:$LINENO: checking for $ac_func" >&5
6302 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6303 if eval "test \"\${$as_ac_var+set}\" = set"; then
6304 echo $ECHO_N "(cached) $ECHO_C" >&6
6306 if test x$gcc_no_link = xyes; then
6307 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6308 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6309 { (exit 1); exit 1; }; }
6311 cat >conftest.$ac_ext <<_ACEOF
6314 cat confdefs.h >>conftest.$ac_ext
6315 cat >>conftest.$ac_ext <<_ACEOF
6316 /* end confdefs.h. */
6317 /* System header to define __stub macros and hopefully few prototypes,
6318 which can conflict with char $ac_func (); below.
6319 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6320 <limits.h> exists even on freestanding compilers. Under hpux,
6321 including <limits.h> includes <sys/time.h> and causes problems
6322 checking for functions defined therein. */
6323 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
6324 # include <limits.h>
6326 # include <assert.h>
6328 /* Override any gcc2 internal prototype to avoid an error. */
6333 /* We use char because int might match the return type of a gcc2
6334 builtin and then its argument prototype would still apply. */
6336 /* The GNU C library defines this for functions which it implements
6337 to always fail with ENOSYS. Some functions are actually named
6338 something starting with __ and the normal name is an alias. */
6339 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6342 char (*f) () = $ac_func;
6351 return f != $ac_func;
6356 rm -f conftest.$ac_objext conftest$ac_exeext
6357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6358 (eval $ac_link) 2>conftest.er1
6360 grep -v '^ *+' conftest.er1 >conftest.err
6362 cat conftest.err >&5
6363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364 (exit $ac_status); } &&
6365 { ac_try='test -z "$ac_c_werror_flag"
6366 || test ! -s conftest.err'
6367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371 (exit $ac_status); }; } &&
6372 { ac_try='test -s conftest$ac_exeext'
6373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377 (exit $ac_status); }; }; then
6378 eval "$as_ac_var=yes"
6380 echo "$as_me: failed program was:" >&5
6381 sed 's/^/| /' conftest.$ac_ext >&5
6383 eval "$as_ac_var=no"
6385 rm -f conftest.err conftest.$ac_objext \
6386 conftest$ac_exeext conftest.$ac_ext
6388 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6389 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6390 if test `eval echo '${'$as_ac_var'}'` = yes; then
6391 cat >>confdefs.h <<_ACEOF
6392 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6397 "$ac_func.$ac_objext" | \
6398 *" $ac_func.$ac_objext" | \
6399 "$ac_func.$ac_objext "* | \
6400 *" $ac_func.$ac_objext "* ) ;;
6401 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
6408 echo "$as_me:$LINENO: checking whether alloca needs Cray hooks" >&5
6409 echo $ECHO_N "checking whether alloca needs Cray hooks... $ECHO_C" >&6
6410 if test "${ac_cv_os_cray+set}" = set; then
6411 echo $ECHO_N "(cached) $ECHO_C" >&6
6413 cat >conftest.$ac_ext <<_ACEOF
6416 cat confdefs.h >>conftest.$ac_ext
6417 cat >>conftest.$ac_ext <<_ACEOF
6418 /* end confdefs.h. */
6419 #if defined(CRAY) && ! defined(CRAY2)
6426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6427 $EGREP "webecray" >/dev/null 2>&1; then
6435 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6436 echo "${ECHO_T}$ac_cv_os_cray" >&6
6437 if test $ac_cv_os_cray = yes; then
6438 for ac_func in _getb67 GETB67 getb67; do
6439 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6440 echo "$as_me:$LINENO: checking for $ac_func" >&5
6441 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6442 if eval "test \"\${$as_ac_var+set}\" = set"; then
6443 echo $ECHO_N "(cached) $ECHO_C" >&6
6445 if test x$gcc_no_link = xyes; then
6446 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6447 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6448 { (exit 1); exit 1; }; }
6450 cat >conftest.$ac_ext <<_ACEOF
6453 cat confdefs.h >>conftest.$ac_ext
6454 cat >>conftest.$ac_ext <<_ACEOF
6455 /* end confdefs.h. */
6456 /* System header to define __stub macros and hopefully few prototypes,
6457 which can conflict with char $ac_func (); below.
6458 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6459 <limits.h> exists even on freestanding compilers. Under hpux,
6460 including <limits.h> includes <sys/time.h> and causes problems
6461 checking for functions defined therein. */
6462 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
6463 # include <limits.h>
6465 # include <assert.h>
6467 /* Override any gcc2 internal prototype to avoid an error. */
6472 /* We use char because int might match the return type of a gcc2
6473 builtin and then its argument prototype would still apply. */
6475 /* The GNU C library defines this for functions which it implements
6476 to always fail with ENOSYS. Some functions are actually named
6477 something starting with __ and the normal name is an alias. */
6478 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6481 char (*f) () = $ac_func;
6490 return f != $ac_func;
6495 rm -f conftest.$ac_objext conftest$ac_exeext
6496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6497 (eval $ac_link) 2>conftest.er1
6499 grep -v '^ *+' conftest.er1 >conftest.err
6501 cat conftest.err >&5
6502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6503 (exit $ac_status); } &&
6504 { ac_try='test -z "$ac_c_werror_flag"
6505 || test ! -s conftest.err'
6506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6510 (exit $ac_status); }; } &&
6511 { ac_try='test -s conftest$ac_exeext'
6512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516 (exit $ac_status); }; }; then
6517 eval "$as_ac_var=yes"
6519 echo "$as_me: failed program was:" >&5
6520 sed 's/^/| /' conftest.$ac_ext >&5
6522 eval "$as_ac_var=no"
6524 rm -f conftest.err conftest.$ac_objext \
6525 conftest$ac_exeext conftest.$ac_ext
6527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6528 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6529 if test `eval echo '${'$as_ac_var'}'` = yes; then
6531 cat >>confdefs.h <<_ACEOF
6532 #define CRAY_STACKSEG_END $ac_func
6540 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6541 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6542 if test "${ac_cv_c_stack_direction+set}" = set; then
6543 echo $ECHO_N "(cached) $ECHO_C" >&6
6545 if test "$cross_compiling" = yes; then
6546 ac_cv_c_stack_direction=0
6548 cat >conftest.$ac_ext <<_ACEOF
6551 cat confdefs.h >>conftest.$ac_ext
6552 cat >>conftest.$ac_ext <<_ACEOF
6553 /* end confdefs.h. */
6554 find_stack_direction ()
6556 static char *addr = 0;
6561 return find_stack_direction ();
6564 return (&dummy > addr) ? 1 : -1;
6568 exit (find_stack_direction() < 0);
6571 rm -f conftest$ac_exeext
6572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6573 (eval $ac_link) 2>&5
6575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6576 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581 (exit $ac_status); }; }; then
6582 ac_cv_c_stack_direction=1
6584 echo "$as_me: program exited with status $ac_status" >&5
6585 echo "$as_me: failed program was:" >&5
6586 sed 's/^/| /' conftest.$ac_ext >&5
6589 ac_cv_c_stack_direction=-1
6591 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6594 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6595 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6597 cat >>confdefs.h <<_ACEOF
6598 #define STACK_DIRECTION $ac_cv_c_stack_direction
6604 for ac_header in unistd.h vfork.h
6606 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6607 echo "$as_me:$LINENO: checking for $ac_header" >&5
6608 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6609 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6610 echo $ECHO_N "(cached) $ECHO_C" >&6
6612 cat >conftest.$ac_ext <<_ACEOF
6615 cat confdefs.h >>conftest.$ac_ext
6616 cat >>conftest.$ac_ext <<_ACEOF
6617 /* end confdefs.h. */
6618 #include <$ac_header>
6620 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6621 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6623 grep -v '^ *+' conftest.er1 >conftest.err
6625 cat conftest.err >&5
6626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627 (exit $ac_status); } >/dev/null; then
6628 if test -s conftest.err; then
6629 ac_cpp_err=$ac_c_preproc_warn_flag
6630 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6637 if test -z "$ac_cpp_err"; then
6638 eval "$as_ac_Header=yes"
6640 echo "$as_me: failed program was:" >&5
6641 sed 's/^/| /' conftest.$ac_ext >&5
6643 eval "$as_ac_Header=no"
6645 rm -f conftest.err conftest.$ac_ext
6647 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6648 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6649 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6650 cat >>confdefs.h <<_ACEOF
6651 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6659 for ac_func in fork vfork
6661 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6662 echo "$as_me:$LINENO: checking for $ac_func" >&5
6663 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6664 if eval "test \"\${$as_ac_var+set}\" = set"; then
6665 echo $ECHO_N "(cached) $ECHO_C" >&6
6667 if test x$gcc_no_link = xyes; then
6668 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6669 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6670 { (exit 1); exit 1; }; }
6672 cat >conftest.$ac_ext <<_ACEOF
6675 cat confdefs.h >>conftest.$ac_ext
6676 cat >>conftest.$ac_ext <<_ACEOF
6677 /* end confdefs.h. */
6678 /* System header to define __stub macros and hopefully few prototypes,
6679 which can conflict with char $ac_func (); below.
6680 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6681 <limits.h> exists even on freestanding compilers. Under hpux,
6682 including <limits.h> includes <sys/time.h> and causes problems
6683 checking for functions defined therein. */
6684 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
6685 # include <limits.h>
6687 # include <assert.h>
6689 /* Override any gcc2 internal prototype to avoid an error. */
6694 /* We use char because int might match the return type of a gcc2
6695 builtin and then its argument prototype would still apply. */
6697 /* The GNU C library defines this for functions which it implements
6698 to always fail with ENOSYS. Some functions are actually named
6699 something starting with __ and the normal name is an alias. */
6700 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6703 char (*f) () = $ac_func;
6712 return f != $ac_func;
6717 rm -f conftest.$ac_objext conftest$ac_exeext
6718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6719 (eval $ac_link) 2>conftest.er1
6721 grep -v '^ *+' conftest.er1 >conftest.err
6723 cat conftest.err >&5
6724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6725 (exit $ac_status); } &&
6726 { ac_try='test -z "$ac_c_werror_flag"
6727 || test ! -s conftest.err'
6728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732 (exit $ac_status); }; } &&
6733 { ac_try='test -s conftest$ac_exeext'
6734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6738 (exit $ac_status); }; }; then
6739 eval "$as_ac_var=yes"
6741 echo "$as_me: failed program was:" >&5
6742 sed 's/^/| /' conftest.$ac_ext >&5
6744 eval "$as_ac_var=no"
6746 rm -f conftest.err conftest.$ac_objext \
6747 conftest$ac_exeext conftest.$ac_ext
6749 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6750 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6751 if test `eval echo '${'$as_ac_var'}'` = yes; then
6752 cat >>confdefs.h <<_ACEOF
6753 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6759 if test "x$ac_cv_func_fork" = xyes; then
6760 echo "$as_me:$LINENO: checking for working fork" >&5
6761 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
6762 if test "${ac_cv_func_fork_works+set}" = set; then
6763 echo $ECHO_N "(cached) $ECHO_C" >&6
6765 if test "$cross_compiling" = yes; then
6766 ac_cv_func_fork_works=cross
6768 cat >conftest.$ac_ext <<_ACEOF
6769 /* By Ruediger Kuhlmann. */
6770 #include <sys/types.h>
6772 # include <unistd.h>
6774 /* Some systems only have a dummy stub for fork() */
6782 rm -f conftest$ac_exeext
6783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6784 (eval $ac_link) 2>&5
6786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6787 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6792 (exit $ac_status); }; }; then
6793 ac_cv_func_fork_works=yes
6795 echo "$as_me: program exited with status $ac_status" >&5
6796 echo "$as_me: failed program was:" >&5
6797 sed 's/^/| /' conftest.$ac_ext >&5
6800 ac_cv_func_fork_works=no
6802 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6805 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
6806 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
6809 ac_cv_func_fork_works=$ac_cv_func_fork
6811 if test "x$ac_cv_func_fork_works" = xcross; then
6813 *-*-amigaos* | *-*-msdosdjgpp*)
6814 # Override, as these systems have only a dummy fork() stub
6815 ac_cv_func_fork_works=no
6818 ac_cv_func_fork_works=yes
6821 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
6822 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
6824 ac_cv_func_vfork_works=$ac_cv_func_vfork
6825 if test "x$ac_cv_func_vfork" = xyes; then
6826 echo "$as_me:$LINENO: checking for working vfork" >&5
6827 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
6828 if test "${ac_cv_func_vfork_works+set}" = set; then
6829 echo $ECHO_N "(cached) $ECHO_C" >&6
6831 if test "$cross_compiling" = yes; then
6832 ac_cv_func_vfork_works=cross
6834 cat >conftest.$ac_ext <<_ACEOF
6837 cat confdefs.h >>conftest.$ac_ext
6838 cat >>conftest.$ac_ext <<_ACEOF
6839 /* end confdefs.h. */
6840 /* Thanks to Paul Eggert for this test. */
6843 #include <sys/types.h>
6844 #include <sys/stat.h>
6845 #include <sys/wait.h>
6847 # include <unistd.h>
6852 /* On some sparc systems, changes by the child to local and incoming
6853 argument registers are propagated back to the parent. The compiler
6854 is told about this with #include <vfork.h>, but some compilers
6855 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
6856 static variable whose address is put into a register that is
6857 clobbered by the vfork. */
6860 sparc_address_test (int arg)
6862 sparc_address_test (arg) int arg;
6883 pid_t parent = getpid ();
6886 sparc_address_test (0);
6891 /* Here is another test for sparc vfork register problems. This
6892 test uses lots of local variables, at least as many local
6893 variables as main has allocated so far including compiler
6894 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
6895 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
6896 reuse the register of parent for one of the local variables,
6897 since it will think that parent can't possibly be used any more
6898 in this routine. Assigning to the local variable will thus
6899 munge parent in the parent process. */
6901 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
6902 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
6903 /* Convince the compiler that p..p7 are live; otherwise, it might
6904 use the same hardware register for all 8 local variables. */
6905 if (p != p1 || p != p2 || p != p3 || p != p4
6906 || p != p5 || p != p6 || p != p7)
6909 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
6910 from child file descriptors. If the child closes a descriptor
6911 before it execs or exits, this munges the parent's descriptor
6912 as well. Test for this by closing stdout in the child. */
6913 _exit(close(fileno(stdout)) != 0);
6918 while (wait(&status) != child)
6921 /* Was there some problem with vforking? */
6924 /* Did the child fail? (This shouldn't happen.) */
6927 /* Did the vfork/compiler bug occur? */
6928 || parent != getpid()
6930 /* Did the file descriptor bug occur? */
6931 || fstat(fileno(stdout), &st) != 0
6936 rm -f conftest$ac_exeext
6937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6938 (eval $ac_link) 2>&5
6940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6941 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946 (exit $ac_status); }; }; then
6947 ac_cv_func_vfork_works=yes
6949 echo "$as_me: program exited with status $ac_status" >&5
6950 echo "$as_me: failed program was:" >&5
6951 sed 's/^/| /' conftest.$ac_ext >&5
6954 ac_cv_func_vfork_works=no
6956 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6959 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
6960 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
6963 if test "x$ac_cv_func_fork_works" = xcross; then
6964 ac_cv_func_vfork_works=$ac_cv_func_vfork
6965 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
6966 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
6969 if test "x$ac_cv_func_vfork_works" = xyes; then
6971 cat >>confdefs.h <<\_ACEOF
6972 #define HAVE_WORKING_VFORK 1
6977 cat >>confdefs.h <<\_ACEOF
6982 if test "x$ac_cv_func_fork_works" = xyes; then
6984 cat >>confdefs.h <<\_ACEOF
6985 #define HAVE_WORKING_FORK 1
6990 if test $ac_cv_func_vfork_works = no; then
6992 "vfork.$ac_objext" | \
6993 *" vfork.$ac_objext" | \
6994 "vfork.$ac_objext "* | \
6995 *" vfork.$ac_objext "* ) ;;
6996 *) LIBOBJS="$LIBOBJS vfork.$ac_objext" ;;
7000 # We only need _doprnt if we might use it to implement v*printf.
7001 if test $ac_cv_func_vprintf != yes \
7002 || test $ac_cv_func_vfprintf != yes \
7003 || test $ac_cv_func_vsprintf != yes; then
7005 for ac_func in _doprnt
7007 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7008 echo "$as_me:$LINENO: checking for $ac_func" >&5
7009 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7010 if eval "test \"\${$as_ac_var+set}\" = set"; then
7011 echo $ECHO_N "(cached) $ECHO_C" >&6
7013 if test x$gcc_no_link = xyes; then
7014 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7015 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7016 { (exit 1); exit 1; }; }
7018 cat >conftest.$ac_ext <<_ACEOF
7021 cat confdefs.h >>conftest.$ac_ext
7022 cat >>conftest.$ac_ext <<_ACEOF
7023 /* end confdefs.h. */
7024 /* System header to define __stub macros and hopefully few prototypes,
7025 which can conflict with char $ac_func (); below.
7026 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7027 <limits.h> exists even on freestanding compilers. Under hpux,
7028 including <limits.h> includes <sys/time.h> and causes problems
7029 checking for functions defined therein. */
7030 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
7031 # include <limits.h>
7033 # include <assert.h>
7035 /* Override any gcc2 internal prototype to avoid an error. */
7040 /* We use char because int might match the return type of a gcc2
7041 builtin and then its argument prototype would still apply. */
7043 /* The GNU C library defines this for functions which it implements
7044 to always fail with ENOSYS. Some functions are actually named
7045 something starting with __ and the normal name is an alias. */
7046 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7049 char (*f) () = $ac_func;
7058 return f != $ac_func;
7063 rm -f conftest.$ac_objext conftest$ac_exeext
7064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7065 (eval $ac_link) 2>conftest.er1
7067 grep -v '^ *+' conftest.er1 >conftest.err
7069 cat conftest.err >&5
7070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071 (exit $ac_status); } &&
7072 { ac_try='test -z "$ac_c_werror_flag"
7073 || test ! -s conftest.err'
7074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078 (exit $ac_status); }; } &&
7079 { ac_try='test -s conftest$ac_exeext'
7080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084 (exit $ac_status); }; }; then
7085 eval "$as_ac_var=yes"
7087 echo "$as_me: failed program was:" >&5
7088 sed 's/^/| /' conftest.$ac_ext >&5
7090 eval "$as_ac_var=no"
7092 rm -f conftest.err conftest.$ac_objext \
7093 conftest$ac_exeext conftest.$ac_ext
7095 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7096 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7097 if test `eval echo '${'$as_ac_var'}'` = yes; then
7098 cat >>confdefs.h <<_ACEOF
7099 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7104 "$ac_func.$ac_objext" | \
7105 *" $ac_func.$ac_objext" | \
7106 "$ac_func.$ac_objext "* | \
7107 *" $ac_func.$ac_objext "* ) ;;
7108 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
7117 for ac_func in _doprnt
7119 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7120 echo "$as_me:$LINENO: checking for $ac_func" >&5
7121 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7122 if eval "test \"\${$as_ac_var+set}\" = set"; then
7123 echo $ECHO_N "(cached) $ECHO_C" >&6
7125 if test x$gcc_no_link = xyes; then
7126 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7127 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7128 { (exit 1); exit 1; }; }
7130 cat >conftest.$ac_ext <<_ACEOF
7133 cat confdefs.h >>conftest.$ac_ext
7134 cat >>conftest.$ac_ext <<_ACEOF
7135 /* end confdefs.h. */
7136 /* System header to define __stub macros and hopefully few prototypes,
7137 which can conflict with char $ac_func (); below.
7138 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7139 <limits.h> exists even on freestanding compilers. Under hpux,
7140 including <limits.h> includes <sys/time.h> and causes problems
7141 checking for functions defined therein. */
7142 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
7143 # include <limits.h>
7145 # include <assert.h>
7147 /* Override any gcc2 internal prototype to avoid an error. */
7152 /* We use char because int might match the return type of a gcc2
7153 builtin and then its argument prototype would still apply. */
7155 /* The GNU C library defines this for functions which it implements
7156 to always fail with ENOSYS. Some functions are actually named
7157 something starting with __ and the normal name is an alias. */
7158 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7161 char (*f) () = $ac_func;
7170 return f != $ac_func;
7175 rm -f conftest.$ac_objext conftest$ac_exeext
7176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7177 (eval $ac_link) 2>conftest.er1
7179 grep -v '^ *+' conftest.er1 >conftest.err
7181 cat conftest.err >&5
7182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7183 (exit $ac_status); } &&
7184 { ac_try='test -z "$ac_c_werror_flag"
7185 || test ! -s conftest.err'
7186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7190 (exit $ac_status); }; } &&
7191 { ac_try='test -s conftest$ac_exeext'
7192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196 (exit $ac_status); }; }; then
7197 eval "$as_ac_var=yes"
7199 echo "$as_me: failed program was:" >&5
7200 sed 's/^/| /' conftest.$ac_ext >&5
7202 eval "$as_ac_var=no"
7204 rm -f conftest.err conftest.$ac_objext \
7205 conftest$ac_exeext conftest.$ac_ext
7207 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7208 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7209 if test `eval echo '${'$as_ac_var'}'` = yes; then
7210 cat >>confdefs.h <<_ACEOF
7211 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7220 echo "$as_me:$LINENO: checking for $v" >&5
7221 echo $ECHO_N "checking for $v... $ECHO_C" >&6
7222 if eval "test \"\${libiberty_cv_var_$v+set}\" = set"; then
7223 echo $ECHO_N "(cached) $ECHO_C" >&6
7225 if test x$gcc_no_link = xyes; then
7226 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7227 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7228 { (exit 1); exit 1; }; }
7230 cat >conftest.$ac_ext <<_ACEOF
7233 cat confdefs.h >>conftest.$ac_ext
7234 cat >>conftest.$ac_ext <<_ACEOF
7235 /* end confdefs.h. */
7240 extern int $v []; p = $v;
7245 rm -f conftest.$ac_objext conftest$ac_exeext
7246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7247 (eval $ac_link) 2>conftest.er1
7249 grep -v '^ *+' conftest.er1 >conftest.err
7251 cat conftest.err >&5
7252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7253 (exit $ac_status); } &&
7254 { ac_try='test -z "$ac_c_werror_flag"
7255 || test ! -s conftest.err'
7256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260 (exit $ac_status); }; } &&
7261 { ac_try='test -s conftest$ac_exeext'
7262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7266 (exit $ac_status); }; }; then
7267 eval "libiberty_cv_var_$v=yes"
7269 echo "$as_me: failed program was:" >&5
7270 sed 's/^/| /' conftest.$ac_ext >&5
7272 eval "libiberty_cv_var_$v=no"
7274 rm -f conftest.err conftest.$ac_objext \
7275 conftest$ac_exeext conftest.$ac_ext
7278 if eval "test \"`echo '$libiberty_cv_var_'$v`\" = yes"; then
7279 echo "$as_me:$LINENO: result: yes" >&5
7280 echo "${ECHO_T}yes" >&6
7281 n=HAVE_`echo $v | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7282 cat >>confdefs.h <<_ACEOF
7287 echo "$as_me:$LINENO: result: no" >&5
7288 echo "${ECHO_T}no" >&6
7292 # special check for _system_configuration because AIX <4.3.2 do not
7293 # contain the `physmem' member.
7294 echo "$as_me:$LINENO: checking for external symbol _system_configuration" >&5
7295 echo $ECHO_N "checking for external symbol _system_configuration... $ECHO_C" >&6
7296 cat >conftest.$ac_ext <<_ACEOF
7299 cat confdefs.h >>conftest.$ac_ext
7300 cat >>conftest.$ac_ext <<_ACEOF
7301 /* end confdefs.h. */
7302 #include <sys/systemcfg.h>
7306 double x = _system_configuration.physmem;
7311 rm -f conftest.$ac_objext
7312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7313 (eval $ac_compile) 2>conftest.er1
7315 grep -v '^ *+' conftest.er1 >conftest.err
7317 cat conftest.err >&5
7318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7319 (exit $ac_status); } &&
7320 { ac_try='test -z "$ac_c_werror_flag"
7321 || test ! -s conftest.err'
7322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7326 (exit $ac_status); }; } &&
7327 { ac_try='test -s conftest.$ac_objext'
7328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332 (exit $ac_status); }; }; then
7333 echo "$as_me:$LINENO: result: yes" >&5
7334 echo "${ECHO_T}yes" >&6
7336 cat >>confdefs.h <<\_ACEOF
7337 #define HAVE__SYSTEM_CONFIGURATION 1
7341 echo "$as_me: failed program was:" >&5
7342 sed 's/^/| /' conftest.$ac_ext >&5
7344 echo "$as_me:$LINENO: result: no" >&5
7345 echo "${ECHO_T}no" >&6
7347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7350 for ac_func in $checkfuncs
7352 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7353 echo "$as_me:$LINENO: checking for $ac_func" >&5
7354 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7355 if eval "test \"\${$as_ac_var+set}\" = set"; then
7356 echo $ECHO_N "(cached) $ECHO_C" >&6
7358 if test x$gcc_no_link = xyes; then
7359 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7360 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7361 { (exit 1); exit 1; }; }
7363 cat >conftest.$ac_ext <<_ACEOF
7366 cat confdefs.h >>conftest.$ac_ext
7367 cat >>conftest.$ac_ext <<_ACEOF
7368 /* end confdefs.h. */
7369 /* System header to define __stub macros and hopefully few prototypes,
7370 which can conflict with char $ac_func (); below.
7371 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7372 <limits.h> exists even on freestanding compilers. Under hpux,
7373 including <limits.h> includes <sys/time.h> and causes problems
7374 checking for functions defined therein. */
7375 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
7376 # include <limits.h>
7378 # include <assert.h>
7380 /* Override any gcc2 internal prototype to avoid an error. */
7385 /* We use char because int might match the return type of a gcc2
7386 builtin and then its argument prototype would still apply. */
7388 /* The GNU C library defines this for functions which it implements
7389 to always fail with ENOSYS. Some functions are actually named
7390 something starting with __ and the normal name is an alias. */
7391 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7394 char (*f) () = $ac_func;
7403 return f != $ac_func;
7408 rm -f conftest.$ac_objext conftest$ac_exeext
7409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7410 (eval $ac_link) 2>conftest.er1
7412 grep -v '^ *+' conftest.er1 >conftest.err
7414 cat conftest.err >&5
7415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416 (exit $ac_status); } &&
7417 { ac_try='test -z "$ac_c_werror_flag"
7418 || test ! -s conftest.err'
7419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7423 (exit $ac_status); }; } &&
7424 { ac_try='test -s conftest$ac_exeext'
7425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429 (exit $ac_status); }; }; then
7430 eval "$as_ac_var=yes"
7432 echo "$as_me: failed program was:" >&5
7433 sed 's/^/| /' conftest.$ac_ext >&5
7435 eval "$as_ac_var=no"
7437 rm -f conftest.err conftest.$ac_objext \
7438 conftest$ac_exeext conftest.$ac_ext
7440 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7441 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7442 if test `eval echo '${'$as_ac_var'}'` = yes; then
7443 cat >>confdefs.h <<_ACEOF
7444 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7450 echo "$as_me:$LINENO: checking whether basename is declared" >&5
7451 echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
7452 if test "${ac_cv_have_decl_basename+set}" = set; then
7453 echo $ECHO_N "(cached) $ECHO_C" >&6
7455 cat >conftest.$ac_ext <<_ACEOF
7458 cat confdefs.h >>conftest.$ac_ext
7459 cat >>conftest.$ac_ext <<_ACEOF
7460 /* end confdefs.h. */
7461 $ac_includes_default
7466 char *p = (char *) basename;
7473 rm -f conftest.$ac_objext
7474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7475 (eval $ac_compile) 2>conftest.er1
7477 grep -v '^ *+' conftest.er1 >conftest.err
7479 cat conftest.err >&5
7480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7481 (exit $ac_status); } &&
7482 { ac_try='test -z "$ac_c_werror_flag"
7483 || test ! -s conftest.err'
7484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7488 (exit $ac_status); }; } &&
7489 { ac_try='test -s conftest.$ac_objext'
7490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7494 (exit $ac_status); }; }; then
7495 ac_cv_have_decl_basename=yes
7497 echo "$as_me: failed program was:" >&5
7498 sed 's/^/| /' conftest.$ac_ext >&5
7500 ac_cv_have_decl_basename=no
7502 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7504 echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
7505 echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
7506 if test $ac_cv_have_decl_basename = yes; then
7508 cat >>confdefs.h <<_ACEOF
7509 #define HAVE_DECL_BASENAME 1
7514 cat >>confdefs.h <<_ACEOF
7515 #define HAVE_DECL_BASENAME 0
7520 echo "$as_me:$LINENO: checking whether ffs is declared" >&5
7521 echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
7522 if test "${ac_cv_have_decl_ffs+set}" = set; then
7523 echo $ECHO_N "(cached) $ECHO_C" >&6
7525 cat >conftest.$ac_ext <<_ACEOF
7528 cat confdefs.h >>conftest.$ac_ext
7529 cat >>conftest.$ac_ext <<_ACEOF
7530 /* end confdefs.h. */
7531 $ac_includes_default
7536 char *p = (char *) ffs;
7543 rm -f conftest.$ac_objext
7544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7545 (eval $ac_compile) 2>conftest.er1
7547 grep -v '^ *+' conftest.er1 >conftest.err
7549 cat conftest.err >&5
7550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7551 (exit $ac_status); } &&
7552 { ac_try='test -z "$ac_c_werror_flag"
7553 || test ! -s conftest.err'
7554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7558 (exit $ac_status); }; } &&
7559 { ac_try='test -s conftest.$ac_objext'
7560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7564 (exit $ac_status); }; }; then
7565 ac_cv_have_decl_ffs=yes
7567 echo "$as_me: failed program was:" >&5
7568 sed 's/^/| /' conftest.$ac_ext >&5
7570 ac_cv_have_decl_ffs=no
7572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7574 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
7575 echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
7576 if test $ac_cv_have_decl_ffs = yes; then
7578 cat >>confdefs.h <<_ACEOF
7579 #define HAVE_DECL_FFS 1
7584 cat >>confdefs.h <<_ACEOF
7585 #define HAVE_DECL_FFS 0
7590 echo "$as_me:$LINENO: checking whether asprintf is declared" >&5
7591 echo $ECHO_N "checking whether asprintf is declared... $ECHO_C" >&6
7592 if test "${ac_cv_have_decl_asprintf+set}" = set; then
7593 echo $ECHO_N "(cached) $ECHO_C" >&6
7595 cat >conftest.$ac_ext <<_ACEOF
7598 cat confdefs.h >>conftest.$ac_ext
7599 cat >>conftest.$ac_ext <<_ACEOF
7600 /* end confdefs.h. */
7601 $ac_includes_default
7606 char *p = (char *) asprintf;
7613 rm -f conftest.$ac_objext
7614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7615 (eval $ac_compile) 2>conftest.er1
7617 grep -v '^ *+' conftest.er1 >conftest.err
7619 cat conftest.err >&5
7620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621 (exit $ac_status); } &&
7622 { ac_try='test -z "$ac_c_werror_flag"
7623 || test ! -s conftest.err'
7624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628 (exit $ac_status); }; } &&
7629 { ac_try='test -s conftest.$ac_objext'
7630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7634 (exit $ac_status); }; }; then
7635 ac_cv_have_decl_asprintf=yes
7637 echo "$as_me: failed program was:" >&5
7638 sed 's/^/| /' conftest.$ac_ext >&5
7640 ac_cv_have_decl_asprintf=no
7642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7644 echo "$as_me:$LINENO: result: $ac_cv_have_decl_asprintf" >&5
7645 echo "${ECHO_T}$ac_cv_have_decl_asprintf" >&6
7646 if test $ac_cv_have_decl_asprintf = yes; then
7648 cat >>confdefs.h <<_ACEOF
7649 #define HAVE_DECL_ASPRINTF 1
7654 cat >>confdefs.h <<_ACEOF
7655 #define HAVE_DECL_ASPRINTF 0
7660 echo "$as_me:$LINENO: checking whether vasprintf is declared" >&5
7661 echo $ECHO_N "checking whether vasprintf is declared... $ECHO_C" >&6
7662 if test "${ac_cv_have_decl_vasprintf+set}" = set; then
7663 echo $ECHO_N "(cached) $ECHO_C" >&6
7665 cat >conftest.$ac_ext <<_ACEOF
7668 cat confdefs.h >>conftest.$ac_ext
7669 cat >>conftest.$ac_ext <<_ACEOF
7670 /* end confdefs.h. */
7671 $ac_includes_default
7676 char *p = (char *) vasprintf;
7683 rm -f conftest.$ac_objext
7684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7685 (eval $ac_compile) 2>conftest.er1
7687 grep -v '^ *+' conftest.er1 >conftest.err
7689 cat conftest.err >&5
7690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7691 (exit $ac_status); } &&
7692 { ac_try='test -z "$ac_c_werror_flag"
7693 || test ! -s conftest.err'
7694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698 (exit $ac_status); }; } &&
7699 { ac_try='test -s conftest.$ac_objext'
7700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7704 (exit $ac_status); }; }; then
7705 ac_cv_have_decl_vasprintf=yes
7707 echo "$as_me: failed program was:" >&5
7708 sed 's/^/| /' conftest.$ac_ext >&5
7710 ac_cv_have_decl_vasprintf=no
7712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7714 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vasprintf" >&5
7715 echo "${ECHO_T}$ac_cv_have_decl_vasprintf" >&6
7716 if test $ac_cv_have_decl_vasprintf = yes; then
7718 cat >>confdefs.h <<_ACEOF
7719 #define HAVE_DECL_VASPRINTF 1
7724 cat >>confdefs.h <<_ACEOF
7725 #define HAVE_DECL_VASPRINTF 0
7730 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
7731 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
7732 if test "${ac_cv_have_decl_snprintf+set}" = set; then
7733 echo $ECHO_N "(cached) $ECHO_C" >&6
7735 cat >conftest.$ac_ext <<_ACEOF
7738 cat confdefs.h >>conftest.$ac_ext
7739 cat >>conftest.$ac_ext <<_ACEOF
7740 /* end confdefs.h. */
7741 $ac_includes_default
7746 char *p = (char *) snprintf;
7753 rm -f conftest.$ac_objext
7754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7755 (eval $ac_compile) 2>conftest.er1
7757 grep -v '^ *+' conftest.er1 >conftest.err
7759 cat conftest.err >&5
7760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761 (exit $ac_status); } &&
7762 { ac_try='test -z "$ac_c_werror_flag"
7763 || test ! -s conftest.err'
7764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768 (exit $ac_status); }; } &&
7769 { ac_try='test -s conftest.$ac_objext'
7770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774 (exit $ac_status); }; }; then
7775 ac_cv_have_decl_snprintf=yes
7777 echo "$as_me: failed program was:" >&5
7778 sed 's/^/| /' conftest.$ac_ext >&5
7780 ac_cv_have_decl_snprintf=no
7782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7784 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
7785 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
7786 if test $ac_cv_have_decl_snprintf = yes; then
7788 cat >>confdefs.h <<_ACEOF
7789 #define HAVE_DECL_SNPRINTF 1
7794 cat >>confdefs.h <<_ACEOF
7795 #define HAVE_DECL_SNPRINTF 0
7800 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
7801 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
7802 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
7803 echo $ECHO_N "(cached) $ECHO_C" >&6
7805 cat >conftest.$ac_ext <<_ACEOF
7808 cat confdefs.h >>conftest.$ac_ext
7809 cat >>conftest.$ac_ext <<_ACEOF
7810 /* end confdefs.h. */
7811 $ac_includes_default
7816 char *p = (char *) vsnprintf;
7823 rm -f conftest.$ac_objext
7824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7825 (eval $ac_compile) 2>conftest.er1
7827 grep -v '^ *+' conftest.er1 >conftest.err
7829 cat conftest.err >&5
7830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831 (exit $ac_status); } &&
7832 { ac_try='test -z "$ac_c_werror_flag"
7833 || test ! -s conftest.err'
7834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838 (exit $ac_status); }; } &&
7839 { ac_try='test -s conftest.$ac_objext'
7840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844 (exit $ac_status); }; }; then
7845 ac_cv_have_decl_vsnprintf=yes
7847 echo "$as_me: failed program was:" >&5
7848 sed 's/^/| /' conftest.$ac_ext >&5
7850 ac_cv_have_decl_vsnprintf=no
7852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7854 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
7855 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
7856 if test $ac_cv_have_decl_vsnprintf = yes; then
7858 cat >>confdefs.h <<_ACEOF
7859 #define HAVE_DECL_VSNPRINTF 1
7864 cat >>confdefs.h <<_ACEOF
7865 #define HAVE_DECL_VSNPRINTF 0
7872 echo "$as_me:$LINENO: checking whether calloc is declared" >&5
7873 echo $ECHO_N "checking whether calloc is declared... $ECHO_C" >&6
7874 if test "${ac_cv_have_decl_calloc+set}" = set; then
7875 echo $ECHO_N "(cached) $ECHO_C" >&6
7877 cat >conftest.$ac_ext <<_ACEOF
7880 cat confdefs.h >>conftest.$ac_ext
7881 cat >>conftest.$ac_ext <<_ACEOF
7882 /* end confdefs.h. */
7883 $ac_includes_default
7888 char *p = (char *) calloc;
7895 rm -f conftest.$ac_objext
7896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7897 (eval $ac_compile) 2>conftest.er1
7899 grep -v '^ *+' conftest.er1 >conftest.err
7901 cat conftest.err >&5
7902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7903 (exit $ac_status); } &&
7904 { ac_try='test -z "$ac_c_werror_flag"
7905 || test ! -s conftest.err'
7906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910 (exit $ac_status); }; } &&
7911 { ac_try='test -s conftest.$ac_objext'
7912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916 (exit $ac_status); }; }; then
7917 ac_cv_have_decl_calloc=yes
7919 echo "$as_me: failed program was:" >&5
7920 sed 's/^/| /' conftest.$ac_ext >&5
7922 ac_cv_have_decl_calloc=no
7924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7926 echo "$as_me:$LINENO: result: $ac_cv_have_decl_calloc" >&5
7927 echo "${ECHO_T}$ac_cv_have_decl_calloc" >&6
7928 if test $ac_cv_have_decl_calloc = yes; then
7930 cat >>confdefs.h <<_ACEOF
7931 #define HAVE_DECL_CALLOC 1
7936 cat >>confdefs.h <<_ACEOF
7937 #define HAVE_DECL_CALLOC 0
7942 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
7943 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
7944 if test "${ac_cv_have_decl_getenv+set}" = set; then
7945 echo $ECHO_N "(cached) $ECHO_C" >&6
7947 cat >conftest.$ac_ext <<_ACEOF
7950 cat confdefs.h >>conftest.$ac_ext
7951 cat >>conftest.$ac_ext <<_ACEOF
7952 /* end confdefs.h. */
7953 $ac_includes_default
7958 char *p = (char *) getenv;
7965 rm -f conftest.$ac_objext
7966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7967 (eval $ac_compile) 2>conftest.er1
7969 grep -v '^ *+' conftest.er1 >conftest.err
7971 cat conftest.err >&5
7972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973 (exit $ac_status); } &&
7974 { ac_try='test -z "$ac_c_werror_flag"
7975 || test ! -s conftest.err'
7976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980 (exit $ac_status); }; } &&
7981 { ac_try='test -s conftest.$ac_objext'
7982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7986 (exit $ac_status); }; }; then
7987 ac_cv_have_decl_getenv=yes
7989 echo "$as_me: failed program was:" >&5
7990 sed 's/^/| /' conftest.$ac_ext >&5
7992 ac_cv_have_decl_getenv=no
7994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7996 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
7997 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
7998 if test $ac_cv_have_decl_getenv = yes; then
8000 cat >>confdefs.h <<_ACEOF
8001 #define HAVE_DECL_GETENV 1
8006 cat >>confdefs.h <<_ACEOF
8007 #define HAVE_DECL_GETENV 0
8012 echo "$as_me:$LINENO: checking whether getopt is declared" >&5
8013 echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
8014 if test "${ac_cv_have_decl_getopt+set}" = set; then
8015 echo $ECHO_N "(cached) $ECHO_C" >&6
8017 cat >conftest.$ac_ext <<_ACEOF
8020 cat confdefs.h >>conftest.$ac_ext
8021 cat >>conftest.$ac_ext <<_ACEOF
8022 /* end confdefs.h. */
8023 $ac_includes_default
8028 char *p = (char *) getopt;
8035 rm -f conftest.$ac_objext
8036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8037 (eval $ac_compile) 2>conftest.er1
8039 grep -v '^ *+' conftest.er1 >conftest.err
8041 cat conftest.err >&5
8042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8043 (exit $ac_status); } &&
8044 { ac_try='test -z "$ac_c_werror_flag"
8045 || test ! -s conftest.err'
8046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050 (exit $ac_status); }; } &&
8051 { ac_try='test -s conftest.$ac_objext'
8052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8056 (exit $ac_status); }; }; then
8057 ac_cv_have_decl_getopt=yes
8059 echo "$as_me: failed program was:" >&5
8060 sed 's/^/| /' conftest.$ac_ext >&5
8062 ac_cv_have_decl_getopt=no
8064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8066 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
8067 echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
8068 if test $ac_cv_have_decl_getopt = yes; then
8070 cat >>confdefs.h <<_ACEOF
8071 #define HAVE_DECL_GETOPT 1
8076 cat >>confdefs.h <<_ACEOF
8077 #define HAVE_DECL_GETOPT 0
8082 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
8083 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
8084 if test "${ac_cv_have_decl_malloc+set}" = set; then
8085 echo $ECHO_N "(cached) $ECHO_C" >&6
8087 cat >conftest.$ac_ext <<_ACEOF
8090 cat confdefs.h >>conftest.$ac_ext
8091 cat >>conftest.$ac_ext <<_ACEOF
8092 /* end confdefs.h. */
8093 $ac_includes_default
8098 char *p = (char *) malloc;
8105 rm -f conftest.$ac_objext
8106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8107 (eval $ac_compile) 2>conftest.er1
8109 grep -v '^ *+' conftest.er1 >conftest.err
8111 cat conftest.err >&5
8112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113 (exit $ac_status); } &&
8114 { ac_try='test -z "$ac_c_werror_flag"
8115 || test ! -s conftest.err'
8116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120 (exit $ac_status); }; } &&
8121 { ac_try='test -s conftest.$ac_objext'
8122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126 (exit $ac_status); }; }; then
8127 ac_cv_have_decl_malloc=yes
8129 echo "$as_me: failed program was:" >&5
8130 sed 's/^/| /' conftest.$ac_ext >&5
8132 ac_cv_have_decl_malloc=no
8134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8136 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
8137 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
8138 if test $ac_cv_have_decl_malloc = yes; then
8140 cat >>confdefs.h <<_ACEOF
8141 #define HAVE_DECL_MALLOC 1
8146 cat >>confdefs.h <<_ACEOF
8147 #define HAVE_DECL_MALLOC 0
8152 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
8153 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
8154 if test "${ac_cv_have_decl_realloc+set}" = set; then
8155 echo $ECHO_N "(cached) $ECHO_C" >&6
8157 cat >conftest.$ac_ext <<_ACEOF
8160 cat confdefs.h >>conftest.$ac_ext
8161 cat >>conftest.$ac_ext <<_ACEOF
8162 /* end confdefs.h. */
8163 $ac_includes_default
8168 char *p = (char *) realloc;
8175 rm -f conftest.$ac_objext
8176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8177 (eval $ac_compile) 2>conftest.er1
8179 grep -v '^ *+' conftest.er1 >conftest.err
8181 cat conftest.err >&5
8182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183 (exit $ac_status); } &&
8184 { ac_try='test -z "$ac_c_werror_flag"
8185 || test ! -s conftest.err'
8186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190 (exit $ac_status); }; } &&
8191 { ac_try='test -s conftest.$ac_objext'
8192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196 (exit $ac_status); }; }; then
8197 ac_cv_have_decl_realloc=yes
8199 echo "$as_me: failed program was:" >&5
8200 sed 's/^/| /' conftest.$ac_ext >&5
8202 ac_cv_have_decl_realloc=no
8204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8206 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
8207 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
8208 if test $ac_cv_have_decl_realloc = yes; then
8210 cat >>confdefs.h <<_ACEOF
8211 #define HAVE_DECL_REALLOC 1
8216 cat >>confdefs.h <<_ACEOF
8217 #define HAVE_DECL_REALLOC 0
8222 echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
8223 echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
8224 if test "${ac_cv_have_decl_sbrk+set}" = set; then
8225 echo $ECHO_N "(cached) $ECHO_C" >&6
8227 cat >conftest.$ac_ext <<_ACEOF
8230 cat confdefs.h >>conftest.$ac_ext
8231 cat >>conftest.$ac_ext <<_ACEOF
8232 /* end confdefs.h. */
8233 $ac_includes_default
8238 char *p = (char *) sbrk;
8245 rm -f conftest.$ac_objext
8246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8247 (eval $ac_compile) 2>conftest.er1
8249 grep -v '^ *+' conftest.er1 >conftest.err
8251 cat conftest.err >&5
8252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253 (exit $ac_status); } &&
8254 { ac_try='test -z "$ac_c_werror_flag"
8255 || test ! -s conftest.err'
8256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8260 (exit $ac_status); }; } &&
8261 { ac_try='test -s conftest.$ac_objext'
8262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266 (exit $ac_status); }; }; then
8267 ac_cv_have_decl_sbrk=yes
8269 echo "$as_me: failed program was:" >&5
8270 sed 's/^/| /' conftest.$ac_ext >&5
8272 ac_cv_have_decl_sbrk=no
8274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8276 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
8277 echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
8278 if test $ac_cv_have_decl_sbrk = yes; then
8280 cat >>confdefs.h <<_ACEOF
8281 #define HAVE_DECL_SBRK 1
8286 cat >>confdefs.h <<_ACEOF
8287 #define HAVE_DECL_SBRK 0
8294 echo "$as_me:$LINENO: checking whether strverscmp is declared" >&5
8295 echo $ECHO_N "checking whether strverscmp is declared... $ECHO_C" >&6
8296 if test "${ac_cv_have_decl_strverscmp+set}" = set; then
8297 echo $ECHO_N "(cached) $ECHO_C" >&6
8299 cat >conftest.$ac_ext <<_ACEOF
8302 cat confdefs.h >>conftest.$ac_ext
8303 cat >>conftest.$ac_ext <<_ACEOF
8304 /* end confdefs.h. */
8305 $ac_includes_default
8310 char *p = (char *) strverscmp;
8317 rm -f conftest.$ac_objext
8318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8319 (eval $ac_compile) 2>conftest.er1
8321 grep -v '^ *+' conftest.er1 >conftest.err
8323 cat conftest.err >&5
8324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325 (exit $ac_status); } &&
8326 { ac_try='test -z "$ac_c_werror_flag"
8327 || test ! -s conftest.err'
8328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332 (exit $ac_status); }; } &&
8333 { ac_try='test -s conftest.$ac_objext'
8334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338 (exit $ac_status); }; }; then
8339 ac_cv_have_decl_strverscmp=yes
8341 echo "$as_me: failed program was:" >&5
8342 sed 's/^/| /' conftest.$ac_ext >&5
8344 ac_cv_have_decl_strverscmp=no
8346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8348 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strverscmp" >&5
8349 echo "${ECHO_T}$ac_cv_have_decl_strverscmp" >&6
8350 if test $ac_cv_have_decl_strverscmp = yes; then
8352 cat >>confdefs.h <<_ACEOF
8353 #define HAVE_DECL_STRVERSCMP 1
8358 cat >>confdefs.h <<_ACEOF
8359 #define HAVE_DECL_STRVERSCMP 0
8366 echo "$as_me:$LINENO: checking whether canonicalize_file_name must be declared" >&5
8367 echo $ECHO_N "checking whether canonicalize_file_name must be declared... $ECHO_C" >&6
8368 if test "${libiberty_cv_decl_needed_canonicalize_file_name+set}" = set; then
8369 echo $ECHO_N "(cached) $ECHO_C" >&6
8371 cat >conftest.$ac_ext <<_ACEOF
8374 cat confdefs.h >>conftest.$ac_ext
8375 cat >>conftest.$ac_ext <<_ACEOF
8376 /* end confdefs.h. */
8378 #include "confdefs.h"
8380 #ifdef HAVE_STRING_H
8383 #ifdef HAVE_STRINGS_H
8384 #include <strings.h>
8387 #ifdef HAVE_STDLIB_H
8390 #ifdef HAVE_UNISTD_H
8396 char *(*pfn) = (char *(*)) canonicalize_file_name
8401 rm -f conftest.$ac_objext
8402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8403 (eval $ac_compile) 2>conftest.er1
8405 grep -v '^ *+' conftest.er1 >conftest.err
8407 cat conftest.err >&5
8408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409 (exit $ac_status); } &&
8410 { ac_try='test -z "$ac_c_werror_flag"
8411 || test ! -s conftest.err'
8412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416 (exit $ac_status); }; } &&
8417 { ac_try='test -s conftest.$ac_objext'
8418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422 (exit $ac_status); }; }; then
8423 libiberty_cv_decl_needed_canonicalize_file_name=no
8425 echo "$as_me: failed program was:" >&5
8426 sed 's/^/| /' conftest.$ac_ext >&5
8428 libiberty_cv_decl_needed_canonicalize_file_name=yes
8430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8433 echo "$as_me:$LINENO: result: $libiberty_cv_decl_needed_canonicalize_file_name" >&5
8434 echo "${ECHO_T}$libiberty_cv_decl_needed_canonicalize_file_name" >&6
8435 if test $libiberty_cv_decl_needed_canonicalize_file_name = yes; then
8437 cat >>confdefs.h <<\_ACEOF
8438 #define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1
8445 # Figure out which version of pexecute to use.
8447 *-*-mingw* | *-*-winnt*) pexecute=./pex-win32.o ;;
8448 *-*-msdosdjgpp*) pexecute=./pex-djgpp.o ;;
8449 *-*-msdos*) pexecute=./pex-msdos.o ;;
8450 *) pexecute=./pex-unix.o ;;
8454 if test x$gcc_no_link = xyes; then
8455 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
8456 ac_cv_func_mmap_fixed_mapped=no
8459 if test "x${ac_cv_func_mmap_fixed_mapped}" != xno; then
8462 for ac_header in stdlib.h unistd.h
8464 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8465 echo "$as_me:$LINENO: checking for $ac_header" >&5
8466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8467 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8468 echo $ECHO_N "(cached) $ECHO_C" >&6
8470 cat >conftest.$ac_ext <<_ACEOF
8473 cat confdefs.h >>conftest.$ac_ext
8474 cat >>conftest.$ac_ext <<_ACEOF
8475 /* end confdefs.h. */
8476 #include <$ac_header>
8478 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8479 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8481 grep -v '^ *+' conftest.er1 >conftest.err
8483 cat conftest.err >&5
8484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485 (exit $ac_status); } >/dev/null; then
8486 if test -s conftest.err; then
8487 ac_cpp_err=$ac_c_preproc_warn_flag
8488 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8495 if test -z "$ac_cpp_err"; then
8496 eval "$as_ac_Header=yes"
8498 echo "$as_me: failed program was:" >&5
8499 sed 's/^/| /' conftest.$ac_ext >&5
8501 eval "$as_ac_Header=no"
8503 rm -f conftest.err conftest.$ac_ext
8505 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8506 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8507 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8508 cat >>confdefs.h <<_ACEOF
8509 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8516 for ac_func in getpagesize
8518 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8519 echo "$as_me:$LINENO: checking for $ac_func" >&5
8520 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8521 if eval "test \"\${$as_ac_var+set}\" = set"; then
8522 echo $ECHO_N "(cached) $ECHO_C" >&6
8524 if test x$gcc_no_link = xyes; then
8525 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8526 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8527 { (exit 1); exit 1; }; }
8529 cat >conftest.$ac_ext <<_ACEOF
8532 cat confdefs.h >>conftest.$ac_ext
8533 cat >>conftest.$ac_ext <<_ACEOF
8534 /* end confdefs.h. */
8535 /* System header to define __stub macros and hopefully few prototypes,
8536 which can conflict with char $ac_func (); below.
8537 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8538 <limits.h> exists even on freestanding compilers. Under hpux,
8539 including <limits.h> includes <sys/time.h> and causes problems
8540 checking for functions defined therein. */
8541 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
8542 # include <limits.h>
8544 # include <assert.h>
8546 /* Override any gcc2 internal prototype to avoid an error. */
8551 /* We use char because int might match the return type of a gcc2
8552 builtin and then its argument prototype would still apply. */
8554 /* The GNU C library defines this for functions which it implements
8555 to always fail with ENOSYS. Some functions are actually named
8556 something starting with __ and the normal name is an alias. */
8557 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8560 char (*f) () = $ac_func;
8569 return f != $ac_func;
8574 rm -f conftest.$ac_objext conftest$ac_exeext
8575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8576 (eval $ac_link) 2>conftest.er1
8578 grep -v '^ *+' conftest.er1 >conftest.err
8580 cat conftest.err >&5
8581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8582 (exit $ac_status); } &&
8583 { ac_try='test -z "$ac_c_werror_flag"
8584 || test ! -s conftest.err'
8585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589 (exit $ac_status); }; } &&
8590 { ac_try='test -s conftest$ac_exeext'
8591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595 (exit $ac_status); }; }; then
8596 eval "$as_ac_var=yes"
8598 echo "$as_me: failed program was:" >&5
8599 sed 's/^/| /' conftest.$ac_ext >&5
8601 eval "$as_ac_var=no"
8603 rm -f conftest.err conftest.$ac_objext \
8604 conftest$ac_exeext conftest.$ac_ext
8606 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8607 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8608 if test `eval echo '${'$as_ac_var'}'` = yes; then
8609 cat >>confdefs.h <<_ACEOF
8610 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8616 echo "$as_me:$LINENO: checking for working mmap" >&5
8617 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8618 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8619 echo $ECHO_N "(cached) $ECHO_C" >&6
8621 if test "$cross_compiling" = yes; then
8622 ac_cv_func_mmap_fixed_mapped=no
8624 cat >conftest.$ac_ext <<_ACEOF
8627 cat confdefs.h >>conftest.$ac_ext
8628 cat >>conftest.$ac_ext <<_ACEOF
8629 /* end confdefs.h. */
8630 $ac_includes_default
8631 /* malloc might have been renamed as rpl_malloc. */
8634 /* Thanks to Mike Haertel and Jim Avera for this test.
8635 Here is a matrix of mmap possibilities:
8636 mmap private not fixed
8637 mmap private fixed at somewhere currently unmapped
8638 mmap private fixed at somewhere already mapped
8639 mmap shared not fixed
8640 mmap shared fixed at somewhere currently unmapped
8641 mmap shared fixed at somewhere already mapped
8642 For private mappings, we should verify that changes cannot be read()
8643 back from the file, nor mmap's back from the file at a different
8644 address. (There have been systems where private was not correctly
8645 implemented like the infamous i386 svr4.0, and systems where the
8646 VM page cache was not coherent with the file system buffer cache
8647 like early versions of FreeBSD and possibly contemporary NetBSD.)
8648 For shared mappings, we should conversely verify that changes get
8649 propagated back to all the places they're supposed to be.
8651 Grep wants private fixed already mapped.
8652 The main things grep needs to know about mmap are:
8653 * does it exist and is it safe to write into the mmap'd area
8654 * how to use it (BSD variants) */
8657 #include <sys/mman.h>
8659 #if !STDC_HEADERS && !HAVE_STDLIB_H
8663 /* This mess was copied from the GNU getpagesize.h. */
8664 #if !HAVE_GETPAGESIZE
8665 /* Assume that all systems that can run configure have sys/param.h. */
8666 # if !HAVE_SYS_PARAM_H
8667 # define HAVE_SYS_PARAM_H 1
8670 # ifdef _SC_PAGESIZE
8671 # define getpagesize() sysconf(_SC_PAGESIZE)
8672 # else /* no _SC_PAGESIZE */
8673 # if HAVE_SYS_PARAM_H
8674 # include <sys/param.h>
8675 # ifdef EXEC_PAGESIZE
8676 # define getpagesize() EXEC_PAGESIZE
8677 # else /* no EXEC_PAGESIZE */
8679 # define getpagesize() NBPG * CLSIZE
8682 # endif /* no CLSIZE */
8683 # else /* no NBPG */
8685 # define getpagesize() NBPC
8686 # else /* no NBPC */
8688 # define getpagesize() PAGESIZE
8689 # endif /* PAGESIZE */
8690 # endif /* no NBPC */
8691 # endif /* no NBPG */
8692 # endif /* no EXEC_PAGESIZE */
8693 # else /* no HAVE_SYS_PARAM_H */
8694 # define getpagesize() 8192 /* punt totally */
8695 # endif /* no HAVE_SYS_PARAM_H */
8696 # endif /* no _SC_PAGESIZE */
8698 #endif /* no HAVE_GETPAGESIZE */
8703 char *data, *data2, *data3;
8707 pagesize = getpagesize ();
8709 /* First, make a file with some known garbage in it. */
8710 data = (char *) malloc (pagesize);
8713 for (i = 0; i < pagesize; ++i)
8714 *(data + i) = rand ();
8716 fd = creat ("conftest.mmap", 0600);
8719 if (write (fd, data, pagesize) != pagesize)
8723 /* Next, try to mmap the file at a fixed address which already has
8724 something else allocated at it. If we can, also make sure that
8725 we see the same garbage. */
8726 fd = open ("conftest.mmap", O_RDWR);
8729 data2 = (char *) malloc (2 * pagesize);
8732 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
8733 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8734 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8736 for (i = 0; i < pagesize; ++i)
8737 if (*(data + i) != *(data2 + i))
8740 /* Finally, make sure that changes to the mapped area do not
8741 percolate back to the file as seen by read(). (This is a bug on
8742 some variants of i386 svr4.0.) */
8743 for (i = 0; i < pagesize; ++i)
8744 *(data2 + i) = *(data2 + i) + 1;
8745 data3 = (char *) malloc (pagesize);
8748 if (read (fd, data3, pagesize) != pagesize)
8750 for (i = 0; i < pagesize; ++i)
8751 if (*(data + i) != *(data3 + i))
8757 rm -f conftest$ac_exeext
8758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8759 (eval $ac_link) 2>&5
8761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767 (exit $ac_status); }; }; then
8768 ac_cv_func_mmap_fixed_mapped=yes
8770 echo "$as_me: program exited with status $ac_status" >&5
8771 echo "$as_me: failed program was:" >&5
8772 sed 's/^/| /' conftest.$ac_ext >&5
8775 ac_cv_func_mmap_fixed_mapped=no
8777 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8780 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8781 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8782 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8784 cat >>confdefs.h <<\_ACEOF
8793 echo "$as_me:$LINENO: checking for working strncmp" >&5
8794 echo $ECHO_N "checking for working strncmp... $ECHO_C" >&6
8795 if test "${ac_cv_func_strncmp_works+set}" = set; then
8796 echo $ECHO_N "(cached) $ECHO_C" >&6
8798 if test "$cross_compiling" = yes; then
8799 ac_cv_func_strncmp_works=no
8801 cat >conftest.$ac_ext <<_ACEOF
8804 cat confdefs.h >>conftest.$ac_ext
8805 cat >>conftest.$ac_ext <<_ACEOF
8806 /* end confdefs.h. */
8808 /* Test by Jim Wilson and Kaveh Ghazi.
8809 Check whether strncmp reads past the end of its string parameters. */
8810 #include <sys/types.h>
8816 #ifdef HAVE_SYS_MMAN_H
8817 #include <sys/mman.h>
8821 #ifdef MAP_ANONYMOUS
8822 #define MAP_ANON MAP_ANONYMOUS
8824 #define MAP_ANON MAP_FILE
8835 #define MAP_LEN 0x10000
8839 #if defined(HAVE_MMAP) || defined(HAVE_MMAP_ANYWHERE)
8843 dev_zero = open ("/dev/zero", O_RDONLY);
8847 p = (char *) mmap (0, MAP_LEN, PROT_READ|PROT_WRITE,
8848 MAP_ANON|MAP_PRIVATE, dev_zero, 0);
8849 if (p == (char *)-1)
8850 p = (char *) mmap (0, MAP_LEN, PROT_READ|PROT_WRITE,
8851 MAP_ANON|MAP_PRIVATE, -1, 0);
8852 if (p == (char *)-1)
8856 char *string = "__si_type_info";
8857 char *q = (char *) p + MAP_LEN - strlen (string) - 2;
8858 char *r = (char *) p + 0xe;
8864 #endif /* HAVE_MMAP || HAVE_MMAP_ANYWHERE */
8869 rm -f conftest$ac_exeext
8870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8871 (eval $ac_link) 2>&5
8873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879 (exit $ac_status); }; }; then
8880 ac_cv_func_strncmp_works=yes
8882 echo "$as_me: program exited with status $ac_status" >&5
8883 echo "$as_me: failed program was:" >&5
8884 sed 's/^/| /' conftest.$ac_ext >&5
8887 ac_cv_func_strncmp_works=no
8889 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8891 rm -f core core.* *.core
8893 echo "$as_me:$LINENO: result: $ac_cv_func_strncmp_works" >&5
8894 echo "${ECHO_T}$ac_cv_func_strncmp_works" >&6
8895 if test $ac_cv_func_strncmp_works = no ; then
8897 "strncmp.$ac_objext" | \
8898 *" strncmp.$ac_objext" | \
8899 "strncmp.$ac_objext "* | \
8900 *" strncmp.$ac_objext "* ) ;;
8901 *) LIBOBJS="$LIBOBJS strncmp.$ac_objext" ;;
8907 # Install a library built with a cross compiler in $(tooldir) rather
8909 if test -z "${with_cross_host}"; then
8912 INSTALL_DEST=tooldir
8918 for l in x $LIBOBJS; do
8930 # We need multilib support, but only if configuring for the target.
8931 ac_config_files="$ac_config_files Makefile testsuite/Makefile"
8933 ac_config_commands="$ac_config_commands default"
8935 cat >confcache <<\_ACEOF
8936 # This file is a shell script that caches the results of configure
8937 # tests run on this system so they can be shared between configure
8938 # scripts and configure runs, see configure's option --config-cache.
8939 # It is not useful on other systems. If it contains results you don't
8940 # want to keep, you may remove or edit it.
8942 # config.status only pays attention to the cache file if you give it
8943 # the --recheck option to rerun configure.
8945 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8946 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8951 # The following way of writing the cache mishandles newlines in values,
8952 # but we know of no workaround that is simple, portable, and efficient.
8953 # So, don't put newlines in cache variables' values.
8954 # Ultrix sh set writes to stderr and can't be redirected directly,
8955 # and sets the high bit in the cache file unless we assign to the vars.
8958 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8960 # `set' does not quote correctly, so add quotes (double-quote
8961 # substitution turns \\\\ into \\, and sed turns \\ into \).
8964 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8967 # `set' quotes correctly as required by POSIX, so do not add quotes.
8969 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8976 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8978 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8980 if diff $cache_file confcache >/dev/null 2>&1; then :; else
8981 if test -w $cache_file; then
8982 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8983 cat confcache >$cache_file
8985 echo "not updating unwritable cache $cache_file"
8990 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8991 # Let make expand exec_prefix.
8992 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8994 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8995 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8996 # trailing colons and then remove the whole line if VPATH becomes empty
8997 # (actually we leave an empty line to preserve line numbers).
8998 if test "x$srcdir" = x.; then
8999 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9000 s/:*\$(srcdir):*/:/;
9001 s/:*\${srcdir}:*/:/;
9003 s/^\([^=]*=[ ]*\):*/\1/;
9009 DEFS=-DHAVE_CONFIG_H
9013 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9014 # 1. Remove the extension, and $U if already installed.
9015 ac_i=`echo "$ac_i" |
9016 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9018 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9019 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9023 LTLIBOBJS=$ac_ltlibobjs
9027 : ${CONFIG_STATUS=./config.status}
9028 ac_clean_files_save=$ac_clean_files
9029 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9030 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9031 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9032 cat >$CONFIG_STATUS <<_ACEOF
9034 # Generated by $as_me.
9035 # Run this file to recreate the current configuration.
9036 # Compiler output produced by configure, useful for debugging
9037 # configure, is in config.log if it exists.
9042 SHELL=\${CONFIG_SHELL-$SHELL}
9045 cat >>$CONFIG_STATUS <<\_ACEOF
9046 ## --------------------- ##
9047 ## M4sh Initialization. ##
9048 ## --------------------- ##
9050 # Be Bourne compatible
9051 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9054 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9055 # is contrary to our usage. Disable this feature.
9056 alias -g '${1+"$@"}'='"$@"'
9057 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9060 DUALCASE=1; export DUALCASE # for MKS sh
9062 # Support unset when possible.
9063 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9070 # Work around bugs in pre-3.0 UWIN ksh.
9071 $as_unset ENV MAIL MAILPATH
9078 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9079 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9080 LC_TELEPHONE LC_TIME
9082 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9083 eval $as_var=C; export $as_var
9089 # Required to use basename.
9090 if expr a : '\(a\)' >/dev/null 2>&1; then
9096 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9097 as_basename=basename
9103 # Name of the executable.
9104 as_me=`$as_basename "$0" ||
9105 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9106 X"$0" : 'X\(//\)$' \| \
9107 X"$0" : 'X\(/\)$' \| \
9108 . : '\(.\)' 2>/dev/null ||
9110 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9111 /^X\/\(\/\/\)$/{ s//\1/; q; }
9112 /^X\/\(\/\).*/{ s//\1/; q; }
9116 # PATH needs CR, and LINENO needs CR and PATH.
9117 # Avoid depending upon Character Ranges.
9118 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9119 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9120 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9121 as_cr_digits='0123456789'
9122 as_cr_alnum=$as_cr_Letters$as_cr_digits
9124 # The user is always right.
9125 if test "${PATH_SEPARATOR+set}" != set; then
9126 echo "#! /bin/sh" >conf$$.sh
9127 echo "exit 0" >>conf$$.sh
9129 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9140 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9141 test "x$as_lineno_1" != "x$as_lineno_2" &&
9142 test "x$as_lineno_3" = "x$as_lineno_2" || {
9143 # Find who we are. Look in the path if we contain no path at all
9146 *[\\/]* ) as_myself=$0 ;;
9147 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9151 test -z "$as_dir" && as_dir=.
9152 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9157 # We did not find ourselves, most probably we were run as `sh COMMAND'
9158 # in which case we are not to be found in the path.
9159 if test "x$as_myself" = x; then
9162 if test ! -f "$as_myself"; then
9163 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9164 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9165 { (exit 1); exit 1; }; }
9167 case $CONFIG_SHELL in
9169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9170 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9173 test -z "$as_dir" && as_dir=.
9174 for as_base in sh bash ksh sh5; do
9177 if ("$as_dir/$as_base" -c '
9180 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9181 test "x$as_lineno_1" != "x$as_lineno_2" &&
9182 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9183 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9184 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9185 CONFIG_SHELL=$as_dir/$as_base
9187 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9195 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9196 # uniformly replaced by the line number. The first 'sed' inserts a
9197 # line-number line before each line; the second 'sed' does the real
9198 # work. The second script uses 'N' to pair each line-number line
9199 # with the numbered line, and appends trailing '-' during
9200 # substitution so that $LINENO is not a special case at line end.
9201 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9202 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9203 sed '=' <$as_myself |
9208 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9211 s,^['$as_cr_digits']*\n,,
9213 chmod +x $as_me.lineno ||
9214 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9215 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9216 { (exit 1); exit 1; }; }
9218 # Don't try to exec as it changes $[0], causing all sort of problems
9219 # (the dirname of $[0] is not the place where we might find the
9220 # original and so on. Autoconf is especially sensible to this).
9222 # Exit status is that of the last command.
9227 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9228 *c*,-n*) ECHO_N= ECHO_C='
9230 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9231 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9234 if expr a : '\(a\)' >/dev/null 2>&1; then
9240 rm -f conf$$ conf$$.exe conf$$.file
9242 if ln -s conf$$.file conf$$ 2>/dev/null; then
9243 # We could just check for DJGPP; but this test a) works b) is more generic
9244 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9245 if test -f conf$$.exe; then
9246 # Don't use ln at all; we don't have any links
9251 elif ln conf$$.file conf$$ 2>/dev/null; then
9256 rm -f conf$$ conf$$.exe conf$$.file
9258 if mkdir -p . 2>/dev/null; then
9261 test -d ./-p && rmdir ./-p
9265 as_executable_p="test -f"
9267 # Sed expression to map a string onto a valid CPP name.
9268 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9270 # Sed expression to map a string onto a valid variable name.
9271 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9275 # We need space, tab and new line, in precisely that order.
9285 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9286 # report actual input values of CONFIG_FILES etc. instead of their
9287 # values after options handling. Logging --version etc. is OK.
9291 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9292 ## Running $as_me. ##
9297 This file was extended by $as_me, which was
9298 generated by GNU Autoconf 2.59. Invocation command line was
9300 CONFIG_FILES = $CONFIG_FILES
9301 CONFIG_HEADERS = $CONFIG_HEADERS
9302 CONFIG_LINKS = $CONFIG_LINKS
9303 CONFIG_COMMANDS = $CONFIG_COMMANDS
9307 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9311 # Files that config.status was made for.
9312 if test -n "$ac_config_files"; then
9313 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9316 if test -n "$ac_config_headers"; then
9317 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9320 if test -n "$ac_config_links"; then
9321 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9324 if test -n "$ac_config_commands"; then
9325 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9328 cat >>$CONFIG_STATUS <<\_ACEOF
9331 \`$as_me' instantiates files from templates according to the
9332 current configuration.
9334 Usage: $0 [OPTIONS] [FILE]...
9336 -h, --help print this help, then exit
9337 -V, --version print version number, then exit
9338 -q, --quiet do not print progress messages
9339 -d, --debug don't remove temporary files
9340 --recheck update $as_me by reconfiguring in the same conditions
9341 --file=FILE[:TEMPLATE]
9342 instantiate the configuration file FILE
9343 --header=FILE[:TEMPLATE]
9344 instantiate the configuration header FILE
9346 Configuration files:
9349 Configuration headers:
9352 Configuration commands:
9355 Report bugs to <bug-autoconf@gnu.org>."
9358 cat >>$CONFIG_STATUS <<_ACEOF
9361 configured by $0, generated by GNU Autoconf 2.59,
9362 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9364 Copyright (C) 2003 Free Software Foundation, Inc.
9365 This config.status script is free software; the Free Software Foundation
9366 gives unlimited permission to copy, distribute and modify it."
9371 cat >>$CONFIG_STATUS <<\_ACEOF
9372 # If no file are specified by the user, then we need to provide default
9373 # value. By we need to know if files were specified by the user.
9379 ac_option=`expr "x$1" : 'x\([^=]*\)='`
9380 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9388 *) # This is not an option, so the user has probably given explicit
9391 ac_need_defaults=false;;
9395 # Handling of the options.
9397 cat >>$CONFIG_STATUS <<\_ACEOF
9398 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9400 --version | --vers* | -V )
9401 echo "$ac_cs_version"; exit 0 ;;
9403 # Conflict between --help and --header
9404 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9405 Try \`$0 --help' for more information." >&5
9406 echo "$as_me: error: ambiguous option: $1
9407 Try \`$0 --help' for more information." >&2;}
9408 { (exit 1); exit 1; }; };;
9409 --help | --hel | -h )
9410 echo "$ac_cs_usage"; exit 0 ;;
9411 --debug | --d* | -d )
9413 --file | --fil | --fi | --f )
9415 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9416 ac_need_defaults=false;;
9417 --header | --heade | --head | --hea )
9419 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9420 ac_need_defaults=false;;
9421 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9422 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9426 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9427 Try \`$0 --help' for more information." >&5
9428 echo "$as_me: error: unrecognized option: $1
9429 Try \`$0 --help' for more information." >&2;}
9430 { (exit 1); exit 1; }; } ;;
9432 *) ac_config_targets="$ac_config_targets $1" ;;
9438 ac_configure_extra_args=
9440 if $ac_cs_silent; then
9442 ac_configure_extra_args="$ac_configure_extra_args --silent"
9446 cat >>$CONFIG_STATUS <<_ACEOF
9447 if \$ac_cs_recheck; then
9448 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9449 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9454 cat >>$CONFIG_STATUS <<_ACEOF
9456 # INIT-COMMANDS section.
9462 with_target_subdir=${with_target_subdir}
9463 with_multisubdir=${with_multisubdir}
9464 ac_configure_args="--enable-multilib ${ac_configure_args}"
9465 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
9466 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
9467 libiberty_topdir=${libiberty_topdir}
9474 cat >>$CONFIG_STATUS <<\_ACEOF
9475 for ac_config_target in $ac_config_targets
9477 case "$ac_config_target" in
9478 # Handling of arguments.
9479 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9480 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
9481 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
9482 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
9483 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9484 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9485 { (exit 1); exit 1; }; };;
9489 # If the user did not use the arguments to specify the items to instantiate,
9490 # then the envvar interface is used. Set only those that are not.
9491 # We use the long form for the default assignment because of an extremely
9492 # bizarre bug on SunOS 4.1.3.
9493 if $ac_need_defaults; then
9494 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9495 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9496 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9499 # Have a temporary directory for convenience. Make it in the build tree
9500 # simply because there is no reason to put it here, and in addition,
9501 # creating and moving files from /tmp can sometimes cause problems.
9502 # Create a temporary directory, and hook for its removal unless debugging.
9505 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9506 trap '{ (exit 1); exit 1; }' 1 2 13 15
9509 # Create a (secure) tmp directory for tmp files.
9512 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9513 test -n "$tmp" && test -d "$tmp"
9516 tmp=./confstat$$-$RANDOM
9517 (umask 077 && mkdir $tmp)
9520 echo "$me: cannot create a temporary directory in ." >&2
9521 { (exit 1); exit 1; }
9526 cat >>$CONFIG_STATUS <<_ACEOF
9529 # CONFIG_FILES section.
9532 # No need to generate the scripts if there are no CONFIG_FILES.
9533 # This happens for instance when ./config.status config.h
9534 if test -n "\$CONFIG_FILES"; then
9535 # Protect against being on the right side of a sed subst in config.status.
9536 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9537 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9538 s,@SHELL@,$SHELL,;t t
9539 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9540 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9541 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9542 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9543 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9544 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9545 s,@exec_prefix@,$exec_prefix,;t t
9546 s,@prefix@,$prefix,;t t
9547 s,@program_transform_name@,$program_transform_name,;t t
9548 s,@bindir@,$bindir,;t t
9549 s,@sbindir@,$sbindir,;t t
9550 s,@libexecdir@,$libexecdir,;t t
9551 s,@datadir@,$datadir,;t t
9552 s,@sysconfdir@,$sysconfdir,;t t
9553 s,@sharedstatedir@,$sharedstatedir,;t t
9554 s,@localstatedir@,$localstatedir,;t t
9555 s,@libdir@,$libdir,;t t
9556 s,@includedir@,$includedir,;t t
9557 s,@oldincludedir@,$oldincludedir,;t t
9558 s,@infodir@,$infodir,;t t
9559 s,@mandir@,$mandir,;t t
9560 s,@build_alias@,$build_alias,;t t
9561 s,@host_alias@,$host_alias,;t t
9562 s,@target_alias@,$target_alias,;t t
9564 s,@ECHO_C@,$ECHO_C,;t t
9565 s,@ECHO_N@,$ECHO_N,;t t
9566 s,@ECHO_T@,$ECHO_T,;t t
9568 s,@libiberty_topdir@,$libiberty_topdir,;t t
9569 s,@MAINT@,$MAINT,;t t
9570 s,@NOTMAINT@,$NOTMAINT,;t t
9571 s,@MAKEINFO@,$MAKEINFO,;t t
9572 s,@BUILD_INFO@,$BUILD_INFO,;t t
9574 s,@HAVE_PERL@,$HAVE_PERL,;t t
9575 s,@build@,$build,;t t
9576 s,@build_cpu@,$build_cpu,;t t
9577 s,@build_vendor@,$build_vendor,;t t
9578 s,@build_os@,$build_os,;t t
9580 s,@host_cpu@,$host_cpu,;t t
9581 s,@host_vendor@,$host_vendor,;t t
9582 s,@host_os@,$host_os,;t t
9584 s,@ac_ct_AR@,$ac_ct_AR,;t t
9585 s,@RANLIB@,$RANLIB,;t t
9586 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9588 s,@CFLAGS@,$CFLAGS,;t t
9589 s,@LDFLAGS@,$LDFLAGS,;t t
9590 s,@CPPFLAGS@,$CPPFLAGS,;t t
9591 s,@ac_ct_CC@,$ac_ct_CC,;t t
9592 s,@EXEEXT@,$EXEEXT,;t t
9593 s,@OBJEXT@,$OBJEXT,;t t
9595 s,@ac_libiberty_warn_cflags@,$ac_libiberty_warn_cflags,;t t
9596 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
9597 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
9598 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9599 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9600 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9601 s,@EGREP@,$EGREP,;t t
9602 s,@LIBOBJS@,$LIBOBJS,;t t
9603 s,@CHECK@,$CHECK,;t t
9604 s,@target_header_dir@,$target_header_dir,;t t
9605 s,@pexecute@,$pexecute,;t t
9606 s,@INSTALL_DEST@,$INSTALL_DEST,;t t
9607 s,@datarootdir@,$datarootdir,;t t
9608 s,@docdir@,$docdir,;t t
9609 s,@htmldir@,$htmldir,;t t
9610 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9611 /@host_makefile_frag@/r $host_makefile_frag
9612 s,@host_makefile_frag@,,;t t
9617 cat >>$CONFIG_STATUS <<\_ACEOF
9618 # Split the substitutions into bite-sized pieces for seds with
9619 # small command number limits, like on Digital OSF/1 and HP-UX.
9621 ac_sed_frag=1 # Number of current file.
9622 ac_beg=1 # First line for current file.
9623 ac_end=$ac_max_sed_lines # Line after last line for current file.
9626 while $ac_more_lines; do
9627 if test $ac_beg -gt 1; then
9628 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9630 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9632 if test ! -s $tmp/subs.frag; then
9635 # The purpose of the label and of the branching condition is to
9636 # speed up the sed processing (if there are no `@' at all, there
9637 # is no need to browse any of the substitutions).
9638 # These are the two extra sed commands mentioned above.
9640 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9641 if test -z "$ac_sed_cmds"; then
9642 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9644 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9646 ac_sed_frag=`expr $ac_sed_frag + 1`
9648 ac_end=`expr $ac_end + $ac_max_sed_lines`
9651 if test -z "$ac_sed_cmds"; then
9654 fi # test -n "$CONFIG_FILES"
9657 cat >>$CONFIG_STATUS <<\_ACEOF
9658 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9659 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9661 - | *:- | *:-:* ) # input from stdin
9663 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9664 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9665 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9666 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9667 * ) ac_file_in=$ac_file.in ;;
9670 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9671 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9672 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9673 X"$ac_file" : 'X\(//\)[^/]' \| \
9674 X"$ac_file" : 'X\(//\)$' \| \
9675 X"$ac_file" : 'X\(/\)' \| \
9676 . : '\(.\)' 2>/dev/null ||
9678 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9679 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9680 /^X\(\/\/\)$/{ s//\1/; q; }
9681 /^X\(\/\).*/{ s//\1/; q; }
9683 { if $as_mkdir_p; then
9688 while test ! -d "$as_dir"; do
9689 as_dirs="$as_dir $as_dirs"
9690 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9691 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9692 X"$as_dir" : 'X\(//\)[^/]' \| \
9693 X"$as_dir" : 'X\(//\)$' \| \
9694 X"$as_dir" : 'X\(/\)' \| \
9695 . : '\(.\)' 2>/dev/null ||
9697 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9698 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9699 /^X\(\/\/\)$/{ s//\1/; q; }
9700 /^X\(\/\).*/{ s//\1/; q; }
9703 test ! -n "$as_dirs" || mkdir $as_dirs
9704 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9705 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9706 { (exit 1); exit 1; }; }; }
9710 if test "$ac_dir" != .; then
9711 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9712 # A "../" for each directory in $ac_dir_suffix.
9713 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9715 ac_dir_suffix= ac_top_builddir=
9719 .) # No --srcdir option. We are building in place.
9721 if test -z "$ac_top_builddir"; then
9724 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9726 [\\/]* | ?:[\\/]* ) # Absolute path.
9727 ac_srcdir=$srcdir$ac_dir_suffix;
9728 ac_top_srcdir=$srcdir ;;
9730 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9731 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9734 # Do not use `cd foo && pwd` to compute absolute paths, because
9735 # the directories may not exist.
9737 .) ac_abs_builddir="$ac_dir";;
9740 .) ac_abs_builddir=`pwd`;;
9741 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9742 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9745 case $ac_abs_builddir in
9746 .) ac_abs_top_builddir=${ac_top_builddir}.;;
9748 case ${ac_top_builddir}. in
9749 .) ac_abs_top_builddir=$ac_abs_builddir;;
9750 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9751 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9754 case $ac_abs_builddir in
9755 .) ac_abs_srcdir=$ac_srcdir;;
9758 .) ac_abs_srcdir=$ac_abs_builddir;;
9759 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9760 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9763 case $ac_abs_builddir in
9764 .) ac_abs_top_srcdir=$ac_top_srcdir;;
9766 case $ac_top_srcdir in
9767 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9768 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9769 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9775 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9776 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9779 if test x"$ac_file" != x-; then
9780 { echo "$as_me:$LINENO: creating $ac_file" >&5
9781 echo "$as_me: creating $ac_file" >&6;}
9784 # Let's still pretend it is `configure' which instantiates (i.e., don't
9785 # use $as_me), people would be surprised to read:
9786 # /* config.h. Generated by config.status. */
9787 if test x"$ac_file" = x-; then
9790 configure_input="$ac_file. "
9792 configure_input=$configure_input"Generated from `echo $ac_file_in |
9793 sed 's,.*/,,'` by configure."
9795 # First look for the input files in the build tree, otherwise in the
9797 ac_file_inputs=`IFS=:
9798 for f in $ac_file_in; do
9800 -) echo $tmp/stdin ;;
9802 # Absolute (can't be DOS-style, as IFS=:)
9803 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9804 echo "$as_me: error: cannot find input file: $f" >&2;}
9805 { (exit 1); exit 1; }; }
9808 if test -f "$f"; then
9811 elif test -f "$srcdir/$f"; then
9816 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9817 echo "$as_me: error: cannot find input file: $f" >&2;}
9818 { (exit 1); exit 1; }; }
9821 done` || { (exit 1); exit 1; }
9823 cat >>$CONFIG_STATUS <<_ACEOF
9827 cat >>$CONFIG_STATUS <<\_ACEOF
9829 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9830 s,@configure_input@,$configure_input,;t t
9831 s,@srcdir@,$ac_srcdir,;t t
9832 s,@abs_srcdir@,$ac_abs_srcdir,;t t
9833 s,@top_srcdir@,$ac_top_srcdir,;t t
9834 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9835 s,@builddir@,$ac_builddir,;t t
9836 s,@abs_builddir@,$ac_abs_builddir,;t t
9837 s,@top_builddir@,$ac_top_builddir,;t t
9838 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9839 s,@INSTALL@,$ac_INSTALL,;t t
9840 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9842 if test x"$ac_file" != x-; then
9843 mv $tmp/out $ac_file
9851 cat >>$CONFIG_STATUS <<\_ACEOF
9854 # CONFIG_HEADER section.
9857 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9858 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9860 # ac_d sets the value in "#define NAME VALUE" lines.
9861 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9862 ac_dB='[ ].*$,\1#\2'
9865 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9866 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9867 ac_uB='$,\1#\2define\3'
9871 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9872 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9874 - | *:- | *:-:* ) # input from stdin
9876 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9877 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9878 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9879 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9880 * ) ac_file_in=$ac_file.in ;;
9883 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9884 echo "$as_me: creating $ac_file" >&6;}
9886 # First look for the input files in the build tree, otherwise in the
9888 ac_file_inputs=`IFS=:
9889 for f in $ac_file_in; do
9891 -) echo $tmp/stdin ;;
9893 # Absolute (can't be DOS-style, as IFS=:)
9894 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9895 echo "$as_me: error: cannot find input file: $f" >&2;}
9896 { (exit 1); exit 1; }; }
9897 # Do quote $f, to prevent DOS paths from being IFS'd.
9900 if test -f "$f"; then
9903 elif test -f "$srcdir/$f"; then
9908 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9909 echo "$as_me: error: cannot find input file: $f" >&2;}
9910 { (exit 1); exit 1; }; }
9913 done` || { (exit 1); exit 1; }
9914 # Remove the trailing spaces.
9915 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9919 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9920 # `conftest.undefs', that substitutes the proper values into
9921 # config.h.in to produce config.h. The first handles `#define'
9922 # templates, and the second `#undef' templates.
9923 # And first: Protect against being on the right side of a sed subst in
9924 # config.status. Protect against being in an unquoted here document
9926 rm -f conftest.defines conftest.undefs
9927 # Using a here document instead of a string reduces the quoting nightmare.
9928 # Putting comments in sed scripts is not portable.
9930 # `end' is used to avoid that the second main sed command (meant for
9931 # 0-ary CPP macros) applies to n-ary macro definitions.
9932 # See the Autoconf documentation for `clear'.
9933 cat >confdef2sed.sed <<\_ACEOF
9938 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9940 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9943 # If some macros were called several times there might be several times
9944 # the same #defines, which is useless. Nevertheless, we may not want to
9945 # sort them, since we want the *last* AC-DEFINE to be honored.
9946 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9947 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9948 rm -f confdef2sed.sed
9950 # This sed command replaces #undef with comments. This is necessary, for
9951 # example, in the case of _POSIX_SOURCE, which is predefined and required
9952 # on some systems where configure will not decide to define it.
9953 cat >>conftest.undefs <<\_ACEOF
9954 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9957 # Break up conftest.defines because some shells have a limit on the size
9958 # of here documents, and old seds have small limits too (100 cmds).
9959 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9960 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9961 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9962 echo ' :' >>$CONFIG_STATUS
9964 while grep . conftest.defines >/dev/null
9966 # Write a limited-size here document to $tmp/defines.sed.
9967 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9968 # Speed up: don't consider the non `#define' lines.
9969 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9970 # Work around the forget-to-reset-the-flag bug.
9971 echo 't clr' >>$CONFIG_STATUS
9972 echo ': clr' >>$CONFIG_STATUS
9973 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9975 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9979 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9980 rm -f conftest.defines
9981 mv conftest.tail conftest.defines
9983 rm -f conftest.defines
9984 echo ' fi # grep' >>$CONFIG_STATUS
9985 echo >>$CONFIG_STATUS
9987 # Break up conftest.undefs because some shells have a limit on the size
9988 # of here documents, and old seds have small limits too (100 cmds).
9989 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9991 while grep . conftest.undefs >/dev/null
9993 # Write a limited-size here document to $tmp/undefs.sed.
9994 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9995 # Speed up: don't consider the non `#undef'
9996 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9997 # Work around the forget-to-reset-the-flag bug.
9998 echo 't clr' >>$CONFIG_STATUS
9999 echo ': clr' >>$CONFIG_STATUS
10000 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10002 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10004 mv $tmp/out $tmp/in
10006 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10007 rm -f conftest.undefs
10008 mv conftest.tail conftest.undefs
10010 rm -f conftest.undefs
10012 cat >>$CONFIG_STATUS <<\_ACEOF
10013 # Let's still pretend it is `configure' which instantiates (i.e., don't
10014 # use $as_me), people would be surprised to read:
10015 # /* config.h. Generated by config.status. */
10016 if test x"$ac_file" = x-; then
10017 echo "/* Generated by configure. */" >$tmp/config.h
10019 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10021 cat $tmp/in >>$tmp/config.h
10023 if test x"$ac_file" != x-; then
10024 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10025 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10026 echo "$as_me: $ac_file is unchanged" >&6;}
10028 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10029 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10030 X"$ac_file" : 'X\(//\)[^/]' \| \
10031 X"$ac_file" : 'X\(//\)$' \| \
10032 X"$ac_file" : 'X\(/\)' \| \
10033 . : '\(.\)' 2>/dev/null ||
10035 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10036 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10037 /^X\(\/\/\)$/{ s//\1/; q; }
10038 /^X\(\/\).*/{ s//\1/; q; }
10040 { if $as_mkdir_p; then
10045 while test ! -d "$as_dir"; do
10046 as_dirs="$as_dir $as_dirs"
10047 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10048 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10049 X"$as_dir" : 'X\(//\)[^/]' \| \
10050 X"$as_dir" : 'X\(//\)$' \| \
10051 X"$as_dir" : 'X\(/\)' \| \
10052 . : '\(.\)' 2>/dev/null ||
10054 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10055 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10056 /^X\(\/\/\)$/{ s//\1/; q; }
10057 /^X\(\/\).*/{ s//\1/; q; }
10060 test ! -n "$as_dirs" || mkdir $as_dirs
10061 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10062 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10063 { (exit 1); exit 1; }; }; }
10066 mv $tmp/config.h $ac_file
10070 rm -f $tmp/config.h
10074 cat >>$CONFIG_STATUS <<\_ACEOF
10077 # CONFIG_COMMANDS section.
10079 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10080 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10081 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10082 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10083 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10084 X"$ac_dest" : 'X\(//\)[^/]' \| \
10085 X"$ac_dest" : 'X\(//\)$' \| \
10086 X"$ac_dest" : 'X\(/\)' \| \
10087 . : '\(.\)' 2>/dev/null ||
10089 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10090 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10091 /^X\(\/\/\)$/{ s//\1/; q; }
10092 /^X\(\/\).*/{ s//\1/; q; }
10094 { if $as_mkdir_p; then
10099 while test ! -d "$as_dir"; do
10100 as_dirs="$as_dir $as_dirs"
10101 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10102 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10103 X"$as_dir" : 'X\(//\)[^/]' \| \
10104 X"$as_dir" : 'X\(//\)$' \| \
10105 X"$as_dir" : 'X\(/\)' \| \
10106 . : '\(.\)' 2>/dev/null ||
10108 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10109 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10110 /^X\(\/\/\)$/{ s//\1/; q; }
10111 /^X\(\/\).*/{ s//\1/; q; }
10114 test ! -n "$as_dirs" || mkdir $as_dirs
10115 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10116 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10117 { (exit 1); exit 1; }; }; }
10121 if test "$ac_dir" != .; then
10122 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10123 # A "../" for each directory in $ac_dir_suffix.
10124 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10126 ac_dir_suffix= ac_top_builddir=
10130 .) # No --srcdir option. We are building in place.
10132 if test -z "$ac_top_builddir"; then
10135 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10137 [\\/]* | ?:[\\/]* ) # Absolute path.
10138 ac_srcdir=$srcdir$ac_dir_suffix;
10139 ac_top_srcdir=$srcdir ;;
10140 *) # Relative path.
10141 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10142 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10145 # Do not use `cd foo && pwd` to compute absolute paths, because
10146 # the directories may not exist.
10148 .) ac_abs_builddir="$ac_dir";;
10151 .) ac_abs_builddir=`pwd`;;
10152 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10153 *) ac_abs_builddir=`pwd`/"$ac_dir";;
10156 case $ac_abs_builddir in
10157 .) ac_abs_top_builddir=${ac_top_builddir}.;;
10159 case ${ac_top_builddir}. in
10160 .) ac_abs_top_builddir=$ac_abs_builddir;;
10161 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10162 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10165 case $ac_abs_builddir in
10166 .) ac_abs_srcdir=$ac_srcdir;;
10169 .) ac_abs_srcdir=$ac_abs_builddir;;
10170 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10171 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10174 case $ac_abs_builddir in
10175 .) ac_abs_top_srcdir=$ac_top_srcdir;;
10177 case $ac_top_srcdir in
10178 .) ac_abs_top_srcdir=$ac_abs_builddir;;
10179 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10180 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10185 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10186 echo "$as_me: executing $ac_dest commands" >&6;}
10188 default ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
10189 if test -n "$CONFIG_FILES"; then
10190 if test -n "${with_target_subdir}"; then
10191 # FIXME: We shouldn't need to set ac_file
10193 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
10194 . ${libiberty_topdir}/config-ml.in
10201 cat >>$CONFIG_STATUS <<\_ACEOF
10203 { (exit 0); exit 0; }
10205 chmod +x $CONFIG_STATUS
10206 ac_clean_files=$ac_clean_files_save
10209 # configure is writing to config.log, and then calls config.status.
10210 # config.status does its own redirection, appending to config.log.
10211 # Unfortunately, on DOS this fails, as config.log is still kept open
10212 # by configure, so config.status won't be able to write to it; its
10213 # output is simply discarded. So we exec the FD to /dev/null,
10214 # effectively closing config.log, so it can be properly (re)opened and
10215 # appended to by config.status. When coming back to configure, we
10216 # need to make the FD available again.
10217 if test "$no_create" != yes; then
10219 ac_config_status_args=
10220 test "$silent" = yes &&
10221 ac_config_status_args="$ac_config_status_args --quiet"
10223 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10225 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10226 # would make configure fail if this is the last instruction.
10227 $ac_cs_success || { (exit 1); exit 1; }