2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for bc 1.06.95.
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.
270 PACKAGE_VERSION='1.06.95'
271 PACKAGE_STRING='bc 1.06.95'
274 ac_unique_file="doc/bc.1"
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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP LEX LEXLIB LEX_OUTPUT_ROOT YACC RANLIB ac_ct_RANLIB READLINELIB BC_VERSION DC_VERSION LIBOBJS LTLIBOBJS'
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 bc 1.06.95 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 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
841 if test -n "$ac_init_help"; then
842 case $ac_init_help in
843 short | recursive ) echo "Configuration of bc 1.06.95:";;
848 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
849 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
850 --disable-dependency-tracking speeds up one-time build
851 --enable-dependency-tracking do not reject slow dependency extractors
854 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
855 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
856 --with-pkg use software installed in /usr/pkg tree
857 --with-libedit support fancy BSD command input editing
858 --with-readline support fancy command input editing
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 generated by GNU Autoconf 2.59
970 Copyright (C) 2003 Free Software Foundation, Inc.
971 This configure script is free software; the Free Software Foundation
972 gives unlimited permission to copy, distribute and modify it.
978 This file contains any messages produced by compilers while
979 running configure, to aid debugging if configure makes a mistake.
981 It was created by bc $as_me 1.06.95, which was
982 generated by GNU Autoconf 2.59. Invocation command line was
993 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
994 uname -m = `(uname -m) 2>/dev/null || echo unknown`
995 uname -r = `(uname -r) 2>/dev/null || echo unknown`
996 uname -s = `(uname -s) 2>/dev/null || echo unknown`
997 uname -v = `(uname -v) 2>/dev/null || echo unknown`
999 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1000 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1002 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1003 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1004 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1005 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1006 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1007 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1008 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1016 test -z "$as_dir" && as_dir=.
1017 echo "PATH: $as_dir"
1032 # Keep a trace of the command line.
1033 # Strip out --no-create and --no-recursion so they do not pile up.
1034 # Strip out --silent because we don't want to record it for future runs.
1035 # Also quote any args containing shell meta-characters.
1036 # Make two passes to allow for proper duplicate-argument suppression.
1041 ac_must_keep_next=false
1047 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1048 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1049 | -silent | --silent | --silen | --sile | --sil)
1051 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1052 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1055 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1057 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1058 if test $ac_must_keep_next = true; then
1059 ac_must_keep_next=false # Got value, back to normal.
1062 *=* | --config-cache | -C | -disable-* | --disable-* \
1063 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1064 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1065 | -with-* | --with-* | -without-* | --without-* | --x)
1066 case "$ac_configure_args0 " in
1067 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1070 -* ) ac_must_keep_next=true ;;
1073 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1074 # Get rid of the leading space.
1080 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1081 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1083 # When interrupted or exit'd, cleanup temporary files, and complete
1084 # config.log. We remove comments because anyway the quotes in there
1085 # would cause problems or look ugly.
1086 # WARNING: Be sure not to use single quotes in there, as some shells,
1087 # such as our DU 5.0 friend, will then `close' the trap.
1088 trap 'exit_status=$?
1089 # Save into config.log some information that might help in debugging.
1094 ## ---------------- ##
1095 ## Cache variables. ##
1096 ## ---------------- ##
1099 # The following way of writing the cache mishandles newlines in values,
1102 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1105 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1106 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1110 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1117 ## ----------------- ##
1118 ## Output variables. ##
1119 ## ----------------- ##
1122 for ac_var in $ac_subst_vars
1124 eval ac_val=$`echo $ac_var`
1125 echo "$ac_var='"'"'$ac_val'"'"'"
1129 if test -n "$ac_subst_files"; then
1136 for ac_var in $ac_subst_files
1138 eval ac_val=$`echo $ac_var`
1139 echo "$ac_var='"'"'$ac_val'"'"'"
1144 if test -s confdefs.h; then
1151 sed "/^$/d" confdefs.h | sort
1154 test "$ac_signal" != 0 &&
1155 echo "$as_me: caught signal $ac_signal"
1156 echo "$as_me: exit $exit_status"
1158 rm -f core *.core &&
1159 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1162 for ac_signal in 1 2 13 15; do
1163 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1167 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1168 rm -rf conftest* confdefs.h
1169 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1172 # Predefined preprocessor variables.
1174 cat >>confdefs.h <<_ACEOF
1175 #define PACKAGE_NAME "$PACKAGE_NAME"
1179 cat >>confdefs.h <<_ACEOF
1180 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1184 cat >>confdefs.h <<_ACEOF
1185 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1189 cat >>confdefs.h <<_ACEOF
1190 #define PACKAGE_STRING "$PACKAGE_STRING"
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1199 # Let the site file select an alternate cache file if it wants to.
1200 # Prefer explicitly selected file to automatically selected ones.
1201 if test -z "$CONFIG_SITE"; then
1202 if test "x$prefix" != xNONE; then
1203 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1205 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1208 for ac_site_file in $CONFIG_SITE; do
1209 if test -r "$ac_site_file"; then
1210 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1211 echo "$as_me: loading site script $ac_site_file" >&6;}
1212 sed 's/^/| /' "$ac_site_file" >&5
1217 if test -r "$cache_file"; then
1218 # Some versions of bash will fail to source /dev/null (special
1219 # files actually), so we avoid doing that.
1220 if test -f "$cache_file"; then
1221 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1222 echo "$as_me: loading cache $cache_file" >&6;}
1224 [\\/]* | ?:[\\/]* ) . $cache_file;;
1225 *) . ./$cache_file;;
1229 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1230 echo "$as_me: creating cache $cache_file" >&6;}
1234 # Check that the precious variables saved in the cache have kept the same
1236 ac_cache_corrupted=false
1237 for ac_var in `(set) 2>&1 |
1238 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1239 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1240 eval ac_new_set=\$ac_env_${ac_var}_set
1241 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1242 eval ac_new_val="\$ac_env_${ac_var}_value"
1243 case $ac_old_set,$ac_new_set in
1245 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1246 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1247 ac_cache_corrupted=: ;;
1249 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1250 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1251 ac_cache_corrupted=: ;;
1254 if test "x$ac_old_val" != "x$ac_new_val"; then
1255 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1256 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1257 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1258 echo "$as_me: former value: $ac_old_val" >&2;}
1259 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1260 echo "$as_me: current value: $ac_new_val" >&2;}
1261 ac_cache_corrupted=:
1264 # Pass precious variables to config.status.
1265 if test "$ac_new_set" = set; then
1267 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1268 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1269 *) ac_arg=$ac_var=$ac_new_val ;;
1271 case " $ac_configure_args " in
1272 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1273 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1277 if $ac_cache_corrupted; then
1278 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1279 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1280 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1281 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1282 { (exit 1); exit 1; }; }
1286 ac_cpp='$CPP $CPPFLAGS'
1287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1318 am__api_version="1.9"
1320 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1321 if test -f $ac_dir/install-sh; then
1323 ac_install_sh="$ac_aux_dir/install-sh -c"
1325 elif test -f $ac_dir/install.sh; then
1327 ac_install_sh="$ac_aux_dir/install.sh -c"
1329 elif test -f $ac_dir/shtool; then
1331 ac_install_sh="$ac_aux_dir/shtool install -c"
1335 if test -z "$ac_aux_dir"; then
1336 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1337 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1338 { (exit 1); exit 1; }; }
1340 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1341 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1342 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1344 # Find a good install program. We prefer a C program (faster),
1345 # so one script is as good as another. But avoid the broken or
1346 # incompatible versions:
1347 # SysV /etc/install, /usr/sbin/install
1348 # SunOS /usr/etc/install
1349 # IRIX /sbin/install
1351 # AmigaOS /C/install, which installs bootblocks on floppy discs
1352 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1353 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1354 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1355 # OS/2's system install, which has a completely different semantic
1356 # ./install, which can be erroneously created by make from ./install.sh.
1357 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1358 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1359 if test -z "$INSTALL"; then
1360 if test "${ac_cv_path_install+set}" = set; then
1361 echo $ECHO_N "(cached) $ECHO_C" >&6
1363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1367 test -z "$as_dir" && as_dir=.
1368 # Account for people who put trailing slashes in PATH elements.
1370 ./ | .// | /cC/* | \
1371 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1372 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1375 # OSF1 and SCO ODT 3.0 have their own names for install.
1376 # Don't use installbsd from OSF since it installs stuff as root
1378 for ac_prog in ginstall scoinst install; do
1379 for ac_exec_ext in '' $ac_executable_extensions; do
1380 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1381 if test $ac_prog = install &&
1382 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1383 # AIX install. It has an incompatible calling convention.
1385 elif test $ac_prog = install &&
1386 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1387 # program-specific install script used by HP pwplus--don't use.
1390 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1402 if test "${ac_cv_path_install+set}" = set; then
1403 INSTALL=$ac_cv_path_install
1405 # As a last resort, use the slow shell script. We don't cache a
1406 # path for INSTALL within a source directory, because that will
1407 # break other packages using the cache if that directory is
1408 # removed, or if the path is relative.
1409 INSTALL=$ac_install_sh
1412 echo "$as_me:$LINENO: result: $INSTALL" >&5
1413 echo "${ECHO_T}$INSTALL" >&6
1415 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1416 # It thinks the first close brace ends the variable substitution.
1417 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1419 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1421 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1423 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1424 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1427 echo timestamp > conftest.file
1428 # Do `set' in a subshell so we don't clobber the current shell's
1429 # arguments. Must try -L first in case configure is actually a
1430 # symlink; some systems play weird games with the mod time of symlinks
1431 # (eg FreeBSD returns the mod time of the symlink's containing
1434 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1435 if test "$*" = "X"; then
1437 set X `ls -t $srcdir/configure conftest.file`
1440 if test "$*" != "X $srcdir/configure conftest.file" \
1441 && test "$*" != "X conftest.file $srcdir/configure"; then
1443 # If neither matched, then we have a broken ls. This can happen
1444 # if, for instance, CONFIG_SHELL is bash and it inherits a
1445 # broken ls alias from the environment. This has actually
1446 # happened. Such a system could not be considered "sane".
1447 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1448 alias in your environment" >&5
1449 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1450 alias in your environment" >&2;}
1451 { (exit 1); exit 1; }; }
1454 test "$2" = conftest.file
1460 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1461 Check your system clock" >&5
1462 echo "$as_me: error: newly created file is older than distributed files!
1463 Check your system clock" >&2;}
1464 { (exit 1); exit 1; }; }
1466 echo "$as_me:$LINENO: result: yes" >&5
1467 echo "${ECHO_T}yes" >&6
1468 test "$program_prefix" != NONE &&
1469 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1470 # Use a double $ so make ignores it.
1471 test "$program_suffix" != NONE &&
1472 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1473 # Double any \ or $. echo might interpret backslashes.
1474 # By default was `s,x,x', remove it if useless.
1475 cat <<\_ACEOF >conftest.sed
1476 s/[\\$]/&&/g;s/;s,x,x,$//
1478 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1481 # expand $ac_aux_dir to an absolute path
1482 am_aux_dir=`cd $ac_aux_dir && pwd`
1484 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1485 # Use eval to expand $SHELL
1486 if eval "$MISSING --run true"; then
1487 am_missing_run="$MISSING --run "
1490 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1491 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1494 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1495 # We used to keeping the `.' as first argument, in order to
1496 # allow $(mkdir_p) to be used without argument. As in
1497 # $(mkdir_p) $(somedir)
1498 # where $(somedir) is conditionally defined. However this is wrong
1500 # 1. if the package is installed by a user who cannot write `.'
1501 # make install will fail,
1502 # 2. the above comment should most certainly read
1503 # $(mkdir_p) $(DESTDIR)$(somedir)
1504 # so it does not work when $(somedir) is undefined and
1505 # $(DESTDIR) is not.
1506 # To support the latter case, we have to write
1507 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1508 # so the `.' trick is pointless.
1509 mkdir_p='mkdir -p --'
1511 # On NextStep and OpenStep, the `mkdir' command does not
1512 # recognize any option. It will interpret all options as
1513 # directories to create, and then abort because `.' already
1515 for d in ./-p ./--version;
1517 test -d $d && rmdir $d
1519 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1520 if test -f "$ac_aux_dir/mkinstalldirs"; then
1521 mkdir_p='$(mkinstalldirs)'
1523 mkdir_p='$(install_sh) -d'
1527 for ac_prog in gawk mawk nawk awk
1529 # Extract the first word of "$ac_prog", so it can be a program name with args.
1530 set dummy $ac_prog; ac_word=$2
1531 echo "$as_me:$LINENO: checking for $ac_word" >&5
1532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1533 if test "${ac_cv_prog_AWK+set}" = set; then
1534 echo $ECHO_N "(cached) $ECHO_C" >&6
1536 if test -n "$AWK"; then
1537 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1543 test -z "$as_dir" && as_dir=.
1544 for ac_exec_ext in '' $ac_executable_extensions; do
1545 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1546 ac_cv_prog_AWK="$ac_prog"
1547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1556 if test -n "$AWK"; then
1557 echo "$as_me:$LINENO: result: $AWK" >&5
1558 echo "${ECHO_T}$AWK" >&6
1560 echo "$as_me:$LINENO: result: no" >&5
1561 echo "${ECHO_T}no" >&6
1564 test -n "$AWK" && break
1567 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1568 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1569 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1570 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1571 echo $ECHO_N "(cached) $ECHO_C" >&6
1573 cat >conftest.make <<\_ACEOF
1575 @echo 'ac_maketemp="$(MAKE)"'
1577 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1578 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1579 if test -n "$ac_maketemp"; then
1580 eval ac_cv_prog_make_${ac_make}_set=yes
1582 eval ac_cv_prog_make_${ac_make}_set=no
1586 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1587 echo "$as_me:$LINENO: result: yes" >&5
1588 echo "${ECHO_T}yes" >&6
1591 echo "$as_me:$LINENO: result: no" >&5
1592 echo "${ECHO_T}no" >&6
1593 SET_MAKE="MAKE=${MAKE-make}"
1596 rm -rf .tst 2>/dev/null
1597 mkdir .tst 2>/dev/null
1598 if test -d .tst; then
1603 rmdir .tst 2>/dev/null
1605 # test to see if srcdir already configured
1606 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1607 test -f $srcdir/config.status; then
1608 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1609 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1610 { (exit 1); exit 1; }; }
1613 # test whether we have cygpath
1614 if test -z "$CYGPATH_W"; then
1615 if (cygpath --version) >/dev/null 2>/dev/null; then
1616 CYGPATH_W='cygpath -w'
1623 # Define the identity of the package.
1628 cat >>confdefs.h <<_ACEOF
1629 #define PACKAGE "$PACKAGE"
1633 cat >>confdefs.h <<_ACEOF
1634 #define VERSION "$VERSION"
1637 # Some tools Automake needs.
1639 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1642 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1645 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1648 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1651 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1653 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1655 # Installed binaries are usually stripped using `strip' when the user
1656 # run `make install-strip'. However `strip' might not be the right
1657 # tool to use in cross-compilation environments, therefore Automake
1658 # will honor the `STRIP' environment variable to overrule this program.
1659 if test "$cross_compiling" != no; then
1660 if test -n "$ac_tool_prefix"; then
1661 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1662 set dummy ${ac_tool_prefix}strip; ac_word=$2
1663 echo "$as_me:$LINENO: checking for $ac_word" >&5
1664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1665 if test "${ac_cv_prog_STRIP+set}" = set; then
1666 echo $ECHO_N "(cached) $ECHO_C" >&6
1668 if test -n "$STRIP"; then
1669 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1675 test -z "$as_dir" && as_dir=.
1676 for ac_exec_ext in '' $ac_executable_extensions; do
1677 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1678 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1687 STRIP=$ac_cv_prog_STRIP
1688 if test -n "$STRIP"; then
1689 echo "$as_me:$LINENO: result: $STRIP" >&5
1690 echo "${ECHO_T}$STRIP" >&6
1692 echo "$as_me:$LINENO: result: no" >&5
1693 echo "${ECHO_T}no" >&6
1697 if test -z "$ac_cv_prog_STRIP"; then
1699 # Extract the first word of "strip", so it can be a program name with args.
1700 set dummy strip; ac_word=$2
1701 echo "$as_me:$LINENO: checking for $ac_word" >&5
1702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1703 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1704 echo $ECHO_N "(cached) $ECHO_C" >&6
1706 if test -n "$ac_ct_STRIP"; then
1707 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1713 test -z "$as_dir" && as_dir=.
1714 for ac_exec_ext in '' $ac_executable_extensions; do
1715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1716 ac_cv_prog_ac_ct_STRIP="strip"
1717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1723 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1726 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1727 if test -n "$ac_ct_STRIP"; then
1728 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1729 echo "${ECHO_T}$ac_ct_STRIP" >&6
1731 echo "$as_me:$LINENO: result: no" >&5
1732 echo "${ECHO_T}no" >&6
1737 STRIP="$ac_cv_prog_STRIP"
1741 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1743 # We need awk for the "check" target. The system "awk" is bad on
1745 # Always define AMTAR for backward compatibility.
1747 AMTAR=${AMTAR-"${am_missing_run}tar"}
1749 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1755 ac_config_headers="$ac_config_headers config.h"
1759 cat >>confdefs.h <<\_ACEOF
1760 #define DC_VERSION "1.3.95"
1765 cat >>confdefs.h <<\_ACEOF
1766 #define BC_COPYRIGHT "Copyright 1991-1994, 1997, 1998, 2000, 2004, 2006 Free Software Foundation, Inc."
1771 cat >>confdefs.h <<\_ACEOF
1772 #define DC_COPYRIGHT "Copyright 1994, 1997, 1998, 2000, 2001, 2004, 2005, 2006 Free Software Foundation, Inc."
1777 ac_cpp='$CPP $CPPFLAGS'
1778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1781 if test -n "$ac_tool_prefix"; then
1782 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1783 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1784 echo "$as_me:$LINENO: checking for $ac_word" >&5
1785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1786 if test "${ac_cv_prog_CC+set}" = set; then
1787 echo $ECHO_N "(cached) $ECHO_C" >&6
1789 if test -n "$CC"; then
1790 ac_cv_prog_CC="$CC" # Let the user override the test.
1792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1796 test -z "$as_dir" && as_dir=.
1797 for ac_exec_ext in '' $ac_executable_extensions; do
1798 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1799 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1809 if test -n "$CC"; then
1810 echo "$as_me:$LINENO: result: $CC" >&5
1811 echo "${ECHO_T}$CC" >&6
1813 echo "$as_me:$LINENO: result: no" >&5
1814 echo "${ECHO_T}no" >&6
1818 if test -z "$ac_cv_prog_CC"; then
1820 # Extract the first word of "gcc", so it can be a program name with args.
1821 set dummy gcc; ac_word=$2
1822 echo "$as_me:$LINENO: checking for $ac_word" >&5
1823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1824 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1825 echo $ECHO_N "(cached) $ECHO_C" >&6
1827 if test -n "$ac_ct_CC"; then
1828 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1834 test -z "$as_dir" && as_dir=.
1835 for ac_exec_ext in '' $ac_executable_extensions; do
1836 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1837 ac_cv_prog_ac_ct_CC="gcc"
1838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1846 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1847 if test -n "$ac_ct_CC"; then
1848 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1849 echo "${ECHO_T}$ac_ct_CC" >&6
1851 echo "$as_me:$LINENO: result: no" >&5
1852 echo "${ECHO_T}no" >&6
1860 if test -z "$CC"; then
1861 if test -n "$ac_tool_prefix"; then
1862 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1863 set dummy ${ac_tool_prefix}cc; ac_word=$2
1864 echo "$as_me:$LINENO: checking for $ac_word" >&5
1865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1866 if test "${ac_cv_prog_CC+set}" = set; then
1867 echo $ECHO_N "(cached) $ECHO_C" >&6
1869 if test -n "$CC"; then
1870 ac_cv_prog_CC="$CC" # Let the user override the test.
1872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1876 test -z "$as_dir" && as_dir=.
1877 for ac_exec_ext in '' $ac_executable_extensions; do
1878 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1879 ac_cv_prog_CC="${ac_tool_prefix}cc"
1880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1889 if test -n "$CC"; then
1890 echo "$as_me:$LINENO: result: $CC" >&5
1891 echo "${ECHO_T}$CC" >&6
1893 echo "$as_me:$LINENO: result: no" >&5
1894 echo "${ECHO_T}no" >&6
1898 if test -z "$ac_cv_prog_CC"; then
1900 # Extract the first word of "cc", so it can be a program name with args.
1901 set dummy cc; ac_word=$2
1902 echo "$as_me:$LINENO: checking for $ac_word" >&5
1903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1904 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1905 echo $ECHO_N "(cached) $ECHO_C" >&6
1907 if test -n "$ac_ct_CC"; then
1908 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1914 test -z "$as_dir" && as_dir=.
1915 for ac_exec_ext in '' $ac_executable_extensions; do
1916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1917 ac_cv_prog_ac_ct_CC="cc"
1918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1926 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1927 if test -n "$ac_ct_CC"; then
1928 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1929 echo "${ECHO_T}$ac_ct_CC" >&6
1931 echo "$as_me:$LINENO: result: no" >&5
1932 echo "${ECHO_T}no" >&6
1941 if test -z "$CC"; then
1942 # Extract the first word of "cc", so it can be a program name with args.
1943 set dummy cc; ac_word=$2
1944 echo "$as_me:$LINENO: checking for $ac_word" >&5
1945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1946 if test "${ac_cv_prog_CC+set}" = set; then
1947 echo $ECHO_N "(cached) $ECHO_C" >&6
1949 if test -n "$CC"; then
1950 ac_cv_prog_CC="$CC" # Let the user override the test.
1953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1957 test -z "$as_dir" && as_dir=.
1958 for ac_exec_ext in '' $ac_executable_extensions; do
1959 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1960 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1961 ac_prog_rejected=yes
1965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1971 if test $ac_prog_rejected = yes; then
1972 # We found a bogon in the path, so make sure we never use it.
1973 set dummy $ac_cv_prog_CC
1975 if test $# != 0; then
1976 # We chose a different compiler from the bogus one.
1977 # However, it has the same basename, so the bogon will be chosen
1978 # first if we set CC to just the basename; use the full file name.
1980 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1986 if test -n "$CC"; then
1987 echo "$as_me:$LINENO: result: $CC" >&5
1988 echo "${ECHO_T}$CC" >&6
1990 echo "$as_me:$LINENO: result: no" >&5
1991 echo "${ECHO_T}no" >&6
1995 if test -z "$CC"; then
1996 if test -n "$ac_tool_prefix"; then
1999 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2000 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2001 echo "$as_me:$LINENO: checking for $ac_word" >&5
2002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2003 if test "${ac_cv_prog_CC+set}" = set; then
2004 echo $ECHO_N "(cached) $ECHO_C" >&6
2006 if test -n "$CC"; then
2007 ac_cv_prog_CC="$CC" # Let the user override the test.
2009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2013 test -z "$as_dir" && as_dir=.
2014 for ac_exec_ext in '' $ac_executable_extensions; do
2015 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2016 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2026 if test -n "$CC"; then
2027 echo "$as_me:$LINENO: result: $CC" >&5
2028 echo "${ECHO_T}$CC" >&6
2030 echo "$as_me:$LINENO: result: no" >&5
2031 echo "${ECHO_T}no" >&6
2034 test -n "$CC" && break
2037 if test -z "$CC"; then
2041 # Extract the first word of "$ac_prog", so it can be a program name with args.
2042 set dummy $ac_prog; ac_word=$2
2043 echo "$as_me:$LINENO: checking for $ac_word" >&5
2044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2045 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2046 echo $ECHO_N "(cached) $ECHO_C" >&6
2048 if test -n "$ac_ct_CC"; then
2049 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2055 test -z "$as_dir" && as_dir=.
2056 for ac_exec_ext in '' $ac_executable_extensions; do
2057 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2058 ac_cv_prog_ac_ct_CC="$ac_prog"
2059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2067 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2068 if test -n "$ac_ct_CC"; then
2069 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2070 echo "${ECHO_T}$ac_ct_CC" >&6
2072 echo "$as_me:$LINENO: result: no" >&5
2073 echo "${ECHO_T}no" >&6
2076 test -n "$ac_ct_CC" && break
2085 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2086 See \`config.log' for more details." >&5
2087 echo "$as_me: error: no acceptable C compiler found in \$PATH
2088 See \`config.log' for more details." >&2;}
2089 { (exit 1); exit 1; }; }
2091 # Provide some information about the compiler.
2092 echo "$as_me:$LINENO:" \
2093 "checking for C compiler version" >&5
2094 ac_compiler=`set X $ac_compile; echo $2`
2095 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2096 (eval $ac_compiler --version </dev/null >&5) 2>&5
2098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099 (exit $ac_status); }
2100 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2101 (eval $ac_compiler -v </dev/null >&5) 2>&5
2103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104 (exit $ac_status); }
2105 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2106 (eval $ac_compiler -V </dev/null >&5) 2>&5
2108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2109 (exit $ac_status); }
2111 cat >conftest.$ac_ext <<_ACEOF
2114 cat confdefs.h >>conftest.$ac_ext
2115 cat >>conftest.$ac_ext <<_ACEOF
2116 /* end confdefs.h. */
2126 ac_clean_files_save=$ac_clean_files
2127 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2128 # Try to create an executable without -o first, disregard a.out.
2129 # It will help us diagnose broken compilers, and finding out an intuition
2131 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2132 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2133 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2134 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2135 (eval $ac_link_default) 2>&5
2137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2138 (exit $ac_status); }; then
2139 # Find the output, starting from the most likely. This scheme is
2140 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2143 # Be careful to initialize this variable, since it used to be cached.
2144 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2146 # b.out is created by i960 compilers.
2147 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2149 test -f "$ac_file" || continue
2151 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2154 # This is the source file.
2157 # We found the default executable, but exeext='' is most
2161 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2162 # FIXME: I believe we export ac_cv_exeext for Libtool,
2163 # but it would be cool to find out if it's true. Does anybody
2164 # maintain Libtool? --akim.
2172 echo "$as_me: failed program was:" >&5
2173 sed 's/^/| /' conftest.$ac_ext >&5
2175 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2176 See \`config.log' for more details." >&5
2177 echo "$as_me: error: C compiler cannot create executables
2178 See \`config.log' for more details." >&2;}
2179 { (exit 77); exit 77; }; }
2182 ac_exeext=$ac_cv_exeext
2183 echo "$as_me:$LINENO: result: $ac_file" >&5
2184 echo "${ECHO_T}$ac_file" >&6
2186 # Check the compiler produces executables we can run. If not, either
2187 # the compiler is broken, or we cross compile.
2188 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2189 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2190 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2191 # If not cross compiling, check that we can run a simple program.
2192 if test "$cross_compiling" != yes; then
2193 if { ac_try='./$ac_file'
2194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198 (exit $ac_status); }; }; then
2201 if test "$cross_compiling" = maybe; then
2204 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2205 If you meant to cross compile, use \`--host'.
2206 See \`config.log' for more details." >&5
2207 echo "$as_me: error: cannot run C compiled programs.
2208 If you meant to cross compile, use \`--host'.
2209 See \`config.log' for more details." >&2;}
2210 { (exit 1); exit 1; }; }
2214 echo "$as_me:$LINENO: result: yes" >&5
2215 echo "${ECHO_T}yes" >&6
2217 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2218 ac_clean_files=$ac_clean_files_save
2219 # Check the compiler produces executables we can run. If not, either
2220 # the compiler is broken, or we cross compile.
2221 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2222 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2223 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2224 echo "${ECHO_T}$cross_compiling" >&6
2226 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2227 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2229 (eval $ac_link) 2>&5
2231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232 (exit $ac_status); }; then
2233 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2234 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2235 # work properly (i.e., refer to `conftest.exe'), while it won't with
2237 for ac_file in conftest.exe conftest conftest.*; do
2238 test -f "$ac_file" || continue
2240 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2241 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2248 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2249 See \`config.log' for more details." >&5
2250 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2251 See \`config.log' for more details." >&2;}
2252 { (exit 1); exit 1; }; }
2255 rm -f conftest$ac_cv_exeext
2256 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2257 echo "${ECHO_T}$ac_cv_exeext" >&6
2259 rm -f conftest.$ac_ext
2260 EXEEXT=$ac_cv_exeext
2262 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2263 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2264 if test "${ac_cv_objext+set}" = set; then
2265 echo $ECHO_N "(cached) $ECHO_C" >&6
2267 cat >conftest.$ac_ext <<_ACEOF
2270 cat confdefs.h >>conftest.$ac_ext
2271 cat >>conftest.$ac_ext <<_ACEOF
2272 /* end confdefs.h. */
2282 rm -f conftest.o conftest.obj
2283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2284 (eval $ac_compile) 2>&5
2286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287 (exit $ac_status); }; then
2288 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2290 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2291 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2296 echo "$as_me: failed program was:" >&5
2297 sed 's/^/| /' conftest.$ac_ext >&5
2299 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2300 See \`config.log' for more details." >&5
2301 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2302 See \`config.log' for more details." >&2;}
2303 { (exit 1); exit 1; }; }
2306 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2308 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2309 echo "${ECHO_T}$ac_cv_objext" >&6
2310 OBJEXT=$ac_cv_objext
2312 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2313 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2314 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2315 echo $ECHO_N "(cached) $ECHO_C" >&6
2317 cat >conftest.$ac_ext <<_ACEOF
2320 cat confdefs.h >>conftest.$ac_ext
2321 cat >>conftest.$ac_ext <<_ACEOF
2322 /* end confdefs.h. */
2335 rm -f conftest.$ac_objext
2336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2337 (eval $ac_compile) 2>conftest.er1
2339 grep -v '^ *+' conftest.er1 >conftest.err
2341 cat conftest.err >&5
2342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343 (exit $ac_status); } &&
2344 { ac_try='test -z "$ac_c_werror_flag"
2345 || test ! -s conftest.err'
2346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350 (exit $ac_status); }; } &&
2351 { ac_try='test -s conftest.$ac_objext'
2352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356 (exit $ac_status); }; }; then
2359 echo "$as_me: failed program was:" >&5
2360 sed 's/^/| /' conftest.$ac_ext >&5
2364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2365 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2368 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2369 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2370 GCC=`test $ac_compiler_gnu = yes && echo yes`
2371 ac_test_CFLAGS=${CFLAGS+set}
2372 ac_save_CFLAGS=$CFLAGS
2374 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2375 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2376 if test "${ac_cv_prog_cc_g+set}" = set; then
2377 echo $ECHO_N "(cached) $ECHO_C" >&6
2379 cat >conftest.$ac_ext <<_ACEOF
2382 cat confdefs.h >>conftest.$ac_ext
2383 cat >>conftest.$ac_ext <<_ACEOF
2384 /* end confdefs.h. */
2394 rm -f conftest.$ac_objext
2395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2396 (eval $ac_compile) 2>conftest.er1
2398 grep -v '^ *+' conftest.er1 >conftest.err
2400 cat conftest.err >&5
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); } &&
2403 { ac_try='test -z "$ac_c_werror_flag"
2404 || test ! -s conftest.err'
2405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409 (exit $ac_status); }; } &&
2410 { ac_try='test -s conftest.$ac_objext'
2411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); }; }; then
2418 echo "$as_me: failed program was:" >&5
2419 sed 's/^/| /' conftest.$ac_ext >&5
2423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2425 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2426 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2427 if test "$ac_test_CFLAGS" = set; then
2428 CFLAGS=$ac_save_CFLAGS
2429 elif test $ac_cv_prog_cc_g = yes; then
2430 if test "$GCC" = yes; then
2436 if test "$GCC" = yes; then
2442 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2443 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2444 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2445 echo $ECHO_N "(cached) $ECHO_C" >&6
2447 ac_cv_prog_cc_stdc=no
2449 cat >conftest.$ac_ext <<_ACEOF
2452 cat confdefs.h >>conftest.$ac_ext
2453 cat >>conftest.$ac_ext <<_ACEOF
2454 /* end confdefs.h. */
2457 #include <sys/types.h>
2458 #include <sys/stat.h>
2459 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2460 struct buf { int x; };
2461 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2462 static char *e (p, i)
2468 static char *f (char * (*g) (char **, int), char **p, ...)
2473 s = g (p, va_arg (v,int));
2478 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2479 function prototypes and stuff, but not '\xHH' hex character constants.
2480 These don't provoke an error unfortunately, instead are silently treated
2481 as 'x'. The following induces an error, until -std1 is added to get
2482 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2483 array size at least. It's necessary to write '\x00'==0 to get something
2484 that's true only with -std1. */
2485 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2487 int test (int i, double x);
2488 struct s1 {int (*f) (int a);};
2489 struct s2 {int (*f) (double a);};
2490 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2496 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2501 # Don't try gcc -ansi; that turns off useful extensions and
2502 # breaks some systems' header files.
2503 # AIX -qlanglvl=ansi
2504 # Ultrix and OSF/1 -std1
2505 # HP-UX 10.20 and later -Ae
2506 # HP-UX older versions -Aa -D_HPUX_SOURCE
2507 # SVR4 -Xc -D__EXTENSIONS__
2508 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2510 CC="$ac_save_CC $ac_arg"
2511 rm -f conftest.$ac_objext
2512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2513 (eval $ac_compile) 2>conftest.er1
2515 grep -v '^ *+' conftest.er1 >conftest.err
2517 cat conftest.err >&5
2518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519 (exit $ac_status); } &&
2520 { ac_try='test -z "$ac_c_werror_flag"
2521 || test ! -s conftest.err'
2522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526 (exit $ac_status); }; } &&
2527 { ac_try='test -s conftest.$ac_objext'
2528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532 (exit $ac_status); }; }; then
2533 ac_cv_prog_cc_stdc=$ac_arg
2536 echo "$as_me: failed program was:" >&5
2537 sed 's/^/| /' conftest.$ac_ext >&5
2540 rm -f conftest.err conftest.$ac_objext
2542 rm -f conftest.$ac_ext conftest.$ac_objext
2547 case "x$ac_cv_prog_cc_stdc" in
2549 echo "$as_me:$LINENO: result: none needed" >&5
2550 echo "${ECHO_T}none needed" >&6 ;;
2552 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2553 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2554 CC="$CC $ac_cv_prog_cc_stdc" ;;
2557 # Some people use a C++ compiler to compile C. Since we use `exit',
2558 # in C++ we need to declare it. In case someone uses the same compiler
2559 # for both compiling C and C++ we need to have the C++ compiler decide
2560 # the declaration of exit, since it's the most demanding environment.
2561 cat >conftest.$ac_ext <<_ACEOF
2566 rm -f conftest.$ac_objext
2567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2568 (eval $ac_compile) 2>conftest.er1
2570 grep -v '^ *+' conftest.er1 >conftest.err
2572 cat conftest.err >&5
2573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574 (exit $ac_status); } &&
2575 { ac_try='test -z "$ac_c_werror_flag"
2576 || test ! -s conftest.err'
2577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581 (exit $ac_status); }; } &&
2582 { ac_try='test -s conftest.$ac_objext'
2583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); }; }; then
2588 for ac_declaration in \
2590 'extern "C" void std::exit (int) throw (); using std::exit;' \
2591 'extern "C" void std::exit (int); using std::exit;' \
2592 'extern "C" void exit (int) throw ();' \
2593 'extern "C" void exit (int);' \
2596 cat >conftest.$ac_ext <<_ACEOF
2599 cat confdefs.h >>conftest.$ac_ext
2600 cat >>conftest.$ac_ext <<_ACEOF
2601 /* end confdefs.h. */
2612 rm -f conftest.$ac_objext
2613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2614 (eval $ac_compile) 2>conftest.er1
2616 grep -v '^ *+' conftest.er1 >conftest.err
2618 cat conftest.err >&5
2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620 (exit $ac_status); } &&
2621 { ac_try='test -z "$ac_c_werror_flag"
2622 || test ! -s conftest.err'
2623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627 (exit $ac_status); }; } &&
2628 { ac_try='test -s conftest.$ac_objext'
2629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633 (exit $ac_status); }; }; then
2636 echo "$as_me: failed program was:" >&5
2637 sed 's/^/| /' conftest.$ac_ext >&5
2641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2642 cat >conftest.$ac_ext <<_ACEOF
2645 cat confdefs.h >>conftest.$ac_ext
2646 cat >>conftest.$ac_ext <<_ACEOF
2647 /* end confdefs.h. */
2657 rm -f conftest.$ac_objext
2658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2659 (eval $ac_compile) 2>conftest.er1
2661 grep -v '^ *+' conftest.er1 >conftest.err
2663 cat conftest.err >&5
2664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 (exit $ac_status); } &&
2666 { ac_try='test -z "$ac_c_werror_flag"
2667 || test ! -s conftest.err'
2668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672 (exit $ac_status); }; } &&
2673 { ac_try='test -s conftest.$ac_objext'
2674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678 (exit $ac_status); }; }; then
2681 echo "$as_me: failed program was:" >&5
2682 sed 's/^/| /' conftest.$ac_ext >&5
2685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2688 if test -n "$ac_declaration"; then
2689 echo '#ifdef __cplusplus' >>confdefs.h
2690 echo $ac_declaration >>confdefs.h
2691 echo '#endif' >>confdefs.h
2695 echo "$as_me: failed program was:" >&5
2696 sed 's/^/| /' conftest.$ac_ext >&5
2699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2701 ac_cpp='$CPP $CPPFLAGS'
2702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2705 DEPDIR="${am__leading_dot}deps"
2707 ac_config_commands="$ac_config_commands depfiles"
2710 am_make=${MAKE-make}
2711 cat > confinc << 'END'
2716 # If we don't find an include directive, just comment out the code.
2717 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2718 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2722 # First try GNU make style include.
2723 echo "include confinc" > confmf
2724 # We grep out `Entering directory' and `Leaving directory'
2725 # messages which can occur if `w' ends up in MAKEFLAGS.
2726 # In particular we don't look at `^make:' because GNU make might
2727 # be invoked under some other name (usually "gmake"), in which
2728 # case it prints its new name instead of `make'.
2729 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2734 # Now try BSD make style include.
2735 if test "$am__include" = "#"; then
2736 echo '.include "confinc"' > confmf
2737 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2738 am__include=.include
2745 echo "$as_me:$LINENO: result: $_am_result" >&5
2746 echo "${ECHO_T}$_am_result" >&6
2747 rm -f confinc confmf
2749 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2750 if test "${enable_dependency_tracking+set}" = set; then
2751 enableval="$enable_dependency_tracking"
2754 if test "x$enable_dependency_tracking" != xno; then
2755 am_depcomp="$ac_aux_dir/depcomp"
2760 if test "x$enable_dependency_tracking" != xno; then
2771 depcc="$CC" am_compiler_list=
2773 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2774 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2775 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2776 echo $ECHO_N "(cached) $ECHO_C" >&6
2778 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2779 # We make a subdir and do the tests there. Otherwise we can end up
2780 # making bogus files that we don't know about and never remove. For
2781 # instance it was reported that on HP-UX the gcc test will end up
2782 # making a dummy file named `D' -- because `-MD' means `put the output
2785 # Copy depcomp to subdir because otherwise we won't find it if we're
2786 # using a relative directory.
2787 cp "$am_depcomp" conftest.dir
2789 # We will build objects and dependencies in a subdirectory because
2790 # it helps to detect inapplicable dependency modes. For instance
2791 # both Tru64's cc and ICC support -MD to output dependencies as a
2792 # side effect of compilation, but ICC will put the dependencies in
2793 # the current directory while Tru64 will put them in the object
2797 am_cv_CC_dependencies_compiler_type=none
2798 if test "$am_compiler_list" = ""; then
2799 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2801 for depmode in $am_compiler_list; do
2802 # Setup a source with many dependencies, because some compilers
2803 # like to wrap large dependency lists on column 80 (with \), and
2804 # we should not choose a depcomp mode which is confused by this.
2806 # We need to recreate these files for each test, as the compiler may
2807 # overwrite some of them when testing with obscure command lines.
2808 # This happens at least with the AIX C compiler.
2810 for i in 1 2 3 4 5 6; do
2811 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2812 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2813 # Solaris 8's {/usr,}/bin/sh.
2814 touch sub/conftst$i.h
2816 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2820 # after this tag, mechanisms are not by side-effect, so they'll
2821 # only be used when explicitly requested
2822 if test "x$enable_dependency_tracking" = xyes; then
2830 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2831 # mode. It turns out that the SunPro C++ compiler does not properly
2832 # handle `-M -o', and we need to detect this.
2833 if depmode=$depmode \
2834 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2835 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2836 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2837 >/dev/null 2>conftest.err &&
2838 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2839 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2840 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2841 # icc doesn't choke on unknown options, it will just issue warnings
2842 # or remarks (even with -Werror). So we grep stderr for any message
2843 # that says an option was ignored or not supported.
2844 # When given -MP, icc 7.0 and 7.1 complain thusly:
2845 # icc: Command line warning: ignoring option '-M'; no argument required
2846 # The diagnosis changed in icc 8.0:
2847 # icc: Command line remark: option '-MP' not supported
2848 if (grep 'ignoring option' conftest.err ||
2849 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2850 am_cv_CC_dependencies_compiler_type=$depmode
2859 am_cv_CC_dependencies_compiler_type=none
2863 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2864 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2865 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2870 test "x$enable_dependency_tracking" != xno \
2871 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2873 am__fastdepCC_FALSE='#'
2875 am__fastdepCC_TRUE='#'
2876 am__fastdepCC_FALSE=
2882 ac_cpp='$CPP $CPPFLAGS'
2883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2886 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2887 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2888 # On Suns, sometimes $CPP names a directory.
2889 if test -n "$CPP" && test -d "$CPP"; then
2892 if test -z "$CPP"; then
2893 if test "${ac_cv_prog_CPP+set}" = set; then
2894 echo $ECHO_N "(cached) $ECHO_C" >&6
2896 # Double quotes because CPP needs to be expanded
2897 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2900 for ac_c_preproc_warn_flag in '' yes
2902 # Use a header file that comes with gcc, so configuring glibc
2903 # with a fresh cross-compiler works.
2904 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2905 # <limits.h> exists even on freestanding compilers.
2906 # On the NeXT, cc -E runs the code through the compiler's parser,
2907 # not just through cpp. "Syntax error" is here to catch this case.
2908 cat >conftest.$ac_ext <<_ACEOF
2911 cat confdefs.h >>conftest.$ac_ext
2912 cat >>conftest.$ac_ext <<_ACEOF
2913 /* end confdefs.h. */
2915 # include <limits.h>
2917 # include <assert.h>
2921 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2922 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2924 grep -v '^ *+' conftest.er1 >conftest.err
2926 cat conftest.err >&5
2927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928 (exit $ac_status); } >/dev/null; then
2929 if test -s conftest.err; then
2930 ac_cpp_err=$ac_c_preproc_warn_flag
2931 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2938 if test -z "$ac_cpp_err"; then
2941 echo "$as_me: failed program was:" >&5
2942 sed 's/^/| /' conftest.$ac_ext >&5
2944 # Broken: fails on valid input.
2947 rm -f conftest.err conftest.$ac_ext
2949 # OK, works on sane cases. Now check whether non-existent headers
2950 # can be detected and how.
2951 cat >conftest.$ac_ext <<_ACEOF
2954 cat confdefs.h >>conftest.$ac_ext
2955 cat >>conftest.$ac_ext <<_ACEOF
2956 /* end confdefs.h. */
2957 #include <ac_nonexistent.h>
2959 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2960 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2962 grep -v '^ *+' conftest.er1 >conftest.err
2964 cat conftest.err >&5
2965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966 (exit $ac_status); } >/dev/null; then
2967 if test -s conftest.err; then
2968 ac_cpp_err=$ac_c_preproc_warn_flag
2969 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2976 if test -z "$ac_cpp_err"; then
2977 # Broken: success on invalid input.
2980 echo "$as_me: failed program was:" >&5
2981 sed 's/^/| /' conftest.$ac_ext >&5
2983 # Passes both tests.
2987 rm -f conftest.err conftest.$ac_ext
2990 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2991 rm -f conftest.err conftest.$ac_ext
2992 if $ac_preproc_ok; then
3004 echo "$as_me:$LINENO: result: $CPP" >&5
3005 echo "${ECHO_T}$CPP" >&6
3007 for ac_c_preproc_warn_flag in '' yes
3009 # Use a header file that comes with gcc, so configuring glibc
3010 # with a fresh cross-compiler works.
3011 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3012 # <limits.h> exists even on freestanding compilers.
3013 # On the NeXT, cc -E runs the code through the compiler's parser,
3014 # not just through cpp. "Syntax error" is here to catch this case.
3015 cat >conftest.$ac_ext <<_ACEOF
3018 cat confdefs.h >>conftest.$ac_ext
3019 cat >>conftest.$ac_ext <<_ACEOF
3020 /* end confdefs.h. */
3022 # include <limits.h>
3024 # include <assert.h>
3028 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3029 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3031 grep -v '^ *+' conftest.er1 >conftest.err
3033 cat conftest.err >&5
3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035 (exit $ac_status); } >/dev/null; then
3036 if test -s conftest.err; then
3037 ac_cpp_err=$ac_c_preproc_warn_flag
3038 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3045 if test -z "$ac_cpp_err"; then
3048 echo "$as_me: failed program was:" >&5
3049 sed 's/^/| /' conftest.$ac_ext >&5
3051 # Broken: fails on valid input.
3054 rm -f conftest.err conftest.$ac_ext
3056 # OK, works on sane cases. Now check whether non-existent headers
3057 # can be detected and how.
3058 cat >conftest.$ac_ext <<_ACEOF
3061 cat confdefs.h >>conftest.$ac_ext
3062 cat >>conftest.$ac_ext <<_ACEOF
3063 /* end confdefs.h. */
3064 #include <ac_nonexistent.h>
3066 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3067 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3069 grep -v '^ *+' conftest.er1 >conftest.err
3071 cat conftest.err >&5
3072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073 (exit $ac_status); } >/dev/null; then
3074 if test -s conftest.err; then
3075 ac_cpp_err=$ac_c_preproc_warn_flag
3076 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3083 if test -z "$ac_cpp_err"; then
3084 # Broken: success on invalid input.
3087 echo "$as_me: failed program was:" >&5
3088 sed 's/^/| /' conftest.$ac_ext >&5
3090 # Passes both tests.
3094 rm -f conftest.err conftest.$ac_ext
3097 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3098 rm -f conftest.err conftest.$ac_ext
3099 if $ac_preproc_ok; then
3102 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3103 See \`config.log' for more details." >&5
3104 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3105 See \`config.log' for more details." >&2;}
3106 { (exit 1); exit 1; }; }
3110 ac_cpp='$CPP $CPPFLAGS'
3111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3116 echo "$as_me:$LINENO: checking for egrep" >&5
3117 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3118 if test "${ac_cv_prog_egrep+set}" = set; then
3119 echo $ECHO_N "(cached) $ECHO_C" >&6
3121 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3122 then ac_cv_prog_egrep='grep -E'
3123 else ac_cv_prog_egrep='egrep'
3126 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3127 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3128 EGREP=$ac_cv_prog_egrep
3131 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3132 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3133 if test "${ac_cv_header_stdc+set}" = set; then
3134 echo $ECHO_N "(cached) $ECHO_C" >&6
3136 cat >conftest.$ac_ext <<_ACEOF
3139 cat confdefs.h >>conftest.$ac_ext
3140 cat >>conftest.$ac_ext <<_ACEOF
3141 /* end confdefs.h. */
3155 rm -f conftest.$ac_objext
3156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3157 (eval $ac_compile) 2>conftest.er1
3159 grep -v '^ *+' conftest.er1 >conftest.err
3161 cat conftest.err >&5
3162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163 (exit $ac_status); } &&
3164 { ac_try='test -z "$ac_c_werror_flag"
3165 || test ! -s conftest.err'
3166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); }; } &&
3171 { ac_try='test -s conftest.$ac_objext'
3172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); }; }; then
3177 ac_cv_header_stdc=yes
3179 echo "$as_me: failed program was:" >&5
3180 sed 's/^/| /' conftest.$ac_ext >&5
3182 ac_cv_header_stdc=no
3184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3186 if test $ac_cv_header_stdc = yes; then
3187 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3188 cat >conftest.$ac_ext <<_ACEOF
3191 cat confdefs.h >>conftest.$ac_ext
3192 cat >>conftest.$ac_ext <<_ACEOF
3193 /* end confdefs.h. */
3197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3198 $EGREP "memchr" >/dev/null 2>&1; then
3201 ac_cv_header_stdc=no
3207 if test $ac_cv_header_stdc = yes; then
3208 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3209 cat >conftest.$ac_ext <<_ACEOF
3212 cat confdefs.h >>conftest.$ac_ext
3213 cat >>conftest.$ac_ext <<_ACEOF
3214 /* end confdefs.h. */
3218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3219 $EGREP "free" >/dev/null 2>&1; then
3222 ac_cv_header_stdc=no
3228 if test $ac_cv_header_stdc = yes; then
3229 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3230 if test "$cross_compiling" = yes; then
3233 cat >conftest.$ac_ext <<_ACEOF
3236 cat confdefs.h >>conftest.$ac_ext
3237 cat >>conftest.$ac_ext <<_ACEOF
3238 /* end confdefs.h. */
3240 #if ((' ' & 0x0FF) == 0x020)
3241 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3242 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3244 # define ISLOWER(c) \
3245 (('a' <= (c) && (c) <= 'i') \
3246 || ('j' <= (c) && (c) <= 'r') \
3247 || ('s' <= (c) && (c) <= 'z'))
3248 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3251 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3256 for (i = 0; i < 256; i++)
3257 if (XOR (islower (i), ISLOWER (i))
3258 || toupper (i) != TOUPPER (i))
3263 rm -f conftest$ac_exeext
3264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3265 (eval $ac_link) 2>&5
3267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273 (exit $ac_status); }; }; then
3276 echo "$as_me: program exited with status $ac_status" >&5
3277 echo "$as_me: failed program was:" >&5
3278 sed 's/^/| /' conftest.$ac_ext >&5
3281 ac_cv_header_stdc=no
3283 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3287 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3288 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3289 if test $ac_cv_header_stdc = yes; then
3291 cat >>confdefs.h <<\_ACEOF
3292 #define STDC_HEADERS 1
3297 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3307 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3308 inttypes.h stdint.h unistd.h
3310 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3311 echo "$as_me:$LINENO: checking for $ac_header" >&5
3312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3314 echo $ECHO_N "(cached) $ECHO_C" >&6
3316 cat >conftest.$ac_ext <<_ACEOF
3319 cat confdefs.h >>conftest.$ac_ext
3320 cat >>conftest.$ac_ext <<_ACEOF
3321 /* end confdefs.h. */
3322 $ac_includes_default
3324 #include <$ac_header>
3326 rm -f conftest.$ac_objext
3327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3328 (eval $ac_compile) 2>conftest.er1
3330 grep -v '^ *+' conftest.er1 >conftest.err
3332 cat conftest.err >&5
3333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334 (exit $ac_status); } &&
3335 { ac_try='test -z "$ac_c_werror_flag"
3336 || test ! -s conftest.err'
3337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341 (exit $ac_status); }; } &&
3342 { ac_try='test -s conftest.$ac_objext'
3343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); }; }; then
3348 eval "$as_ac_Header=yes"
3350 echo "$as_me: failed program was:" >&5
3351 sed 's/^/| /' conftest.$ac_ext >&5
3353 eval "$as_ac_Header=no"
3355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3358 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3359 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3360 cat >>confdefs.h <<_ACEOF
3361 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3369 if test "${ac_cv_header_minix_config_h+set}" = set; then
3370 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3371 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3372 if test "${ac_cv_header_minix_config_h+set}" = set; then
3373 echo $ECHO_N "(cached) $ECHO_C" >&6
3375 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3376 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3378 # Is the header compilable?
3379 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3380 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3381 cat >conftest.$ac_ext <<_ACEOF
3384 cat confdefs.h >>conftest.$ac_ext
3385 cat >>conftest.$ac_ext <<_ACEOF
3386 /* end confdefs.h. */
3387 $ac_includes_default
3388 #include <minix/config.h>
3390 rm -f conftest.$ac_objext
3391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3392 (eval $ac_compile) 2>conftest.er1
3394 grep -v '^ *+' conftest.er1 >conftest.err
3396 cat conftest.err >&5
3397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398 (exit $ac_status); } &&
3399 { ac_try='test -z "$ac_c_werror_flag"
3400 || test ! -s conftest.err'
3401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); }; } &&
3406 { ac_try='test -s conftest.$ac_objext'
3407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411 (exit $ac_status); }; }; then
3412 ac_header_compiler=yes
3414 echo "$as_me: failed program was:" >&5
3415 sed 's/^/| /' conftest.$ac_ext >&5
3417 ac_header_compiler=no
3419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3420 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3421 echo "${ECHO_T}$ac_header_compiler" >&6
3423 # Is the header present?
3424 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3425 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3426 cat >conftest.$ac_ext <<_ACEOF
3429 cat confdefs.h >>conftest.$ac_ext
3430 cat >>conftest.$ac_ext <<_ACEOF
3431 /* end confdefs.h. */
3432 #include <minix/config.h>
3434 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3435 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3437 grep -v '^ *+' conftest.er1 >conftest.err
3439 cat conftest.err >&5
3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); } >/dev/null; then
3442 if test -s conftest.err; then
3443 ac_cpp_err=$ac_c_preproc_warn_flag
3444 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3451 if test -z "$ac_cpp_err"; then
3452 ac_header_preproc=yes
3454 echo "$as_me: failed program was:" >&5
3455 sed 's/^/| /' conftest.$ac_ext >&5
3457 ac_header_preproc=no
3459 rm -f conftest.err conftest.$ac_ext
3460 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3461 echo "${ECHO_T}$ac_header_preproc" >&6
3463 # So? What about this header?
3464 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3466 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3467 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3468 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3469 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3470 ac_header_preproc=yes
3473 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3474 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3475 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3476 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3477 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3478 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3479 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3480 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3481 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3482 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3483 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3484 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3487 ## ----------------------------- ##
3488 ## Report this to the bc lists. ##
3489 ## ----------------------------- ##
3492 sed "s/^/$as_me: WARNING: /" >&2
3495 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3496 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3497 if test "${ac_cv_header_minix_config_h+set}" = set; then
3498 echo $ECHO_N "(cached) $ECHO_C" >&6
3500 ac_cv_header_minix_config_h=$ac_header_preproc
3502 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3503 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3506 if test $ac_cv_header_minix_config_h = yes; then
3513 if test "$MINIX" = yes; then
3515 cat >>confdefs.h <<\_ACEOF
3516 #define _POSIX_SOURCE 1
3520 cat >>confdefs.h <<\_ACEOF
3521 #define _POSIX_1_SOURCE 2
3525 cat >>confdefs.h <<\_ACEOF
3532 for ac_prog in flex lex
3534 # Extract the first word of "$ac_prog", so it can be a program name with args.
3535 set dummy $ac_prog; ac_word=$2
3536 echo "$as_me:$LINENO: checking for $ac_word" >&5
3537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3538 if test "${ac_cv_prog_LEX+set}" = set; then
3539 echo $ECHO_N "(cached) $ECHO_C" >&6
3541 if test -n "$LEX"; then
3542 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3548 test -z "$as_dir" && as_dir=.
3549 for ac_exec_ext in '' $ac_executable_extensions; do
3550 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3551 ac_cv_prog_LEX="$ac_prog"
3552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3561 if test -n "$LEX"; then
3562 echo "$as_me:$LINENO: result: $LEX" >&5
3563 echo "${ECHO_T}$LEX" >&6
3565 echo "$as_me:$LINENO: result: no" >&5
3566 echo "${ECHO_T}no" >&6
3569 test -n "$LEX" && break
3571 test -n "$LEX" || LEX=":"
3573 if test -z "$LEXLIB"
3575 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3576 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3577 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3578 echo $ECHO_N "(cached) $ECHO_C" >&6
3580 ac_check_lib_save_LIBS=$LIBS
3582 cat >conftest.$ac_ext <<_ACEOF
3585 cat confdefs.h >>conftest.$ac_ext
3586 cat >>conftest.$ac_ext <<_ACEOF
3587 /* end confdefs.h. */
3589 /* Override any gcc2 internal prototype to avoid an error. */
3593 /* We use char because int might match the return type of a gcc2
3594 builtin and then its argument prototype would still apply. */
3604 rm -f conftest.$ac_objext conftest$ac_exeext
3605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3606 (eval $ac_link) 2>conftest.er1
3608 grep -v '^ *+' conftest.er1 >conftest.err
3610 cat conftest.err >&5
3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612 (exit $ac_status); } &&
3613 { ac_try='test -z "$ac_c_werror_flag"
3614 || test ! -s conftest.err'
3615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619 (exit $ac_status); }; } &&
3620 { ac_try='test -s conftest$ac_exeext'
3621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625 (exit $ac_status); }; }; then
3626 ac_cv_lib_fl_yywrap=yes
3628 echo "$as_me: failed program was:" >&5
3629 sed 's/^/| /' conftest.$ac_ext >&5
3631 ac_cv_lib_fl_yywrap=no
3633 rm -f conftest.err conftest.$ac_objext \
3634 conftest$ac_exeext conftest.$ac_ext
3635 LIBS=$ac_check_lib_save_LIBS
3637 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3638 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3639 if test $ac_cv_lib_fl_yywrap = yes; then
3642 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3643 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3644 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3645 echo $ECHO_N "(cached) $ECHO_C" >&6
3647 ac_check_lib_save_LIBS=$LIBS
3649 cat >conftest.$ac_ext <<_ACEOF
3652 cat confdefs.h >>conftest.$ac_ext
3653 cat >>conftest.$ac_ext <<_ACEOF
3654 /* end confdefs.h. */
3656 /* Override any gcc2 internal prototype to avoid an error. */
3660 /* We use char because int might match the return type of a gcc2
3661 builtin and then its argument prototype would still apply. */
3671 rm -f conftest.$ac_objext conftest$ac_exeext
3672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3673 (eval $ac_link) 2>conftest.er1
3675 grep -v '^ *+' conftest.er1 >conftest.err
3677 cat conftest.err >&5
3678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679 (exit $ac_status); } &&
3680 { ac_try='test -z "$ac_c_werror_flag"
3681 || test ! -s conftest.err'
3682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686 (exit $ac_status); }; } &&
3687 { ac_try='test -s conftest$ac_exeext'
3688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692 (exit $ac_status); }; }; then
3693 ac_cv_lib_l_yywrap=yes
3695 echo "$as_me: failed program was:" >&5
3696 sed 's/^/| /' conftest.$ac_ext >&5
3698 ac_cv_lib_l_yywrap=no
3700 rm -f conftest.err conftest.$ac_objext \
3701 conftest$ac_exeext conftest.$ac_ext
3702 LIBS=$ac_check_lib_save_LIBS
3704 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3705 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3706 if test $ac_cv_lib_l_yywrap = yes; then
3714 if test "x$LEX" != "x:"; then
3715 echo "$as_me:$LINENO: checking lex output file root" >&5
3716 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3717 if test "${ac_cv_prog_lex_root+set}" = set; then
3718 echo $ECHO_N "(cached) $ECHO_C" >&6
3720 # The minimal lex program is just a single line: %%. But some broken lexes
3721 # (Solaris, I think it was) want two %% lines, so accommodate them.
3722 cat >conftest.l <<_ACEOF
3726 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3727 (eval $LEX conftest.l) 2>&5
3729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730 (exit $ac_status); }
3731 if test -f lex.yy.c; then
3732 ac_cv_prog_lex_root=lex.yy
3733 elif test -f lexyy.c; then
3734 ac_cv_prog_lex_root=lexyy
3736 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3737 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3738 { (exit 1); exit 1; }; }
3741 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3742 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3744 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3746 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3747 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3748 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3749 echo $ECHO_N "(cached) $ECHO_C" >&6
3751 # POSIX says lex can declare yytext either as a pointer or an array; the
3752 # default is implementation-dependent. Figure out which it is, since
3753 # not all implementations provide the %pointer and %array declarations.
3754 ac_cv_prog_lex_yytext_pointer=no
3755 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3757 LIBS="$LIBS $LEXLIB"
3758 cat >conftest.$ac_ext <<_ACEOF
3759 `cat $LEX_OUTPUT_ROOT.c`
3761 rm -f conftest.$ac_objext conftest$ac_exeext
3762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3763 (eval $ac_link) 2>conftest.er1
3765 grep -v '^ *+' conftest.er1 >conftest.err
3767 cat conftest.err >&5
3768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3769 (exit $ac_status); } &&
3770 { ac_try='test -z "$ac_c_werror_flag"
3771 || test ! -s conftest.err'
3772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776 (exit $ac_status); }; } &&
3777 { ac_try='test -s conftest$ac_exeext'
3778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782 (exit $ac_status); }; }; then
3783 ac_cv_prog_lex_yytext_pointer=yes
3785 echo "$as_me: failed program was:" >&5
3786 sed 's/^/| /' conftest.$ac_ext >&5
3789 rm -f conftest.err conftest.$ac_objext \
3790 conftest$ac_exeext conftest.$ac_ext
3792 rm -f "${LEX_OUTPUT_ROOT}.c"
3795 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3796 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3797 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3799 cat >>confdefs.h <<\_ACEOF
3800 #define YYTEXT_POINTER 1
3806 if test "$LEX" = :; then
3807 LEX=${am_missing_run}flex
3809 for ac_prog in 'bison -y' byacc
3811 # Extract the first word of "$ac_prog", so it can be a program name with args.
3812 set dummy $ac_prog; ac_word=$2
3813 echo "$as_me:$LINENO: checking for $ac_word" >&5
3814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3815 if test "${ac_cv_prog_YACC+set}" = set; then
3816 echo $ECHO_N "(cached) $ECHO_C" >&6
3818 if test -n "$YACC"; then
3819 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3825 test -z "$as_dir" && as_dir=.
3826 for ac_exec_ext in '' $ac_executable_extensions; do
3827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3828 ac_cv_prog_YACC="$ac_prog"
3829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3837 YACC=$ac_cv_prog_YACC
3838 if test -n "$YACC"; then
3839 echo "$as_me:$LINENO: result: $YACC" >&5
3840 echo "${ECHO_T}$YACC" >&6
3842 echo "$as_me:$LINENO: result: no" >&5
3843 echo "${ECHO_T}no" >&6
3846 test -n "$YACC" && break
3848 test -n "$YACC" || YACC="yacc"
3850 # Find a good install program. We prefer a C program (faster),
3851 # so one script is as good as another. But avoid the broken or
3852 # incompatible versions:
3853 # SysV /etc/install, /usr/sbin/install
3854 # SunOS /usr/etc/install
3855 # IRIX /sbin/install
3857 # AmigaOS /C/install, which installs bootblocks on floppy discs
3858 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3859 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3860 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3861 # OS/2's system install, which has a completely different semantic
3862 # ./install, which can be erroneously created by make from ./install.sh.
3863 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3864 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3865 if test -z "$INSTALL"; then
3866 if test "${ac_cv_path_install+set}" = set; then
3867 echo $ECHO_N "(cached) $ECHO_C" >&6
3869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3873 test -z "$as_dir" && as_dir=.
3874 # Account for people who put trailing slashes in PATH elements.
3876 ./ | .// | /cC/* | \
3877 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3878 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3881 # OSF1 and SCO ODT 3.0 have their own names for install.
3882 # Don't use installbsd from OSF since it installs stuff as root
3884 for ac_prog in ginstall scoinst install; do
3885 for ac_exec_ext in '' $ac_executable_extensions; do
3886 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3887 if test $ac_prog = install &&
3888 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3889 # AIX install. It has an incompatible calling convention.
3891 elif test $ac_prog = install &&
3892 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3893 # program-specific install script used by HP pwplus--don't use.
3896 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3908 if test "${ac_cv_path_install+set}" = set; then
3909 INSTALL=$ac_cv_path_install
3911 # As a last resort, use the slow shell script. We don't cache a
3912 # path for INSTALL within a source directory, because that will
3913 # break other packages using the cache if that directory is
3914 # removed, or if the path is relative.
3915 INSTALL=$ac_install_sh
3918 echo "$as_me:$LINENO: result: $INSTALL" >&5
3919 echo "${ECHO_T}$INSTALL" >&6
3921 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3922 # It thinks the first close brace ends the variable substitution.
3923 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3925 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3927 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3929 if test -n "$ac_tool_prefix"; then
3930 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3931 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3932 echo "$as_me:$LINENO: checking for $ac_word" >&5
3933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3934 if test "${ac_cv_prog_RANLIB+set}" = set; then
3935 echo $ECHO_N "(cached) $ECHO_C" >&6
3937 if test -n "$RANLIB"; then
3938 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3944 test -z "$as_dir" && as_dir=.
3945 for ac_exec_ext in '' $ac_executable_extensions; do
3946 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3947 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3956 RANLIB=$ac_cv_prog_RANLIB
3957 if test -n "$RANLIB"; then
3958 echo "$as_me:$LINENO: result: $RANLIB" >&5
3959 echo "${ECHO_T}$RANLIB" >&6
3961 echo "$as_me:$LINENO: result: no" >&5
3962 echo "${ECHO_T}no" >&6
3966 if test -z "$ac_cv_prog_RANLIB"; then
3967 ac_ct_RANLIB=$RANLIB
3968 # Extract the first word of "ranlib", so it can be a program name with args.
3969 set dummy ranlib; ac_word=$2
3970 echo "$as_me:$LINENO: checking for $ac_word" >&5
3971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3972 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3973 echo $ECHO_N "(cached) $ECHO_C" >&6
3975 if test -n "$ac_ct_RANLIB"; then
3976 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3982 test -z "$as_dir" && as_dir=.
3983 for ac_exec_ext in '' $ac_executable_extensions; do
3984 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3985 ac_cv_prog_ac_ct_RANLIB="ranlib"
3986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3992 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3995 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3996 if test -n "$ac_ct_RANLIB"; then
3997 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3998 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4000 echo "$as_me:$LINENO: result: no" >&5
4001 echo "${ECHO_T}no" >&6
4004 RANLIB=$ac_ct_RANLIB
4006 RANLIB="$ac_cv_prog_RANLIB"
4009 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4010 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4011 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4012 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4013 echo $ECHO_N "(cached) $ECHO_C" >&6
4015 cat >conftest.make <<\_ACEOF
4017 @echo 'ac_maketemp="$(MAKE)"'
4019 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4020 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4021 if test -n "$ac_maketemp"; then
4022 eval ac_cv_prog_make_${ac_make}_set=yes
4024 eval ac_cv_prog_make_${ac_make}_set=no
4028 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4029 echo "$as_me:$LINENO: result: yes" >&5
4030 echo "${ECHO_T}yes" >&6
4033 echo "$as_me:$LINENO: result: no" >&5
4034 echo "${ECHO_T}no" >&6
4035 SET_MAKE="MAKE=${MAKE-make}"
4047 for ac_header in stdarg.h stddef.h stdlib.h string.h errno.h limits.h unistd.h lib.h
4049 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4050 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4051 echo "$as_me:$LINENO: checking for $ac_header" >&5
4052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4053 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4054 echo $ECHO_N "(cached) $ECHO_C" >&6
4056 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4057 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4059 # Is the header compilable?
4060 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4061 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4062 cat >conftest.$ac_ext <<_ACEOF
4065 cat confdefs.h >>conftest.$ac_ext
4066 cat >>conftest.$ac_ext <<_ACEOF
4067 /* end confdefs.h. */
4068 $ac_includes_default
4069 #include <$ac_header>
4071 rm -f conftest.$ac_objext
4072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4073 (eval $ac_compile) 2>conftest.er1
4075 grep -v '^ *+' conftest.er1 >conftest.err
4077 cat conftest.err >&5
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); } &&
4080 { ac_try='test -z "$ac_c_werror_flag"
4081 || test ! -s conftest.err'
4082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); }; } &&
4087 { ac_try='test -s conftest.$ac_objext'
4088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); }; }; then
4093 ac_header_compiler=yes
4095 echo "$as_me: failed program was:" >&5
4096 sed 's/^/| /' conftest.$ac_ext >&5
4098 ac_header_compiler=no
4100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4101 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4102 echo "${ECHO_T}$ac_header_compiler" >&6
4104 # Is the header present?
4105 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4106 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4107 cat >conftest.$ac_ext <<_ACEOF
4110 cat confdefs.h >>conftest.$ac_ext
4111 cat >>conftest.$ac_ext <<_ACEOF
4112 /* end confdefs.h. */
4113 #include <$ac_header>
4115 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4116 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4118 grep -v '^ *+' conftest.er1 >conftest.err
4120 cat conftest.err >&5
4121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122 (exit $ac_status); } >/dev/null; then
4123 if test -s conftest.err; then
4124 ac_cpp_err=$ac_c_preproc_warn_flag
4125 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4132 if test -z "$ac_cpp_err"; then
4133 ac_header_preproc=yes
4135 echo "$as_me: failed program was:" >&5
4136 sed 's/^/| /' conftest.$ac_ext >&5
4138 ac_header_preproc=no
4140 rm -f conftest.err conftest.$ac_ext
4141 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4142 echo "${ECHO_T}$ac_header_preproc" >&6
4144 # So? What about this header?
4145 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4147 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4148 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4149 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4150 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4151 ac_header_preproc=yes
4154 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4155 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4156 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4157 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4158 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4159 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4160 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4161 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4162 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4163 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4164 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4165 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4168 ## ----------------------------- ##
4169 ## Report this to the bc lists. ##
4170 ## ----------------------------- ##
4173 sed "s/^/$as_me: WARNING: /" >&2
4176 echo "$as_me:$LINENO: checking for $ac_header" >&5
4177 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4178 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4179 echo $ECHO_N "(cached) $ECHO_C" >&6
4181 eval "$as_ac_Header=\$ac_header_preproc"
4183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4184 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4187 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4188 cat >>confdefs.h <<_ACEOF
4189 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4196 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4197 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4198 if test "${ac_cv_c_const+set}" = set; then
4199 echo $ECHO_N "(cached) $ECHO_C" >&6
4201 cat >conftest.$ac_ext <<_ACEOF
4204 cat confdefs.h >>conftest.$ac_ext
4205 cat >>conftest.$ac_ext <<_ACEOF
4206 /* end confdefs.h. */
4211 /* FIXME: Include the comments suggested by Paul. */
4213 /* Ultrix mips cc rejects this. */
4214 typedef int charset[2];
4216 /* SunOS 4.1.1 cc rejects this. */
4217 char const *const *ccp;
4219 /* NEC SVR4.0.2 mips cc rejects this. */
4220 struct point {int x, y;};
4221 static struct point const zero = {0,0};
4222 /* AIX XL C 1.02.0.0 rejects this.
4223 It does not let you subtract one const X* pointer from another in
4224 an arm of an if-expression whose if-part is not a constant
4226 const char *g = "string";
4227 ccp = &g + (g ? g-g : 0);
4228 /* HPUX 7.0 cc rejects these. */
4231 ccp = (char const *const *) p;
4232 { /* SCO 3.2v4 cc rejects this. */
4234 char const *s = 0 ? (char *) 0 : (char const *) 0;
4238 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4240 const int *foo = &x[0];
4243 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4244 typedef const int *iptr;
4248 { /* AIX XL C 1.02.0.0 rejects this saying
4249 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4250 struct s { int j; const int *ap[3]; };
4251 struct s *b; b->j = 5;
4253 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4262 rm -f conftest.$ac_objext
4263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4264 (eval $ac_compile) 2>conftest.er1
4266 grep -v '^ *+' conftest.er1 >conftest.err
4268 cat conftest.err >&5
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); } &&
4271 { ac_try='test -z "$ac_c_werror_flag"
4272 || test ! -s conftest.err'
4273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277 (exit $ac_status); }; } &&
4278 { ac_try='test -s conftest.$ac_objext'
4279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283 (exit $ac_status); }; }; then
4286 echo "$as_me: failed program was:" >&5
4287 sed 's/^/| /' conftest.$ac_ext >&5
4291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4293 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4294 echo "${ECHO_T}$ac_cv_c_const" >&6
4295 if test $ac_cv_c_const = no; then
4297 cat >>confdefs.h <<\_ACEOF
4303 echo "$as_me:$LINENO: checking for size_t" >&5
4304 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4305 if test "${ac_cv_type_size_t+set}" = set; then
4306 echo $ECHO_N "(cached) $ECHO_C" >&6
4308 cat >conftest.$ac_ext <<_ACEOF
4311 cat confdefs.h >>conftest.$ac_ext
4312 cat >>conftest.$ac_ext <<_ACEOF
4313 /* end confdefs.h. */
4314 $ac_includes_default
4320 if (sizeof (size_t))
4326 rm -f conftest.$ac_objext
4327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4328 (eval $ac_compile) 2>conftest.er1
4330 grep -v '^ *+' conftest.er1 >conftest.err
4332 cat conftest.err >&5
4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334 (exit $ac_status); } &&
4335 { ac_try='test -z "$ac_c_werror_flag"
4336 || test ! -s conftest.err'
4337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341 (exit $ac_status); }; } &&
4342 { ac_try='test -s conftest.$ac_objext'
4343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347 (exit $ac_status); }; }; then
4348 ac_cv_type_size_t=yes
4350 echo "$as_me: failed program was:" >&5
4351 sed 's/^/| /' conftest.$ac_ext >&5
4353 ac_cv_type_size_t=no
4355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4357 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4358 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4359 if test $ac_cv_type_size_t = yes; then
4363 cat >>confdefs.h <<_ACEOF
4364 #define size_t unsigned
4369 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
4370 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
4371 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
4372 echo $ECHO_N "(cached) $ECHO_C" >&6
4374 cat >conftest.$ac_ext <<_ACEOF
4377 cat confdefs.h >>conftest.$ac_ext
4378 cat >>conftest.$ac_ext <<_ACEOF
4379 /* end confdefs.h. */
4380 $ac_includes_default
4384 if ((ptrdiff_t *) 0)
4386 if (sizeof (ptrdiff_t))
4392 rm -f conftest.$ac_objext
4393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4394 (eval $ac_compile) 2>conftest.er1
4396 grep -v '^ *+' conftest.er1 >conftest.err
4398 cat conftest.err >&5
4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400 (exit $ac_status); } &&
4401 { ac_try='test -z "$ac_c_werror_flag"
4402 || test ! -s conftest.err'
4403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407 (exit $ac_status); }; } &&
4408 { ac_try='test -s conftest.$ac_objext'
4409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413 (exit $ac_status); }; }; then
4414 ac_cv_type_ptrdiff_t=yes
4416 echo "$as_me: failed program was:" >&5
4417 sed 's/^/| /' conftest.$ac_ext >&5
4419 ac_cv_type_ptrdiff_t=no
4421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4423 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
4424 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
4425 if test $ac_cv_type_ptrdiff_t = yes; then
4429 cat >>confdefs.h <<_ACEOF
4430 #define ptrdiff_t size_t
4437 for ac_func in vprintf
4439 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4440 echo "$as_me:$LINENO: checking for $ac_func" >&5
4441 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4442 if eval "test \"\${$as_ac_var+set}\" = set"; then
4443 echo $ECHO_N "(cached) $ECHO_C" >&6
4445 cat >conftest.$ac_ext <<_ACEOF
4448 cat confdefs.h >>conftest.$ac_ext
4449 cat >>conftest.$ac_ext <<_ACEOF
4450 /* end confdefs.h. */
4451 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4452 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4453 #define $ac_func innocuous_$ac_func
4455 /* System header to define __stub macros and hopefully few prototypes,
4456 which can conflict with char $ac_func (); below.
4457 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4458 <limits.h> exists even on freestanding compilers. */
4461 # include <limits.h>
4463 # include <assert.h>
4468 /* Override any gcc2 internal prototype to avoid an error. */
4473 /* We use char because int might match the return type of a gcc2
4474 builtin and then its argument prototype would still apply. */
4476 /* The GNU C library defines this for functions which it implements
4477 to always fail with ENOSYS. Some functions are actually named
4478 something starting with __ and the normal name is an alias. */
4479 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4482 char (*f) () = $ac_func;
4491 return f != $ac_func;
4496 rm -f conftest.$ac_objext conftest$ac_exeext
4497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4498 (eval $ac_link) 2>conftest.er1
4500 grep -v '^ *+' conftest.er1 >conftest.err
4502 cat conftest.err >&5
4503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504 (exit $ac_status); } &&
4505 { ac_try='test -z "$ac_c_werror_flag"
4506 || test ! -s conftest.err'
4507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511 (exit $ac_status); }; } &&
4512 { ac_try='test -s conftest$ac_exeext'
4513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517 (exit $ac_status); }; }; then
4518 eval "$as_ac_var=yes"
4520 echo "$as_me: failed program was:" >&5
4521 sed 's/^/| /' conftest.$ac_ext >&5
4523 eval "$as_ac_var=no"
4525 rm -f conftest.err conftest.$ac_objext \
4526 conftest$ac_exeext conftest.$ac_ext
4528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4529 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4530 if test `eval echo '${'$as_ac_var'}'` = yes; then
4531 cat >>confdefs.h <<_ACEOF
4532 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4535 echo "$as_me:$LINENO: checking for _doprnt" >&5
4536 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
4537 if test "${ac_cv_func__doprnt+set}" = set; then
4538 echo $ECHO_N "(cached) $ECHO_C" >&6
4540 cat >conftest.$ac_ext <<_ACEOF
4543 cat confdefs.h >>conftest.$ac_ext
4544 cat >>conftest.$ac_ext <<_ACEOF
4545 /* end confdefs.h. */
4546 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
4547 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4548 #define _doprnt innocuous__doprnt
4550 /* System header to define __stub macros and hopefully few prototypes,
4551 which can conflict with char _doprnt (); below.
4552 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4553 <limits.h> exists even on freestanding compilers. */
4556 # include <limits.h>
4558 # include <assert.h>
4563 /* Override any gcc2 internal prototype to avoid an error. */
4568 /* We use char because int might match the return type of a gcc2
4569 builtin and then its argument prototype would still apply. */
4571 /* The GNU C library defines this for functions which it implements
4572 to always fail with ENOSYS. Some functions are actually named
4573 something starting with __ and the normal name is an alias. */
4574 #if defined (__stub__doprnt) || defined (__stub____doprnt)
4577 char (*f) () = _doprnt;
4586 return f != _doprnt;
4591 rm -f conftest.$ac_objext conftest$ac_exeext
4592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4593 (eval $ac_link) 2>conftest.er1
4595 grep -v '^ *+' conftest.er1 >conftest.err
4597 cat conftest.err >&5
4598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599 (exit $ac_status); } &&
4600 { ac_try='test -z "$ac_c_werror_flag"
4601 || test ! -s conftest.err'
4602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); }; } &&
4607 { ac_try='test -s conftest$ac_exeext'
4608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612 (exit $ac_status); }; }; then
4613 ac_cv_func__doprnt=yes
4615 echo "$as_me: failed program was:" >&5
4616 sed 's/^/| /' conftest.$ac_ext >&5
4618 ac_cv_func__doprnt=no
4620 rm -f conftest.err conftest.$ac_objext \
4621 conftest$ac_exeext conftest.$ac_ext
4623 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
4624 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
4625 if test $ac_cv_func__doprnt = yes; then
4627 cat >>confdefs.h <<\_ACEOF
4628 #define HAVE_DOPRNT 1
4641 for ac_func in isgraph setvbuf fstat strtol
4643 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4644 echo "$as_me:$LINENO: checking for $ac_func" >&5
4645 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4646 if eval "test \"\${$as_ac_var+set}\" = set"; then
4647 echo $ECHO_N "(cached) $ECHO_C" >&6
4649 cat >conftest.$ac_ext <<_ACEOF
4652 cat confdefs.h >>conftest.$ac_ext
4653 cat >>conftest.$ac_ext <<_ACEOF
4654 /* end confdefs.h. */
4655 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4656 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4657 #define $ac_func innocuous_$ac_func
4659 /* System header to define __stub macros and hopefully few prototypes,
4660 which can conflict with char $ac_func (); below.
4661 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4662 <limits.h> exists even on freestanding compilers. */
4665 # include <limits.h>
4667 # include <assert.h>
4672 /* Override any gcc2 internal prototype to avoid an error. */
4677 /* We use char because int might match the return type of a gcc2
4678 builtin and then its argument prototype would still apply. */
4680 /* The GNU C library defines this for functions which it implements
4681 to always fail with ENOSYS. Some functions are actually named
4682 something starting with __ and the normal name is an alias. */
4683 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4686 char (*f) () = $ac_func;
4695 return f != $ac_func;
4700 rm -f conftest.$ac_objext conftest$ac_exeext
4701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4702 (eval $ac_link) 2>conftest.er1
4704 grep -v '^ *+' conftest.er1 >conftest.err
4706 cat conftest.err >&5
4707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708 (exit $ac_status); } &&
4709 { ac_try='test -z "$ac_c_werror_flag"
4710 || test ! -s conftest.err'
4711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715 (exit $ac_status); }; } &&
4716 { ac_try='test -s conftest$ac_exeext'
4717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721 (exit $ac_status); }; }; then
4722 eval "$as_ac_var=yes"
4724 echo "$as_me: failed program was:" >&5
4725 sed 's/^/| /' conftest.$ac_ext >&5
4727 eval "$as_ac_var=no"
4729 rm -f conftest.err conftest.$ac_objext \
4730 conftest$ac_exeext conftest.$ac_ext
4732 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4733 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4734 if test `eval echo '${'$as_ac_var'}'` = yes; then
4735 cat >>confdefs.h <<_ACEOF
4736 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4744 # Check whether --with-pkg or --without-pkg was given.
4745 if test "${with_pkg+set}" = set; then
4747 case $withval in no) ;;
4748 *) CPPFLAGS="$CPPFLAGS -I/usr/pkg/include"
4749 LDFLAGS="$LDFLAGS -L/usr/pkg/lib"
4750 echo Using /usr/pkg/include and /usr/pkg/lib ;;
4756 # Check whether --with-libedit or --without-libedit was given.
4757 if test "${with_libedit+set}" = set; then
4758 withval="$with_libedit"
4759 case $withval in no) ;;
4761 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
4762 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
4763 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
4764 echo $ECHO_N "(cached) $ECHO_C" >&6
4766 ac_check_lib_save_LIBS=$LIBS
4767 LIBS="-ltermcap $LIBS"
4768 cat >conftest.$ac_ext <<_ACEOF
4771 cat confdefs.h >>conftest.$ac_ext
4772 cat >>conftest.$ac_ext <<_ACEOF
4773 /* end confdefs.h. */
4775 /* Override any gcc2 internal prototype to avoid an error. */
4779 /* We use char because int might match the return type of a gcc2
4780 builtin and then its argument prototype would still apply. */
4790 rm -f conftest.$ac_objext conftest$ac_exeext
4791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4792 (eval $ac_link) 2>conftest.er1
4794 grep -v '^ *+' conftest.er1 >conftest.err
4796 cat conftest.err >&5
4797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4798 (exit $ac_status); } &&
4799 { ac_try='test -z "$ac_c_werror_flag"
4800 || test ! -s conftest.err'
4801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4805 (exit $ac_status); }; } &&
4806 { ac_try='test -s conftest$ac_exeext'
4807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811 (exit $ac_status); }; }; then
4812 ac_cv_lib_termcap_tgetent=yes
4814 echo "$as_me: failed program was:" >&5
4815 sed 's/^/| /' conftest.$ac_ext >&5
4817 ac_cv_lib_termcap_tgetent=no
4819 rm -f conftest.err conftest.$ac_objext \
4820 conftest$ac_exeext conftest.$ac_ext
4821 LIBS=$ac_check_lib_save_LIBS
4823 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
4824 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
4825 if test $ac_cv_lib_termcap_tgetent = yes; then
4829 LDFLAGS="$LDFLAGS $TERMLIB"
4830 echo "$as_me:$LINENO: checking for el_gets in -ledit" >&5
4831 echo $ECHO_N "checking for el_gets in -ledit... $ECHO_C" >&6
4832 if test "${ac_cv_lib_edit_el_gets+set}" = set; then
4833 echo $ECHO_N "(cached) $ECHO_C" >&6
4835 ac_check_lib_save_LIBS=$LIBS
4837 cat >conftest.$ac_ext <<_ACEOF
4840 cat confdefs.h >>conftest.$ac_ext
4841 cat >>conftest.$ac_ext <<_ACEOF
4842 /* end confdefs.h. */
4844 /* Override any gcc2 internal prototype to avoid an error. */
4848 /* We use char because int might match the return type of a gcc2
4849 builtin and then its argument prototype would still apply. */
4859 rm -f conftest.$ac_objext conftest$ac_exeext
4860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4861 (eval $ac_link) 2>conftest.er1
4863 grep -v '^ *+' conftest.er1 >conftest.err
4865 cat conftest.err >&5
4866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867 (exit $ac_status); } &&
4868 { ac_try='test -z "$ac_c_werror_flag"
4869 || test ! -s conftest.err'
4870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); }; } &&
4875 { ac_try='test -s conftest$ac_exeext'
4876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880 (exit $ac_status); }; }; then
4881 ac_cv_lib_edit_el_gets=yes
4883 echo "$as_me: failed program was:" >&5
4884 sed 's/^/| /' conftest.$ac_ext >&5
4886 ac_cv_lib_edit_el_gets=no
4888 rm -f conftest.err conftest.$ac_objext \
4889 conftest$ac_exeext conftest.$ac_ext
4890 LIBS=$ac_check_lib_save_LIBS
4892 echo "$as_me:$LINENO: result: $ac_cv_lib_edit_el_gets" >&5
4893 echo "${ECHO_T}$ac_cv_lib_edit_el_gets" >&6
4894 if test $ac_cv_lib_edit_el_gets = yes; then
4895 if test "${ac_cv_header_histedit_h+set}" = set; then
4896 echo "$as_me:$LINENO: checking for histedit.h" >&5
4897 echo $ECHO_N "checking for histedit.h... $ECHO_C" >&6
4898 if test "${ac_cv_header_histedit_h+set}" = set; then
4899 echo $ECHO_N "(cached) $ECHO_C" >&6
4901 echo "$as_me:$LINENO: result: $ac_cv_header_histedit_h" >&5
4902 echo "${ECHO_T}$ac_cv_header_histedit_h" >&6
4904 # Is the header compilable?
4905 echo "$as_me:$LINENO: checking histedit.h usability" >&5
4906 echo $ECHO_N "checking histedit.h usability... $ECHO_C" >&6
4907 cat >conftest.$ac_ext <<_ACEOF
4910 cat confdefs.h >>conftest.$ac_ext
4911 cat >>conftest.$ac_ext <<_ACEOF
4912 /* end confdefs.h. */
4913 $ac_includes_default
4914 #include <histedit.h>
4916 rm -f conftest.$ac_objext
4917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4918 (eval $ac_compile) 2>conftest.er1
4920 grep -v '^ *+' conftest.er1 >conftest.err
4922 cat conftest.err >&5
4923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4924 (exit $ac_status); } &&
4925 { ac_try='test -z "$ac_c_werror_flag"
4926 || test ! -s conftest.err'
4927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4931 (exit $ac_status); }; } &&
4932 { ac_try='test -s conftest.$ac_objext'
4933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4937 (exit $ac_status); }; }; then
4938 ac_header_compiler=yes
4940 echo "$as_me: failed program was:" >&5
4941 sed 's/^/| /' conftest.$ac_ext >&5
4943 ac_header_compiler=no
4945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4946 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4947 echo "${ECHO_T}$ac_header_compiler" >&6
4949 # Is the header present?
4950 echo "$as_me:$LINENO: checking histedit.h presence" >&5
4951 echo $ECHO_N "checking histedit.h presence... $ECHO_C" >&6
4952 cat >conftest.$ac_ext <<_ACEOF
4955 cat confdefs.h >>conftest.$ac_ext
4956 cat >>conftest.$ac_ext <<_ACEOF
4957 /* end confdefs.h. */
4958 #include <histedit.h>
4960 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4961 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4963 grep -v '^ *+' conftest.er1 >conftest.err
4965 cat conftest.err >&5
4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967 (exit $ac_status); } >/dev/null; then
4968 if test -s conftest.err; then
4969 ac_cpp_err=$ac_c_preproc_warn_flag
4970 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4977 if test -z "$ac_cpp_err"; then
4978 ac_header_preproc=yes
4980 echo "$as_me: failed program was:" >&5
4981 sed 's/^/| /' conftest.$ac_ext >&5
4983 ac_header_preproc=no
4985 rm -f conftest.err conftest.$ac_ext
4986 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4987 echo "${ECHO_T}$ac_header_preproc" >&6
4989 # So? What about this header?
4990 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4992 { echo "$as_me:$LINENO: WARNING: histedit.h: accepted by the compiler, rejected by the preprocessor!" >&5
4993 echo "$as_me: WARNING: histedit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4994 { echo "$as_me:$LINENO: WARNING: histedit.h: proceeding with the compiler's result" >&5
4995 echo "$as_me: WARNING: histedit.h: proceeding with the compiler's result" >&2;}
4996 ac_header_preproc=yes
4999 { echo "$as_me:$LINENO: WARNING: histedit.h: present but cannot be compiled" >&5
5000 echo "$as_me: WARNING: histedit.h: present but cannot be compiled" >&2;}
5001 { echo "$as_me:$LINENO: WARNING: histedit.h: check for missing prerequisite headers?" >&5
5002 echo "$as_me: WARNING: histedit.h: check for missing prerequisite headers?" >&2;}
5003 { echo "$as_me:$LINENO: WARNING: histedit.h: see the Autoconf documentation" >&5
5004 echo "$as_me: WARNING: histedit.h: see the Autoconf documentation" >&2;}
5005 { echo "$as_me:$LINENO: WARNING: histedit.h: section \"Present But Cannot Be Compiled\"" >&5
5006 echo "$as_me: WARNING: histedit.h: section \"Present But Cannot Be Compiled\"" >&2;}
5007 { echo "$as_me:$LINENO: WARNING: histedit.h: proceeding with the preprocessor's result" >&5
5008 echo "$as_me: WARNING: histedit.h: proceeding with the preprocessor's result" >&2;}
5009 { echo "$as_me:$LINENO: WARNING: histedit.h: in the future, the compiler will take precedence" >&5
5010 echo "$as_me: WARNING: histedit.h: in the future, the compiler will take precedence" >&2;}
5013 ## ----------------------------- ##
5014 ## Report this to the bc lists. ##
5015 ## ----------------------------- ##
5018 sed "s/^/$as_me: WARNING: /" >&2
5021 echo "$as_me:$LINENO: checking for histedit.h" >&5
5022 echo $ECHO_N "checking for histedit.h... $ECHO_C" >&6
5023 if test "${ac_cv_header_histedit_h+set}" = set; then
5024 echo $ECHO_N "(cached) $ECHO_C" >&6
5026 ac_cv_header_histedit_h=$ac_header_preproc
5028 echo "$as_me:$LINENO: result: $ac_cv_header_histedit_h" >&5
5029 echo "${ECHO_T}$ac_cv_header_histedit_h" >&6
5032 if test $ac_cv_header_histedit_h = yes; then
5033 READLINELIB="-ledit $TERMLIB";bcle=y
5043 cat >>confdefs.h <<\_ACEOF
5047 echo Using the libedit library. ;;
5056 # Check whether --with-readline or --without-readline was given.
5057 if test "${with_readline+set}" = set; then
5058 withval="$with_readline"
5059 case $withval in no) ;;
5061 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
5062 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
5063 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
5064 echo $ECHO_N "(cached) $ECHO_C" >&6
5066 ac_check_lib_save_LIBS=$LIBS
5067 LIBS="-lncurses $LIBS"
5068 cat >conftest.$ac_ext <<_ACEOF
5071 cat confdefs.h >>conftest.$ac_ext
5072 cat >>conftest.$ac_ext <<_ACEOF
5073 /* end confdefs.h. */
5075 /* Override any gcc2 internal prototype to avoid an error. */
5079 /* We use char because int might match the return type of a gcc2
5080 builtin and then its argument prototype would still apply. */
5090 rm -f conftest.$ac_objext conftest$ac_exeext
5091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5092 (eval $ac_link) 2>conftest.er1
5094 grep -v '^ *+' conftest.er1 >conftest.err
5096 cat conftest.err >&5
5097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098 (exit $ac_status); } &&
5099 { ac_try='test -z "$ac_c_werror_flag"
5100 || test ! -s conftest.err'
5101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105 (exit $ac_status); }; } &&
5106 { ac_try='test -s conftest$ac_exeext'
5107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111 (exit $ac_status); }; }; then
5112 ac_cv_lib_ncurses_tparm=yes
5114 echo "$as_me: failed program was:" >&5
5115 sed 's/^/| /' conftest.$ac_ext >&5
5117 ac_cv_lib_ncurses_tparm=no
5119 rm -f conftest.err conftest.$ac_objext \
5120 conftest$ac_exeext conftest.$ac_ext
5121 LIBS=$ac_check_lib_save_LIBS
5123 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
5124 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
5125 if test $ac_cv_lib_ncurses_tparm = yes; then
5128 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5129 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5130 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5131 echo $ECHO_N "(cached) $ECHO_C" >&6
5133 ac_check_lib_save_LIBS=$LIBS
5134 LIBS="-ltermcap $LIBS"
5135 cat >conftest.$ac_ext <<_ACEOF
5138 cat confdefs.h >>conftest.$ac_ext
5139 cat >>conftest.$ac_ext <<_ACEOF
5140 /* end confdefs.h. */
5142 /* Override any gcc2 internal prototype to avoid an error. */
5146 /* We use char because int might match the return type of a gcc2
5147 builtin and then its argument prototype would still apply. */
5157 rm -f conftest.$ac_objext conftest$ac_exeext
5158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5159 (eval $ac_link) 2>conftest.er1
5161 grep -v '^ *+' conftest.er1 >conftest.err
5163 cat conftest.err >&5
5164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165 (exit $ac_status); } &&
5166 { ac_try='test -z "$ac_c_werror_flag"
5167 || test ! -s conftest.err'
5168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172 (exit $ac_status); }; } &&
5173 { ac_try='test -s conftest$ac_exeext'
5174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5178 (exit $ac_status); }; }; then
5179 ac_cv_lib_termcap_tgetent=yes
5181 echo "$as_me: failed program was:" >&5
5182 sed 's/^/| /' conftest.$ac_ext >&5
5184 ac_cv_lib_termcap_tgetent=no
5186 rm -f conftest.err conftest.$ac_objext \
5187 conftest$ac_exeext conftest.$ac_ext
5188 LIBS=$ac_check_lib_save_LIBS
5190 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5191 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5192 if test $ac_cv_lib_termcap_tgetent = yes; then
5198 LDFLAGS="$LDFLAGS $TERMLIB"
5199 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
5200 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
5201 if test "${ac_cv_lib_readline_readline+set}" = set; then
5202 echo $ECHO_N "(cached) $ECHO_C" >&6
5204 ac_check_lib_save_LIBS=$LIBS
5205 LIBS="-lreadline $LIBS"
5206 cat >conftest.$ac_ext <<_ACEOF
5209 cat confdefs.h >>conftest.$ac_ext
5210 cat >>conftest.$ac_ext <<_ACEOF
5211 /* end confdefs.h. */
5213 /* Override any gcc2 internal prototype to avoid an error. */
5217 /* We use char because int might match the return type of a gcc2
5218 builtin and then its argument prototype would still apply. */
5228 rm -f conftest.$ac_objext conftest$ac_exeext
5229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5230 (eval $ac_link) 2>conftest.er1
5232 grep -v '^ *+' conftest.er1 >conftest.err
5234 cat conftest.err >&5
5235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236 (exit $ac_status); } &&
5237 { ac_try='test -z "$ac_c_werror_flag"
5238 || test ! -s conftest.err'
5239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243 (exit $ac_status); }; } &&
5244 { ac_try='test -s conftest$ac_exeext'
5245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5249 (exit $ac_status); }; }; then
5250 ac_cv_lib_readline_readline=yes
5252 echo "$as_me: failed program was:" >&5
5253 sed 's/^/| /' conftest.$ac_ext >&5
5255 ac_cv_lib_readline_readline=no
5257 rm -f conftest.err conftest.$ac_objext \
5258 conftest$ac_exeext conftest.$ac_ext
5259 LIBS=$ac_check_lib_save_LIBS
5261 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
5262 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
5263 if test $ac_cv_lib_readline_readline = yes; then
5264 if test "${ac_cv_header_readline_readline_h+set}" = set; then
5265 echo "$as_me:$LINENO: checking for readline/readline.h" >&5
5266 echo $ECHO_N "checking for readline/readline.h... $ECHO_C" >&6
5267 if test "${ac_cv_header_readline_readline_h+set}" = set; then
5268 echo $ECHO_N "(cached) $ECHO_C" >&6
5270 echo "$as_me:$LINENO: result: $ac_cv_header_readline_readline_h" >&5
5271 echo "${ECHO_T}$ac_cv_header_readline_readline_h" >&6
5273 # Is the header compilable?
5274 echo "$as_me:$LINENO: checking readline/readline.h usability" >&5
5275 echo $ECHO_N "checking readline/readline.h usability... $ECHO_C" >&6
5276 cat >conftest.$ac_ext <<_ACEOF
5279 cat confdefs.h >>conftest.$ac_ext
5280 cat >>conftest.$ac_ext <<_ACEOF
5281 /* end confdefs.h. */
5282 $ac_includes_default
5283 #include <readline/readline.h>
5285 rm -f conftest.$ac_objext
5286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5287 (eval $ac_compile) 2>conftest.er1
5289 grep -v '^ *+' conftest.er1 >conftest.err
5291 cat conftest.err >&5
5292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293 (exit $ac_status); } &&
5294 { ac_try='test -z "$ac_c_werror_flag"
5295 || test ! -s conftest.err'
5296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300 (exit $ac_status); }; } &&
5301 { ac_try='test -s conftest.$ac_objext'
5302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306 (exit $ac_status); }; }; then
5307 ac_header_compiler=yes
5309 echo "$as_me: failed program was:" >&5
5310 sed 's/^/| /' conftest.$ac_ext >&5
5312 ac_header_compiler=no
5314 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5315 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5316 echo "${ECHO_T}$ac_header_compiler" >&6
5318 # Is the header present?
5319 echo "$as_me:$LINENO: checking readline/readline.h presence" >&5
5320 echo $ECHO_N "checking readline/readline.h presence... $ECHO_C" >&6
5321 cat >conftest.$ac_ext <<_ACEOF
5324 cat confdefs.h >>conftest.$ac_ext
5325 cat >>conftest.$ac_ext <<_ACEOF
5326 /* end confdefs.h. */
5327 #include <readline/readline.h>
5329 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5330 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5332 grep -v '^ *+' conftest.er1 >conftest.err
5334 cat conftest.err >&5
5335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336 (exit $ac_status); } >/dev/null; then
5337 if test -s conftest.err; then
5338 ac_cpp_err=$ac_c_preproc_warn_flag
5339 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5346 if test -z "$ac_cpp_err"; then
5347 ac_header_preproc=yes
5349 echo "$as_me: failed program was:" >&5
5350 sed 's/^/| /' conftest.$ac_ext >&5
5352 ac_header_preproc=no
5354 rm -f conftest.err conftest.$ac_ext
5355 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5356 echo "${ECHO_T}$ac_header_preproc" >&6
5358 # So? What about this header?
5359 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5361 { echo "$as_me:$LINENO: WARNING: readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5362 echo "$as_me: WARNING: readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5363 { echo "$as_me:$LINENO: WARNING: readline/readline.h: proceeding with the compiler's result" >&5
5364 echo "$as_me: WARNING: readline/readline.h: proceeding with the compiler's result" >&2;}
5365 ac_header_preproc=yes
5368 { echo "$as_me:$LINENO: WARNING: readline/readline.h: present but cannot be compiled" >&5
5369 echo "$as_me: WARNING: readline/readline.h: present but cannot be compiled" >&2;}
5370 { echo "$as_me:$LINENO: WARNING: readline/readline.h: check for missing prerequisite headers?" >&5
5371 echo "$as_me: WARNING: readline/readline.h: check for missing prerequisite headers?" >&2;}
5372 { echo "$as_me:$LINENO: WARNING: readline/readline.h: see the Autoconf documentation" >&5
5373 echo "$as_me: WARNING: readline/readline.h: see the Autoconf documentation" >&2;}
5374 { echo "$as_me:$LINENO: WARNING: readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
5375 echo "$as_me: WARNING: readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
5376 { echo "$as_me:$LINENO: WARNING: readline/readline.h: proceeding with the preprocessor's result" >&5
5377 echo "$as_me: WARNING: readline/readline.h: proceeding with the preprocessor's result" >&2;}
5378 { echo "$as_me:$LINENO: WARNING: readline/readline.h: in the future, the compiler will take precedence" >&5
5379 echo "$as_me: WARNING: readline/readline.h: in the future, the compiler will take precedence" >&2;}
5382 ## ----------------------------- ##
5383 ## Report this to the bc lists. ##
5384 ## ----------------------------- ##
5387 sed "s/^/$as_me: WARNING: /" >&2
5390 echo "$as_me:$LINENO: checking for readline/readline.h" >&5
5391 echo $ECHO_N "checking for readline/readline.h... $ECHO_C" >&6
5392 if test "${ac_cv_header_readline_readline_h+set}" = set; then
5393 echo $ECHO_N "(cached) $ECHO_C" >&6
5395 ac_cv_header_readline_readline_h=$ac_header_preproc
5397 echo "$as_me:$LINENO: result: $ac_cv_header_readline_readline_h" >&5
5398 echo "${ECHO_T}$ac_cv_header_readline_readline_h" >&6
5401 if test $ac_cv_header_readline_readline_h = yes; then
5402 READLINELIB="-lreadline $TERMLIB";bcrl=y
5412 cat >>confdefs.h <<\_ACEOF
5416 echo Using the readline library. ;;
5423 case $bcle-$bcrl-$LEX in
5425 { { echo "$as_me:$LINENO: error: Can not use both readline and libedit. Aborting." >&5
5426 echo "$as_me: error: Can not use both readline and libedit. Aborting." >&2;}
5427 { (exit 1); exit 1; }; } ;;
5431 n) { echo "$as_me:$LINENO: WARNING: readline works only with flex." >&5
5432 echo "$as_me: WARNING: readline works only with flex." >&2;} ;;
5436 case $LEX-`uname -s` in
5437 lex-SunOS) LEXLIB=""; echo "SunOS using lex does not have a -ll." ;;
5441 yes) CFLAGS="$CFLAGS -Wall -funsigned-char"
5442 echo "Adding GCC specific compile flags." ;;
5450 ac_config_files="$ac_config_files Makefile bc/Makefile dc/Makefile doc/Makefile doc/texi-ver.incl lib/Makefile"
5451 cat >confcache <<\_ACEOF
5452 # This file is a shell script that caches the results of configure
5453 # tests run on this system so they can be shared between configure
5454 # scripts and configure runs, see configure's option --config-cache.
5455 # It is not useful on other systems. If it contains results you don't
5456 # want to keep, you may remove or edit it.
5458 # config.status only pays attention to the cache file if you give it
5459 # the --recheck option to rerun configure.
5461 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5462 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5467 # The following way of writing the cache mishandles newlines in values,
5468 # but we know of no workaround that is simple, portable, and efficient.
5469 # So, don't put newlines in cache variables' values.
5470 # Ultrix sh set writes to stderr and can't be redirected directly,
5471 # and sets the high bit in the cache file unless we assign to the vars.
5474 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5476 # `set' does not quote correctly, so add quotes (double-quote
5477 # substitution turns \\\\ into \\, and sed turns \\ into \).
5480 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5483 # `set' quotes correctly as required by POSIX, so do not add quotes.
5485 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5492 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5494 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5496 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5497 if test -w $cache_file; then
5498 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5499 cat confcache >$cache_file
5501 echo "not updating unwritable cache $cache_file"
5506 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5507 # Let make expand exec_prefix.
5508 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5510 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5511 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5512 # trailing colons and then remove the whole line if VPATH becomes empty
5513 # (actually we leave an empty line to preserve line numbers).
5514 if test "x$srcdir" = x.; then
5515 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5516 s/:*\$(srcdir):*/:/;
5517 s/:*\${srcdir}:*/:/;
5519 s/^\([^=]*=[ ]*\):*/\1/;
5525 DEFS=-DHAVE_CONFIG_H
5529 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5530 # 1. Remove the extension, and $U if already installed.
5531 ac_i=`echo "$ac_i" |
5532 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5534 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5535 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5539 LTLIBOBJS=$ac_ltlibobjs
5542 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5543 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
5544 Usually this means the macro was only invoked conditionally." >&5
5545 echo "$as_me: error: conditional \"AMDEP\" was never defined.
5546 Usually this means the macro was only invoked conditionally." >&2;}
5547 { (exit 1); exit 1; }; }
5549 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5550 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
5551 Usually this means the macro was only invoked conditionally." >&5
5552 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
5553 Usually this means the macro was only invoked conditionally." >&2;}
5554 { (exit 1); exit 1; }; }
5557 : ${CONFIG_STATUS=./config.status}
5558 ac_clean_files_save=$ac_clean_files
5559 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5560 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5561 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5562 cat >$CONFIG_STATUS <<_ACEOF
5564 # Generated by $as_me.
5565 # Run this file to recreate the current configuration.
5566 # Compiler output produced by configure, useful for debugging
5567 # configure, is in config.log if it exists.
5572 SHELL=\${CONFIG_SHELL-$SHELL}
5575 cat >>$CONFIG_STATUS <<\_ACEOF
5576 ## --------------------- ##
5577 ## M4sh Initialization. ##
5578 ## --------------------- ##
5580 # Be Bourne compatible
5581 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5584 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5585 # is contrary to our usage. Disable this feature.
5586 alias -g '${1+"$@"}'='"$@"'
5587 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5590 DUALCASE=1; export DUALCASE # for MKS sh
5592 # Support unset when possible.
5593 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5600 # Work around bugs in pre-3.0 UWIN ksh.
5601 $as_unset ENV MAIL MAILPATH
5608 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5609 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5610 LC_TELEPHONE LC_TIME
5612 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5613 eval $as_var=C; export $as_var
5619 # Required to use basename.
5620 if expr a : '\(a\)' >/dev/null 2>&1; then
5626 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5627 as_basename=basename
5633 # Name of the executable.
5634 as_me=`$as_basename "$0" ||
5635 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5636 X"$0" : 'X\(//\)$' \| \
5637 X"$0" : 'X\(/\)$' \| \
5638 . : '\(.\)' 2>/dev/null ||
5640 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5641 /^X\/\(\/\/\)$/{ s//\1/; q; }
5642 /^X\/\(\/\).*/{ s//\1/; q; }
5646 # PATH needs CR, and LINENO needs CR and PATH.
5647 # Avoid depending upon Character Ranges.
5648 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5649 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5650 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5651 as_cr_digits='0123456789'
5652 as_cr_alnum=$as_cr_Letters$as_cr_digits
5654 # The user is always right.
5655 if test "${PATH_SEPARATOR+set}" != set; then
5656 echo "#! /bin/sh" >conf$$.sh
5657 echo "exit 0" >>conf$$.sh
5659 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5670 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5671 test "x$as_lineno_1" != "x$as_lineno_2" &&
5672 test "x$as_lineno_3" = "x$as_lineno_2" || {
5673 # Find who we are. Look in the path if we contain no path at all
5676 *[\\/]* ) as_myself=$0 ;;
5677 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5681 test -z "$as_dir" && as_dir=.
5682 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5687 # We did not find ourselves, most probably we were run as `sh COMMAND'
5688 # in which case we are not to be found in the path.
5689 if test "x$as_myself" = x; then
5692 if test ! -f "$as_myself"; then
5693 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5694 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5695 { (exit 1); exit 1; }; }
5697 case $CONFIG_SHELL in
5699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5700 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5703 test -z "$as_dir" && as_dir=.
5704 for as_base in sh bash ksh sh5; do
5707 if ("$as_dir/$as_base" -c '
5710 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5711 test "x$as_lineno_1" != "x$as_lineno_2" &&
5712 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5713 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5714 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5715 CONFIG_SHELL=$as_dir/$as_base
5717 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5725 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5726 # uniformly replaced by the line number. The first 'sed' inserts a
5727 # line-number line before each line; the second 'sed' does the real
5728 # work. The second script uses 'N' to pair each line-number line
5729 # with the numbered line, and appends trailing '-' during
5730 # substitution so that $LINENO is not a special case at line end.
5731 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5732 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5733 sed '=' <$as_myself |
5738 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5741 s,^['$as_cr_digits']*\n,,
5743 chmod +x $as_me.lineno ||
5744 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5745 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5746 { (exit 1); exit 1; }; }
5748 # Don't try to exec as it changes $[0], causing all sort of problems
5749 # (the dirname of $[0] is not the place where we might find the
5750 # original and so on. Autoconf is especially sensible to this).
5752 # Exit status is that of the last command.
5757 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5758 *c*,-n*) ECHO_N= ECHO_C='
5760 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5761 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5764 if expr a : '\(a\)' >/dev/null 2>&1; then
5770 rm -f conf$$ conf$$.exe conf$$.file
5772 if ln -s conf$$.file conf$$ 2>/dev/null; then
5773 # We could just check for DJGPP; but this test a) works b) is more generic
5774 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5775 if test -f conf$$.exe; then
5776 # Don't use ln at all; we don't have any links
5781 elif ln conf$$.file conf$$ 2>/dev/null; then
5786 rm -f conf$$ conf$$.exe conf$$.file
5788 if mkdir -p . 2>/dev/null; then
5791 test -d ./-p && rmdir ./-p
5795 as_executable_p="test -f"
5797 # Sed expression to map a string onto a valid CPP name.
5798 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5800 # Sed expression to map a string onto a valid variable name.
5801 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5805 # We need space, tab and new line, in precisely that order.
5815 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5816 # report actual input values of CONFIG_FILES etc. instead of their
5817 # values after options handling. Logging --version etc. is OK.
5821 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5822 ## Running $as_me. ##
5827 This file was extended by bc $as_me 1.06.95, which was
5828 generated by GNU Autoconf 2.59. Invocation command line was
5830 CONFIG_FILES = $CONFIG_FILES
5831 CONFIG_HEADERS = $CONFIG_HEADERS
5832 CONFIG_LINKS = $CONFIG_LINKS
5833 CONFIG_COMMANDS = $CONFIG_COMMANDS
5837 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5841 # Files that config.status was made for.
5842 if test -n "$ac_config_files"; then
5843 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5846 if test -n "$ac_config_headers"; then
5847 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5850 if test -n "$ac_config_links"; then
5851 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5854 if test -n "$ac_config_commands"; then
5855 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5858 cat >>$CONFIG_STATUS <<\_ACEOF
5861 \`$as_me' instantiates files from templates according to the
5862 current configuration.
5864 Usage: $0 [OPTIONS] [FILE]...
5866 -h, --help print this help, then exit
5867 -V, --version print version number, then exit
5868 -q, --quiet do not print progress messages
5869 -d, --debug don't remove temporary files
5870 --recheck update $as_me by reconfiguring in the same conditions
5871 --file=FILE[:TEMPLATE]
5872 instantiate the configuration file FILE
5873 --header=FILE[:TEMPLATE]
5874 instantiate the configuration header FILE
5876 Configuration files:
5879 Configuration headers:
5882 Configuration commands:
5885 Report bugs to <bug-autoconf@gnu.org>."
5888 cat >>$CONFIG_STATUS <<_ACEOF
5890 bc config.status 1.06.95
5891 configured by $0, generated by GNU Autoconf 2.59,
5892 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5894 Copyright (C) 2003 Free Software Foundation, Inc.
5895 This config.status script is free software; the Free Software Foundation
5896 gives unlimited permission to copy, distribute and modify it."
5901 cat >>$CONFIG_STATUS <<\_ACEOF
5902 # If no file are specified by the user, then we need to provide default
5903 # value. By we need to know if files were specified by the user.
5909 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5910 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5918 *) # This is not an option, so the user has probably given explicit
5921 ac_need_defaults=false;;
5925 # Handling of the options.
5927 cat >>$CONFIG_STATUS <<\_ACEOF
5928 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5930 --version | --vers* | -V )
5931 echo "$ac_cs_version"; exit 0 ;;
5933 # Conflict between --help and --header
5934 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5935 Try \`$0 --help' for more information." >&5
5936 echo "$as_me: error: ambiguous option: $1
5937 Try \`$0 --help' for more information." >&2;}
5938 { (exit 1); exit 1; }; };;
5939 --help | --hel | -h )
5940 echo "$ac_cs_usage"; exit 0 ;;
5941 --debug | --d* | -d )
5943 --file | --fil | --fi | --f )
5945 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5946 ac_need_defaults=false;;
5947 --header | --heade | --head | --hea )
5949 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5950 ac_need_defaults=false;;
5951 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5952 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5956 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5957 Try \`$0 --help' for more information." >&5
5958 echo "$as_me: error: unrecognized option: $1
5959 Try \`$0 --help' for more information." >&2;}
5960 { (exit 1); exit 1; }; } ;;
5962 *) ac_config_targets="$ac_config_targets $1" ;;
5968 ac_configure_extra_args=
5970 if $ac_cs_silent; then
5972 ac_configure_extra_args="$ac_configure_extra_args --silent"
5976 cat >>$CONFIG_STATUS <<_ACEOF
5977 if \$ac_cs_recheck; then
5978 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5979 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5984 cat >>$CONFIG_STATUS <<_ACEOF
5986 # INIT-COMMANDS section.
5989 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
5995 cat >>$CONFIG_STATUS <<\_ACEOF
5996 for ac_config_target in $ac_config_targets
5998 case "$ac_config_target" in
5999 # Handling of arguments.
6000 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6001 "bc/Makefile" ) CONFIG_FILES="$CONFIG_FILES bc/Makefile" ;;
6002 "dc/Makefile" ) CONFIG_FILES="$CONFIG_FILES dc/Makefile" ;;
6003 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
6004 "doc/texi-ver.incl" ) CONFIG_FILES="$CONFIG_FILES doc/texi-ver.incl" ;;
6005 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
6006 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6007 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6008 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6009 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6010 { (exit 1); exit 1; }; };;
6014 # If the user did not use the arguments to specify the items to instantiate,
6015 # then the envvar interface is used. Set only those that are not.
6016 # We use the long form for the default assignment because of an extremely
6017 # bizarre bug on SunOS 4.1.3.
6018 if $ac_need_defaults; then
6019 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6020 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6021 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6024 # Have a temporary directory for convenience. Make it in the build tree
6025 # simply because there is no reason to put it here, and in addition,
6026 # creating and moving files from /tmp can sometimes cause problems.
6027 # Create a temporary directory, and hook for its removal unless debugging.
6030 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6031 trap '{ (exit 1); exit 1; }' 1 2 13 15
6034 # Create a (secure) tmp directory for tmp files.
6037 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6038 test -n "$tmp" && test -d "$tmp"
6041 tmp=./confstat$$-$RANDOM
6042 (umask 077 && mkdir $tmp)
6045 echo "$me: cannot create a temporary directory in ." >&2
6046 { (exit 1); exit 1; }
6051 cat >>$CONFIG_STATUS <<_ACEOF
6054 # CONFIG_FILES section.
6057 # No need to generate the scripts if there are no CONFIG_FILES.
6058 # This happens for instance when ./config.status config.h
6059 if test -n "\$CONFIG_FILES"; then
6060 # Protect against being on the right side of a sed subst in config.status.
6061 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6062 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6063 s,@SHELL@,$SHELL,;t t
6064 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6065 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6066 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6067 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6068 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6069 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6070 s,@exec_prefix@,$exec_prefix,;t t
6071 s,@prefix@,$prefix,;t t
6072 s,@program_transform_name@,$program_transform_name,;t t
6073 s,@bindir@,$bindir,;t t
6074 s,@sbindir@,$sbindir,;t t
6075 s,@libexecdir@,$libexecdir,;t t
6076 s,@datadir@,$datadir,;t t
6077 s,@sysconfdir@,$sysconfdir,;t t
6078 s,@sharedstatedir@,$sharedstatedir,;t t
6079 s,@localstatedir@,$localstatedir,;t t
6080 s,@libdir@,$libdir,;t t
6081 s,@includedir@,$includedir,;t t
6082 s,@oldincludedir@,$oldincludedir,;t t
6083 s,@infodir@,$infodir,;t t
6084 s,@mandir@,$mandir,;t t
6085 s,@build_alias@,$build_alias,;t t
6086 s,@host_alias@,$host_alias,;t t
6087 s,@target_alias@,$target_alias,;t t
6089 s,@ECHO_C@,$ECHO_C,;t t
6090 s,@ECHO_N@,$ECHO_N,;t t
6091 s,@ECHO_T@,$ECHO_T,;t t
6093 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6094 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6095 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6096 s,@CYGPATH_W@,$CYGPATH_W,;t t
6097 s,@PACKAGE@,$PACKAGE,;t t
6098 s,@VERSION@,$VERSION,;t t
6099 s,@ACLOCAL@,$ACLOCAL,;t t
6100 s,@AUTOCONF@,$AUTOCONF,;t t
6101 s,@AUTOMAKE@,$AUTOMAKE,;t t
6102 s,@AUTOHEADER@,$AUTOHEADER,;t t
6103 s,@MAKEINFO@,$MAKEINFO,;t t
6104 s,@install_sh@,$install_sh,;t t
6105 s,@STRIP@,$STRIP,;t t
6106 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
6107 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
6108 s,@mkdir_p@,$mkdir_p,;t t
6110 s,@SET_MAKE@,$SET_MAKE,;t t
6111 s,@am__leading_dot@,$am__leading_dot,;t t
6112 s,@AMTAR@,$AMTAR,;t t
6113 s,@am__tar@,$am__tar,;t t
6114 s,@am__untar@,$am__untar,;t t
6116 s,@CFLAGS@,$CFLAGS,;t t
6117 s,@LDFLAGS@,$LDFLAGS,;t t
6118 s,@CPPFLAGS@,$CPPFLAGS,;t t
6119 s,@ac_ct_CC@,$ac_ct_CC,;t t
6120 s,@EXEEXT@,$EXEEXT,;t t
6121 s,@OBJEXT@,$OBJEXT,;t t
6122 s,@DEPDIR@,$DEPDIR,;t t
6123 s,@am__include@,$am__include,;t t
6124 s,@am__quote@,$am__quote,;t t
6125 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
6126 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
6127 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
6128 s,@CCDEPMODE@,$CCDEPMODE,;t t
6129 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
6130 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
6132 s,@EGREP@,$EGREP,;t t
6134 s,@LEXLIB@,$LEXLIB,;t t
6135 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
6137 s,@RANLIB@,$RANLIB,;t t
6138 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
6139 s,@READLINELIB@,$READLINELIB,;t t
6140 s,@BC_VERSION@,$BC_VERSION,;t t
6141 s,@DC_VERSION@,$DC_VERSION,;t t
6142 s,@LIBOBJS@,$LIBOBJS,;t t
6143 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6148 cat >>$CONFIG_STATUS <<\_ACEOF
6149 # Split the substitutions into bite-sized pieces for seds with
6150 # small command number limits, like on Digital OSF/1 and HP-UX.
6152 ac_sed_frag=1 # Number of current file.
6153 ac_beg=1 # First line for current file.
6154 ac_end=$ac_max_sed_lines # Line after last line for current file.
6157 while $ac_more_lines; do
6158 if test $ac_beg -gt 1; then
6159 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6161 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6163 if test ! -s $tmp/subs.frag; then
6166 # The purpose of the label and of the branching condition is to
6167 # speed up the sed processing (if there are no `@' at all, there
6168 # is no need to browse any of the substitutions).
6169 # These are the two extra sed commands mentioned above.
6171 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6172 if test -z "$ac_sed_cmds"; then
6173 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6175 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6177 ac_sed_frag=`expr $ac_sed_frag + 1`
6179 ac_end=`expr $ac_end + $ac_max_sed_lines`
6182 if test -z "$ac_sed_cmds"; then
6185 fi # test -n "$CONFIG_FILES"
6188 cat >>$CONFIG_STATUS <<\_ACEOF
6189 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6190 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6192 - | *:- | *:-:* ) # input from stdin
6194 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6195 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6196 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6197 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6198 * ) ac_file_in=$ac_file.in ;;
6201 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6202 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6203 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6204 X"$ac_file" : 'X\(//\)[^/]' \| \
6205 X"$ac_file" : 'X\(//\)$' \| \
6206 X"$ac_file" : 'X\(/\)' \| \
6207 . : '\(.\)' 2>/dev/null ||
6209 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6210 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6211 /^X\(\/\/\)$/{ s//\1/; q; }
6212 /^X\(\/\).*/{ s//\1/; q; }
6214 { if $as_mkdir_p; then
6219 while test ! -d "$as_dir"; do
6220 as_dirs="$as_dir $as_dirs"
6221 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6222 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6223 X"$as_dir" : 'X\(//\)[^/]' \| \
6224 X"$as_dir" : 'X\(//\)$' \| \
6225 X"$as_dir" : 'X\(/\)' \| \
6226 . : '\(.\)' 2>/dev/null ||
6228 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6229 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6230 /^X\(\/\/\)$/{ s//\1/; q; }
6231 /^X\(\/\).*/{ s//\1/; q; }
6234 test ! -n "$as_dirs" || mkdir $as_dirs
6235 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6236 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6237 { (exit 1); exit 1; }; }; }
6241 if test "$ac_dir" != .; then
6242 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6243 # A "../" for each directory in $ac_dir_suffix.
6244 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6246 ac_dir_suffix= ac_top_builddir=
6250 .) # No --srcdir option. We are building in place.
6252 if test -z "$ac_top_builddir"; then
6255 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6257 [\\/]* | ?:[\\/]* ) # Absolute path.
6258 ac_srcdir=$srcdir$ac_dir_suffix;
6259 ac_top_srcdir=$srcdir ;;
6261 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6262 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6265 # Do not use `cd foo && pwd` to compute absolute paths, because
6266 # the directories may not exist.
6268 .) ac_abs_builddir="$ac_dir";;
6271 .) ac_abs_builddir=`pwd`;;
6272 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6273 *) ac_abs_builddir=`pwd`/"$ac_dir";;
6276 case $ac_abs_builddir in
6277 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6279 case ${ac_top_builddir}. in
6280 .) ac_abs_top_builddir=$ac_abs_builddir;;
6281 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6282 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6285 case $ac_abs_builddir in
6286 .) ac_abs_srcdir=$ac_srcdir;;
6289 .) ac_abs_srcdir=$ac_abs_builddir;;
6290 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6291 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6294 case $ac_abs_builddir in
6295 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6297 case $ac_top_srcdir in
6298 .) ac_abs_top_srcdir=$ac_abs_builddir;;
6299 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6300 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6306 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6307 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6310 if test x"$ac_file" != x-; then
6311 { echo "$as_me:$LINENO: creating $ac_file" >&5
6312 echo "$as_me: creating $ac_file" >&6;}
6315 # Let's still pretend it is `configure' which instantiates (i.e., don't
6316 # use $as_me), people would be surprised to read:
6317 # /* config.h. Generated by config.status. */
6318 if test x"$ac_file" = x-; then
6321 configure_input="$ac_file. "
6323 configure_input=$configure_input"Generated from `echo $ac_file_in |
6324 sed 's,.*/,,'` by configure."
6326 # First look for the input files in the build tree, otherwise in the
6328 ac_file_inputs=`IFS=:
6329 for f in $ac_file_in; do
6331 -) echo $tmp/stdin ;;
6333 # Absolute (can't be DOS-style, as IFS=:)
6334 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6335 echo "$as_me: error: cannot find input file: $f" >&2;}
6336 { (exit 1); exit 1; }; }
6339 if test -f "$f"; then
6342 elif test -f "$srcdir/$f"; then
6347 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6348 echo "$as_me: error: cannot find input file: $f" >&2;}
6349 { (exit 1); exit 1; }; }
6352 done` || { (exit 1); exit 1; }
6354 cat >>$CONFIG_STATUS <<_ACEOF
6358 cat >>$CONFIG_STATUS <<\_ACEOF
6360 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6361 s,@configure_input@,$configure_input,;t t
6362 s,@srcdir@,$ac_srcdir,;t t
6363 s,@abs_srcdir@,$ac_abs_srcdir,;t t
6364 s,@top_srcdir@,$ac_top_srcdir,;t t
6365 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6366 s,@builddir@,$ac_builddir,;t t
6367 s,@abs_builddir@,$ac_abs_builddir,;t t
6368 s,@top_builddir@,$ac_top_builddir,;t t
6369 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6370 s,@INSTALL@,$ac_INSTALL,;t t
6371 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6373 if test x"$ac_file" != x-; then
6374 mv $tmp/out $ac_file
6382 cat >>$CONFIG_STATUS <<\_ACEOF
6385 # CONFIG_HEADER section.
6388 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6389 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6391 # ac_d sets the value in "#define NAME VALUE" lines.
6392 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6393 ac_dB='[ ].*$,\1#\2'
6396 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6397 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6398 ac_uB='$,\1#\2define\3'
6402 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6403 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6405 - | *:- | *:-:* ) # input from stdin
6407 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6408 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6409 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6410 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6411 * ) ac_file_in=$ac_file.in ;;
6414 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6415 echo "$as_me: creating $ac_file" >&6;}
6417 # First look for the input files in the build tree, otherwise in the
6419 ac_file_inputs=`IFS=:
6420 for f in $ac_file_in; do
6422 -) echo $tmp/stdin ;;
6424 # Absolute (can't be DOS-style, as IFS=:)
6425 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6426 echo "$as_me: error: cannot find input file: $f" >&2;}
6427 { (exit 1); exit 1; }; }
6428 # Do quote $f, to prevent DOS paths from being IFS'd.
6431 if test -f "$f"; then
6434 elif test -f "$srcdir/$f"; then
6439 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6440 echo "$as_me: error: cannot find input file: $f" >&2;}
6441 { (exit 1); exit 1; }; }
6444 done` || { (exit 1); exit 1; }
6445 # Remove the trailing spaces.
6446 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
6450 # Transform confdefs.h into two sed scripts, `conftest.defines' and
6451 # `conftest.undefs', that substitutes the proper values into
6452 # config.h.in to produce config.h. The first handles `#define'
6453 # templates, and the second `#undef' templates.
6454 # And first: Protect against being on the right side of a sed subst in
6455 # config.status. Protect against being in an unquoted here document
6457 rm -f conftest.defines conftest.undefs
6458 # Using a here document instead of a string reduces the quoting nightmare.
6459 # Putting comments in sed scripts is not portable.
6461 # `end' is used to avoid that the second main sed command (meant for
6462 # 0-ary CPP macros) applies to n-ary macro definitions.
6463 # See the Autoconf documentation for `clear'.
6464 cat >confdef2sed.sed <<\_ACEOF
6469 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6471 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6474 # If some macros were called several times there might be several times
6475 # the same #defines, which is useless. Nevertheless, we may not want to
6476 # sort them, since we want the *last* AC-DEFINE to be honored.
6477 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6478 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6479 rm -f confdef2sed.sed
6481 # This sed command replaces #undef with comments. This is necessary, for
6482 # example, in the case of _POSIX_SOURCE, which is predefined and required
6483 # on some systems where configure will not decide to define it.
6484 cat >>conftest.undefs <<\_ACEOF
6485 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6488 # Break up conftest.defines because some shells have a limit on the size
6489 # of here documents, and old seds have small limits too (100 cmds).
6490 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6491 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6492 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6493 echo ' :' >>$CONFIG_STATUS
6495 while grep . conftest.defines >/dev/null
6497 # Write a limited-size here document to $tmp/defines.sed.
6498 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6499 # Speed up: don't consider the non `#define' lines.
6500 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
6501 # Work around the forget-to-reset-the-flag bug.
6502 echo 't clr' >>$CONFIG_STATUS
6503 echo ': clr' >>$CONFIG_STATUS
6504 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6506 sed -f $tmp/defines.sed $tmp/in >$tmp/out
6510 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6511 rm -f conftest.defines
6512 mv conftest.tail conftest.defines
6514 rm -f conftest.defines
6515 echo ' fi # grep' >>$CONFIG_STATUS
6516 echo >>$CONFIG_STATUS
6518 # Break up conftest.undefs because some shells have a limit on the size
6519 # of here documents, and old seds have small limits too (100 cmds).
6520 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
6522 while grep . conftest.undefs >/dev/null
6524 # Write a limited-size here document to $tmp/undefs.sed.
6525 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6526 # Speed up: don't consider the non `#undef'
6527 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
6528 # Work around the forget-to-reset-the-flag bug.
6529 echo 't clr' >>$CONFIG_STATUS
6530 echo ': clr' >>$CONFIG_STATUS
6531 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6533 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6537 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6538 rm -f conftest.undefs
6539 mv conftest.tail conftest.undefs
6541 rm -f conftest.undefs
6543 cat >>$CONFIG_STATUS <<\_ACEOF
6544 # Let's still pretend it is `configure' which instantiates (i.e., don't
6545 # use $as_me), people would be surprised to read:
6546 # /* config.h. Generated by config.status. */
6547 if test x"$ac_file" = x-; then
6548 echo "/* Generated by configure. */" >$tmp/config.h
6550 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
6552 cat $tmp/in >>$tmp/config.h
6554 if test x"$ac_file" != x-; then
6555 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
6556 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6557 echo "$as_me: $ac_file is unchanged" >&6;}
6559 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6560 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6561 X"$ac_file" : 'X\(//\)[^/]' \| \
6562 X"$ac_file" : 'X\(//\)$' \| \
6563 X"$ac_file" : 'X\(/\)' \| \
6564 . : '\(.\)' 2>/dev/null ||
6566 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6567 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6568 /^X\(\/\/\)$/{ s//\1/; q; }
6569 /^X\(\/\).*/{ s//\1/; q; }
6571 { if $as_mkdir_p; then
6576 while test ! -d "$as_dir"; do
6577 as_dirs="$as_dir $as_dirs"
6578 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6579 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6580 X"$as_dir" : 'X\(//\)[^/]' \| \
6581 X"$as_dir" : 'X\(//\)$' \| \
6582 X"$as_dir" : 'X\(/\)' \| \
6583 . : '\(.\)' 2>/dev/null ||
6585 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6586 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6587 /^X\(\/\/\)$/{ s//\1/; q; }
6588 /^X\(\/\).*/{ s//\1/; q; }
6591 test ! -n "$as_dirs" || mkdir $as_dirs
6592 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6593 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6594 { (exit 1); exit 1; }; }; }
6597 mv $tmp/config.h $ac_file
6603 # Compute $ac_file's index in $config_headers.
6605 for _am_header in $config_headers :; do
6607 $ac_file | $ac_file:* )
6610 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6613 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
6614 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6615 X$ac_file : 'X\(//\)[^/]' \| \
6616 X$ac_file : 'X\(//\)$' \| \
6617 X$ac_file : 'X\(/\)' \| \
6618 . : '\(.\)' 2>/dev/null ||
6620 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6621 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6622 /^X\(\/\/\)$/{ s//\1/; q; }
6623 /^X\(\/\).*/{ s//\1/; q; }
6624 s/.*/./; q'`/stamp-h$_am_stamp_count
6627 cat >>$CONFIG_STATUS <<\_ACEOF
6630 # CONFIG_COMMANDS section.
6632 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
6633 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
6634 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
6635 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
6636 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6637 X"$ac_dest" : 'X\(//\)[^/]' \| \
6638 X"$ac_dest" : 'X\(//\)$' \| \
6639 X"$ac_dest" : 'X\(/\)' \| \
6640 . : '\(.\)' 2>/dev/null ||
6642 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6643 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6644 /^X\(\/\/\)$/{ s//\1/; q; }
6645 /^X\(\/\).*/{ s//\1/; q; }
6647 { if $as_mkdir_p; then
6652 while test ! -d "$as_dir"; do
6653 as_dirs="$as_dir $as_dirs"
6654 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6655 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6656 X"$as_dir" : 'X\(//\)[^/]' \| \
6657 X"$as_dir" : 'X\(//\)$' \| \
6658 X"$as_dir" : 'X\(/\)' \| \
6659 . : '\(.\)' 2>/dev/null ||
6661 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6662 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6663 /^X\(\/\/\)$/{ s//\1/; q; }
6664 /^X\(\/\).*/{ s//\1/; q; }
6667 test ! -n "$as_dirs" || mkdir $as_dirs
6668 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6669 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6670 { (exit 1); exit 1; }; }; }
6674 if test "$ac_dir" != .; then
6675 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6676 # A "../" for each directory in $ac_dir_suffix.
6677 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6679 ac_dir_suffix= ac_top_builddir=
6683 .) # No --srcdir option. We are building in place.
6685 if test -z "$ac_top_builddir"; then
6688 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6690 [\\/]* | ?:[\\/]* ) # Absolute path.
6691 ac_srcdir=$srcdir$ac_dir_suffix;
6692 ac_top_srcdir=$srcdir ;;
6694 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6695 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6698 # Do not use `cd foo && pwd` to compute absolute paths, because
6699 # the directories may not exist.
6701 .) ac_abs_builddir="$ac_dir";;
6704 .) ac_abs_builddir=`pwd`;;
6705 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6706 *) ac_abs_builddir=`pwd`/"$ac_dir";;
6709 case $ac_abs_builddir in
6710 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6712 case ${ac_top_builddir}. in
6713 .) ac_abs_top_builddir=$ac_abs_builddir;;
6714 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6715 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6718 case $ac_abs_builddir in
6719 .) ac_abs_srcdir=$ac_srcdir;;
6722 .) ac_abs_srcdir=$ac_abs_builddir;;
6723 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6724 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6727 case $ac_abs_builddir in
6728 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6730 case $ac_top_srcdir in
6731 .) ac_abs_top_srcdir=$ac_abs_builddir;;
6732 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6733 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6738 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
6739 echo "$as_me: executing $ac_dest commands" >&6;}
6741 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
6742 # Strip MF so we end up with the name of the file.
6743 mf=`echo "$mf" | sed -e 's/:.*$//'`
6744 # Check whether this is an Automake generated Makefile or not.
6745 # We used to match only the files named `Makefile.in', but
6746 # some people rename them; so instead we look at the file content.
6747 # Grep'ing the first line is not enough: some people post-process
6748 # each Makefile.in and add a new line on top of each file to say so.
6749 # So let's grep whole file.
6750 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
6751 dirpart=`(dirname "$mf") 2>/dev/null ||
6752 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6753 X"$mf" : 'X\(//\)[^/]' \| \
6754 X"$mf" : 'X\(//\)$' \| \
6755 X"$mf" : 'X\(/\)' \| \
6756 . : '\(.\)' 2>/dev/null ||
6758 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6759 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6760 /^X\(\/\/\)$/{ s//\1/; q; }
6761 /^X\(\/\).*/{ s//\1/; q; }
6766 # Extract the definition of DEPDIR, am__include, and am__quote
6767 # from the Makefile without running `make'.
6768 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6769 test -z "$DEPDIR" && continue
6770 am__include=`sed -n 's/^am__include = //p' < "$mf"`
6771 test -z "am__include" && continue
6772 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6773 # When using ansi2knr, U may be empty or an underscore; expand it
6774 U=`sed -n 's/^U = //p' < "$mf"`
6775 # Find all dependency output files, they are included files with
6776 # $(DEPDIR) in their names. We invoke sed twice because it is the
6777 # simplest approach to changing $(DEPDIR) to its actual value in the
6779 for file in `sed -n "
6780 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6781 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6782 # Make sure the directory exists.
6783 test -f "$dirpart/$file" && continue
6784 fdir=`(dirname "$file") 2>/dev/null ||
6785 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6786 X"$file" : 'X\(//\)[^/]' \| \
6787 X"$file" : 'X\(//\)$' \| \
6788 X"$file" : 'X\(/\)' \| \
6789 . : '\(.\)' 2>/dev/null ||
6791 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6792 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6793 /^X\(\/\/\)$/{ s//\1/; q; }
6794 /^X\(\/\).*/{ s//\1/; q; }
6796 { if $as_mkdir_p; then
6797 mkdir -p $dirpart/$fdir
6799 as_dir=$dirpart/$fdir
6801 while test ! -d "$as_dir"; do
6802 as_dirs="$as_dir $as_dirs"
6803 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6804 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6805 X"$as_dir" : 'X\(//\)[^/]' \| \
6806 X"$as_dir" : 'X\(//\)$' \| \
6807 X"$as_dir" : 'X\(/\)' \| \
6808 . : '\(.\)' 2>/dev/null ||
6810 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6811 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6812 /^X\(\/\/\)$/{ s//\1/; q; }
6813 /^X\(\/\).*/{ s//\1/; q; }
6816 test ! -n "$as_dirs" || mkdir $as_dirs
6817 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
6818 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
6819 { (exit 1); exit 1; }; }; }
6821 # echo "creating $dirpart/$file"
6822 echo '# dummy' > "$dirpart/$file"
6830 cat >>$CONFIG_STATUS <<\_ACEOF
6832 { (exit 0); exit 0; }
6834 chmod +x $CONFIG_STATUS
6835 ac_clean_files=$ac_clean_files_save
6838 # configure is writing to config.log, and then calls config.status.
6839 # config.status does its own redirection, appending to config.log.
6840 # Unfortunately, on DOS this fails, as config.log is still kept open
6841 # by configure, so config.status won't be able to write to it; its
6842 # output is simply discarded. So we exec the FD to /dev/null,
6843 # effectively closing config.log, so it can be properly (re)opened and
6844 # appended to by config.status. When coming back to configure, we
6845 # need to make the FD available again.
6846 if test "$no_create" != yes; then
6848 ac_config_status_args=
6849 test "$silent" = yes &&
6850 ac_config_status_args="$ac_config_status_args --quiet"
6852 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6854 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6855 # would make configure fail if this is the last instruction.
6856 $ac_cs_success || { (exit 1); exit 1; }