2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file="xmalloc.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS libiberty_topdir MAINT NOTMAINT MAKEINFO BUILD_INFO PERL HAVE_PERL build build_cpu build_vendor build_os host host_cpu host_vendor host_os AR ac_ct_AR RANLIB ac_ct_RANLIB CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP ac_libiberty_warn_cflags NO_MINUS_C_MINUS_O OUTPUT_OPTION INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA EGREP LIBOBJS CHECK target_header_dir pexecute INSTALL_DEST LTLIBOBJS'
313 ac_subst_files='host_makefile_frag'
315 # Initialize some variables set by options.
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name=s,x,x,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
430 -help | --help | --hel | --he | -h)
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 # Obsolete; use --without-fp.
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
560 -site=* | --site=* | --sit=*)
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 -version | --version | --versio | --versi | --vers | -V)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
835 --build=BUILD configure for building on BUILD [guessed]
836 --host=HOST cross-compile to build programs to run on HOST [BUILD]
840 if test -n "$ac_init_help"; then
845 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
846 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
847 --enable-maintainer-mode
848 enable make rules and dependencies not useful
849 (and sometimes confusing) to the casual installer
850 --enable-install-libiberty Install headers for end users
853 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
854 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
855 --with-target-subdir=SUBDIR Configuring in a subdirectory for target
856 --with-build-subdir=SUBDIR Configuring in a subdirectory for build
857 --with-cross-host=HOST Configuring with a cross compiler
858 --with-newlib Configuring with newlib
860 Some influential environment variables:
861 CC C compiler command
862 CFLAGS C compiler flags
863 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
864 nonstandard directory <lib dir>
865 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
866 headers in a nonstandard directory <include dir>
869 Use these variables to override the choices made by `configure' or to help
870 it to find libraries and programs with nonstandard names/locations.
875 if test "$ac_init_help" = "recursive"; then
876 # If there are subdirs, report their specific --help.
878 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
879 test -d $ac_dir || continue
882 if test "$ac_dir" != .; then
883 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
884 # A "../" for each directory in $ac_dir_suffix.
885 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
887 ac_dir_suffix= ac_top_builddir=
891 .) # No --srcdir option. We are building in place.
893 if test -z "$ac_top_builddir"; then
896 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
898 [\\/]* | ?:[\\/]* ) # Absolute path.
899 ac_srcdir=$srcdir$ac_dir_suffix;
900 ac_top_srcdir=$srcdir ;;
902 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
903 ac_top_srcdir=$ac_top_builddir$srcdir ;;
906 # Do not use `cd foo && pwd` to compute absolute paths, because
907 # the directories may not exist.
909 .) ac_abs_builddir="$ac_dir";;
912 .) ac_abs_builddir=`pwd`;;
913 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
914 *) ac_abs_builddir=`pwd`/"$ac_dir";;
917 case $ac_abs_builddir in
918 .) ac_abs_top_builddir=${ac_top_builddir}.;;
920 case ${ac_top_builddir}. in
921 .) ac_abs_top_builddir=$ac_abs_builddir;;
922 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
923 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
926 case $ac_abs_builddir in
927 .) ac_abs_srcdir=$ac_srcdir;;
930 .) ac_abs_srcdir=$ac_abs_builddir;;
931 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
932 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
935 case $ac_abs_builddir in
936 .) ac_abs_top_srcdir=$ac_top_srcdir;;
938 case $ac_top_srcdir in
939 .) ac_abs_top_srcdir=$ac_abs_builddir;;
940 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
941 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
946 # Check for guested configure; otherwise get Cygnus style configure.
947 if test -f $ac_srcdir/configure.gnu; then
949 $SHELL $ac_srcdir/configure.gnu --help=recursive
950 elif test -f $ac_srcdir/configure; then
952 $SHELL $ac_srcdir/configure --help=recursive
953 elif test -f $ac_srcdir/configure.ac ||
954 test -f $ac_srcdir/configure.in; then
958 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
964 test -n "$ac_init_help" && exit 0
965 if $ac_init_version; then
968 Copyright (C) 2003 Free Software Foundation, Inc.
969 This configure script is free software; the Free Software Foundation
970 gives unlimited permission to copy, distribute and modify it.
976 This file contains any messages produced by compilers while
977 running configure, to aid debugging if configure makes a mistake.
979 It was created by $as_me, which was
980 generated by GNU Autoconf 2.59. Invocation command line was
991 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
992 uname -m = `(uname -m) 2>/dev/null || echo unknown`
993 uname -r = `(uname -r) 2>/dev/null || echo unknown`
994 uname -s = `(uname -s) 2>/dev/null || echo unknown`
995 uname -v = `(uname -v) 2>/dev/null || echo unknown`
997 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
998 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1000 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1001 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1002 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1003 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1004 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1005 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1006 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1014 test -z "$as_dir" && as_dir=.
1015 echo "PATH: $as_dir"
1030 # Keep a trace of the command line.
1031 # Strip out --no-create and --no-recursion so they do not pile up.
1032 # Strip out --silent because we don't want to record it for future runs.
1033 # Also quote any args containing shell meta-characters.
1034 # Make two passes to allow for proper duplicate-argument suppression.
1039 ac_must_keep_next=false
1045 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1046 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1047 | -silent | --silent | --silen | --sile | --sil)
1049 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1050 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1053 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1055 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1056 if test $ac_must_keep_next = true; then
1057 ac_must_keep_next=false # Got value, back to normal.
1060 *=* | --config-cache | -C | -disable-* | --disable-* \
1061 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1062 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1063 | -with-* | --with-* | -without-* | --without-* | --x)
1064 case "$ac_configure_args0 " in
1065 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1068 -* ) ac_must_keep_next=true ;;
1071 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1072 # Get rid of the leading space.
1078 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1079 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1081 # When interrupted or exit'd, cleanup temporary files, and complete
1082 # config.log. We remove comments because anyway the quotes in there
1083 # would cause problems or look ugly.
1084 # WARNING: Be sure not to use single quotes in there, as some shells,
1085 # such as our DU 5.0 friend, will then `close' the trap.
1086 trap 'exit_status=$?
1087 # Save into config.log some information that might help in debugging.
1092 ## ---------------- ##
1093 ## Cache variables. ##
1094 ## ---------------- ##
1097 # The following way of writing the cache mishandles newlines in values,
1100 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1103 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1104 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1108 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1115 ## ----------------- ##
1116 ## Output variables. ##
1117 ## ----------------- ##
1120 for ac_var in $ac_subst_vars
1122 eval ac_val=$`echo $ac_var`
1123 echo "$ac_var='"'"'$ac_val'"'"'"
1127 if test -n "$ac_subst_files"; then
1134 for ac_var in $ac_subst_files
1136 eval ac_val=$`echo $ac_var`
1137 echo "$ac_var='"'"'$ac_val'"'"'"
1142 if test -s confdefs.h; then
1149 sed "/^$/d" confdefs.h | sort
1152 test "$ac_signal" != 0 &&
1153 echo "$as_me: caught signal $ac_signal"
1154 echo "$as_me: exit $exit_status"
1156 rm -f core *.core &&
1157 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1160 for ac_signal in 1 2 13 15; do
1161 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1165 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1166 rm -rf conftest* confdefs.h
1167 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1170 # Predefined preprocessor variables.
1172 cat >>confdefs.h <<_ACEOF
1173 #define PACKAGE_NAME "$PACKAGE_NAME"
1177 cat >>confdefs.h <<_ACEOF
1178 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1182 cat >>confdefs.h <<_ACEOF
1183 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1187 cat >>confdefs.h <<_ACEOF
1188 #define PACKAGE_STRING "$PACKAGE_STRING"
1192 cat >>confdefs.h <<_ACEOF
1193 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1197 # Let the site file select an alternate cache file if it wants to.
1198 # Prefer explicitly selected file to automatically selected ones.
1199 if test -z "$CONFIG_SITE"; then
1200 if test "x$prefix" != xNONE; then
1201 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1203 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1206 for ac_site_file in $CONFIG_SITE; do
1207 if test -r "$ac_site_file"; then
1208 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1209 echo "$as_me: loading site script $ac_site_file" >&6;}
1210 sed 's/^/| /' "$ac_site_file" >&5
1215 if test -r "$cache_file"; then
1216 # Some versions of bash will fail to source /dev/null (special
1217 # files actually), so we avoid doing that.
1218 if test -f "$cache_file"; then
1219 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1220 echo "$as_me: loading cache $cache_file" >&6;}
1222 [\\/]* | ?:[\\/]* ) . $cache_file;;
1223 *) . ./$cache_file;;
1227 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1228 echo "$as_me: creating cache $cache_file" >&6;}
1232 # Check that the precious variables saved in the cache have kept the same
1234 ac_cache_corrupted=false
1235 for ac_var in `(set) 2>&1 |
1236 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1237 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1238 eval ac_new_set=\$ac_env_${ac_var}_set
1239 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1240 eval ac_new_val="\$ac_env_${ac_var}_value"
1241 case $ac_old_set,$ac_new_set in
1243 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1244 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1245 ac_cache_corrupted=: ;;
1247 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1248 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1249 ac_cache_corrupted=: ;;
1252 if test "x$ac_old_val" != "x$ac_new_val"; then
1253 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1254 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1255 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1256 echo "$as_me: former value: $ac_old_val" >&2;}
1257 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1258 echo "$as_me: current value: $ac_new_val" >&2;}
1259 ac_cache_corrupted=:
1262 # Pass precious variables to config.status.
1263 if test "$ac_new_set" = set; then
1265 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1266 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1267 *) ac_arg=$ac_var=$ac_new_val ;;
1269 case " $ac_configure_args " in
1270 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1271 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1275 if $ac_cache_corrupted; then
1276 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1277 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1278 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1279 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1280 { (exit 1); exit 1; }; }
1284 ac_cpp='$CPP $CPPFLAGS'
1285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1309 # This works around the fact that libtool configuration may change LD
1310 # for this particular configuration, but some shells, instead of
1311 # keeping the changes in LD private, export them just because LD is
1312 # exported. We don't use libtool yet, but some day we might, so...
1313 ORIGINAL_LD_FOR_MULTILIBS=$LD
1316 # Check whether --with-target-subdir or --without-target-subdir was given.
1317 if test "${with_target_subdir+set}" = set; then
1318 withval="$with_target_subdir"
1322 # Check whether --with-build-subdir or --without-build-subdir was given.
1323 if test "${with_build_subdir+set}" = set; then
1324 withval="$with_build_subdir"
1328 # Check whether --with-cross-host or --without-cross-host was given.
1329 if test "${with_cross_host+set}" = set; then
1330 withval="$with_cross_host"
1334 # Check whether --with-newlib or --without-newlib was given.
1335 if test "${with_newlib+set}" = set; then
1336 withval="$with_newlib"
1340 if test "${srcdir}" = "."; then
1341 if test -n "${with_build_subdir}"; then
1342 libiberty_topdir="${srcdir}/../.."
1344 elif test -z "${with_target_subdir}"; then
1345 libiberty_topdir="${srcdir}/.."
1347 if test "${with_target_subdir}" != "."; then
1348 libiberty_topdir="${srcdir}/${with_multisrctop}../.."
1350 libiberty_topdir="${srcdir}/${with_multisrctop}.."
1354 libiberty_topdir="${srcdir}/.."
1358 for ac_dir in $libiberty_topdir $srcdir/$libiberty_topdir; do
1359 if test -f $ac_dir/install-sh; then
1361 ac_install_sh="$ac_aux_dir/install-sh -c"
1363 elif test -f $ac_dir/install.sh; then
1365 ac_install_sh="$ac_aux_dir/install.sh -c"
1367 elif test -f $ac_dir/shtool; then
1369 ac_install_sh="$ac_aux_dir/shtool install -c"
1373 if test -z "$ac_aux_dir"; then
1374 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $libiberty_topdir $srcdir/$libiberty_topdir" >&5
1375 echo "$as_me: error: cannot find install-sh or install.sh in $libiberty_topdir $srcdir/$libiberty_topdir" >&2;}
1376 { (exit 1); exit 1; }; }
1378 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1379 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1380 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1384 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1385 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1386 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1387 if test "${enable_maintainer_mode+set}" = set; then
1388 enableval="$enable_maintainer_mode"
1389 maintainer_mode=$enableval
1394 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
1395 echo "${ECHO_T}$maintainer_mode" >&6
1397 if test "$maintainer_mode" = "yes"; then
1405 # Do we have a single-tree copy of texinfo? Even if we do, we can't
1406 # rely on it - libiberty is built before texinfo.
1407 # Extract the first word of "makeinfo", so it can be a program name with args.
1408 set dummy makeinfo; ac_word=$2
1409 echo "$as_me:$LINENO: checking for $ac_word" >&5
1410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1411 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
1412 echo $ECHO_N "(cached) $ECHO_C" >&6
1414 if test -n "$MAKEINFO"; then
1415 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
1417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1421 test -z "$as_dir" && as_dir=.
1422 for ac_exec_ext in '' $ac_executable_extensions; do
1423 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1424 ac_cv_prog_MAKEINFO="makeinfo"
1425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1433 MAKEINFO=$ac_cv_prog_MAKEINFO
1434 if test -n "$MAKEINFO"; then
1435 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
1436 echo "${ECHO_T}$MAKEINFO" >&6
1438 echo "$as_me:$LINENO: result: no" >&5
1439 echo "${ECHO_T}no" >&6
1442 if test "x$MAKEINFO" = "x"; then
1443 MAKEINFO="@echo makeinfo missing; true"
1448 */missing\ makeinfo*)
1450 { echo "$as_me:$LINENO: WARNING:
1451 *** Makeinfo is missing. Info documentation will not be built." >&5
1452 echo "$as_me: WARNING:
1453 *** Makeinfo is missing. Info documentation will not be built." >&2;}
1456 case x"`$MAKEINFO --version | grep 'GNU texinfo'`" in
1458 MAKEINFO="@echo $MAKEINFO is too old, 4.0 or newer required; true"
1460 { echo "$as_me:$LINENO: WARNING:
1461 *** Makeinfo is too old. Info documentation will not be built." >&5
1462 echo "$as_me: WARNING:
1463 *** Makeinfo is too old. Info documentation will not be built." >&2;}
1472 # Extract the first word of "perl", so it can be a program name with args.
1473 set dummy perl; ac_word=$2
1474 echo "$as_me:$LINENO: checking for $ac_word" >&5
1475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1476 if test "${ac_cv_prog_PERL+set}" = set; then
1477 echo $ECHO_N "(cached) $ECHO_C" >&6
1479 if test -n "$PERL"; then
1480 ac_cv_prog_PERL="$PERL" # Let the user override the test.
1482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1486 test -z "$as_dir" && as_dir=.
1487 for ac_exec_ext in '' $ac_executable_extensions; do
1488 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1489 ac_cv_prog_PERL="perl"
1490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1498 PERL=$ac_cv_prog_PERL
1499 if test -n "$PERL"; then
1500 echo "$as_me:$LINENO: result: $PERL" >&5
1501 echo "${ECHO_T}$PERL" >&6
1503 echo "$as_me:$LINENO: result: no" >&5
1504 echo "${ECHO_T}no" >&6
1507 if test x"$PERL" = x""; then
1514 # Make sure we can run config.sub.
1515 $ac_config_sub sun4 >/dev/null 2>&1 ||
1516 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1517 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1518 { (exit 1); exit 1; }; }
1520 echo "$as_me:$LINENO: checking build system type" >&5
1521 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1522 if test "${ac_cv_build+set}" = set; then
1523 echo $ECHO_N "(cached) $ECHO_C" >&6
1525 ac_cv_build_alias=$build_alias
1526 test -z "$ac_cv_build_alias" &&
1527 ac_cv_build_alias=`$ac_config_guess`
1528 test -z "$ac_cv_build_alias" &&
1529 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1530 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1531 { (exit 1); exit 1; }; }
1532 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1533 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1534 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1535 { (exit 1); exit 1; }; }
1538 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1539 echo "${ECHO_T}$ac_cv_build" >&6
1541 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1542 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1543 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1546 echo "$as_me:$LINENO: checking host system type" >&5
1547 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1548 if test "${ac_cv_host+set}" = set; then
1549 echo $ECHO_N "(cached) $ECHO_C" >&6
1551 ac_cv_host_alias=$host_alias
1552 test -z "$ac_cv_host_alias" &&
1553 ac_cv_host_alias=$ac_cv_build_alias
1554 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1555 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1556 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1557 { (exit 1); exit 1; }; }
1560 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1561 echo "${ECHO_T}$ac_cv_host" >&6
1563 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1564 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1565 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1570 if test -n "$ac_tool_prefix"; then
1571 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1572 set dummy ${ac_tool_prefix}ar; ac_word=$2
1573 echo "$as_me:$LINENO: checking for $ac_word" >&5
1574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1575 if test "${ac_cv_prog_AR+set}" = set; then
1576 echo $ECHO_N "(cached) $ECHO_C" >&6
1578 if test -n "$AR"; then
1579 ac_cv_prog_AR="$AR" # Let the user override the test.
1581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1585 test -z "$as_dir" && as_dir=.
1586 for ac_exec_ext in '' $ac_executable_extensions; do
1587 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1588 ac_cv_prog_AR="${ac_tool_prefix}ar"
1589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1598 if test -n "$AR"; then
1599 echo "$as_me:$LINENO: result: $AR" >&5
1600 echo "${ECHO_T}$AR" >&6
1602 echo "$as_me:$LINENO: result: no" >&5
1603 echo "${ECHO_T}no" >&6
1607 if test -z "$ac_cv_prog_AR"; then
1609 # Extract the first word of "ar", so it can be a program name with args.
1610 set dummy ar; ac_word=$2
1611 echo "$as_me:$LINENO: checking for $ac_word" >&5
1612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1613 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
1614 echo $ECHO_N "(cached) $ECHO_C" >&6
1616 if test -n "$ac_ct_AR"; then
1617 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
1619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1623 test -z "$as_dir" && as_dir=.
1624 for ac_exec_ext in '' $ac_executable_extensions; do
1625 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1626 ac_cv_prog_ac_ct_AR="ar"
1627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1635 ac_ct_AR=$ac_cv_prog_ac_ct_AR
1636 if test -n "$ac_ct_AR"; then
1637 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
1638 echo "${ECHO_T}$ac_ct_AR" >&6
1640 echo "$as_me:$LINENO: result: no" >&5
1641 echo "${ECHO_T}no" >&6
1649 if test -n "$ac_tool_prefix"; then
1650 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1651 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1652 echo "$as_me:$LINENO: checking for $ac_word" >&5
1653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1654 if test "${ac_cv_prog_RANLIB+set}" = set; then
1655 echo $ECHO_N "(cached) $ECHO_C" >&6
1657 if test -n "$RANLIB"; then
1658 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1664 test -z "$as_dir" && as_dir=.
1665 for ac_exec_ext in '' $ac_executable_extensions; do
1666 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1667 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1676 RANLIB=$ac_cv_prog_RANLIB
1677 if test -n "$RANLIB"; then
1678 echo "$as_me:$LINENO: result: $RANLIB" >&5
1679 echo "${ECHO_T}$RANLIB" >&6
1681 echo "$as_me:$LINENO: result: no" >&5
1682 echo "${ECHO_T}no" >&6
1686 if test -z "$ac_cv_prog_RANLIB"; then
1687 ac_ct_RANLIB=$RANLIB
1688 # Extract the first word of "ranlib", so it can be a program name with args.
1689 set dummy ranlib; ac_word=$2
1690 echo "$as_me:$LINENO: checking for $ac_word" >&5
1691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1692 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1693 echo $ECHO_N "(cached) $ECHO_C" >&6
1695 if test -n "$ac_ct_RANLIB"; then
1696 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1702 test -z "$as_dir" && as_dir=.
1703 for ac_exec_ext in '' $ac_executable_extensions; do
1704 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1705 ac_cv_prog_ac_ct_RANLIB="ranlib"
1706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1712 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1715 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
1716 if test -n "$ac_ct_RANLIB"; then
1717 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
1718 echo "${ECHO_T}$ac_ct_RANLIB" >&6
1720 echo "$as_me:$LINENO: result: no" >&5
1721 echo "${ECHO_T}no" >&6
1724 RANLIB=$ac_ct_RANLIB
1726 RANLIB="$ac_cv_prog_RANLIB"
1732 ac_cpp='$CPP $CPPFLAGS'
1733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1736 if test -n "$ac_tool_prefix"; then
1737 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1738 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1739 echo "$as_me:$LINENO: checking for $ac_word" >&5
1740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1741 if test "${ac_cv_prog_CC+set}" = set; then
1742 echo $ECHO_N "(cached) $ECHO_C" >&6
1744 if test -n "$CC"; then
1745 ac_cv_prog_CC="$CC" # Let the user override the test.
1747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1751 test -z "$as_dir" && as_dir=.
1752 for ac_exec_ext in '' $ac_executable_extensions; do
1753 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1754 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1764 if test -n "$CC"; then
1765 echo "$as_me:$LINENO: result: $CC" >&5
1766 echo "${ECHO_T}$CC" >&6
1768 echo "$as_me:$LINENO: result: no" >&5
1769 echo "${ECHO_T}no" >&6
1773 if test -z "$ac_cv_prog_CC"; then
1775 # Extract the first word of "gcc", so it can be a program name with args.
1776 set dummy gcc; ac_word=$2
1777 echo "$as_me:$LINENO: checking for $ac_word" >&5
1778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1779 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1780 echo $ECHO_N "(cached) $ECHO_C" >&6
1782 if test -n "$ac_ct_CC"; then
1783 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1789 test -z "$as_dir" && as_dir=.
1790 for ac_exec_ext in '' $ac_executable_extensions; do
1791 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1792 ac_cv_prog_ac_ct_CC="gcc"
1793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1801 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1802 if test -n "$ac_ct_CC"; then
1803 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1804 echo "${ECHO_T}$ac_ct_CC" >&6
1806 echo "$as_me:$LINENO: result: no" >&5
1807 echo "${ECHO_T}no" >&6
1815 if test -z "$CC"; then
1816 if test -n "$ac_tool_prefix"; then
1817 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1818 set dummy ${ac_tool_prefix}cc; ac_word=$2
1819 echo "$as_me:$LINENO: checking for $ac_word" >&5
1820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1821 if test "${ac_cv_prog_CC+set}" = set; then
1822 echo $ECHO_N "(cached) $ECHO_C" >&6
1824 if test -n "$CC"; then
1825 ac_cv_prog_CC="$CC" # Let the user override the test.
1827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1831 test -z "$as_dir" && as_dir=.
1832 for ac_exec_ext in '' $ac_executable_extensions; do
1833 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1834 ac_cv_prog_CC="${ac_tool_prefix}cc"
1835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1844 if test -n "$CC"; then
1845 echo "$as_me:$LINENO: result: $CC" >&5
1846 echo "${ECHO_T}$CC" >&6
1848 echo "$as_me:$LINENO: result: no" >&5
1849 echo "${ECHO_T}no" >&6
1853 if test -z "$ac_cv_prog_CC"; then
1855 # Extract the first word of "cc", so it can be a program name with args.
1856 set dummy cc; ac_word=$2
1857 echo "$as_me:$LINENO: checking for $ac_word" >&5
1858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1859 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1860 echo $ECHO_N "(cached) $ECHO_C" >&6
1862 if test -n "$ac_ct_CC"; then
1863 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1869 test -z "$as_dir" && as_dir=.
1870 for ac_exec_ext in '' $ac_executable_extensions; do
1871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1872 ac_cv_prog_ac_ct_CC="cc"
1873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1881 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1882 if test -n "$ac_ct_CC"; then
1883 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1884 echo "${ECHO_T}$ac_ct_CC" >&6
1886 echo "$as_me:$LINENO: result: no" >&5
1887 echo "${ECHO_T}no" >&6
1896 if test -z "$CC"; then
1897 # Extract the first word of "cc", so it can be a program name with args.
1898 set dummy cc; ac_word=$2
1899 echo "$as_me:$LINENO: checking for $ac_word" >&5
1900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1901 if test "${ac_cv_prog_CC+set}" = set; then
1902 echo $ECHO_N "(cached) $ECHO_C" >&6
1904 if test -n "$CC"; then
1905 ac_cv_prog_CC="$CC" # Let the user override the test.
1908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1912 test -z "$as_dir" && as_dir=.
1913 for ac_exec_ext in '' $ac_executable_extensions; do
1914 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1915 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1916 ac_prog_rejected=yes
1920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1926 if test $ac_prog_rejected = yes; then
1927 # We found a bogon in the path, so make sure we never use it.
1928 set dummy $ac_cv_prog_CC
1930 if test $# != 0; then
1931 # We chose a different compiler from the bogus one.
1932 # However, it has the same basename, so the bogon will be chosen
1933 # first if we set CC to just the basename; use the full file name.
1935 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1941 if test -n "$CC"; then
1942 echo "$as_me:$LINENO: result: $CC" >&5
1943 echo "${ECHO_T}$CC" >&6
1945 echo "$as_me:$LINENO: result: no" >&5
1946 echo "${ECHO_T}no" >&6
1950 if test -z "$CC"; then
1951 if test -n "$ac_tool_prefix"; then
1954 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1955 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1956 echo "$as_me:$LINENO: checking for $ac_word" >&5
1957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1958 if test "${ac_cv_prog_CC+set}" = set; then
1959 echo $ECHO_N "(cached) $ECHO_C" >&6
1961 if test -n "$CC"; then
1962 ac_cv_prog_CC="$CC" # Let the user override the test.
1964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1968 test -z "$as_dir" && as_dir=.
1969 for ac_exec_ext in '' $ac_executable_extensions; do
1970 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1971 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1981 if test -n "$CC"; then
1982 echo "$as_me:$LINENO: result: $CC" >&5
1983 echo "${ECHO_T}$CC" >&6
1985 echo "$as_me:$LINENO: result: no" >&5
1986 echo "${ECHO_T}no" >&6
1989 test -n "$CC" && break
1992 if test -z "$CC"; then
1996 # Extract the first word of "$ac_prog", so it can be a program name with args.
1997 set dummy $ac_prog; ac_word=$2
1998 echo "$as_me:$LINENO: checking for $ac_word" >&5
1999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2000 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2001 echo $ECHO_N "(cached) $ECHO_C" >&6
2003 if test -n "$ac_ct_CC"; then
2004 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2010 test -z "$as_dir" && as_dir=.
2011 for ac_exec_ext in '' $ac_executable_extensions; do
2012 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2013 ac_cv_prog_ac_ct_CC="$ac_prog"
2014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2022 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2023 if test -n "$ac_ct_CC"; then
2024 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2025 echo "${ECHO_T}$ac_ct_CC" >&6
2027 echo "$as_me:$LINENO: result: no" >&5
2028 echo "${ECHO_T}no" >&6
2031 test -n "$ac_ct_CC" && break
2040 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2041 See \`config.log' for more details." >&5
2042 echo "$as_me: error: no acceptable C compiler found in \$PATH
2043 See \`config.log' for more details." >&2;}
2044 { (exit 1); exit 1; }; }
2046 # Provide some information about the compiler.
2047 echo "$as_me:$LINENO:" \
2048 "checking for C compiler version" >&5
2049 ac_compiler=`set X $ac_compile; echo $2`
2050 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2051 (eval $ac_compiler --version </dev/null >&5) 2>&5
2053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2054 (exit $ac_status); }
2055 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2056 (eval $ac_compiler -v </dev/null >&5) 2>&5
2058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2059 (exit $ac_status); }
2060 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2061 (eval $ac_compiler -V </dev/null >&5) 2>&5
2063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2064 (exit $ac_status); }
2066 cat >conftest.$ac_ext <<_ACEOF
2069 cat confdefs.h >>conftest.$ac_ext
2070 cat >>conftest.$ac_ext <<_ACEOF
2071 /* end confdefs.h. */
2082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2083 (eval $ac_link) 2>&5
2085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086 (exit $ac_status); }; then
2092 if test x$gcc_no_link = xyes; then
2093 # Setting cross_compile will disable run tests; it will
2094 # also disable AC_CHECK_FILE but that's generally
2095 # correct if we can't link.
2099 cat >conftest.$ac_ext <<_ACEOF
2102 cat confdefs.h >>conftest.$ac_ext
2103 cat >>conftest.$ac_ext <<_ACEOF
2104 /* end confdefs.h. */
2114 ac_clean_files_save=$ac_clean_files
2115 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2116 # Try to create an executable without -o first, disregard a.out.
2117 # It will help us diagnose broken compilers, and finding out an intuition
2119 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2120 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2121 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2122 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2123 (eval $ac_link_default) 2>&5
2125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2126 (exit $ac_status); }; then
2127 # Find the output, starting from the most likely. This scheme is
2128 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2131 # Be careful to initialize this variable, since it used to be cached.
2132 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2134 # b.out is created by i960 compilers.
2135 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2137 test -f "$ac_file" || continue
2139 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2142 # This is the source file.
2145 # We found the default executable, but exeext='' is most
2149 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2150 # FIXME: I believe we export ac_cv_exeext for Libtool,
2151 # but it would be cool to find out if it's true. Does anybody
2152 # maintain Libtool? --akim.
2160 echo "$as_me: failed program was:" >&5
2161 sed 's/^/| /' conftest.$ac_ext >&5
2163 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2164 See \`config.log' for more details." >&5
2165 echo "$as_me: error: C compiler cannot create executables
2166 See \`config.log' for more details." >&2;}
2167 { (exit 77); exit 77; }; }
2170 ac_exeext=$ac_cv_exeext
2171 echo "$as_me:$LINENO: result: $ac_file" >&5
2172 echo "${ECHO_T}$ac_file" >&6
2174 # Check the compiler produces executables we can run. If not, either
2175 # the compiler is broken, or we cross compile.
2176 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2177 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2178 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2179 # If not cross compiling, check that we can run a simple program.
2180 if test "$cross_compiling" != yes; then
2181 if { ac_try='./$ac_file'
2182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186 (exit $ac_status); }; }; then
2189 if test "$cross_compiling" = maybe; then
2192 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2193 If you meant to cross compile, use \`--host'.
2194 See \`config.log' for more details." >&5
2195 echo "$as_me: error: cannot run C compiled programs.
2196 If you meant to cross compile, use \`--host'.
2197 See \`config.log' for more details." >&2;}
2198 { (exit 1); exit 1; }; }
2202 echo "$as_me:$LINENO: result: yes" >&5
2203 echo "${ECHO_T}yes" >&6
2205 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2206 ac_clean_files=$ac_clean_files_save
2207 # Check the compiler produces executables we can run. If not, either
2208 # the compiler is broken, or we cross compile.
2209 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2210 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2211 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2212 echo "${ECHO_T}$cross_compiling" >&6
2214 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2215 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2217 (eval $ac_link) 2>&5
2219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220 (exit $ac_status); }; then
2221 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2222 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2223 # work properly (i.e., refer to `conftest.exe'), while it won't with
2225 for ac_file in conftest.exe conftest conftest.*; do
2226 test -f "$ac_file" || continue
2228 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2229 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2236 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2237 See \`config.log' for more details." >&5
2238 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2239 See \`config.log' for more details." >&2;}
2240 { (exit 1); exit 1; }; }
2243 rm -f conftest$ac_cv_exeext
2244 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2245 echo "${ECHO_T}$ac_cv_exeext" >&6
2247 rm -f conftest.$ac_ext
2248 EXEEXT=$ac_cv_exeext
2251 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2252 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2253 if test "${ac_cv_objext+set}" = set; then
2254 echo $ECHO_N "(cached) $ECHO_C" >&6
2256 cat >conftest.$ac_ext <<_ACEOF
2259 cat confdefs.h >>conftest.$ac_ext
2260 cat >>conftest.$ac_ext <<_ACEOF
2261 /* end confdefs.h. */
2271 rm -f conftest.o conftest.obj
2272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2273 (eval $ac_compile) 2>&5
2275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276 (exit $ac_status); }; then
2277 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2279 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2280 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2285 echo "$as_me: failed program was:" >&5
2286 sed 's/^/| /' conftest.$ac_ext >&5
2288 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2289 See \`config.log' for more details." >&5
2290 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2291 See \`config.log' for more details." >&2;}
2292 { (exit 1); exit 1; }; }
2295 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2297 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2298 echo "${ECHO_T}$ac_cv_objext" >&6
2299 OBJEXT=$ac_cv_objext
2301 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2302 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2303 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2304 echo $ECHO_N "(cached) $ECHO_C" >&6
2306 cat >conftest.$ac_ext <<_ACEOF
2309 cat confdefs.h >>conftest.$ac_ext
2310 cat >>conftest.$ac_ext <<_ACEOF
2311 /* end confdefs.h. */
2324 rm -f conftest.$ac_objext
2325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2326 (eval $ac_compile) 2>conftest.er1
2328 grep -v '^ *+' conftest.er1 >conftest.err
2330 cat conftest.err >&5
2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); } &&
2333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338 (exit $ac_status); }; } &&
2339 { ac_try='test -s conftest.$ac_objext'
2340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344 (exit $ac_status); }; }; then
2347 echo "$as_me: failed program was:" >&5
2348 sed 's/^/| /' conftest.$ac_ext >&5
2352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2353 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2356 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2357 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2358 GCC=`test $ac_compiler_gnu = yes && echo yes`
2359 ac_test_CFLAGS=${CFLAGS+set}
2360 ac_save_CFLAGS=$CFLAGS
2362 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2363 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2364 if test "${ac_cv_prog_cc_g+set}" = set; then
2365 echo $ECHO_N "(cached) $ECHO_C" >&6
2367 cat >conftest.$ac_ext <<_ACEOF
2370 cat confdefs.h >>conftest.$ac_ext
2371 cat >>conftest.$ac_ext <<_ACEOF
2372 /* end confdefs.h. */
2382 rm -f conftest.$ac_objext
2383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2384 (eval $ac_compile) 2>conftest.er1
2386 grep -v '^ *+' conftest.er1 >conftest.err
2388 cat conftest.err >&5
2389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390 (exit $ac_status); } &&
2391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); }; } &&
2397 { ac_try='test -s conftest.$ac_objext'
2398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); }; }; then
2405 echo "$as_me: failed program was:" >&5
2406 sed 's/^/| /' conftest.$ac_ext >&5
2410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2412 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2413 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2414 if test "$ac_test_CFLAGS" = set; then
2415 CFLAGS=$ac_save_CFLAGS
2416 elif test $ac_cv_prog_cc_g = yes; then
2417 if test "$GCC" = yes; then
2423 if test "$GCC" = yes; then
2429 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2430 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2431 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2432 echo $ECHO_N "(cached) $ECHO_C" >&6
2434 ac_cv_prog_cc_stdc=no
2436 cat >conftest.$ac_ext <<_ACEOF
2439 cat confdefs.h >>conftest.$ac_ext
2440 cat >>conftest.$ac_ext <<_ACEOF
2441 /* end confdefs.h. */
2444 #include <sys/types.h>
2445 #include <sys/stat.h>
2446 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2447 struct buf { int x; };
2448 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2449 static char *e (p, i)
2455 static char *f (char * (*g) (char **, int), char **p, ...)
2460 s = g (p, va_arg (v,int));
2465 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2466 function prototypes and stuff, but not '\xHH' hex character constants.
2467 These don't provoke an error unfortunately, instead are silently treated
2468 as 'x'. The following induces an error, until -std1 is added to get
2469 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2470 array size at least. It's necessary to write '\x00'==0 to get something
2471 that's true only with -std1. */
2472 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2474 int test (int i, double x);
2475 struct s1 {int (*f) (int a);};
2476 struct s2 {int (*f) (double a);};
2477 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2483 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2488 # Don't try gcc -ansi; that turns off useful extensions and
2489 # breaks some systems' header files.
2490 # AIX -qlanglvl=ansi
2491 # Ultrix and OSF/1 -std1
2492 # HP-UX 10.20 and later -Ae
2493 # HP-UX older versions -Aa -D_HPUX_SOURCE
2494 # SVR4 -Xc -D__EXTENSIONS__
2495 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2497 CC="$ac_save_CC $ac_arg"
2498 rm -f conftest.$ac_objext
2499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2500 (eval $ac_compile) 2>conftest.er1
2502 grep -v '^ *+' conftest.er1 >conftest.err
2504 cat conftest.err >&5
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506 (exit $ac_status); } &&
2507 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); }; } &&
2513 { ac_try='test -s conftest.$ac_objext'
2514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518 (exit $ac_status); }; }; then
2519 ac_cv_prog_cc_stdc=$ac_arg
2522 echo "$as_me: failed program was:" >&5
2523 sed 's/^/| /' conftest.$ac_ext >&5
2526 rm -f conftest.err conftest.$ac_objext
2528 rm -f conftest.$ac_ext conftest.$ac_objext
2533 case "x$ac_cv_prog_cc_stdc" in
2535 echo "$as_me:$LINENO: result: none needed" >&5
2536 echo "${ECHO_T}none needed" >&6 ;;
2538 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2539 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2540 CC="$CC $ac_cv_prog_cc_stdc" ;;
2543 # Some people use a C++ compiler to compile C. Since we use `exit',
2544 # in C++ we need to declare it. In case someone uses the same compiler
2545 # for both compiling C and C++ we need to have the C++ compiler decide
2546 # the declaration of exit, since it's the most demanding environment.
2547 cat >conftest.$ac_ext <<_ACEOF
2552 rm -f conftest.$ac_objext
2553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2554 (eval $ac_compile) 2>conftest.er1
2556 grep -v '^ *+' conftest.er1 >conftest.err
2558 cat conftest.err >&5
2559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560 (exit $ac_status); } &&
2561 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566 (exit $ac_status); }; } &&
2567 { ac_try='test -s conftest.$ac_objext'
2568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); }; }; then
2573 for ac_declaration in \
2575 'extern "C" void std::exit (int) throw (); using std::exit;' \
2576 'extern "C" void std::exit (int); using std::exit;' \
2577 'extern "C" void exit (int) throw ();' \
2578 'extern "C" void exit (int);' \
2581 cat >conftest.$ac_ext <<_ACEOF
2584 cat confdefs.h >>conftest.$ac_ext
2585 cat >>conftest.$ac_ext <<_ACEOF
2586 /* end confdefs.h. */
2597 rm -f conftest.$ac_objext
2598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2599 (eval $ac_compile) 2>conftest.er1
2601 grep -v '^ *+' conftest.er1 >conftest.err
2603 cat conftest.err >&5
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); } &&
2606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611 (exit $ac_status); }; } &&
2612 { ac_try='test -s conftest.$ac_objext'
2613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617 (exit $ac_status); }; }; then
2620 echo "$as_me: failed program was:" >&5
2621 sed 's/^/| /' conftest.$ac_ext >&5
2625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2626 cat >conftest.$ac_ext <<_ACEOF
2629 cat confdefs.h >>conftest.$ac_ext
2630 cat >>conftest.$ac_ext <<_ACEOF
2631 /* end confdefs.h. */
2641 rm -f conftest.$ac_objext
2642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2643 (eval $ac_compile) 2>conftest.er1
2645 grep -v '^ *+' conftest.er1 >conftest.err
2647 cat conftest.err >&5
2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649 (exit $ac_status); } &&
2650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); }; } &&
2656 { ac_try='test -s conftest.$ac_objext'
2657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661 (exit $ac_status); }; }; then
2664 echo "$as_me: failed program was:" >&5
2665 sed 's/^/| /' conftest.$ac_ext >&5
2668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2671 if test -n "$ac_declaration"; then
2672 echo '#ifdef __cplusplus' >>confdefs.h
2673 echo $ac_declaration >>confdefs.h
2674 echo '#endif' >>confdefs.h
2678 echo "$as_me: failed program was:" >&5
2679 sed 's/^/| /' conftest.$ac_ext >&5
2682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2684 ac_cpp='$CPP $CPPFLAGS'
2685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2690 ac_cpp='$CPP $CPPFLAGS'
2691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2694 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2695 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2696 # On Suns, sometimes $CPP names a directory.
2697 if test -n "$CPP" && test -d "$CPP"; then
2700 if test -z "$CPP"; then
2701 if test "${ac_cv_prog_CPP+set}" = set; then
2702 echo $ECHO_N "(cached) $ECHO_C" >&6
2704 # Double quotes because CPP needs to be expanded
2705 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2708 for ac_c_preproc_warn_flag in '' yes
2710 # Use a header file that comes with gcc, so configuring glibc
2711 # with a fresh cross-compiler works.
2712 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2713 # <limits.h> exists even on freestanding compilers.
2714 # On the NeXT, cc -E runs the code through the compiler's parser,
2715 # not just through cpp. "Syntax error" is here to catch this case.
2716 cat >conftest.$ac_ext <<_ACEOF
2719 cat confdefs.h >>conftest.$ac_ext
2720 cat >>conftest.$ac_ext <<_ACEOF
2721 /* end confdefs.h. */
2723 # include <limits.h>
2725 # include <assert.h>
2729 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2730 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2732 grep -v '^ *+' conftest.er1 >conftest.err
2734 cat conftest.err >&5
2735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736 (exit $ac_status); } >/dev/null; then
2737 if test -s conftest.err; then
2738 ac_cpp_err=$ac_c_preproc_warn_flag
2739 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2746 if test -z "$ac_cpp_err"; then
2749 echo "$as_me: failed program was:" >&5
2750 sed 's/^/| /' conftest.$ac_ext >&5
2752 # Broken: fails on valid input.
2755 rm -f conftest.err conftest.$ac_ext
2757 # OK, works on sane cases. Now check whether non-existent headers
2758 # can be detected and how.
2759 cat >conftest.$ac_ext <<_ACEOF
2762 cat confdefs.h >>conftest.$ac_ext
2763 cat >>conftest.$ac_ext <<_ACEOF
2764 /* end confdefs.h. */
2765 #include <ac_nonexistent.h>
2767 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2768 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2770 grep -v '^ *+' conftest.er1 >conftest.err
2772 cat conftest.err >&5
2773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774 (exit $ac_status); } >/dev/null; then
2775 if test -s conftest.err; then
2776 ac_cpp_err=$ac_c_preproc_warn_flag
2777 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2784 if test -z "$ac_cpp_err"; then
2785 # Broken: success on invalid input.
2788 echo "$as_me: failed program was:" >&5
2789 sed 's/^/| /' conftest.$ac_ext >&5
2791 # Passes both tests.
2795 rm -f conftest.err conftest.$ac_ext
2798 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2799 rm -f conftest.err conftest.$ac_ext
2800 if $ac_preproc_ok; then
2812 echo "$as_me:$LINENO: result: $CPP" >&5
2813 echo "${ECHO_T}$CPP" >&6
2815 for ac_c_preproc_warn_flag in '' yes
2817 # Use a header file that comes with gcc, so configuring glibc
2818 # with a fresh cross-compiler works.
2819 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2820 # <limits.h> exists even on freestanding compilers.
2821 # On the NeXT, cc -E runs the code through the compiler's parser,
2822 # not just through cpp. "Syntax error" is here to catch this case.
2823 cat >conftest.$ac_ext <<_ACEOF
2826 cat confdefs.h >>conftest.$ac_ext
2827 cat >>conftest.$ac_ext <<_ACEOF
2828 /* end confdefs.h. */
2830 # include <limits.h>
2832 # include <assert.h>
2836 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2837 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2839 grep -v '^ *+' conftest.er1 >conftest.err
2841 cat conftest.err >&5
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); } >/dev/null; then
2844 if test -s conftest.err; then
2845 ac_cpp_err=$ac_c_preproc_warn_flag
2846 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2853 if test -z "$ac_cpp_err"; then
2856 echo "$as_me: failed program was:" >&5
2857 sed 's/^/| /' conftest.$ac_ext >&5
2859 # Broken: fails on valid input.
2862 rm -f conftest.err conftest.$ac_ext
2864 # OK, works on sane cases. Now check whether non-existent headers
2865 # can be detected and how.
2866 cat >conftest.$ac_ext <<_ACEOF
2869 cat confdefs.h >>conftest.$ac_ext
2870 cat >>conftest.$ac_ext <<_ACEOF
2871 /* end confdefs.h. */
2872 #include <ac_nonexistent.h>
2874 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2875 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2877 grep -v '^ *+' conftest.er1 >conftest.err
2879 cat conftest.err >&5
2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); } >/dev/null; then
2882 if test -s conftest.err; then
2883 ac_cpp_err=$ac_c_preproc_warn_flag
2884 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2891 if test -z "$ac_cpp_err"; then
2892 # Broken: success on invalid input.
2895 echo "$as_me: failed program was:" >&5
2896 sed 's/^/| /' conftest.$ac_ext >&5
2898 # Passes both tests.
2902 rm -f conftest.err conftest.$ac_ext
2905 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2906 rm -f conftest.err conftest.$ac_ext
2907 if $ac_preproc_ok; then
2910 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2911 See \`config.log' for more details." >&5
2912 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2913 See \`config.log' for more details." >&2;}
2914 { (exit 1); exit 1; }; }
2918 ac_cpp='$CPP $CPPFLAGS'
2919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2924 ac_c_preproc_warn_flag=yes
2926 if test x$GCC = xyes; then
2927 ac_libiberty_warn_cflags='-W -Wall -Wtraditional -pedantic'
2931 if test "x$CC" != xcc; then
2932 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2933 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2935 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2936 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2938 set dummy $CC; ac_cc=`echo $2 |
2939 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2940 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2941 echo $ECHO_N "(cached) $ECHO_C" >&6
2943 cat >conftest.$ac_ext <<_ACEOF
2946 cat confdefs.h >>conftest.$ac_ext
2947 cat >>conftest.$ac_ext <<_ACEOF
2948 /* end confdefs.h. */
2958 # Make sure it works both with $CC and with simple cc.
2959 # We do the test twice because some compilers refuse to overwrite an
2960 # existing .o file with -o, though they will create one.
2961 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2962 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966 (exit $ac_status); } &&
2967 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971 (exit $ac_status); };
2973 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2974 if test "x$CC" != xcc; then
2975 # Test first that cc exists at all.
2976 if { ac_try='cc -c conftest.$ac_ext >&5'
2977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981 (exit $ac_status); }; }; then
2982 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2983 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987 (exit $ac_status); } &&
2988 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); };
2997 # cc exists but doesn't like -o.
2998 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3003 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3008 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3009 echo "$as_me:$LINENO: result: yes" >&5
3010 echo "${ECHO_T}yes" >&6
3012 echo "$as_me:$LINENO: result: no" >&5
3013 echo "${ECHO_T}no" >&6
3015 cat >>confdefs.h <<\_ACEOF
3016 #define NO_MINUS_C_MINUS_O 1
3021 # autoconf is lame and doesn't give us any substitution variable for this.
3022 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
3023 NO_MINUS_C_MINUS_O=yes
3025 OUTPUT_OPTION='-o $@'
3031 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3032 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3033 if test "${ac_cv_c_const+set}" = set; then
3034 echo $ECHO_N "(cached) $ECHO_C" >&6
3036 cat >conftest.$ac_ext <<_ACEOF
3039 cat confdefs.h >>conftest.$ac_ext
3040 cat >>conftest.$ac_ext <<_ACEOF
3041 /* end confdefs.h. */
3046 /* FIXME: Include the comments suggested by Paul. */
3048 /* Ultrix mips cc rejects this. */
3049 typedef int charset[2];
3051 /* SunOS 4.1.1 cc rejects this. */
3052 char const *const *ccp;
3054 /* NEC SVR4.0.2 mips cc rejects this. */
3055 struct point {int x, y;};
3056 static struct point const zero = {0,0};
3057 /* AIX XL C 1.02.0.0 rejects this.
3058 It does not let you subtract one const X* pointer from another in
3059 an arm of an if-expression whose if-part is not a constant
3061 const char *g = "string";
3062 ccp = &g + (g ? g-g : 0);
3063 /* HPUX 7.0 cc rejects these. */
3066 ccp = (char const *const *) p;
3067 { /* SCO 3.2v4 cc rejects this. */
3069 char const *s = 0 ? (char *) 0 : (char const *) 0;
3073 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3075 const int *foo = &x[0];
3078 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3079 typedef const int *iptr;
3083 { /* AIX XL C 1.02.0.0 rejects this saying
3084 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3085 struct s { int j; const int *ap[3]; };
3086 struct s *b; b->j = 5;
3088 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3097 rm -f conftest.$ac_objext
3098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3099 (eval $ac_compile) 2>conftest.er1
3101 grep -v '^ *+' conftest.er1 >conftest.err
3103 cat conftest.err >&5
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); } &&
3106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111 (exit $ac_status); }; } &&
3112 { ac_try='test -s conftest.$ac_objext'
3113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117 (exit $ac_status); }; }; then
3120 echo "$as_me: failed program was:" >&5
3121 sed 's/^/| /' conftest.$ac_ext >&5
3125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3127 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3128 echo "${ECHO_T}$ac_cv_c_const" >&6
3129 if test $ac_cv_c_const = no; then
3131 cat >>confdefs.h <<\_ACEOF
3137 echo "$as_me:$LINENO: checking for inline" >&5
3138 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3139 if test "${ac_cv_c_inline+set}" = set; then
3140 echo $ECHO_N "(cached) $ECHO_C" >&6
3143 for ac_kw in inline __inline__ __inline; do
3144 cat >conftest.$ac_ext <<_ACEOF
3147 cat confdefs.h >>conftest.$ac_ext
3148 cat >>conftest.$ac_ext <<_ACEOF
3149 /* end confdefs.h. */
3152 static $ac_kw foo_t static_foo () {return 0; }
3153 $ac_kw foo_t foo () {return 0; }
3157 rm -f conftest.$ac_objext
3158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3159 (eval $ac_compile) 2>conftest.er1
3161 grep -v '^ *+' conftest.er1 >conftest.err
3163 cat conftest.err >&5
3164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165 (exit $ac_status); } &&
3166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171 (exit $ac_status); }; } &&
3172 { ac_try='test -s conftest.$ac_objext'
3173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177 (exit $ac_status); }; }; then
3178 ac_cv_c_inline=$ac_kw; break
3180 echo "$as_me: failed program was:" >&5
3181 sed 's/^/| /' conftest.$ac_ext >&5
3184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3188 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3189 echo "${ECHO_T}$ac_cv_c_inline" >&6
3192 case $ac_cv_c_inline in
3195 case $ac_cv_c_inline in
3197 *) ac_val=$ac_cv_c_inline;;
3199 cat >>confdefs.h <<_ACEOF
3201 #define inline $ac_val
3207 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3208 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3209 if test "${ac_cv_c_bigendian+set}" = set; then
3210 echo $ECHO_N "(cached) $ECHO_C" >&6
3212 ac_cv_c_bigendian=unknown
3213 # See if sys/param.h defines the BYTE_ORDER macro.
3214 cat >conftest.$ac_ext <<_ACEOF
3217 cat confdefs.h >>conftest.$ac_ext
3218 cat >>conftest.$ac_ext <<_ACEOF
3219 /* end confdefs.h. */
3220 #include <sys/types.h>
3221 #include <sys/param.h>
3226 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3233 rm -f conftest.$ac_objext
3234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3235 (eval $ac_compile) 2>conftest.er1
3237 grep -v '^ *+' conftest.er1 >conftest.err
3239 cat conftest.err >&5
3240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241 (exit $ac_status); } &&
3242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); }; } &&
3248 { ac_try='test -s conftest.$ac_objext'
3249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253 (exit $ac_status); }; }; then
3254 # It does; now see whether it defined to BIG_ENDIAN or not.
3255 cat >conftest.$ac_ext <<_ACEOF
3258 cat confdefs.h >>conftest.$ac_ext
3259 cat >>conftest.$ac_ext <<_ACEOF
3260 /* end confdefs.h. */
3261 #include <sys/types.h>
3262 #include <sys/param.h>
3267 #if BYTE_ORDER != BIG_ENDIAN
3274 rm -f conftest.$ac_objext
3275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3276 (eval $ac_compile) 2>conftest.er1
3278 grep -v '^ *+' conftest.er1 >conftest.err
3280 cat conftest.err >&5
3281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282 (exit $ac_status); } &&
3283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288 (exit $ac_status); }; } &&
3289 { ac_try='test -s conftest.$ac_objext'
3290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294 (exit $ac_status); }; }; then
3295 ac_cv_c_bigendian=yes
3297 echo "$as_me: failed program was:" >&5
3298 sed 's/^/| /' conftest.$ac_ext >&5
3300 ac_cv_c_bigendian=no
3302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3304 echo "$as_me: failed program was:" >&5
3305 sed 's/^/| /' conftest.$ac_ext >&5
3308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3309 if test $ac_cv_c_bigendian = unknown; then
3310 if test "$cross_compiling" = yes; then
3311 echo $ac_n "cross-compiling... " 2>&6
3313 cat >conftest.$ac_ext <<_ACEOF
3316 cat confdefs.h >>conftest.$ac_ext
3317 cat >>conftest.$ac_ext <<_ACEOF
3318 /* end confdefs.h. */
3320 /* Are we little or big endian? From Harbison&Steele. */
3324 char c[sizeof (long)];
3327 exit (u.c[sizeof (long) - 1] == 1);
3330 rm -f conftest$ac_exeext
3331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3332 (eval $ac_link) 2>&5
3334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340 (exit $ac_status); }; }; then
3341 ac_cv_c_bigendian=no
3343 echo "$as_me: program exited with status $ac_status" >&5
3344 echo "$as_me: failed program was:" >&5
3345 sed 's/^/| /' conftest.$ac_ext >&5
3348 ac_cv_c_bigendian=yes
3350 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3354 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3355 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3356 if test $ac_cv_c_bigendian = unknown; then
3357 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
3358 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
3360 cat >conftest.c <<EOF
3361 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3362 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3363 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
3364 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3365 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3366 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
3367 int main() { _ascii (); _ebcdic (); return 0; }
3369 if test -f conftest.c ; then
3370 if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
3371 if test `grep -l BIGenDianSyS conftest.o` ; then
3372 echo $ac_n ' big endian probe OK, ' 1>&6
3373 ac_cv_c_bigendian=yes
3375 if test `grep -l LiTTleEnDian conftest.o` ; then
3376 echo $ac_n ' little endian probe OK, ' 1>&6
3377 if test $ac_cv_c_bigendian = yes ; then
3378 ac_cv_c_bigendian=unknown;
3380 ac_cv_c_bigendian=no
3383 echo $ac_n 'guessing bigendian ... ' >&6
3386 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3387 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3389 if test $ac_cv_c_bigendian = yes; then
3391 cat >>confdefs.h <<\_ACEOF
3392 #define WORDS_BIGENDIAN 1
3396 cat >>confdefs.h <<\_ACEOF
3397 #define HOST_WORDS_BIG_ENDIAN 1
3405 cat >>confdefs.h <<_ACEOF
3406 #define BYTEORDER $BYTEORDER
3409 if test $ac_cv_c_bigendian = unknown; then
3410 { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
3411 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
3412 { (exit 1); exit 1; }; }
3418 ac_config_headers="$ac_config_headers config.h:config.in"
3422 # Find a good install program. We prefer a C program (faster),
3423 # so one script is as good as another. But avoid the broken or
3424 # incompatible versions:
3425 # SysV /etc/install, /usr/sbin/install
3426 # SunOS /usr/etc/install
3427 # IRIX /sbin/install
3429 # AmigaOS /C/install, which installs bootblocks on floppy discs
3430 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3431 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3432 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3433 # OS/2's system install, which has a completely different semantic
3434 # ./install, which can be erroneously created by make from ./install.sh.
3435 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3436 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3437 if test -z "$INSTALL"; then
3438 if test "${ac_cv_path_install+set}" = set; then
3439 echo $ECHO_N "(cached) $ECHO_C" >&6
3441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3445 test -z "$as_dir" && as_dir=.
3446 # Account for people who put trailing slashes in PATH elements.
3448 ./ | .// | /cC/* | \
3449 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3450 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3453 # OSF1 and SCO ODT 3.0 have their own names for install.
3454 # Don't use installbsd from OSF since it installs stuff as root
3456 for ac_prog in ginstall scoinst install; do
3457 for ac_exec_ext in '' $ac_executable_extensions; do
3458 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3459 if test $ac_prog = install &&
3460 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3461 # AIX install. It has an incompatible calling convention.
3463 elif test $ac_prog = install &&
3464 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3465 # program-specific install script used by HP pwplus--don't use.
3468 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3480 if test "${ac_cv_path_install+set}" = set; then
3481 INSTALL=$ac_cv_path_install
3483 # As a last resort, use the slow shell script. We don't cache a
3484 # path for INSTALL within a source directory, because that will
3485 # break other packages using the cache if that directory is
3486 # removed, or if the path is relative.
3487 INSTALL=$ac_install_sh
3490 echo "$as_me:$LINENO: result: $INSTALL" >&5
3491 echo "${ECHO_T}$INSTALL" >&6
3493 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3494 # It thinks the first close brace ends the variable substitution.
3495 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3497 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3499 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3502 . ${srcdir}/config.table
3503 host_makefile_frag=${frag}
3506 # It's OK to check for header files. Although the compiler may not be
3507 # able to link anything, it had better be able to at least compile
3533 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
3535 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3536 echo "$as_me:$LINENO: checking for $ac_header" >&5
3537 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3538 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3539 echo $ECHO_N "(cached) $ECHO_C" >&6
3541 cat >conftest.$ac_ext <<_ACEOF
3544 cat confdefs.h >>conftest.$ac_ext
3545 cat >>conftest.$ac_ext <<_ACEOF
3546 /* end confdefs.h. */
3547 #include <$ac_header>
3549 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3550 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3552 grep -v '^ *+' conftest.er1 >conftest.err
3554 cat conftest.err >&5
3555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556 (exit $ac_status); } >/dev/null; then
3557 if test -s conftest.err; then
3558 ac_cpp_err=$ac_c_preproc_warn_flag
3559 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3566 if test -z "$ac_cpp_err"; then
3567 eval "$as_ac_Header=yes"
3569 echo "$as_me: failed program was:" >&5
3570 sed 's/^/| /' conftest.$ac_ext >&5
3572 eval "$as_ac_Header=no"
3574 rm -f conftest.err conftest.$ac_ext
3576 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3577 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3578 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3579 cat >>confdefs.h <<_ACEOF
3580 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3586 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3587 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
3588 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3589 echo $ECHO_N "(cached) $ECHO_C" >&6
3591 cat >conftest.$ac_ext <<_ACEOF
3594 cat confdefs.h >>conftest.$ac_ext
3595 cat >>conftest.$ac_ext <<_ACEOF
3596 /* end confdefs.h. */
3597 #include <sys/types.h>
3598 #include <sys/wait.h>
3600 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3603 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3611 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3616 rm -f conftest.$ac_objext
3617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3618 (eval $ac_compile) 2>conftest.er1
3620 grep -v '^ *+' conftest.er1 >conftest.err
3622 cat conftest.err >&5
3623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624 (exit $ac_status); } &&
3625 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630 (exit $ac_status); }; } &&
3631 { ac_try='test -s conftest.$ac_objext'
3632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636 (exit $ac_status); }; }; then
3637 ac_cv_header_sys_wait_h=yes
3639 echo "$as_me: failed program was:" >&5
3640 sed 's/^/| /' conftest.$ac_ext >&5
3642 ac_cv_header_sys_wait_h=no
3644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3646 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3647 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
3648 if test $ac_cv_header_sys_wait_h = yes; then
3650 cat >>confdefs.h <<\_ACEOF
3651 #define HAVE_SYS_WAIT_H 1
3656 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3657 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3658 if test "${ac_cv_header_time+set}" = set; then
3659 echo $ECHO_N "(cached) $ECHO_C" >&6
3661 cat >conftest.$ac_ext <<_ACEOF
3664 cat confdefs.h >>conftest.$ac_ext
3665 cat >>conftest.$ac_ext <<_ACEOF
3666 /* end confdefs.h. */
3667 #include <sys/types.h>
3668 #include <sys/time.h>
3674 if ((struct tm *) 0)
3680 rm -f conftest.$ac_objext
3681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3682 (eval $ac_compile) 2>conftest.er1
3684 grep -v '^ *+' conftest.er1 >conftest.err
3686 cat conftest.err >&5
3687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688 (exit $ac_status); } &&
3689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694 (exit $ac_status); }; } &&
3695 { ac_try='test -s conftest.$ac_objext'
3696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700 (exit $ac_status); }; }; then
3701 ac_cv_header_time=yes
3703 echo "$as_me: failed program was:" >&5
3704 sed 's/^/| /' conftest.$ac_ext >&5
3706 ac_cv_header_time=no
3708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3710 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3711 echo "${ECHO_T}$ac_cv_header_time" >&6
3712 if test $ac_cv_header_time = yes; then
3714 cat >>confdefs.h <<\_ACEOF
3715 #define TIME_WITH_SYS_TIME 1
3721 echo "$as_me:$LINENO: checking whether errno must be declared" >&5
3722 echo $ECHO_N "checking whether errno must be declared... $ECHO_C" >&6
3723 if test "${libiberty_cv_declare_errno+set}" = set; then
3724 echo $ECHO_N "(cached) $ECHO_C" >&6
3726 cat >conftest.$ac_ext <<_ACEOF
3729 cat confdefs.h >>conftest.$ac_ext
3730 cat >>conftest.$ac_ext <<_ACEOF
3731 /* end confdefs.h. */
3741 rm -f conftest.$ac_objext
3742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3743 (eval $ac_compile) 2>conftest.er1
3745 grep -v '^ *+' conftest.er1 >conftest.err
3747 cat conftest.err >&5
3748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3749 (exit $ac_status); } &&
3750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755 (exit $ac_status); }; } &&
3756 { ac_try='test -s conftest.$ac_objext'
3757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3761 (exit $ac_status); }; }; then
3762 libiberty_cv_declare_errno=no
3764 echo "$as_me: failed program was:" >&5
3765 sed 's/^/| /' conftest.$ac_ext >&5
3767 libiberty_cv_declare_errno=yes
3769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3771 echo "$as_me:$LINENO: result: $libiberty_cv_declare_errno" >&5
3772 echo "${ECHO_T}$libiberty_cv_declare_errno" >&6
3773 if test $libiberty_cv_declare_errno = yes
3775 cat >>confdefs.h <<\_ACEOF
3776 #define NEED_DECLARATION_ERRNO 1
3782 # Determine the size of an int for struct fibnode.
3783 echo "$as_me:$LINENO: checking for egrep" >&5
3784 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3785 if test "${ac_cv_prog_egrep+set}" = set; then
3786 echo $ECHO_N "(cached) $ECHO_C" >&6
3788 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3789 then ac_cv_prog_egrep='grep -E'
3790 else ac_cv_prog_egrep='egrep'
3793 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3794 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3795 EGREP=$ac_cv_prog_egrep
3798 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3799 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3800 if test "${ac_cv_header_stdc+set}" = set; then
3801 echo $ECHO_N "(cached) $ECHO_C" >&6
3803 cat >conftest.$ac_ext <<_ACEOF
3806 cat confdefs.h >>conftest.$ac_ext
3807 cat >>conftest.$ac_ext <<_ACEOF
3808 /* end confdefs.h. */
3822 rm -f conftest.$ac_objext
3823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3824 (eval $ac_compile) 2>conftest.er1
3826 grep -v '^ *+' conftest.er1 >conftest.err
3828 cat conftest.err >&5
3829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830 (exit $ac_status); } &&
3831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836 (exit $ac_status); }; } &&
3837 { ac_try='test -s conftest.$ac_objext'
3838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842 (exit $ac_status); }; }; then
3843 ac_cv_header_stdc=yes
3845 echo "$as_me: failed program was:" >&5
3846 sed 's/^/| /' conftest.$ac_ext >&5
3848 ac_cv_header_stdc=no
3850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3852 if test $ac_cv_header_stdc = yes; then
3853 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3854 cat >conftest.$ac_ext <<_ACEOF
3857 cat confdefs.h >>conftest.$ac_ext
3858 cat >>conftest.$ac_ext <<_ACEOF
3859 /* end confdefs.h. */
3863 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3864 $EGREP "memchr" >/dev/null 2>&1; then
3867 ac_cv_header_stdc=no
3873 if test $ac_cv_header_stdc = yes; then
3874 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3875 cat >conftest.$ac_ext <<_ACEOF
3878 cat confdefs.h >>conftest.$ac_ext
3879 cat >>conftest.$ac_ext <<_ACEOF
3880 /* end confdefs.h. */
3884 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3885 $EGREP "free" >/dev/null 2>&1; then
3888 ac_cv_header_stdc=no
3894 if test $ac_cv_header_stdc = yes; then
3895 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3896 if test "$cross_compiling" = yes; then
3899 cat >conftest.$ac_ext <<_ACEOF
3902 cat confdefs.h >>conftest.$ac_ext
3903 cat >>conftest.$ac_ext <<_ACEOF
3904 /* end confdefs.h. */
3906 #if ((' ' & 0x0FF) == 0x020)
3907 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3908 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3910 # define ISLOWER(c) \
3911 (('a' <= (c) && (c) <= 'i') \
3912 || ('j' <= (c) && (c) <= 'r') \
3913 || ('s' <= (c) && (c) <= 'z'))
3914 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3917 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3922 for (i = 0; i < 256; i++)
3923 if (XOR (islower (i), ISLOWER (i))
3924 || toupper (i) != TOUPPER (i))
3929 rm -f conftest$ac_exeext
3930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3931 (eval $ac_link) 2>&5
3933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939 (exit $ac_status); }; }; then
3942 echo "$as_me: program exited with status $ac_status" >&5
3943 echo "$as_me: failed program was:" >&5
3944 sed 's/^/| /' conftest.$ac_ext >&5
3947 ac_cv_header_stdc=no
3949 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3953 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3954 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3955 if test $ac_cv_header_stdc = yes; then
3957 cat >>confdefs.h <<\_ACEOF
3958 #define STDC_HEADERS 1
3963 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3973 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3974 inttypes.h stdint.h unistd.h
3976 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3977 echo "$as_me:$LINENO: checking for $ac_header" >&5
3978 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3979 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3980 echo $ECHO_N "(cached) $ECHO_C" >&6
3982 cat >conftest.$ac_ext <<_ACEOF
3985 cat confdefs.h >>conftest.$ac_ext
3986 cat >>conftest.$ac_ext <<_ACEOF
3987 /* end confdefs.h. */
3988 #include <$ac_header>
3990 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3991 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3993 grep -v '^ *+' conftest.er1 >conftest.err
3995 cat conftest.err >&5
3996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997 (exit $ac_status); } >/dev/null; then
3998 if test -s conftest.err; then
3999 ac_cpp_err=$ac_c_preproc_warn_flag
4000 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4007 if test -z "$ac_cpp_err"; then
4008 eval "$as_ac_Header=yes"
4010 echo "$as_me: failed program was:" >&5
4011 sed 's/^/| /' conftest.$ac_ext >&5
4013 eval "$as_ac_Header=no"
4015 rm -f conftest.err conftest.$ac_ext
4017 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4018 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4019 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4020 cat >>confdefs.h <<_ACEOF
4021 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4028 echo "$as_me:$LINENO: checking for int" >&5
4029 echo $ECHO_N "checking for int... $ECHO_C" >&6
4030 if test "${ac_cv_type_int+set}" = set; then
4031 echo $ECHO_N "(cached) $ECHO_C" >&6
4033 cat >conftest.$ac_ext <<_ACEOF
4036 cat confdefs.h >>conftest.$ac_ext
4037 cat >>conftest.$ac_ext <<_ACEOF
4038 /* end confdefs.h. */
4039 $ac_includes_default
4051 rm -f conftest.$ac_objext
4052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4053 (eval $ac_compile) 2>conftest.er1
4055 grep -v '^ *+' conftest.er1 >conftest.err
4057 cat conftest.err >&5
4058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4059 (exit $ac_status); } &&
4060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065 (exit $ac_status); }; } &&
4066 { ac_try='test -s conftest.$ac_objext'
4067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071 (exit $ac_status); }; }; then
4074 echo "$as_me: failed program was:" >&5
4075 sed 's/^/| /' conftest.$ac_ext >&5
4079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4081 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4082 echo "${ECHO_T}$ac_cv_type_int" >&6
4084 echo "$as_me:$LINENO: checking size of int" >&5
4085 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4086 if test "${ac_cv_sizeof_int+set}" = set; then
4087 echo $ECHO_N "(cached) $ECHO_C" >&6
4089 if test "$ac_cv_type_int" = yes; then
4090 # The cast to unsigned long works around a bug in the HP C Compiler
4091 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4092 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4093 # This bug is HP SR number 8606223364.
4094 if test "$cross_compiling" = yes; then
4095 # Depending upon the size, compute the lo and hi bounds.
4096 cat >conftest.$ac_ext <<_ACEOF
4099 cat confdefs.h >>conftest.$ac_ext
4100 cat >>conftest.$ac_ext <<_ACEOF
4101 /* end confdefs.h. */
4102 $ac_includes_default
4106 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4113 rm -f conftest.$ac_objext
4114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4115 (eval $ac_compile) 2>conftest.er1
4117 grep -v '^ *+' conftest.er1 >conftest.err
4119 cat conftest.err >&5
4120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121 (exit $ac_status); } &&
4122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127 (exit $ac_status); }; } &&
4128 { ac_try='test -s conftest.$ac_objext'
4129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4133 (exit $ac_status); }; }; then
4136 cat >conftest.$ac_ext <<_ACEOF
4139 cat confdefs.h >>conftest.$ac_ext
4140 cat >>conftest.$ac_ext <<_ACEOF
4141 /* end confdefs.h. */
4142 $ac_includes_default
4146 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4153 rm -f conftest.$ac_objext
4154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4155 (eval $ac_compile) 2>conftest.er1
4157 grep -v '^ *+' conftest.er1 >conftest.err
4159 cat conftest.err >&5
4160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161 (exit $ac_status); } &&
4162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167 (exit $ac_status); }; } &&
4168 { ac_try='test -s conftest.$ac_objext'
4169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173 (exit $ac_status); }; }; then
4174 ac_hi=$ac_mid; break
4176 echo "$as_me: failed program was:" >&5
4177 sed 's/^/| /' conftest.$ac_ext >&5
4179 ac_lo=`expr $ac_mid + 1`
4180 if test $ac_lo -le $ac_mid; then
4184 ac_mid=`expr 2 '*' $ac_mid + 1`
4186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4189 echo "$as_me: failed program was:" >&5
4190 sed 's/^/| /' conftest.$ac_ext >&5
4192 cat >conftest.$ac_ext <<_ACEOF
4195 cat confdefs.h >>conftest.$ac_ext
4196 cat >>conftest.$ac_ext <<_ACEOF
4197 /* end confdefs.h. */
4198 $ac_includes_default
4202 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4209 rm -f conftest.$ac_objext
4210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4211 (eval $ac_compile) 2>conftest.er1
4213 grep -v '^ *+' conftest.er1 >conftest.err
4215 cat conftest.err >&5
4216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217 (exit $ac_status); } &&
4218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223 (exit $ac_status); }; } &&
4224 { ac_try='test -s conftest.$ac_objext'
4225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); }; }; then
4232 cat >conftest.$ac_ext <<_ACEOF
4235 cat confdefs.h >>conftest.$ac_ext
4236 cat >>conftest.$ac_ext <<_ACEOF
4237 /* end confdefs.h. */
4238 $ac_includes_default
4242 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4249 rm -f conftest.$ac_objext
4250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4251 (eval $ac_compile) 2>conftest.er1
4253 grep -v '^ *+' conftest.er1 >conftest.err
4255 cat conftest.err >&5
4256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257 (exit $ac_status); } &&
4258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263 (exit $ac_status); }; } &&
4264 { ac_try='test -s conftest.$ac_objext'
4265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269 (exit $ac_status); }; }; then
4270 ac_lo=$ac_mid; break
4272 echo "$as_me: failed program was:" >&5
4273 sed 's/^/| /' conftest.$ac_ext >&5
4275 ac_hi=`expr '(' $ac_mid ')' - 1`
4276 if test $ac_mid -le $ac_hi; then
4280 ac_mid=`expr 2 '*' $ac_mid`
4282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4285 echo "$as_me: failed program was:" >&5
4286 sed 's/^/| /' conftest.$ac_ext >&5
4290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4293 # Binary search between lo and hi bounds.
4294 while test "x$ac_lo" != "x$ac_hi"; do
4295 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4296 cat >conftest.$ac_ext <<_ACEOF
4299 cat confdefs.h >>conftest.$ac_ext
4300 cat >>conftest.$ac_ext <<_ACEOF
4301 /* end confdefs.h. */
4302 $ac_includes_default
4306 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4313 rm -f conftest.$ac_objext
4314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4315 (eval $ac_compile) 2>conftest.er1
4317 grep -v '^ *+' conftest.er1 >conftest.err
4319 cat conftest.err >&5
4320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4321 (exit $ac_status); } &&
4322 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4327 (exit $ac_status); }; } &&
4328 { ac_try='test -s conftest.$ac_objext'
4329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333 (exit $ac_status); }; }; then
4336 echo "$as_me: failed program was:" >&5
4337 sed 's/^/| /' conftest.$ac_ext >&5
4339 ac_lo=`expr '(' $ac_mid ')' + 1`
4341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4344 ?*) ac_cv_sizeof_int=$ac_lo;;
4345 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4346 See \`config.log' for more details." >&5
4347 echo "$as_me: error: cannot compute sizeof (int), 77
4348 See \`config.log' for more details." >&2;}
4349 { (exit 1); exit 1; }; } ;;
4352 if test "$cross_compiling" = yes; then
4353 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
4354 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
4355 { (exit 1); exit 1; }; }
4357 cat >conftest.$ac_ext <<_ACEOF
4360 cat confdefs.h >>conftest.$ac_ext
4361 cat >>conftest.$ac_ext <<_ACEOF
4362 /* end confdefs.h. */
4363 $ac_includes_default
4364 long longval () { return (long) (sizeof (int)); }
4365 unsigned long ulongval () { return (long) (sizeof (int)); }
4372 FILE *f = fopen ("conftest.val", "w");
4375 if (((long) (sizeof (int))) < 0)
4377 long i = longval ();
4378 if (i != ((long) (sizeof (int))))
4380 fprintf (f, "%ld\n", i);
4384 unsigned long i = ulongval ();
4385 if (i != ((long) (sizeof (int))))
4387 fprintf (f, "%lu\n", i);
4389 exit (ferror (f) || fclose (f) != 0);
4395 rm -f conftest$ac_exeext
4396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4397 (eval $ac_link) 2>&5
4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405 (exit $ac_status); }; }; then
4406 ac_cv_sizeof_int=`cat conftest.val`
4408 echo "$as_me: program exited with status $ac_status" >&5
4409 echo "$as_me: failed program was:" >&5
4410 sed 's/^/| /' conftest.$ac_ext >&5
4413 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4414 See \`config.log' for more details." >&5
4415 echo "$as_me: error: cannot compute sizeof (int), 77
4416 See \`config.log' for more details." >&2;}
4417 { (exit 1); exit 1; }; }
4419 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4427 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4428 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4429 cat >>confdefs.h <<_ACEOF
4430 #define SIZEOF_INT $ac_cv_sizeof_int
4435 echo "$as_me:$LINENO: checking for uintptr_t" >&5
4436 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
4437 if test "${ac_cv_type_uintptr_t+set}" = set; then
4438 echo $ECHO_N "(cached) $ECHO_C" >&6
4440 cat >conftest.$ac_ext <<_ACEOF
4443 cat confdefs.h >>conftest.$ac_ext
4444 cat >>conftest.$ac_ext <<_ACEOF
4445 /* end confdefs.h. */
4446 $ac_includes_default
4450 if ((uintptr_t *) 0)
4452 if (sizeof (uintptr_t))
4458 rm -f conftest.$ac_objext
4459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4460 (eval $ac_compile) 2>conftest.er1
4462 grep -v '^ *+' conftest.er1 >conftest.err
4464 cat conftest.err >&5
4465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466 (exit $ac_status); } &&
4467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472 (exit $ac_status); }; } &&
4473 { ac_try='test -s conftest.$ac_objext'
4474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478 (exit $ac_status); }; }; then
4479 ac_cv_type_uintptr_t=yes
4481 echo "$as_me: failed program was:" >&5
4482 sed 's/^/| /' conftest.$ac_ext >&5
4484 ac_cv_type_uintptr_t=no
4486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4488 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
4489 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
4490 if test $ac_cv_type_uintptr_t = yes; then
4494 cat >>confdefs.h <<_ACEOF
4495 #define uintptr_t unsigned long
4501 # Look for a 64-bit type.
4502 echo "$as_me:$LINENO: checking for a 64-bit type" >&5
4503 echo $ECHO_N "checking for a 64-bit type... $ECHO_C" >&6
4504 if test "${liberty_cv_uint64+set}" = set; then
4505 echo $ECHO_N "(cached) $ECHO_C" >&6
4507 cat >conftest.$ac_ext <<_ACEOF
4510 cat confdefs.h >>conftest.$ac_ext
4511 cat >>conftest.$ac_ext <<_ACEOF
4512 /* end confdefs.h. */
4513 #ifdef HAVE_STDINT_H
4519 extern uint64_t foo;
4524 rm -f conftest.$ac_objext
4525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4526 (eval $ac_compile) 2>conftest.er1
4528 grep -v '^ *+' conftest.er1 >conftest.err
4530 cat conftest.err >&5
4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); } &&
4533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4538 (exit $ac_status); }; } &&
4539 { ac_try='test -s conftest.$ac_objext'
4540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544 (exit $ac_status); }; }; then
4545 liberty_cv_uint64=uint64_t
4547 echo "$as_me: failed program was:" >&5
4548 sed 's/^/| /' conftest.$ac_ext >&5
4550 cat >conftest.$ac_ext <<_ACEOF
4553 cat confdefs.h >>conftest.$ac_ext
4554 cat >>conftest.$ac_ext <<_ACEOF
4555 /* end confdefs.h. */
4556 #ifdef HAVE_LIMITS_H
4565 extern char foo[sizeof(long) * CHAR_BIT >= 64 ? 1 : -1];
4570 rm -f conftest.$ac_objext
4571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4572 (eval $ac_compile) 2>conftest.er1
4574 grep -v '^ *+' conftest.er1 >conftest.err
4576 cat conftest.err >&5
4577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578 (exit $ac_status); } &&
4579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584 (exit $ac_status); }; } &&
4585 { ac_try='test -s conftest.$ac_objext'
4586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4590 (exit $ac_status); }; }; then
4591 liberty_cv_uint64="unsigned long"
4593 echo "$as_me: failed program was:" >&5
4594 sed 's/^/| /' conftest.$ac_ext >&5
4596 cat >conftest.$ac_ext <<_ACEOF
4599 cat confdefs.h >>conftest.$ac_ext
4600 cat >>conftest.$ac_ext <<_ACEOF
4601 /* end confdefs.h. */
4602 #ifdef HAVE_LIMITS_H
4611 extern char foo[sizeof(long long) * CHAR_BIT >= 64 ? 1 : -1];
4616 rm -f conftest.$ac_objext
4617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4618 (eval $ac_compile) 2>conftest.er1
4620 grep -v '^ *+' conftest.er1 >conftest.err
4622 cat conftest.err >&5
4623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624 (exit $ac_status); } &&
4625 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630 (exit $ac_status); }; } &&
4631 { ac_try='test -s conftest.$ac_objext'
4632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636 (exit $ac_status); }; }; then
4637 liberty_cv_uint64="unsigned long long"
4639 echo "$as_me: failed program was:" >&5
4640 sed 's/^/| /' conftest.$ac_ext >&5
4642 liberty_cv_uint64=none
4644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4651 echo "$as_me:$LINENO: result: $liberty_cv_uint64" >&5
4652 echo "${ECHO_T}$liberty_cv_uint64" >&6
4653 if test "$liberty_cv_uint64" != none; then
4655 cat >>confdefs.h <<_ACEOF
4656 #define UNSIGNED_64BIT_TYPE $liberty_cv_uint64
4661 # Given the above check, we always have uintptr_t or a fallback
4662 # definition. So define HAVE_UINTPTR_T in case any imported code
4665 cat >>confdefs.h <<\_ACEOF
4666 #define HAVE_UINTPTR_T 1
4670 echo "$as_me:$LINENO: checking for pid_t" >&5
4671 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
4672 if test "${ac_cv_type_pid_t+set}" = set; then
4673 echo $ECHO_N "(cached) $ECHO_C" >&6
4675 cat >conftest.$ac_ext <<_ACEOF
4678 cat confdefs.h >>conftest.$ac_ext
4679 cat >>conftest.$ac_ext <<_ACEOF
4680 /* end confdefs.h. */
4681 $ac_includes_default
4693 rm -f conftest.$ac_objext
4694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4695 (eval $ac_compile) 2>conftest.er1
4697 grep -v '^ *+' conftest.er1 >conftest.err
4699 cat conftest.err >&5
4700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701 (exit $ac_status); } &&
4702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); }; } &&
4708 { ac_try='test -s conftest.$ac_objext'
4709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); }; }; then
4714 ac_cv_type_pid_t=yes
4716 echo "$as_me: failed program was:" >&5
4717 sed 's/^/| /' conftest.$ac_ext >&5
4721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4723 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
4724 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
4725 if test $ac_cv_type_pid_t = yes; then
4729 cat >>confdefs.h <<_ACEOF
4736 # This is the list of functions which libiberty will provide if they
4737 # are not available on the host.
4740 funcs="$funcs atexit"
4741 funcs="$funcs basename"
4743 funcs="$funcs bcopy"
4744 funcs="$funcs bsearch"
4745 funcs="$funcs bzero"
4746 funcs="$funcs calloc"
4747 funcs="$funcs clock"
4749 funcs="$funcs getcwd"
4750 funcs="$funcs getpagesize"
4751 funcs="$funcs index"
4752 funcs="$funcs insque"
4753 funcs="$funcs memchr"
4754 funcs="$funcs memcmp"
4755 funcs="$funcs memcpy"
4756 funcs="$funcs memmove"
4757 funcs="$funcs mempcpy"
4758 funcs="$funcs memset"
4759 funcs="$funcs mkstemps"
4760 funcs="$funcs putenv"
4761 funcs="$funcs random"
4762 funcs="$funcs rename"
4763 funcs="$funcs rindex"
4764 funcs="$funcs setenv"
4765 funcs="$funcs snprintf"
4766 funcs="$funcs sigsetmask"
4767 funcs="$funcs stpcpy"
4768 funcs="$funcs stpncpy"
4769 funcs="$funcs strcasecmp"
4770 funcs="$funcs strchr"
4771 funcs="$funcs strdup"
4772 funcs="$funcs strncasecmp"
4773 funcs="$funcs strrchr"
4774 funcs="$funcs strstr"
4775 funcs="$funcs strtod"
4776 funcs="$funcs strtol"
4777 funcs="$funcs strtoul"
4778 funcs="$funcs tmpnam"
4779 funcs="$funcs vasprintf"
4780 funcs="$funcs vfprintf"
4781 funcs="$funcs vprintf"
4782 funcs="$funcs vsnprintf"
4783 funcs="$funcs vsprintf"
4784 funcs="$funcs waitpid"
4786 # Also in the old function.def file: alloca, vfork, getopt.
4788 vars="sys_errlist sys_nerr sys_siglist"
4790 checkfuncs="getrusage on_exit psignal strerror strsignal sysconf times sbrk gettimeofday"
4791 checkfuncs="$checkfuncs realpath canonicalize_file_name pstat_getstatic pstat_getdynamic sysmp"
4792 checkfuncs="$checkfuncs getsysinfo table sysctl"
4794 # These are neither executed nor required, but they help keep
4795 # autoheader happy without adding a bunch of text to acconfig.h.
4796 if test "x" = "y"; then
4860 for ac_func in asprintf atexit basename bcmp bcopy bsearch bzero calloc clock \
4861 getcwd getpagesize index insque mkstemps memchr memcmp memcpy \
4862 memmove mempcpy memset putenv random rename rindex sigsetmask \
4863 strcasecmp setenv stpcpy stpncpy strchr strdup strncasecmp strrchr strstr \
4864 strtod strtol strtoul tmpnam vasprintf vfprintf vprintf \
4865 vsprintf waitpid getrusage on_exit psignal strerror strsignal \
4866 sysconf times sbrk gettimeofday ffs snprintf vsnprintf \
4867 pstat_getstatic pstat_getdynamic sysmp getsysinfo table sysctl \
4868 realpath canonicalize_file_name
4870 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4871 echo "$as_me:$LINENO: checking for $ac_func" >&5
4872 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4873 if eval "test \"\${$as_ac_var+set}\" = set"; then
4874 echo $ECHO_N "(cached) $ECHO_C" >&6
4876 if test x$gcc_no_link = xyes; then
4877 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4878 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4879 { (exit 1); exit 1; }; }
4881 cat >conftest.$ac_ext <<_ACEOF
4884 cat confdefs.h >>conftest.$ac_ext
4885 cat >>conftest.$ac_ext <<_ACEOF
4886 /* end confdefs.h. */
4887 /* System header to define __stub macros and hopefully few prototypes,
4888 which can conflict with char $ac_func (); below.
4889 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4890 <limits.h> exists even on freestanding compilers. Under hpux,
4891 including <limits.h> includes <sys/time.h> and causes problems
4892 checking for functions defined therein. */
4893 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
4894 # include <limits.h>
4896 # include <assert.h>
4898 /* Override any gcc2 internal prototype to avoid an error. */
4903 /* We use char because int might match the return type of a gcc2
4904 builtin and then its argument prototype would still apply. */
4906 /* The GNU C library defines this for functions which it implements
4907 to always fail with ENOSYS. Some functions are actually named
4908 something starting with __ and the normal name is an alias. */
4909 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4912 char (*f) () = $ac_func;
4921 return f != $ac_func;
4926 rm -f conftest.$ac_objext conftest$ac_exeext
4927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4928 (eval $ac_link) 2>conftest.er1
4930 grep -v '^ *+' conftest.er1 >conftest.err
4932 cat conftest.err >&5
4933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4934 (exit $ac_status); } &&
4935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940 (exit $ac_status); }; } &&
4941 { ac_try='test -s conftest$ac_exeext'
4942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946 (exit $ac_status); }; }; then
4947 eval "$as_ac_var=yes"
4949 echo "$as_me: failed program was:" >&5
4950 sed 's/^/| /' conftest.$ac_ext >&5
4952 eval "$as_ac_var=no"
4954 rm -f conftest.err conftest.$ac_objext \
4955 conftest$ac_exeext conftest.$ac_ext
4957 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4958 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4959 if test `eval echo '${'$as_ac_var'}'` = yes; then
4960 cat >>confdefs.h <<_ACEOF
4961 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4968 cat >>confdefs.h <<\_ACEOF
4969 #define HAVE_SYS_ERRLIST 1
4973 cat >>confdefs.h <<\_ACEOF
4974 #define HAVE_SYS_NERR 1
4978 cat >>confdefs.h <<\_ACEOF
4979 #define HAVE_SYS_SIGLIST 1
4984 # For each of these functions, if the host does not provide the
4985 # function we want to put FN.o in LIBOBJS, and if the host does
4986 # provide the function, we want to define HAVE_FN in config.h.
4991 if test -n "${with_target_subdir}"; then
4993 # We are being configured as a target library. AC_REPLACE_FUNCS
4994 # may not work correctly, because the compiler may not be able to
4995 # link executables. Note that we may still be being configured
4998 # If we are being configured for newlib, we know which functions
4999 # newlib provide and which ones we will be expected to provide.
5001 if test "x${with_newlib}" = "xyes"; then
5003 "asprintf.$ac_objext" | \
5004 *" asprintf.$ac_objext" | \
5005 "asprintf.$ac_objext "* | \
5006 *" asprintf.$ac_objext "* ) ;;
5007 *) LIBOBJS="$LIBOBJS asprintf.$ac_objext" ;;
5011 "basename.$ac_objext" | \
5012 *" basename.$ac_objext" | \
5013 "basename.$ac_objext "* | \
5014 *" basename.$ac_objext "* ) ;;
5015 *) LIBOBJS="$LIBOBJS basename.$ac_objext" ;;
5019 "insque.$ac_objext" | \
5020 *" insque.$ac_objext" | \
5021 "insque.$ac_objext "* | \
5022 *" insque.$ac_objext "* ) ;;
5023 *) LIBOBJS="$LIBOBJS insque.$ac_objext" ;;
5027 "random.$ac_objext" | \
5028 *" random.$ac_objext" | \
5029 "random.$ac_objext "* | \
5030 *" random.$ac_objext "* ) ;;
5031 *) LIBOBJS="$LIBOBJS random.$ac_objext" ;;
5035 "strdup.$ac_objext" | \
5036 *" strdup.$ac_objext" | \
5037 "strdup.$ac_objext "* | \
5038 *" strdup.$ac_objext "* ) ;;
5039 *) LIBOBJS="$LIBOBJS strdup.$ac_objext" ;;
5043 "vasprintf.$ac_objext" | \
5044 *" vasprintf.$ac_objext" | \
5045 "vasprintf.$ac_objext "* | \
5046 *" vasprintf.$ac_objext "* ) ;;
5047 *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext" ;;
5053 asprintf | basename | insque | random | strdup | vasprintf)
5056 n=HAVE_`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5057 cat >>confdefs.h <<_ACEOF
5065 # newlib doesnt provide any of the variables in $vars, so we
5066 # dont have to check them here.
5068 # Of the functions in $checkfuncs, newlib only has strerror.
5069 cat >> confdefs.h <<\EOF
5070 #define HAVE_STRERROR 1
5078 # We may wish to install the target headers somewhere.
5079 # Check whether --enable-install-libiberty or --disable-install-libiberty was given.
5080 if test "${enable_install_libiberty+set}" = set; then
5081 enableval="$enable_install_libiberty"
5082 enable_install_libiberty=$enableval
5084 enable_install_libiberty=no
5086 # Option parsed, now set things appropriately.
5087 case x"$enable_install_libiberty" in
5089 target_header_dir=libiberty
5095 # This could be sanity-checked in various ways...
5096 target_header_dir="${enable_install_libiberty}"
5103 # Not a target library, so we set things up to run the test suite.
5104 CHECK=check-cplus-dem
5112 *-*-cygwin* | *-*-mingw*)
5113 cat >> confdefs.h <<\EOF
5114 #define HAVE_SYS_ERRLIST 1
5117 cat >> confdefs.h <<\EOF
5118 #define HAVE_SYS_NERR 1
5124 if test -z "${setobjs}"; then
5128 # Handle VxWorks configuration specially, since on VxWorks the
5129 # libraries are actually on the target board, not in the file
5132 "basename.$ac_objext" | \
5133 *" basename.$ac_objext" | \
5134 "basename.$ac_objext "* | \
5135 *" basename.$ac_objext "* ) ;;
5136 *) LIBOBJS="$LIBOBJS basename.$ac_objext" ;;
5140 "getpagesize.$ac_objext" | \
5141 *" getpagesize.$ac_objext" | \
5142 "getpagesize.$ac_objext "* | \
5143 *" getpagesize.$ac_objext "* ) ;;
5144 *) LIBOBJS="$LIBOBJS getpagesize.$ac_objext" ;;
5148 "insque.$ac_objext" | \
5149 *" insque.$ac_objext" | \
5150 "insque.$ac_objext "* | \
5151 *" insque.$ac_objext "* ) ;;
5152 *) LIBOBJS="$LIBOBJS insque.$ac_objext" ;;
5156 "random.$ac_objext" | \
5157 *" random.$ac_objext" | \
5158 "random.$ac_objext "* | \
5159 *" random.$ac_objext "* ) ;;
5160 *) LIBOBJS="$LIBOBJS random.$ac_objext" ;;
5164 "strcasecmp.$ac_objext" | \
5165 *" strcasecmp.$ac_objext" | \
5166 "strcasecmp.$ac_objext "* | \
5167 *" strcasecmp.$ac_objext "* ) ;;
5168 *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext" ;;
5172 "strncasecmp.$ac_objext" | \
5173 *" strncasecmp.$ac_objext" | \
5174 "strncasecmp.$ac_objext "* | \
5175 *" strncasecmp.$ac_objext "* ) ;;
5176 *) LIBOBJS="$LIBOBJS strncasecmp.$ac_objext" ;;
5180 "strdup.$ac_objext" | \
5181 *" strdup.$ac_objext" | \
5182 "strdup.$ac_objext "* | \
5183 *" strdup.$ac_objext "* ) ;;
5184 *) LIBOBJS="$LIBOBJS strdup.$ac_objext" ;;
5188 "vfork.$ac_objext" | \
5189 *" vfork.$ac_objext" | \
5190 "vfork.$ac_objext "* | \
5191 *" vfork.$ac_objext "* ) ;;
5192 *) LIBOBJS="$LIBOBJS vfork.$ac_objext" ;;
5196 "waitpid.$ac_objext" | \
5197 *" waitpid.$ac_objext" | \
5198 "waitpid.$ac_objext "* | \
5199 *" waitpid.$ac_objext "* ) ;;
5200 *) LIBOBJS="$LIBOBJS waitpid.$ac_objext" ;;
5204 "vasprintf.$ac_objext" | \
5205 *" vasprintf.$ac_objext" | \
5206 "vasprintf.$ac_objext "* | \
5207 *" vasprintf.$ac_objext "* ) ;;
5208 *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext" ;;
5213 basename | getpagesize | insque | random | strcasecmp)
5215 strncasecmp | strdup | vfork | waitpid | vasprintf)
5218 n=HAVE_`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5219 cat >>confdefs.h <<_ACEOF
5227 # VxWorks doesn't provide any of the variables in $vars, so we
5228 # don't have to check them here.
5230 # Of the functions in $checkfuncs, VxWorks only has strerror.
5231 cat >> confdefs.h <<\EOF
5232 #define HAVE_STRERROR 1
5242 if test -z "${setobjs}"; then
5247 # The Cygwin library actually uses a couple of files from
5248 # libiberty when it is built. If we are building a native
5249 # Cygwin, and we run the tests, we will appear to have these
5250 # files. However, when we go on to build winsup, we will wind up
5251 # with a library which does not have the files, since they should
5252 # have come from libiberty.
5254 # We handle this by removing the functions the winsup library
5255 # provides from our shell variables, so that they appear to be
5258 # DJ - only if we're *building* cygwin, not just building *with* cygwin
5260 if test -n "${with_target_subdir}"
5262 funcs="`echo $funcs | sed -e 's/random//'`"
5264 "random.$ac_objext" | \
5265 *" random.$ac_objext" | \
5266 "random.$ac_objext "* | \
5267 *" random.$ac_objext "* ) ;;
5268 *) LIBOBJS="$LIBOBJS random.$ac_objext" ;;
5271 vars="`echo $vars | sed -e 's/sys_siglist//'`"
5272 checkfuncs="`echo $checkfuncs | sed -e 's/strsignal//' -e 's/psignal//'`"
5277 # Under mingw32, sys_nerr and sys_errlist exist, but they are
5278 # macros, so the test below won't find them.
5279 libiberty_cv_var_sys_nerr=yes
5280 libiberty_cv_var_sys_errlist=yes
5284 # Under some versions of uwin, vfork is notoriously buggy and the test
5285 # can hang configure; on other versions, vfork exists just as a stub.
5286 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
5287 ac_cv_func_vfork_works=no
5288 # Under uwin 2.0+, sys_nerr and sys_errlist exist, but they are
5289 # macros (actually, these are imported from a DLL, but the end effect
5290 # is the same), so the test below won't find them.
5291 libiberty_cv_var_sys_nerr=yes
5292 libiberty_cv_var_sys_errlist=yes
5296 # Under VMS, vfork works very different than on Unix. The standard test
5297 # won't work, and it isn't easily adaptable. It makes more sense to
5299 ac_cv_func_vfork_works=yes
5304 # We haven't set the list of objects yet. Use the standard autoconf
5305 # tests. This will only work if the compiler works.
5306 echo "$as_me:$LINENO: checking for library containing strerror" >&5
5307 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
5308 if test "${ac_cv_search_strerror+set}" = set; then
5309 echo $ECHO_N "(cached) $ECHO_C" >&6
5311 ac_func_search_save_LIBS=$LIBS
5312 ac_cv_search_strerror=no
5313 if test x$gcc_no_link = xyes; then
5314 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5315 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5316 { (exit 1); exit 1; }; }
5318 cat >conftest.$ac_ext <<_ACEOF
5321 cat confdefs.h >>conftest.$ac_ext
5322 cat >>conftest.$ac_ext <<_ACEOF
5323 /* end confdefs.h. */
5325 /* Override any gcc2 internal prototype to avoid an error. */
5329 /* We use char because int might match the return type of a gcc2
5330 builtin and then its argument prototype would still apply. */
5340 rm -f conftest.$ac_objext conftest$ac_exeext
5341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5342 (eval $ac_link) 2>conftest.er1
5344 grep -v '^ *+' conftest.er1 >conftest.err
5346 cat conftest.err >&5
5347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348 (exit $ac_status); } &&
5349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354 (exit $ac_status); }; } &&
5355 { ac_try='test -s conftest$ac_exeext'
5356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5360 (exit $ac_status); }; }; then
5361 ac_cv_search_strerror="none required"
5363 echo "$as_me: failed program was:" >&5
5364 sed 's/^/| /' conftest.$ac_ext >&5
5367 rm -f conftest.err conftest.$ac_objext \
5368 conftest$ac_exeext conftest.$ac_ext
5369 if test "$ac_cv_search_strerror" = no; then
5370 for ac_lib in cposix; do
5371 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5372 if test x$gcc_no_link = xyes; then
5373 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5374 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5375 { (exit 1); exit 1; }; }
5377 cat >conftest.$ac_ext <<_ACEOF
5380 cat confdefs.h >>conftest.$ac_ext
5381 cat >>conftest.$ac_ext <<_ACEOF
5382 /* end confdefs.h. */
5384 /* Override any gcc2 internal prototype to avoid an error. */
5388 /* We use char because int might match the return type of a gcc2
5389 builtin and then its argument prototype would still apply. */
5399 rm -f conftest.$ac_objext conftest$ac_exeext
5400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5401 (eval $ac_link) 2>conftest.er1
5403 grep -v '^ *+' conftest.er1 >conftest.err
5405 cat conftest.err >&5
5406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407 (exit $ac_status); } &&
5408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5413 (exit $ac_status); }; } &&
5414 { ac_try='test -s conftest$ac_exeext'
5415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5419 (exit $ac_status); }; }; then
5420 ac_cv_search_strerror="-l$ac_lib"
5423 echo "$as_me: failed program was:" >&5
5424 sed 's/^/| /' conftest.$ac_ext >&5
5427 rm -f conftest.err conftest.$ac_objext \
5428 conftest$ac_exeext conftest.$ac_ext
5431 LIBS=$ac_func_search_save_LIBS
5433 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
5434 echo "${ECHO_T}$ac_cv_search_strerror" >&6
5435 if test "$ac_cv_search_strerror" != no; then
5436 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
5441 for ac_func in $funcs
5443 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5444 echo "$as_me:$LINENO: checking for $ac_func" >&5
5445 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5446 if eval "test \"\${$as_ac_var+set}\" = set"; then
5447 echo $ECHO_N "(cached) $ECHO_C" >&6
5449 if test x$gcc_no_link = xyes; then
5450 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5451 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5452 { (exit 1); exit 1; }; }
5454 cat >conftest.$ac_ext <<_ACEOF
5457 cat confdefs.h >>conftest.$ac_ext
5458 cat >>conftest.$ac_ext <<_ACEOF
5459 /* end confdefs.h. */
5460 /* System header to define __stub macros and hopefully few prototypes,
5461 which can conflict with char $ac_func (); below.
5462 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5463 <limits.h> exists even on freestanding compilers. Under hpux,
5464 including <limits.h> includes <sys/time.h> and causes problems
5465 checking for functions defined therein. */
5466 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
5467 # include <limits.h>
5469 # include <assert.h>
5471 /* Override any gcc2 internal prototype to avoid an error. */
5476 /* We use char because int might match the return type of a gcc2
5477 builtin and then its argument prototype would still apply. */
5479 /* The GNU C library defines this for functions which it implements
5480 to always fail with ENOSYS. Some functions are actually named
5481 something starting with __ and the normal name is an alias. */
5482 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5485 char (*f) () = $ac_func;
5494 return f != $ac_func;
5499 rm -f conftest.$ac_objext conftest$ac_exeext
5500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5501 (eval $ac_link) 2>conftest.er1
5503 grep -v '^ *+' conftest.er1 >conftest.err
5505 cat conftest.err >&5
5506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507 (exit $ac_status); } &&
5508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5513 (exit $ac_status); }; } &&
5514 { ac_try='test -s conftest$ac_exeext'
5515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5519 (exit $ac_status); }; }; then
5520 eval "$as_ac_var=yes"
5522 echo "$as_me: failed program was:" >&5
5523 sed 's/^/| /' conftest.$ac_ext >&5
5525 eval "$as_ac_var=no"
5527 rm -f conftest.err conftest.$ac_objext \
5528 conftest$ac_exeext conftest.$ac_ext
5530 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5531 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5532 if test `eval echo '${'$as_ac_var'}'` = yes; then
5533 cat >>confdefs.h <<_ACEOF
5534 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5539 "$ac_func.$ac_objext" | \
5540 *" $ac_func.$ac_objext" | \
5541 "$ac_func.$ac_objext "* | \
5542 *" $ac_func.$ac_objext "* ) ;;
5543 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
5550 echo "$as_me:$LINENO: checking whether alloca needs Cray hooks" >&5
5551 echo $ECHO_N "checking whether alloca needs Cray hooks... $ECHO_C" >&6
5552 if test "${ac_cv_os_cray+set}" = set; then
5553 echo $ECHO_N "(cached) $ECHO_C" >&6
5555 cat >conftest.$ac_ext <<_ACEOF
5558 cat confdefs.h >>conftest.$ac_ext
5559 cat >>conftest.$ac_ext <<_ACEOF
5560 /* end confdefs.h. */
5561 #if defined(CRAY) && ! defined(CRAY2)
5568 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5569 $EGREP "webecray" >/dev/null 2>&1; then
5577 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5578 echo "${ECHO_T}$ac_cv_os_cray" >&6
5579 if test $ac_cv_os_cray = yes; then
5580 for ac_func in _getb67 GETB67 getb67; do
5581 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5582 echo "$as_me:$LINENO: checking for $ac_func" >&5
5583 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5584 if eval "test \"\${$as_ac_var+set}\" = set"; then
5585 echo $ECHO_N "(cached) $ECHO_C" >&6
5587 if test x$gcc_no_link = xyes; then
5588 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5589 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5590 { (exit 1); exit 1; }; }
5592 cat >conftest.$ac_ext <<_ACEOF
5595 cat confdefs.h >>conftest.$ac_ext
5596 cat >>conftest.$ac_ext <<_ACEOF
5597 /* end confdefs.h. */
5598 /* System header to define __stub macros and hopefully few prototypes,
5599 which can conflict with char $ac_func (); below.
5600 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5601 <limits.h> exists even on freestanding compilers. Under hpux,
5602 including <limits.h> includes <sys/time.h> and causes problems
5603 checking for functions defined therein. */
5604 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
5605 # include <limits.h>
5607 # include <assert.h>
5609 /* Override any gcc2 internal prototype to avoid an error. */
5614 /* We use char because int might match the return type of a gcc2
5615 builtin and then its argument prototype would still apply. */
5617 /* The GNU C library defines this for functions which it implements
5618 to always fail with ENOSYS. Some functions are actually named
5619 something starting with __ and the normal name is an alias. */
5620 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5623 char (*f) () = $ac_func;
5632 return f != $ac_func;
5637 rm -f conftest.$ac_objext conftest$ac_exeext
5638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5639 (eval $ac_link) 2>conftest.er1
5641 grep -v '^ *+' conftest.er1 >conftest.err
5643 cat conftest.err >&5
5644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645 (exit $ac_status); } &&
5646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651 (exit $ac_status); }; } &&
5652 { ac_try='test -s conftest$ac_exeext'
5653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657 (exit $ac_status); }; }; then
5658 eval "$as_ac_var=yes"
5660 echo "$as_me: failed program was:" >&5
5661 sed 's/^/| /' conftest.$ac_ext >&5
5663 eval "$as_ac_var=no"
5665 rm -f conftest.err conftest.$ac_objext \
5666 conftest$ac_exeext conftest.$ac_ext
5668 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5669 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5670 if test `eval echo '${'$as_ac_var'}'` = yes; then
5672 cat >>confdefs.h <<_ACEOF
5673 #define CRAY_STACKSEG_END $ac_func
5681 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5682 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
5683 if test "${ac_cv_c_stack_direction+set}" = set; then
5684 echo $ECHO_N "(cached) $ECHO_C" >&6
5686 if test "$cross_compiling" = yes; then
5687 ac_cv_c_stack_direction=0
5689 cat >conftest.$ac_ext <<_ACEOF
5692 cat confdefs.h >>conftest.$ac_ext
5693 cat >>conftest.$ac_ext <<_ACEOF
5694 /* end confdefs.h. */
5695 find_stack_direction ()
5697 static char *addr = 0;
5702 return find_stack_direction ();
5705 return (&dummy > addr) ? 1 : -1;
5709 exit (find_stack_direction() < 0);
5712 rm -f conftest$ac_exeext
5713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5714 (eval $ac_link) 2>&5
5716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); }; }; then
5723 ac_cv_c_stack_direction=1
5725 echo "$as_me: program exited with status $ac_status" >&5
5726 echo "$as_me: failed program was:" >&5
5727 sed 's/^/| /' conftest.$ac_ext >&5
5730 ac_cv_c_stack_direction=-1
5732 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5735 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5736 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
5738 cat >>confdefs.h <<_ACEOF
5739 #define STACK_DIRECTION $ac_cv_c_stack_direction
5745 for ac_header in unistd.h vfork.h
5747 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5748 echo "$as_me:$LINENO: checking for $ac_header" >&5
5749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5751 echo $ECHO_N "(cached) $ECHO_C" >&6
5753 cat >conftest.$ac_ext <<_ACEOF
5756 cat confdefs.h >>conftest.$ac_ext
5757 cat >>conftest.$ac_ext <<_ACEOF
5758 /* end confdefs.h. */
5759 #include <$ac_header>
5761 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5762 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5764 grep -v '^ *+' conftest.er1 >conftest.err
5766 cat conftest.err >&5
5767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768 (exit $ac_status); } >/dev/null; then
5769 if test -s conftest.err; then
5770 ac_cpp_err=$ac_c_preproc_warn_flag
5771 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5778 if test -z "$ac_cpp_err"; then
5779 eval "$as_ac_Header=yes"
5781 echo "$as_me: failed program was:" >&5
5782 sed 's/^/| /' conftest.$ac_ext >&5
5784 eval "$as_ac_Header=no"
5786 rm -f conftest.err conftest.$ac_ext
5788 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5789 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5790 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5791 cat >>confdefs.h <<_ACEOF
5792 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5800 for ac_func in fork vfork
5802 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5803 echo "$as_me:$LINENO: checking for $ac_func" >&5
5804 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5805 if eval "test \"\${$as_ac_var+set}\" = set"; then
5806 echo $ECHO_N "(cached) $ECHO_C" >&6
5808 if test x$gcc_no_link = xyes; then
5809 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5810 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5811 { (exit 1); exit 1; }; }
5813 cat >conftest.$ac_ext <<_ACEOF
5816 cat confdefs.h >>conftest.$ac_ext
5817 cat >>conftest.$ac_ext <<_ACEOF
5818 /* end confdefs.h. */
5819 /* System header to define __stub macros and hopefully few prototypes,
5820 which can conflict with char $ac_func (); below.
5821 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5822 <limits.h> exists even on freestanding compilers. Under hpux,
5823 including <limits.h> includes <sys/time.h> and causes problems
5824 checking for functions defined therein. */
5825 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
5826 # include <limits.h>
5828 # include <assert.h>
5830 /* Override any gcc2 internal prototype to avoid an error. */
5835 /* We use char because int might match the return type of a gcc2
5836 builtin and then its argument prototype would still apply. */
5838 /* The GNU C library defines this for functions which it implements
5839 to always fail with ENOSYS. Some functions are actually named
5840 something starting with __ and the normal name is an alias. */
5841 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5844 char (*f) () = $ac_func;
5853 return f != $ac_func;
5858 rm -f conftest.$ac_objext conftest$ac_exeext
5859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5860 (eval $ac_link) 2>conftest.er1
5862 grep -v '^ *+' conftest.er1 >conftest.err
5864 cat conftest.err >&5
5865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866 (exit $ac_status); } &&
5867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); }; } &&
5873 { ac_try='test -s conftest$ac_exeext'
5874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); }; }; then
5879 eval "$as_ac_var=yes"
5881 echo "$as_me: failed program was:" >&5
5882 sed 's/^/| /' conftest.$ac_ext >&5
5884 eval "$as_ac_var=no"
5886 rm -f conftest.err conftest.$ac_objext \
5887 conftest$ac_exeext conftest.$ac_ext
5889 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5890 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5891 if test `eval echo '${'$as_ac_var'}'` = yes; then
5892 cat >>confdefs.h <<_ACEOF
5893 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5899 if test "x$ac_cv_func_fork" = xyes; then
5900 echo "$as_me:$LINENO: checking for working fork" >&5
5901 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
5902 if test "${ac_cv_func_fork_works+set}" = set; then
5903 echo $ECHO_N "(cached) $ECHO_C" >&6
5905 if test "$cross_compiling" = yes; then
5906 ac_cv_func_fork_works=cross
5908 cat >conftest.$ac_ext <<_ACEOF
5909 /* By Ruediger Kuhlmann. */
5910 #include <sys/types.h>
5912 # include <unistd.h>
5914 /* Some systems only have a dummy stub for fork() */
5922 rm -f conftest$ac_exeext
5923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5924 (eval $ac_link) 2>&5
5926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932 (exit $ac_status); }; }; then
5933 ac_cv_func_fork_works=yes
5935 echo "$as_me: program exited with status $ac_status" >&5
5936 echo "$as_me: failed program was:" >&5
5937 sed 's/^/| /' conftest.$ac_ext >&5
5940 ac_cv_func_fork_works=no
5942 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5945 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
5946 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
5949 ac_cv_func_fork_works=$ac_cv_func_fork
5951 if test "x$ac_cv_func_fork_works" = xcross; then
5953 *-*-amigaos* | *-*-msdosdjgpp*)
5954 # Override, as these systems have only a dummy fork() stub
5955 ac_cv_func_fork_works=no
5958 ac_cv_func_fork_works=yes
5961 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
5962 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
5964 ac_cv_func_vfork_works=$ac_cv_func_vfork
5965 if test "x$ac_cv_func_vfork" = xyes; then
5966 echo "$as_me:$LINENO: checking for working vfork" >&5
5967 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
5968 if test "${ac_cv_func_vfork_works+set}" = set; then
5969 echo $ECHO_N "(cached) $ECHO_C" >&6
5971 if test "$cross_compiling" = yes; then
5972 ac_cv_func_vfork_works=cross
5974 cat >conftest.$ac_ext <<_ACEOF
5977 cat confdefs.h >>conftest.$ac_ext
5978 cat >>conftest.$ac_ext <<_ACEOF
5979 /* end confdefs.h. */
5980 /* Thanks to Paul Eggert for this test. */
5983 #include <sys/types.h>
5984 #include <sys/stat.h>
5985 #include <sys/wait.h>
5987 # include <unistd.h>
5992 /* On some sparc systems, changes by the child to local and incoming
5993 argument registers are propagated back to the parent. The compiler
5994 is told about this with #include <vfork.h>, but some compilers
5995 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
5996 static variable whose address is put into a register that is
5997 clobbered by the vfork. */
6000 sparc_address_test (int arg)
6002 sparc_address_test (arg) int arg;
6023 pid_t parent = getpid ();
6026 sparc_address_test (0);
6031 /* Here is another test for sparc vfork register problems. This
6032 test uses lots of local variables, at least as many local
6033 variables as main has allocated so far including compiler
6034 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
6035 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
6036 reuse the register of parent for one of the local variables,
6037 since it will think that parent can't possibly be used any more
6038 in this routine. Assigning to the local variable will thus
6039 munge parent in the parent process. */
6041 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
6042 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
6043 /* Convince the compiler that p..p7 are live; otherwise, it might
6044 use the same hardware register for all 8 local variables. */
6045 if (p != p1 || p != p2 || p != p3 || p != p4
6046 || p != p5 || p != p6 || p != p7)
6049 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
6050 from child file descriptors. If the child closes a descriptor
6051 before it execs or exits, this munges the parent's descriptor
6052 as well. Test for this by closing stdout in the child. */
6053 _exit(close(fileno(stdout)) != 0);
6058 while (wait(&status) != child)
6061 /* Was there some problem with vforking? */
6064 /* Did the child fail? (This shouldn't happen.) */
6067 /* Did the vfork/compiler bug occur? */
6068 || parent != getpid()
6070 /* Did the file descriptor bug occur? */
6071 || fstat(fileno(stdout), &st) != 0
6076 rm -f conftest$ac_exeext
6077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6078 (eval $ac_link) 2>&5
6080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); }; }; then
6087 ac_cv_func_vfork_works=yes
6089 echo "$as_me: program exited with status $ac_status" >&5
6090 echo "$as_me: failed program was:" >&5
6091 sed 's/^/| /' conftest.$ac_ext >&5
6094 ac_cv_func_vfork_works=no
6096 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6099 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
6100 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
6103 if test "x$ac_cv_func_fork_works" = xcross; then
6104 ac_cv_func_vfork_works=$ac_cv_func_vfork
6105 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
6106 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
6109 if test "x$ac_cv_func_vfork_works" = xyes; then
6111 cat >>confdefs.h <<\_ACEOF
6112 #define HAVE_WORKING_VFORK 1
6117 cat >>confdefs.h <<\_ACEOF
6122 if test "x$ac_cv_func_fork_works" = xyes; then
6124 cat >>confdefs.h <<\_ACEOF
6125 #define HAVE_WORKING_FORK 1
6130 if test $ac_cv_func_vfork_works = no; then
6132 "vfork.$ac_objext" | \
6133 *" vfork.$ac_objext" | \
6134 "vfork.$ac_objext "* | \
6135 *" vfork.$ac_objext "* ) ;;
6136 *) LIBOBJS="$LIBOBJS vfork.$ac_objext" ;;
6140 # We only need _doprnt if we might use it to implement v*printf.
6141 if test $ac_cv_func_vprintf != yes \
6142 || test $ac_cv_func_vfprintf != yes \
6143 || test $ac_cv_func_vsprintf != yes; then
6145 for ac_func in _doprnt
6147 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6148 echo "$as_me:$LINENO: checking for $ac_func" >&5
6149 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6150 if eval "test \"\${$as_ac_var+set}\" = set"; then
6151 echo $ECHO_N "(cached) $ECHO_C" >&6
6153 if test x$gcc_no_link = xyes; then
6154 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6155 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6156 { (exit 1); exit 1; }; }
6158 cat >conftest.$ac_ext <<_ACEOF
6161 cat confdefs.h >>conftest.$ac_ext
6162 cat >>conftest.$ac_ext <<_ACEOF
6163 /* end confdefs.h. */
6164 /* System header to define __stub macros and hopefully few prototypes,
6165 which can conflict with char $ac_func (); below.
6166 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6167 <limits.h> exists even on freestanding compilers. Under hpux,
6168 including <limits.h> includes <sys/time.h> and causes problems
6169 checking for functions defined therein. */
6170 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
6171 # include <limits.h>
6173 # include <assert.h>
6175 /* Override any gcc2 internal prototype to avoid an error. */
6180 /* We use char because int might match the return type of a gcc2
6181 builtin and then its argument prototype would still apply. */
6183 /* The GNU C library defines this for functions which it implements
6184 to always fail with ENOSYS. Some functions are actually named
6185 something starting with __ and the normal name is an alias. */
6186 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6189 char (*f) () = $ac_func;
6198 return f != $ac_func;
6203 rm -f conftest.$ac_objext conftest$ac_exeext
6204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6205 (eval $ac_link) 2>conftest.er1
6207 grep -v '^ *+' conftest.er1 >conftest.err
6209 cat conftest.err >&5
6210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6211 (exit $ac_status); } &&
6212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217 (exit $ac_status); }; } &&
6218 { ac_try='test -s conftest$ac_exeext'
6219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223 (exit $ac_status); }; }; then
6224 eval "$as_ac_var=yes"
6226 echo "$as_me: failed program was:" >&5
6227 sed 's/^/| /' conftest.$ac_ext >&5
6229 eval "$as_ac_var=no"
6231 rm -f conftest.err conftest.$ac_objext \
6232 conftest$ac_exeext conftest.$ac_ext
6234 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6235 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6236 if test `eval echo '${'$as_ac_var'}'` = yes; then
6237 cat >>confdefs.h <<_ACEOF
6238 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6243 "$ac_func.$ac_objext" | \
6244 *" $ac_func.$ac_objext" | \
6245 "$ac_func.$ac_objext "* | \
6246 *" $ac_func.$ac_objext "* ) ;;
6247 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
6256 for ac_func in _doprnt
6258 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6259 echo "$as_me:$LINENO: checking for $ac_func" >&5
6260 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6261 if eval "test \"\${$as_ac_var+set}\" = set"; then
6262 echo $ECHO_N "(cached) $ECHO_C" >&6
6264 if test x$gcc_no_link = xyes; then
6265 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6266 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6267 { (exit 1); exit 1; }; }
6269 cat >conftest.$ac_ext <<_ACEOF
6272 cat confdefs.h >>conftest.$ac_ext
6273 cat >>conftest.$ac_ext <<_ACEOF
6274 /* end confdefs.h. */
6275 /* System header to define __stub macros and hopefully few prototypes,
6276 which can conflict with char $ac_func (); below.
6277 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6278 <limits.h> exists even on freestanding compilers. Under hpux,
6279 including <limits.h> includes <sys/time.h> and causes problems
6280 checking for functions defined therein. */
6281 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
6282 # include <limits.h>
6284 # include <assert.h>
6286 /* Override any gcc2 internal prototype to avoid an error. */
6291 /* We use char because int might match the return type of a gcc2
6292 builtin and then its argument prototype would still apply. */
6294 /* The GNU C library defines this for functions which it implements
6295 to always fail with ENOSYS. Some functions are actually named
6296 something starting with __ and the normal name is an alias. */
6297 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6300 char (*f) () = $ac_func;
6309 return f != $ac_func;
6314 rm -f conftest.$ac_objext conftest$ac_exeext
6315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6316 (eval $ac_link) 2>conftest.er1
6318 grep -v '^ *+' conftest.er1 >conftest.err
6320 cat conftest.err >&5
6321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322 (exit $ac_status); } &&
6323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328 (exit $ac_status); }; } &&
6329 { ac_try='test -s conftest$ac_exeext'
6330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334 (exit $ac_status); }; }; then
6335 eval "$as_ac_var=yes"
6337 echo "$as_me: failed program was:" >&5
6338 sed 's/^/| /' conftest.$ac_ext >&5
6340 eval "$as_ac_var=no"
6342 rm -f conftest.err conftest.$ac_objext \
6343 conftest$ac_exeext conftest.$ac_ext
6345 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6346 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6347 if test `eval echo '${'$as_ac_var'}'` = yes; then
6348 cat >>confdefs.h <<_ACEOF
6349 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6358 echo "$as_me:$LINENO: checking for $v" >&5
6359 echo $ECHO_N "checking for $v... $ECHO_C" >&6
6360 if eval "test \"\${libiberty_cv_var_$v+set}\" = set"; then
6361 echo $ECHO_N "(cached) $ECHO_C" >&6
6363 if test x$gcc_no_link = xyes; then
6364 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6365 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6366 { (exit 1); exit 1; }; }
6368 cat >conftest.$ac_ext <<_ACEOF
6371 cat confdefs.h >>conftest.$ac_ext
6372 cat >>conftest.$ac_ext <<_ACEOF
6373 /* end confdefs.h. */
6378 extern int $v []; p = $v;
6383 rm -f conftest.$ac_objext conftest$ac_exeext
6384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6385 (eval $ac_link) 2>conftest.er1
6387 grep -v '^ *+' conftest.er1 >conftest.err
6389 cat conftest.err >&5
6390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391 (exit $ac_status); } &&
6392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); }; } &&
6398 { ac_try='test -s conftest$ac_exeext'
6399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); }; }; then
6404 eval "libiberty_cv_var_$v=yes"
6406 echo "$as_me: failed program was:" >&5
6407 sed 's/^/| /' conftest.$ac_ext >&5
6409 eval "libiberty_cv_var_$v=no"
6411 rm -f conftest.err conftest.$ac_objext \
6412 conftest$ac_exeext conftest.$ac_ext
6415 if eval "test \"`echo '$libiberty_cv_var_'$v`\" = yes"; then
6416 echo "$as_me:$LINENO: result: yes" >&5
6417 echo "${ECHO_T}yes" >&6
6418 n=HAVE_`echo $v | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6419 cat >>confdefs.h <<_ACEOF
6424 echo "$as_me:$LINENO: result: no" >&5
6425 echo "${ECHO_T}no" >&6
6429 # special check for _system_configuration because AIX <4.3.2 do not
6430 # contain the `physmem' member.
6431 echo "$as_me:$LINENO: checking for external symbol _system_configuration" >&5
6432 echo $ECHO_N "checking for external symbol _system_configuration... $ECHO_C" >&6
6433 cat >conftest.$ac_ext <<_ACEOF
6436 cat confdefs.h >>conftest.$ac_ext
6437 cat >>conftest.$ac_ext <<_ACEOF
6438 /* end confdefs.h. */
6439 #include <sys/systemcfg.h>
6443 double x = _system_configuration.physmem;
6448 rm -f conftest.$ac_objext
6449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6450 (eval $ac_compile) 2>conftest.er1
6452 grep -v '^ *+' conftest.er1 >conftest.err
6454 cat conftest.err >&5
6455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6456 (exit $ac_status); } &&
6457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6462 (exit $ac_status); }; } &&
6463 { ac_try='test -s conftest.$ac_objext'
6464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468 (exit $ac_status); }; }; then
6469 echo "$as_me:$LINENO: result: yes" >&5
6470 echo "${ECHO_T}yes" >&6
6472 cat >>confdefs.h <<\_ACEOF
6473 #define HAVE__SYSTEM_CONFIGURATION 1
6477 echo "$as_me: failed program was:" >&5
6478 sed 's/^/| /' conftest.$ac_ext >&5
6480 echo "$as_me:$LINENO: result: no" >&5
6481 echo "${ECHO_T}no" >&6
6483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6486 for ac_func in $checkfuncs
6488 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6489 echo "$as_me:$LINENO: checking for $ac_func" >&5
6490 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6491 if eval "test \"\${$as_ac_var+set}\" = set"; then
6492 echo $ECHO_N "(cached) $ECHO_C" >&6
6494 if test x$gcc_no_link = xyes; then
6495 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6496 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6497 { (exit 1); exit 1; }; }
6499 cat >conftest.$ac_ext <<_ACEOF
6502 cat confdefs.h >>conftest.$ac_ext
6503 cat >>conftest.$ac_ext <<_ACEOF
6504 /* end confdefs.h. */
6505 /* System header to define __stub macros and hopefully few prototypes,
6506 which can conflict with char $ac_func (); below.
6507 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6508 <limits.h> exists even on freestanding compilers. Under hpux,
6509 including <limits.h> includes <sys/time.h> and causes problems
6510 checking for functions defined therein. */
6511 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
6512 # include <limits.h>
6514 # include <assert.h>
6516 /* Override any gcc2 internal prototype to avoid an error. */
6521 /* We use char because int might match the return type of a gcc2
6522 builtin and then its argument prototype would still apply. */
6524 /* The GNU C library defines this for functions which it implements
6525 to always fail with ENOSYS. Some functions are actually named
6526 something starting with __ and the normal name is an alias. */
6527 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6530 char (*f) () = $ac_func;
6539 return f != $ac_func;
6544 rm -f conftest.$ac_objext conftest$ac_exeext
6545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6546 (eval $ac_link) 2>conftest.er1
6548 grep -v '^ *+' conftest.er1 >conftest.err
6550 cat conftest.err >&5
6551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552 (exit $ac_status); } &&
6553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558 (exit $ac_status); }; } &&
6559 { ac_try='test -s conftest$ac_exeext'
6560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6564 (exit $ac_status); }; }; then
6565 eval "$as_ac_var=yes"
6567 echo "$as_me: failed program was:" >&5
6568 sed 's/^/| /' conftest.$ac_ext >&5
6570 eval "$as_ac_var=no"
6572 rm -f conftest.err conftest.$ac_objext \
6573 conftest$ac_exeext conftest.$ac_ext
6575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6576 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6577 if test `eval echo '${'$as_ac_var'}'` = yes; then
6578 cat >>confdefs.h <<_ACEOF
6579 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6585 echo "$as_me:$LINENO: checking whether canonicalize_file_name must be declared" >&5
6586 echo $ECHO_N "checking whether canonicalize_file_name must be declared... $ECHO_C" >&6
6587 if test "${libiberty_cv_decl_needed_canonicalize_file_name+set}" = set; then
6588 echo $ECHO_N "(cached) $ECHO_C" >&6
6590 cat >conftest.$ac_ext <<_ACEOF
6593 cat confdefs.h >>conftest.$ac_ext
6594 cat >>conftest.$ac_ext <<_ACEOF
6595 /* end confdefs.h. */
6597 #include "confdefs.h"
6599 #ifdef HAVE_STRING_H
6602 #ifdef HAVE_STRINGS_H
6603 #include <strings.h>
6606 #ifdef HAVE_STDLIB_H
6609 #ifdef HAVE_UNISTD_H
6615 char *(*pfn) = (char *(*)) canonicalize_file_name
6620 rm -f conftest.$ac_objext
6621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6622 (eval $ac_compile) 2>conftest.er1
6624 grep -v '^ *+' conftest.er1 >conftest.err
6626 cat conftest.err >&5
6627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6628 (exit $ac_status); } &&
6629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634 (exit $ac_status); }; } &&
6635 { ac_try='test -s conftest.$ac_objext'
6636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640 (exit $ac_status); }; }; then
6641 libiberty_cv_decl_needed_canonicalize_file_name=no
6643 echo "$as_me: failed program was:" >&5
6644 sed 's/^/| /' conftest.$ac_ext >&5
6646 libiberty_cv_decl_needed_canonicalize_file_name=yes
6648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6651 echo "$as_me:$LINENO: result: $libiberty_cv_decl_needed_canonicalize_file_name" >&5
6652 echo "${ECHO_T}$libiberty_cv_decl_needed_canonicalize_file_name" >&6
6653 if test $libiberty_cv_decl_needed_canonicalize_file_name = yes; then
6655 cat >>confdefs.h <<\_ACEOF
6656 #define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1
6663 # Figure out which version of pexecute to use.
6665 *-*-mingw* | *-*-winnt*) pexecute=./pex-win32.o ;;
6666 *-*-msdosdjgpp*) pexecute=./pex-djgpp.o ;;
6667 *-*-msdos*) pexecute=./pex-msdos.o ;;
6668 *-*-os2-emx*) pexecute=./pex-os2.o ;;
6669 *) pexecute=./pex-unix.o ;;
6673 if test x$gcc_no_link = xyes; then
6674 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
6675 ac_cv_func_mmap_fixed_mapped=no
6678 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
6681 for ac_header in stdlib.h unistd.h
6683 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6684 echo "$as_me:$LINENO: checking for $ac_header" >&5
6685 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6686 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6687 echo $ECHO_N "(cached) $ECHO_C" >&6
6689 cat >conftest.$ac_ext <<_ACEOF
6692 cat confdefs.h >>conftest.$ac_ext
6693 cat >>conftest.$ac_ext <<_ACEOF
6694 /* end confdefs.h. */
6695 #include <$ac_header>
6697 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6698 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6700 grep -v '^ *+' conftest.er1 >conftest.err
6702 cat conftest.err >&5
6703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704 (exit $ac_status); } >/dev/null; then
6705 if test -s conftest.err; then
6706 ac_cpp_err=$ac_c_preproc_warn_flag
6707 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6714 if test -z "$ac_cpp_err"; then
6715 eval "$as_ac_Header=yes"
6717 echo "$as_me: failed program was:" >&5
6718 sed 's/^/| /' conftest.$ac_ext >&5
6720 eval "$as_ac_Header=no"
6722 rm -f conftest.err conftest.$ac_ext
6724 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6725 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6726 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6727 cat >>confdefs.h <<_ACEOF
6728 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6735 for ac_func in getpagesize
6737 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6738 echo "$as_me:$LINENO: checking for $ac_func" >&5
6739 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6740 if eval "test \"\${$as_ac_var+set}\" = set"; then
6741 echo $ECHO_N "(cached) $ECHO_C" >&6
6743 if test x$gcc_no_link = xyes; then
6744 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6745 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6746 { (exit 1); exit 1; }; }
6748 cat >conftest.$ac_ext <<_ACEOF
6751 cat confdefs.h >>conftest.$ac_ext
6752 cat >>conftest.$ac_ext <<_ACEOF
6753 /* end confdefs.h. */
6754 /* System header to define __stub macros and hopefully few prototypes,
6755 which can conflict with char $ac_func (); below.
6756 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6757 <limits.h> exists even on freestanding compilers. Under hpux,
6758 including <limits.h> includes <sys/time.h> and causes problems
6759 checking for functions defined therein. */
6760 #if defined (__STDC__) && !defined (_HPUX_SOURCE)
6761 # include <limits.h>
6763 # include <assert.h>
6765 /* Override any gcc2 internal prototype to avoid an error. */
6770 /* We use char because int might match the return type of a gcc2
6771 builtin and then its argument prototype would still apply. */
6773 /* The GNU C library defines this for functions which it implements
6774 to always fail with ENOSYS. Some functions are actually named
6775 something starting with __ and the normal name is an alias. */
6776 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6779 char (*f) () = $ac_func;
6788 return f != $ac_func;
6793 rm -f conftest.$ac_objext conftest$ac_exeext
6794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6795 (eval $ac_link) 2>conftest.er1
6797 grep -v '^ *+' conftest.er1 >conftest.err
6799 cat conftest.err >&5
6800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6801 (exit $ac_status); } &&
6802 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6807 (exit $ac_status); }; } &&
6808 { ac_try='test -s conftest$ac_exeext'
6809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813 (exit $ac_status); }; }; then
6814 eval "$as_ac_var=yes"
6816 echo "$as_me: failed program was:" >&5
6817 sed 's/^/| /' conftest.$ac_ext >&5
6819 eval "$as_ac_var=no"
6821 rm -f conftest.err conftest.$ac_objext \
6822 conftest$ac_exeext conftest.$ac_ext
6824 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6825 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6826 if test `eval echo '${'$as_ac_var'}'` = yes; then
6827 cat >>confdefs.h <<_ACEOF
6828 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6834 echo "$as_me:$LINENO: checking for working mmap" >&5
6835 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6836 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6837 echo $ECHO_N "(cached) $ECHO_C" >&6
6839 if test "$cross_compiling" = yes; then
6840 ac_cv_func_mmap_fixed_mapped=no
6842 cat >conftest.$ac_ext <<_ACEOF
6845 cat confdefs.h >>conftest.$ac_ext
6846 cat >>conftest.$ac_ext <<_ACEOF
6847 /* end confdefs.h. */
6848 $ac_includes_default
6849 /* malloc might have been renamed as rpl_malloc. */
6852 /* Thanks to Mike Haertel and Jim Avera for this test.
6853 Here is a matrix of mmap possibilities:
6854 mmap private not fixed
6855 mmap private fixed at somewhere currently unmapped
6856 mmap private fixed at somewhere already mapped
6857 mmap shared not fixed
6858 mmap shared fixed at somewhere currently unmapped
6859 mmap shared fixed at somewhere already mapped
6860 For private mappings, we should verify that changes cannot be read()
6861 back from the file, nor mmap's back from the file at a different
6862 address. (There have been systems where private was not correctly
6863 implemented like the infamous i386 svr4.0, and systems where the
6864 VM page cache was not coherent with the file system buffer cache
6865 like early versions of FreeBSD and possibly contemporary NetBSD.)
6866 For shared mappings, we should conversely verify that changes get
6867 propagated back to all the places they're supposed to be.
6869 Grep wants private fixed already mapped.
6870 The main things grep needs to know about mmap are:
6871 * does it exist and is it safe to write into the mmap'd area
6872 * how to use it (BSD variants) */
6875 #include <sys/mman.h>
6877 #if !STDC_HEADERS && !HAVE_STDLIB_H
6881 /* This mess was copied from the GNU getpagesize.h. */
6882 #if !HAVE_GETPAGESIZE
6883 /* Assume that all systems that can run configure have sys/param.h. */
6884 # if !HAVE_SYS_PARAM_H
6885 # define HAVE_SYS_PARAM_H 1
6888 # ifdef _SC_PAGESIZE
6889 # define getpagesize() sysconf(_SC_PAGESIZE)
6890 # else /* no _SC_PAGESIZE */
6891 # if HAVE_SYS_PARAM_H
6892 # include <sys/param.h>
6893 # ifdef EXEC_PAGESIZE
6894 # define getpagesize() EXEC_PAGESIZE
6895 # else /* no EXEC_PAGESIZE */
6897 # define getpagesize() NBPG * CLSIZE
6900 # endif /* no CLSIZE */
6901 # else /* no NBPG */
6903 # define getpagesize() NBPC
6904 # else /* no NBPC */
6906 # define getpagesize() PAGESIZE
6907 # endif /* PAGESIZE */
6908 # endif /* no NBPC */
6909 # endif /* no NBPG */
6910 # endif /* no EXEC_PAGESIZE */
6911 # else /* no HAVE_SYS_PARAM_H */
6912 # define getpagesize() 8192 /* punt totally */
6913 # endif /* no HAVE_SYS_PARAM_H */
6914 # endif /* no _SC_PAGESIZE */
6916 #endif /* no HAVE_GETPAGESIZE */
6921 char *data, *data2, *data3;
6925 pagesize = getpagesize ();
6927 /* First, make a file with some known garbage in it. */
6928 data = (char *) malloc (pagesize);
6931 for (i = 0; i < pagesize; ++i)
6932 *(data + i) = rand ();
6934 fd = creat ("conftest.mmap", 0600);
6937 if (write (fd, data, pagesize) != pagesize)
6941 /* Next, try to mmap the file at a fixed address which already has
6942 something else allocated at it. If we can, also make sure that
6943 we see the same garbage. */
6944 fd = open ("conftest.mmap", O_RDWR);
6947 data2 = (char *) malloc (2 * pagesize);
6950 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6951 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6952 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6954 for (i = 0; i < pagesize; ++i)
6955 if (*(data + i) != *(data2 + i))
6958 /* Finally, make sure that changes to the mapped area do not
6959 percolate back to the file as seen by read(). (This is a bug on
6960 some variants of i386 svr4.0.) */
6961 for (i = 0; i < pagesize; ++i)
6962 *(data2 + i) = *(data2 + i) + 1;
6963 data3 = (char *) malloc (pagesize);
6966 if (read (fd, data3, pagesize) != pagesize)
6968 for (i = 0; i < pagesize; ++i)
6969 if (*(data + i) != *(data3 + i))
6975 rm -f conftest$ac_exeext
6976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6977 (eval $ac_link) 2>&5
6979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6980 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985 (exit $ac_status); }; }; then
6986 ac_cv_func_mmap_fixed_mapped=yes
6988 echo "$as_me: program exited with status $ac_status" >&5
6989 echo "$as_me: failed program was:" >&5
6990 sed 's/^/| /' conftest.$ac_ext >&5
6993 ac_cv_func_mmap_fixed_mapped=no
6995 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6998 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6999 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7000 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7002 cat >>confdefs.h <<\_ACEOF
7011 echo "$as_me:$LINENO: checking for working strncmp" >&5
7012 echo $ECHO_N "checking for working strncmp... $ECHO_C" >&6
7013 if test "${ac_cv_func_strncmp_works+set}" = set; then
7014 echo $ECHO_N "(cached) $ECHO_C" >&6
7016 if test "$cross_compiling" = yes; then
7017 ac_cv_func_strncmp_works=no
7019 cat >conftest.$ac_ext <<_ACEOF
7022 cat confdefs.h >>conftest.$ac_ext
7023 cat >>conftest.$ac_ext <<_ACEOF
7024 /* end confdefs.h. */
7026 /* Test by Jim Wilson and Kaveh Ghazi.
7027 Check whether strncmp reads past the end of its string parameters. */
7028 #include <sys/types.h>
7034 #ifdef HAVE_SYS_MMAN_H
7035 #include <sys/mman.h>
7039 #ifdef MAP_ANONYMOUS
7040 #define MAP_ANON MAP_ANONYMOUS
7042 #define MAP_ANON MAP_FILE
7053 #define MAP_LEN 0x10000
7057 #if defined(HAVE_MMAP) || defined(HAVE_MMAP_ANYWHERE)
7061 dev_zero = open ("/dev/zero", O_RDONLY);
7065 p = (char *) mmap (0, MAP_LEN, PROT_READ|PROT_WRITE,
7066 MAP_ANON|MAP_PRIVATE, dev_zero, 0);
7067 if (p == (char *)-1)
7068 p = (char *) mmap (0, MAP_LEN, PROT_READ|PROT_WRITE,
7069 MAP_ANON|MAP_PRIVATE, -1, 0);
7070 if (p == (char *)-1)
7074 char *string = "__si_type_info";
7075 char *q = (char *) p + MAP_LEN - strlen (string) - 2;
7076 char *r = (char *) p + 0xe;
7082 #endif /* HAVE_MMAP || HAVE_MMAP_ANYWHERE */
7087 rm -f conftest$ac_exeext
7088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7089 (eval $ac_link) 2>&5
7091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7092 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7097 (exit $ac_status); }; }; then
7098 ac_cv_func_strncmp_works=yes
7100 echo "$as_me: program exited with status $ac_status" >&5
7101 echo "$as_me: failed program was:" >&5
7102 sed 's/^/| /' conftest.$ac_ext >&5
7105 ac_cv_func_strncmp_works=no
7107 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7109 rm -f core core.* *.core
7111 echo "$as_me:$LINENO: result: $ac_cv_func_strncmp_works" >&5
7112 echo "${ECHO_T}$ac_cv_func_strncmp_works" >&6
7113 if test $ac_cv_func_strncmp_works = no ; then
7115 "strncmp.$ac_objext" | \
7116 *" strncmp.$ac_objext" | \
7117 "strncmp.$ac_objext "* | \
7118 *" strncmp.$ac_objext "* ) ;;
7119 *) LIBOBJS="$LIBOBJS strncmp.$ac_objext" ;;
7125 # Install a library built with a cross compiler in $(tooldir) rather
7127 if test -z "${with_cross_host}"; then
7130 INSTALL_DEST=tooldir
7136 for l in x $LIBOBJS; do
7144 # We need multilib support, but only if configuring for the target.
7145 ac_config_files="$ac_config_files Makefile testsuite/Makefile"
7147 ac_config_commands="$ac_config_commands default"
7149 cat >confcache <<\_ACEOF
7150 # This file is a shell script that caches the results of configure
7151 # tests run on this system so they can be shared between configure
7152 # scripts and configure runs, see configure's option --config-cache.
7153 # It is not useful on other systems. If it contains results you don't
7154 # want to keep, you may remove or edit it.
7156 # config.status only pays attention to the cache file if you give it
7157 # the --recheck option to rerun configure.
7159 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7160 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7165 # The following way of writing the cache mishandles newlines in values,
7166 # but we know of no workaround that is simple, portable, and efficient.
7167 # So, don't put newlines in cache variables' values.
7168 # Ultrix sh set writes to stderr and can't be redirected directly,
7169 # and sets the high bit in the cache file unless we assign to the vars.
7172 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7174 # `set' does not quote correctly, so add quotes (double-quote
7175 # substitution turns \\\\ into \\, and sed turns \\ into \).
7178 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7181 # `set' quotes correctly as required by POSIX, so do not add quotes.
7183 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7190 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7192 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7194 if diff $cache_file confcache >/dev/null 2>&1; then :; else
7195 if test -w $cache_file; then
7196 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7197 cat confcache >$cache_file
7199 echo "not updating unwritable cache $cache_file"
7204 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7205 # Let make expand exec_prefix.
7206 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7208 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7209 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7210 # trailing colons and then remove the whole line if VPATH becomes empty
7211 # (actually we leave an empty line to preserve line numbers).
7212 if test "x$srcdir" = x.; then
7213 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7214 s/:*\$(srcdir):*/:/;
7215 s/:*\${srcdir}:*/:/;
7217 s/^\([^=]*=[ ]*\):*/\1/;
7223 DEFS=-DHAVE_CONFIG_H
7227 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7228 # 1. Remove the extension, and $U if already installed.
7229 ac_i=`echo "$ac_i" |
7230 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7232 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7233 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7237 LTLIBOBJS=$ac_ltlibobjs
7241 : ${CONFIG_STATUS=./config.status}
7242 ac_clean_files_save=$ac_clean_files
7243 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7244 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7245 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7246 cat >$CONFIG_STATUS <<_ACEOF
7248 # Generated by $as_me.
7249 # Run this file to recreate the current configuration.
7250 # Compiler output produced by configure, useful for debugging
7251 # configure, is in config.log if it exists.
7256 SHELL=\${CONFIG_SHELL-$SHELL}
7259 cat >>$CONFIG_STATUS <<\_ACEOF
7260 ## --------------------- ##
7261 ## M4sh Initialization. ##
7262 ## --------------------- ##
7264 # Be Bourne compatible
7265 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7268 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7269 # is contrary to our usage. Disable this feature.
7270 alias -g '${1+"$@"}'='"$@"'
7271 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7274 DUALCASE=1; export DUALCASE # for MKS sh
7276 # Support unset when possible.
7277 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7284 # Work around bugs in pre-3.0 UWIN ksh.
7285 $as_unset ENV MAIL MAILPATH
7292 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7293 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7294 LC_TELEPHONE LC_TIME
7296 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7297 eval $as_var=C; export $as_var
7303 # Required to use basename.
7304 if expr a : '\(a\)' >/dev/null 2>&1; then
7310 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7311 as_basename=basename
7317 # Name of the executable.
7318 as_me=`$as_basename "$0" ||
7319 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7320 X"$0" : 'X\(//\)$' \| \
7321 X"$0" : 'X\(/\)$' \| \
7322 . : '\(.\)' 2>/dev/null ||
7324 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7325 /^X\/\(\/\/\)$/{ s//\1/; q; }
7326 /^X\/\(\/\).*/{ s//\1/; q; }
7330 # PATH needs CR, and LINENO needs CR and PATH.
7331 # Avoid depending upon Character Ranges.
7332 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7333 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7334 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7335 as_cr_digits='0123456789'
7336 as_cr_alnum=$as_cr_Letters$as_cr_digits
7338 # The user is always right.
7339 if test "${PATH_SEPARATOR+set}" != set; then
7340 echo "#! /bin/sh" >conf$$.sh
7341 echo "exit 0" >>conf$$.sh
7343 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7354 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7355 test "x$as_lineno_1" != "x$as_lineno_2" &&
7356 test "x$as_lineno_3" = "x$as_lineno_2" || {
7357 # Find who we are. Look in the path if we contain no path at all
7360 *[\\/]* ) as_myself=$0 ;;
7361 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7365 test -z "$as_dir" && as_dir=.
7366 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7371 # We did not find ourselves, most probably we were run as `sh COMMAND'
7372 # in which case we are not to be found in the path.
7373 if test "x$as_myself" = x; then
7376 if test ! -f "$as_myself"; then
7377 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7378 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7379 { (exit 1); exit 1; }; }
7381 case $CONFIG_SHELL in
7383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7384 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7387 test -z "$as_dir" && as_dir=.
7388 for as_base in sh bash ksh sh5; do
7391 if ("$as_dir/$as_base" -c '
7394 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7395 test "x$as_lineno_1" != "x$as_lineno_2" &&
7396 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
7397 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7398 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7399 CONFIG_SHELL=$as_dir/$as_base
7401 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7409 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7410 # uniformly replaced by the line number. The first 'sed' inserts a
7411 # line-number line before each line; the second 'sed' does the real
7412 # work. The second script uses 'N' to pair each line-number line
7413 # with the numbered line, and appends trailing '-' during
7414 # substitution so that $LINENO is not a special case at line end.
7415 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7416 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7417 sed '=' <$as_myself |
7422 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7425 s,^['$as_cr_digits']*\n,,
7427 chmod +x $as_me.lineno ||
7428 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7429 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7430 { (exit 1); exit 1; }; }
7432 # Don't try to exec as it changes $[0], causing all sort of problems
7433 # (the dirname of $[0] is not the place where we might find the
7434 # original and so on. Autoconf is especially sensible to this).
7436 # Exit status is that of the last command.
7441 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7442 *c*,-n*) ECHO_N= ECHO_C='
7444 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7445 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7448 if expr a : '\(a\)' >/dev/null 2>&1; then
7454 rm -f conf$$ conf$$.exe conf$$.file
7456 if ln -s conf$$.file conf$$ 2>/dev/null; then
7457 # We could just check for DJGPP; but this test a) works b) is more generic
7458 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7459 if test -f conf$$.exe; then
7460 # Don't use ln at all; we don't have any links
7465 elif ln conf$$.file conf$$ 2>/dev/null; then
7470 rm -f conf$$ conf$$.exe conf$$.file
7472 if mkdir -p . 2>/dev/null; then
7475 test -d ./-p && rmdir ./-p
7479 as_executable_p="test -f"
7481 # Sed expression to map a string onto a valid CPP name.
7482 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7484 # Sed expression to map a string onto a valid variable name.
7485 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7489 # We need space, tab and new line, in precisely that order.
7499 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7500 # report actual input values of CONFIG_FILES etc. instead of their
7501 # values after options handling. Logging --version etc. is OK.
7505 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7506 ## Running $as_me. ##
7511 This file was extended by $as_me, which was
7512 generated by GNU Autoconf 2.59. Invocation command line was
7514 CONFIG_FILES = $CONFIG_FILES
7515 CONFIG_HEADERS = $CONFIG_HEADERS
7516 CONFIG_LINKS = $CONFIG_LINKS
7517 CONFIG_COMMANDS = $CONFIG_COMMANDS
7521 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7525 # Files that config.status was made for.
7526 if test -n "$ac_config_files"; then
7527 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7530 if test -n "$ac_config_headers"; then
7531 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7534 if test -n "$ac_config_links"; then
7535 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7538 if test -n "$ac_config_commands"; then
7539 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7542 cat >>$CONFIG_STATUS <<\_ACEOF
7545 \`$as_me' instantiates files from templates according to the
7546 current configuration.
7548 Usage: $0 [OPTIONS] [FILE]...
7550 -h, --help print this help, then exit
7551 -V, --version print version number, then exit
7552 -q, --quiet do not print progress messages
7553 -d, --debug don't remove temporary files
7554 --recheck update $as_me by reconfiguring in the same conditions
7555 --file=FILE[:TEMPLATE]
7556 instantiate the configuration file FILE
7557 --header=FILE[:TEMPLATE]
7558 instantiate the configuration header FILE
7560 Configuration files:
7563 Configuration headers:
7566 Configuration commands:
7569 Report bugs to <bug-autoconf@gnu.org>."
7572 cat >>$CONFIG_STATUS <<_ACEOF
7575 configured by $0, generated by GNU Autoconf 2.59,
7576 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7578 Copyright (C) 2003 Free Software Foundation, Inc.
7579 This config.status script is free software; the Free Software Foundation
7580 gives unlimited permission to copy, distribute and modify it."
7585 cat >>$CONFIG_STATUS <<\_ACEOF
7586 # If no file are specified by the user, then we need to provide default
7587 # value. By we need to know if files were specified by the user.
7593 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7594 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7602 *) # This is not an option, so the user has probably given explicit
7605 ac_need_defaults=false;;
7609 # Handling of the options.
7611 cat >>$CONFIG_STATUS <<\_ACEOF
7612 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7614 --version | --vers* | -V )
7615 echo "$ac_cs_version"; exit 0 ;;
7617 # Conflict between --help and --header
7618 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7619 Try \`$0 --help' for more information." >&5
7620 echo "$as_me: error: ambiguous option: $1
7621 Try \`$0 --help' for more information." >&2;}
7622 { (exit 1); exit 1; }; };;
7623 --help | --hel | -h )
7624 echo "$ac_cs_usage"; exit 0 ;;
7625 --debug | --d* | -d )
7627 --file | --fil | --fi | --f )
7629 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7630 ac_need_defaults=false;;
7631 --header | --heade | --head | --hea )
7633 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7634 ac_need_defaults=false;;
7635 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7636 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7640 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7641 Try \`$0 --help' for more information." >&5
7642 echo "$as_me: error: unrecognized option: $1
7643 Try \`$0 --help' for more information." >&2;}
7644 { (exit 1); exit 1; }; } ;;
7646 *) ac_config_targets="$ac_config_targets $1" ;;
7652 ac_configure_extra_args=
7654 if $ac_cs_silent; then
7656 ac_configure_extra_args="$ac_configure_extra_args --silent"
7660 cat >>$CONFIG_STATUS <<_ACEOF
7661 if \$ac_cs_recheck; then
7662 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7663 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7668 cat >>$CONFIG_STATUS <<_ACEOF
7670 # INIT-COMMANDS section.
7676 with_target_subdir=${with_target_subdir}
7677 with_multisubdir=${with_multisubdir}
7678 ac_configure_args="--enable-multilib ${ac_configure_args}"
7679 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
7680 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
7681 libiberty_topdir=${libiberty_topdir}
7688 cat >>$CONFIG_STATUS <<\_ACEOF
7689 for ac_config_target in $ac_config_targets
7691 case "$ac_config_target" in
7692 # Handling of arguments.
7693 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7694 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
7695 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
7696 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
7697 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7698 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7699 { (exit 1); exit 1; }; };;
7703 # If the user did not use the arguments to specify the items to instantiate,
7704 # then the envvar interface is used. Set only those that are not.
7705 # We use the long form for the default assignment because of an extremely
7706 # bizarre bug on SunOS 4.1.3.
7707 if $ac_need_defaults; then
7708 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7709 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7710 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7713 # Have a temporary directory for convenience. Make it in the build tree
7714 # simply because there is no reason to put it here, and in addition,
7715 # creating and moving files from /tmp can sometimes cause problems.
7716 # Create a temporary directory, and hook for its removal unless debugging.
7719 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7720 trap '{ (exit 1); exit 1; }' 1 2 13 15
7723 # Create a (secure) tmp directory for tmp files.
7726 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7727 test -n "$tmp" && test -d "$tmp"
7730 tmp=./confstat$$-$RANDOM
7731 (umask 077 && mkdir $tmp)
7734 echo "$me: cannot create a temporary directory in ." >&2
7735 { (exit 1); exit 1; }
7740 cat >>$CONFIG_STATUS <<_ACEOF
7743 # CONFIG_FILES section.
7746 # No need to generate the scripts if there are no CONFIG_FILES.
7747 # This happens for instance when ./config.status config.h
7748 if test -n "\$CONFIG_FILES"; then
7749 # Protect against being on the right side of a sed subst in config.status.
7750 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7751 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7752 s,@SHELL@,$SHELL,;t t
7753 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7754 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7755 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7756 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7757 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7758 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7759 s,@exec_prefix@,$exec_prefix,;t t
7760 s,@prefix@,$prefix,;t t
7761 s,@program_transform_name@,$program_transform_name,;t t
7762 s,@bindir@,$bindir,;t t
7763 s,@sbindir@,$sbindir,;t t
7764 s,@libexecdir@,$libexecdir,;t t
7765 s,@datadir@,$datadir,;t t
7766 s,@sysconfdir@,$sysconfdir,;t t
7767 s,@sharedstatedir@,$sharedstatedir,;t t
7768 s,@localstatedir@,$localstatedir,;t t
7769 s,@libdir@,$libdir,;t t
7770 s,@includedir@,$includedir,;t t
7771 s,@oldincludedir@,$oldincludedir,;t t
7772 s,@infodir@,$infodir,;t t
7773 s,@mandir@,$mandir,;t t
7774 s,@build_alias@,$build_alias,;t t
7775 s,@host_alias@,$host_alias,;t t
7776 s,@target_alias@,$target_alias,;t t
7778 s,@ECHO_C@,$ECHO_C,;t t
7779 s,@ECHO_N@,$ECHO_N,;t t
7780 s,@ECHO_T@,$ECHO_T,;t t
7782 s,@libiberty_topdir@,$libiberty_topdir,;t t
7783 s,@MAINT@,$MAINT,;t t
7784 s,@NOTMAINT@,$NOTMAINT,;t t
7785 s,@MAKEINFO@,$MAKEINFO,;t t
7786 s,@BUILD_INFO@,$BUILD_INFO,;t t
7788 s,@HAVE_PERL@,$HAVE_PERL,;t t
7789 s,@build@,$build,;t t
7790 s,@build_cpu@,$build_cpu,;t t
7791 s,@build_vendor@,$build_vendor,;t t
7792 s,@build_os@,$build_os,;t t
7794 s,@host_cpu@,$host_cpu,;t t
7795 s,@host_vendor@,$host_vendor,;t t
7796 s,@host_os@,$host_os,;t t
7798 s,@ac_ct_AR@,$ac_ct_AR,;t t
7799 s,@RANLIB@,$RANLIB,;t t
7800 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7802 s,@CFLAGS@,$CFLAGS,;t t
7803 s,@LDFLAGS@,$LDFLAGS,;t t
7804 s,@CPPFLAGS@,$CPPFLAGS,;t t
7805 s,@ac_ct_CC@,$ac_ct_CC,;t t
7806 s,@EXEEXT@,$EXEEXT,;t t
7807 s,@OBJEXT@,$OBJEXT,;t t
7809 s,@ac_libiberty_warn_cflags@,$ac_libiberty_warn_cflags,;t t
7810 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
7811 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
7812 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7813 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7814 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7815 s,@EGREP@,$EGREP,;t t
7816 s,@LIBOBJS@,$LIBOBJS,;t t
7817 s,@CHECK@,$CHECK,;t t
7818 s,@target_header_dir@,$target_header_dir,;t t
7819 s,@pexecute@,$pexecute,;t t
7820 s,@INSTALL_DEST@,$INSTALL_DEST,;t t
7821 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7822 /@host_makefile_frag@/r $host_makefile_frag
7823 s,@host_makefile_frag@,,;t t
7828 cat >>$CONFIG_STATUS <<\_ACEOF
7829 # Split the substitutions into bite-sized pieces for seds with
7830 # small command number limits, like on Digital OSF/1 and HP-UX.
7832 ac_sed_frag=1 # Number of current file.
7833 ac_beg=1 # First line for current file.
7834 ac_end=$ac_max_sed_lines # Line after last line for current file.
7837 while $ac_more_lines; do
7838 if test $ac_beg -gt 1; then
7839 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7841 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7843 if test ! -s $tmp/subs.frag; then
7846 # The purpose of the label and of the branching condition is to
7847 # speed up the sed processing (if there are no `@' at all, there
7848 # is no need to browse any of the substitutions).
7849 # These are the two extra sed commands mentioned above.
7851 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7852 if test -z "$ac_sed_cmds"; then
7853 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7855 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7857 ac_sed_frag=`expr $ac_sed_frag + 1`
7859 ac_end=`expr $ac_end + $ac_max_sed_lines`
7862 if test -z "$ac_sed_cmds"; then
7865 fi # test -n "$CONFIG_FILES"
7868 cat >>$CONFIG_STATUS <<\_ACEOF
7869 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7870 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7872 - | *:- | *:-:* ) # input from stdin
7874 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7875 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7876 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7877 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7878 * ) ac_file_in=$ac_file.in ;;
7881 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7882 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7883 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7884 X"$ac_file" : 'X\(//\)[^/]' \| \
7885 X"$ac_file" : 'X\(//\)$' \| \
7886 X"$ac_file" : 'X\(/\)' \| \
7887 . : '\(.\)' 2>/dev/null ||
7889 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7890 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7891 /^X\(\/\/\)$/{ s//\1/; q; }
7892 /^X\(\/\).*/{ s//\1/; q; }
7894 { if $as_mkdir_p; then
7899 while test ! -d "$as_dir"; do
7900 as_dirs="$as_dir $as_dirs"
7901 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7902 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7903 X"$as_dir" : 'X\(//\)[^/]' \| \
7904 X"$as_dir" : 'X\(//\)$' \| \
7905 X"$as_dir" : 'X\(/\)' \| \
7906 . : '\(.\)' 2>/dev/null ||
7908 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7909 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7910 /^X\(\/\/\)$/{ s//\1/; q; }
7911 /^X\(\/\).*/{ s//\1/; q; }
7914 test ! -n "$as_dirs" || mkdir $as_dirs
7915 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7916 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7917 { (exit 1); exit 1; }; }; }
7921 if test "$ac_dir" != .; then
7922 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7923 # A "../" for each directory in $ac_dir_suffix.
7924 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7926 ac_dir_suffix= ac_top_builddir=
7930 .) # No --srcdir option. We are building in place.
7932 if test -z "$ac_top_builddir"; then
7935 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7937 [\\/]* | ?:[\\/]* ) # Absolute path.
7938 ac_srcdir=$srcdir$ac_dir_suffix;
7939 ac_top_srcdir=$srcdir ;;
7941 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7942 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7945 # Do not use `cd foo && pwd` to compute absolute paths, because
7946 # the directories may not exist.
7948 .) ac_abs_builddir="$ac_dir";;
7951 .) ac_abs_builddir=`pwd`;;
7952 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7953 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7956 case $ac_abs_builddir in
7957 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7959 case ${ac_top_builddir}. in
7960 .) ac_abs_top_builddir=$ac_abs_builddir;;
7961 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7962 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7965 case $ac_abs_builddir in
7966 .) ac_abs_srcdir=$ac_srcdir;;
7969 .) ac_abs_srcdir=$ac_abs_builddir;;
7970 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7971 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7974 case $ac_abs_builddir in
7975 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7977 case $ac_top_srcdir in
7978 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7979 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7980 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7986 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7987 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7990 # Let's still pretend it is `configure' which instantiates (i.e., don't
7991 # use $as_me), people would be surprised to read:
7992 # /* config.h. Generated by config.status. */
7993 if test x"$ac_file" = x-; then
7996 configure_input="$ac_file. "
7998 configure_input=$configure_input"Generated from `echo $ac_file_in |
7999 sed 's,.*/,,'` by configure."
8001 # First look for the input files in the build tree, otherwise in the
8003 ac_file_inputs=`IFS=:
8004 for f in $ac_file_in; do
8006 -) echo $tmp/stdin ;;
8008 # Absolute (can't be DOS-style, as IFS=:)
8009 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8010 echo "$as_me: error: cannot find input file: $f" >&2;}
8011 { (exit 1); exit 1; }; }
8014 if test -f "$f"; then
8017 elif test -f "$srcdir/$f"; then
8022 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8023 echo "$as_me: error: cannot find input file: $f" >&2;}
8024 { (exit 1); exit 1; }; }
8027 done` || { (exit 1); exit 1; }
8029 if test x"$ac_file" != x-; then
8030 { echo "$as_me:$LINENO: creating $ac_file" >&5
8031 echo "$as_me: creating $ac_file" >&6;}
8035 cat >>$CONFIG_STATUS <<_ACEOF
8039 cat >>$CONFIG_STATUS <<\_ACEOF
8041 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8042 s,@configure_input@,$configure_input,;t t
8043 s,@srcdir@,$ac_srcdir,;t t
8044 s,@abs_srcdir@,$ac_abs_srcdir,;t t
8045 s,@top_srcdir@,$ac_top_srcdir,;t t
8046 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8047 s,@builddir@,$ac_builddir,;t t
8048 s,@abs_builddir@,$ac_abs_builddir,;t t
8049 s,@top_builddir@,$ac_top_builddir,;t t
8050 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8051 s,@INSTALL@,$ac_INSTALL,;t t
8052 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8054 if test x"$ac_file" != x-; then
8055 mv $tmp/out $ac_file
8063 cat >>$CONFIG_STATUS <<\_ACEOF
8066 # CONFIG_HEADER section.
8069 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8070 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8072 # ac_d sets the value in "#define NAME VALUE" lines.
8073 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8074 ac_dB='[ ].*$,\1#\2'
8077 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8078 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8079 ac_uB='$,\1#\2define\3'
8083 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8084 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8086 - | *:- | *:-:* ) # input from stdin
8088 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8089 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8090 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8091 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8092 * ) ac_file_in=$ac_file.in ;;
8095 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8096 echo "$as_me: creating $ac_file" >&6;}
8098 # First look for the input files in the build tree, otherwise in the
8100 ac_file_inputs=`IFS=:
8101 for f in $ac_file_in; do
8103 -) echo $tmp/stdin ;;
8105 # Absolute (can't be DOS-style, as IFS=:)
8106 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8107 echo "$as_me: error: cannot find input file: $f" >&2;}
8108 { (exit 1); exit 1; }; }
8109 # Do quote $f, to prevent DOS paths from being IFS'd.
8112 if test -f "$f"; then
8115 elif test -f "$srcdir/$f"; then
8120 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8121 echo "$as_me: error: cannot find input file: $f" >&2;}
8122 { (exit 1); exit 1; }; }
8125 done` || { (exit 1); exit 1; }
8126 # Remove the trailing spaces.
8127 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8131 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8132 # `conftest.undefs', that substitutes the proper values into
8133 # config.h.in to produce config.h. The first handles `#define'
8134 # templates, and the second `#undef' templates.
8135 # And first: Protect against being on the right side of a sed subst in
8136 # config.status. Protect against being in an unquoted here document
8138 rm -f conftest.defines conftest.undefs
8139 # Using a here document instead of a string reduces the quoting nightmare.
8140 # Putting comments in sed scripts is not portable.
8142 # `end' is used to avoid that the second main sed command (meant for
8143 # 0-ary CPP macros) applies to n-ary macro definitions.
8144 # See the Autoconf documentation for `clear'.
8145 cat >confdef2sed.sed <<\_ACEOF
8150 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8152 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8155 # If some macros were called several times there might be several times
8156 # the same #defines, which is useless. Nevertheless, we may not want to
8157 # sort them, since we want the *last* AC-DEFINE to be honored.
8158 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8159 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8160 rm -f confdef2sed.sed
8162 # This sed command replaces #undef with comments. This is necessary, for
8163 # example, in the case of _POSIX_SOURCE, which is predefined and required
8164 # on some systems where configure will not decide to define it.
8165 cat >>conftest.undefs <<\_ACEOF
8166 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8169 # Break up conftest.defines because some shells have a limit on the size
8170 # of here documents, and old seds have small limits too (100 cmds).
8171 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8172 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8173 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8174 echo ' :' >>$CONFIG_STATUS
8176 while grep . conftest.defines >/dev/null
8178 # Write a limited-size here document to $tmp/defines.sed.
8179 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8180 # Speed up: don't consider the non `#define' lines.
8181 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8182 # Work around the forget-to-reset-the-flag bug.
8183 echo 't clr' >>$CONFIG_STATUS
8184 echo ': clr' >>$CONFIG_STATUS
8185 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8187 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8191 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8192 rm -f conftest.defines
8193 mv conftest.tail conftest.defines
8195 rm -f conftest.defines
8196 echo ' fi # grep' >>$CONFIG_STATUS
8197 echo >>$CONFIG_STATUS
8199 # Break up conftest.undefs because some shells have a limit on the size
8200 # of here documents, and old seds have small limits too (100 cmds).
8201 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8203 while grep . conftest.undefs >/dev/null
8205 # Write a limited-size here document to $tmp/undefs.sed.
8206 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8207 # Speed up: don't consider the non `#undef'
8208 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8209 # Work around the forget-to-reset-the-flag bug.
8210 echo 't clr' >>$CONFIG_STATUS
8211 echo ': clr' >>$CONFIG_STATUS
8212 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8214 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8218 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8219 rm -f conftest.undefs
8220 mv conftest.tail conftest.undefs
8222 rm -f conftest.undefs
8224 cat >>$CONFIG_STATUS <<\_ACEOF
8225 # Let's still pretend it is `configure' which instantiates (i.e., don't
8226 # use $as_me), people would be surprised to read:
8227 # /* config.h. Generated by config.status. */
8228 if test x"$ac_file" = x-; then
8229 echo "/* Generated by configure. */" >$tmp/config.h
8231 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8233 cat $tmp/in >>$tmp/config.h
8235 if test x"$ac_file" != x-; then
8236 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8237 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8238 echo "$as_me: $ac_file is unchanged" >&6;}
8240 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8241 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8242 X"$ac_file" : 'X\(//\)[^/]' \| \
8243 X"$ac_file" : 'X\(//\)$' \| \
8244 X"$ac_file" : 'X\(/\)' \| \
8245 . : '\(.\)' 2>/dev/null ||
8247 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8248 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8249 /^X\(\/\/\)$/{ s//\1/; q; }
8250 /^X\(\/\).*/{ s//\1/; q; }
8252 { if $as_mkdir_p; then
8257 while test ! -d "$as_dir"; do
8258 as_dirs="$as_dir $as_dirs"
8259 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8260 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8261 X"$as_dir" : 'X\(//\)[^/]' \| \
8262 X"$as_dir" : 'X\(//\)$' \| \
8263 X"$as_dir" : 'X\(/\)' \| \
8264 . : '\(.\)' 2>/dev/null ||
8266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8267 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8268 /^X\(\/\/\)$/{ s//\1/; q; }
8269 /^X\(\/\).*/{ s//\1/; q; }
8272 test ! -n "$as_dirs" || mkdir $as_dirs
8273 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8274 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8275 { (exit 1); exit 1; }; }; }
8278 mv $tmp/config.h $ac_file
8286 cat >>$CONFIG_STATUS <<\_ACEOF
8289 # CONFIG_COMMANDS section.
8291 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
8292 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
8293 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
8294 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
8295 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8296 X"$ac_dest" : 'X\(//\)[^/]' \| \
8297 X"$ac_dest" : 'X\(//\)$' \| \
8298 X"$ac_dest" : 'X\(/\)' \| \
8299 . : '\(.\)' 2>/dev/null ||
8301 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8302 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8303 /^X\(\/\/\)$/{ s//\1/; q; }
8304 /^X\(\/\).*/{ s//\1/; q; }
8306 { if $as_mkdir_p; then
8311 while test ! -d "$as_dir"; do
8312 as_dirs="$as_dir $as_dirs"
8313 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8314 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8315 X"$as_dir" : 'X\(//\)[^/]' \| \
8316 X"$as_dir" : 'X\(//\)$' \| \
8317 X"$as_dir" : 'X\(/\)' \| \
8318 . : '\(.\)' 2>/dev/null ||
8320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8321 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8322 /^X\(\/\/\)$/{ s//\1/; q; }
8323 /^X\(\/\).*/{ s//\1/; q; }
8326 test ! -n "$as_dirs" || mkdir $as_dirs
8327 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8328 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8329 { (exit 1); exit 1; }; }; }
8333 if test "$ac_dir" != .; then
8334 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8335 # A "../" for each directory in $ac_dir_suffix.
8336 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8338 ac_dir_suffix= ac_top_builddir=
8342 .) # No --srcdir option. We are building in place.
8344 if test -z "$ac_top_builddir"; then
8347 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8349 [\\/]* | ?:[\\/]* ) # Absolute path.
8350 ac_srcdir=$srcdir$ac_dir_suffix;
8351 ac_top_srcdir=$srcdir ;;
8353 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8354 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8357 # Do not use `cd foo && pwd` to compute absolute paths, because
8358 # the directories may not exist.
8360 .) ac_abs_builddir="$ac_dir";;
8363 .) ac_abs_builddir=`pwd`;;
8364 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8365 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8368 case $ac_abs_builddir in
8369 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8371 case ${ac_top_builddir}. in
8372 .) ac_abs_top_builddir=$ac_abs_builddir;;
8373 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8374 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8377 case $ac_abs_builddir in
8378 .) ac_abs_srcdir=$ac_srcdir;;
8381 .) ac_abs_srcdir=$ac_abs_builddir;;
8382 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8383 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8386 case $ac_abs_builddir in
8387 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8389 case $ac_top_srcdir in
8390 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8391 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8392 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8397 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
8398 echo "$as_me: executing $ac_dest commands" >&6;}
8400 default ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
8401 if test -n "$CONFIG_FILES"; then
8402 if test -n "${with_target_subdir}"; then
8403 # FIXME: We shouldn't need to set ac_file
8405 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
8406 . ${libiberty_topdir}/config-ml.in
8413 cat >>$CONFIG_STATUS <<\_ACEOF
8415 { (exit 0); exit 0; }
8417 chmod +x $CONFIG_STATUS
8418 ac_clean_files=$ac_clean_files_save
8421 # configure is writing to config.log, and then calls config.status.
8422 # config.status does its own redirection, appending to config.log.
8423 # Unfortunately, on DOS this fails, as config.log is still kept open
8424 # by configure, so config.status won't be able to write to it; its
8425 # output is simply discarded. So we exec the FD to /dev/null,
8426 # effectively closing config.log, so it can be properly (re)opened and
8427 # appended to by config.status. When coming back to configure, we
8428 # need to make the FD available again.
8429 if test "$no_create" != yes; then
8431 ac_config_status_args=
8432 test "$silent" = yes &&
8433 ac_config_status_args="$ac_config_status_args --quiet"
8435 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8437 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8438 # would make configure fail if this is the last instruction.
8439 $ac_cs_success || { (exit 1); exit 1; }