2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59b.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002,
6 # 2003, 2004 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}${KSH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
24 BIN_SH
=xpg4
; export BIN_SH
# for Tru64
25 DUALCASE
=1; export DUALCASE
# for MKS sh
29 # Avoid depending upon Character Ranges.
30 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
31 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
33 as_cr_digits
='0123456789'
34 as_cr_alnum
=$as_cr_Letters$as_cr_digits
36 # The user is always right.
37 if test "${PATH_SEPARATOR+set}" != set; then
38 echo "#! /bin/sh" >conf$$.sh
39 echo "exit 0" >>conf$$.sh
41 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
49 # Support unset when possible.
50 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
57 # Find who we are. Look in the path if we contain no path at all
60 *[\\/]* ) as_myself
=$0 ;;
61 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
65 test -z "$as_dir" && as_dir
=.
66 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
71 # We did not find ourselves, most probably we were run as `sh COMMAND'
72 # in which case we are not to be found in the path.
73 if test "x$as_myself" = x
; then
76 if test ! -f "$as_myself"; then
77 { echo "$as_me: error: cannot find myself; rerun with an absolute file name" >&2
78 { (exit 1); exit 1; }; }
81 # Work around bugs in pre-3.0 UWIN ksh.
82 for as_var
in ENV MAIL MAILPATH
83 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
91 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
92 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
95 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
96 eval $as_var=C
; export $as_var
98 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
102 # Required to use basename.
103 if expr a
: '\(a\)' >/dev
/null
2>&1; then
109 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
116 # Name of the executable.
117 as_me
=`$as_basename "$0" ||
118 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
119 X"$0" : 'X\(//\)$' \| \
120 X"$0" : 'X\(/\)$' \| \
121 . : '\(.\)' 2>/dev/null ||
123 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
124 /^X\/\(\/\/\)$/{ s//\1/; q; }
125 /^X\/\(\/\).*/{ s//\1/; q; }
130 if test "x$CONFIG_SHELL" = x
; then
131 if (eval ":") 2>/dev
/null
; then
137 if test $as_have_required = yes && (eval ":
147 func_ret_success () {
150 func_ret_failure () {
155 if func_success; then
159 echo func_failure succeeded.
162 if func_failure; then
164 echo func_success failed.
167 if func_ret_success; then
171 echo func_ret_success failed.
174 if func_ret_failure; then
176 echo func_ret_failure succeeded.
179 test \$exitcode = 0) || { (exit 1); exit 1; }
184 as_lineno_3=\`(expr \$as_lineno_1 + 1) 2>/dev/null\`
185 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
186 test \"x\$as_lineno_3\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
187 ") 2> /dev
/null
; then
191 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
192 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
195 test -z "$as_dir" && as_dir
=.
198 for as_base
in sh bash ksh sh5
; do
199 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
205 for as_shell
in $as_candidate_shells $SHELL; do
206 if { $as_shell 2> /dev
/null
<<\_ASEOF
207 # Be Bourne compatible
208 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
211 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
212 # is contrary to our usage. Disable this feature.
213 alias -g '${1+"$@"}'='"$@"'
215 elif test -n "${BASH_VERSION+set}${KSH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
218 BIN_SH
=xpg4
; export BIN_SH
# for Tru64
219 DUALCASE
=1; export DUALCASE
# for MKS sh
224 CONFIG_SHELL
=$as_shell
226 if { $as_shell 2> /dev
/null
<<\_ASEOF
227 # Be Bourne compatible
228 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
231 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
232 # is contrary to our usage. Disable this feature.
233 alias -g '${1+"$@"}'='"$@"'
235 elif test -n "${BASH_VERSION+set}${KSH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
238 BIN_SH
=xpg4
; export BIN_SH
# for Tru64
239 DUALCASE
=1; export DUALCASE
# for MKS sh
251 func_ret_success
() {
254 func_ret_failure
() {
259 if func_success
; then
263 echo func_failure succeeded.
266 if func_failure
; then
268 echo func_success failed.
271 if func_ret_success
; then
275 echo func_ret_success failed.
278 if func_ret_failure
; then
280 echo func_ret_failure succeeded.
283 test $exitcode = 0) ||
{ (exit 1); exit 1; }
288 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
289 test "x$as_lineno_1" != "x$as_lineno_2" &&
290 test "x$as_lineno_3" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
301 if test "x$CONFIG_SHELL" != x
; then
302 for as_var
in BASH_ENV ENV
303 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
306 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
310 if test $as_have_required = no
; then
311 echo This
script requires a shell
more modern than all the
312 echo shells that I found on your system. Please
install a
313 echo modern shell
, or manually run the
script under such a
314 echo shell
if you
do have one.
315 { (exit 1); exit 1; }
325 (eval "func_return () {
334 func_ret_success () {
337 func_ret_failure () {
342 if func_success; then
346 echo func_failure succeeded.
349 if func_failure; then
351 echo func_success failed.
354 if func_ret_success; then
358 echo func_ret_success failed.
361 if func_ret_failure; then
363 echo func_ret_failure succeeded.
366 test \$exitcode = 0") ||
{
367 echo No shell found that supports shell functions.
368 echo Please tell autoconf@gnu.org about your system
,
369 echo including any error possibly output before this
377 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
378 test "x$as_lineno_1" != "x$as_lineno_2" &&
379 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
381 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
382 # uniformly replaced by the line number. The first 'sed' inserts a
383 # line-number line after each line using $LINENO; the second 'sed'
384 # does the real work. The second script uses 'N' to pair each
385 # line-number line with the line containing $LINENO, and appends
386 # trailing '-' during substitution so that $LINENO is not a special
388 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
389 # scripts with optimization help from Paolo Bonzini. Blame Lee
390 # E. McMahon (1931-1989) for sed's syntax. :-)
402 s,[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\),\2\1\2,
406 chmod +x
$as_me.lineno ||
407 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
408 { (exit 1); exit 1; }; }
410 # Don't try to exec as it changes $[0], causing all sort of problems
411 # (the dirname of $[0] is not the place where we might find the
412 # original and so on. Autoconf is especially sensible to this).
414 # Exit status is that of the last command.
419 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
420 *c
*,-n*) ECHO_N
= ECHO_C
='
422 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
423 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
426 if expr a
: '\(a\)' >/dev
/null
2>&1; then
432 rm -f conf$$ conf$$.exe conf$$.
file
434 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
435 # We could just check for DJGPP; but this test a) works b) is more generic
436 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
437 if test -f conf$$.exe
; then
438 # Don't use ln at all; we don't have any links
443 elif ln conf$$.
file conf$$
2>/dev
/null
; then
448 rm -f conf$$ conf$$.exe conf$$.
file
450 if mkdir
-p .
2>/dev
/null
; then
453 test -d .
/-p && rmdir .
/-p
457 as_executable_p
="test -f"
459 # Sed expression to map a string onto a valid CPP name.
460 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
462 # Sed expression to map a string onto a valid variable name.
463 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
467 # We need space, tab and new line, in precisely that order.
477 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
478 # so uname gets run too.
479 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
486 ac_default_prefix
=/usr
/local
487 ac_config_libobj_dir
=.
492 SHELL
=${CONFIG_SHELL-/bin/sh}
494 # Maximum number of lines to put in a shell here document.
495 # This variable seems obsolete. It should probably be removed, and
496 # only ac_max_sed_lines should be used.
497 : ${ac_max_here_lines=38}
499 # Identity of this package.
506 ac_unique_file
="src/roff/groff/groff.cpp"
507 # Factoring default headers for most tests.
508 ac_includes_default
="\
511 # include <sys/types.h>
514 # include <sys/stat.h>
525 # if !STDC_HEADERS && HAVE_MEMORY_H
531 # include <strings.h>
534 # include <inttypes.h>
543 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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX TTYDEVDIRS OTHERDEVDIRS CPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS XDEVDIRS XPROGDIRS XLIBDIRS appresdir LPR LP LPQ PSPRINT DVIPRINT PERLPATH YACC RANLIB ac_ct_RANLIB INSTALL_INFO INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SH_SCRIPT_SED_CMD GREP EGREP LIBC LIBM LIBOBJS BROKEN_SPOOLER_FLAGS PAGE g sys_tmac_prefix tmac_wrap GROFF_PATH_SEPARATOR pnmcut pnmcrop pnmtopng psselect pnmtops gs make_html make_install_html pnmtops_nosetpage GHOSTSCRIPT ac_pt_GHOSTSCRIPT LTLIBOBJS'
546 # Initialize some variables set by options.
548 ac_init_version
=false
549 # The variables have the same names as the options, with
550 # dashes changed to underlines.
558 program_transform_name
=s
,x
,x
,
566 # Installation directory options.
567 # These are left unexpanded so users can "make install exec_prefix=/foo"
568 # and all the variables that are supposed to be based on exec_prefix
569 # by default will actually change.
570 # Use braces instead of parens because sh, perl, etc. also accept them.
571 bindir
='${exec_prefix}/bin'
572 sbindir
='${exec_prefix}/sbin'
573 libexecdir
='${exec_prefix}/libexec'
574 datadir
='${prefix}/share'
575 sysconfdir
='${prefix}/etc'
576 sharedstatedir
='${prefix}/com'
577 localstatedir
='${prefix}/var'
578 libdir
='${exec_prefix}/lib'
579 includedir
='${prefix}/include'
580 oldincludedir
='/usr/include'
581 infodir
='${prefix}/info'
582 mandir
='${prefix}/man'
588 # If the previous option needs an argument, assign it.
589 if test -n "$ac_prev"; then
590 eval "$ac_prev=\$ac_option"
595 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
597 # Accept the important Cygnus configure options, so we can diagnose typos.
599 case $ac_dashdash$ac_option in
603 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
605 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
608 -build |
--build |
--buil |
--bui |
--bu)
609 ac_prev
=build_alias
;;
610 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
611 build_alias
=$ac_optarg ;;
613 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
614 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
615 ac_prev
=cache_file
;;
616 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
617 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
618 cache_file
=$ac_optarg ;;
621 cache_file
=config.cache
;;
623 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
625 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
627 datadir
=$ac_optarg ;;
629 -disable-* |
--disable-*)
630 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
631 # Reject names that are not valid shell variable names.
632 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
633 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
634 { (exit 1); exit 1; }; }
635 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
636 eval "enable_$ac_feature=no" ;;
638 -enable-* |
--enable-*)
639 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
640 # Reject names that are not valid shell variable names.
641 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
642 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
643 { (exit 1); exit 1; }; }
644 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
646 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
649 eval "enable_$ac_feature='$ac_optarg'" ;;
651 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
652 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
653 |
--exec |
--exe |
--ex)
654 ac_prev
=exec_prefix
;;
655 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
656 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
657 |
--exec=* |
--exe=* |
--ex=*)
658 exec_prefix
=$ac_optarg ;;
660 -gas |
--gas |
--ga |
--g)
661 # Obsolete; use --with-gas.
664 -help |
--help |
--hel |
--he |
-h)
666 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
667 ac_init_help
=recursive
;;
668 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
669 ac_init_help
=short
;;
671 -host |
--host |
--hos |
--ho)
672 ac_prev
=host_alias
;;
673 -host=* |
--host=* |
--hos=* |
--ho=*)
674 host_alias
=$ac_optarg ;;
676 -includedir |
--includedir |
--includedi |
--included |
--include \
677 |
--includ |
--inclu |
--incl |
--inc)
678 ac_prev
=includedir
;;
679 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
680 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
681 includedir
=$ac_optarg ;;
683 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
685 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
686 infodir
=$ac_optarg ;;
688 -libdir |
--libdir |
--libdi |
--libd)
690 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
693 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
694 |
--libexe |
--libex |
--libe)
695 ac_prev
=libexecdir
;;
696 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
697 |
--libexe=* |
--libex=* |
--libe=*)
698 libexecdir
=$ac_optarg ;;
700 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
701 |
--localstate |
--localstat |
--localsta |
--localst \
702 |
--locals |
--local |
--loca |
--loc |
--lo)
703 ac_prev
=localstatedir
;;
704 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
705 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
706 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
707 localstatedir
=$ac_optarg ;;
709 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
711 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
715 # Obsolete; use --without-fp.
718 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
719 |
--no-cr |
--no-c |
-n)
722 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
723 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
726 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
727 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
728 |
--oldin |
--oldi |
--old |
--ol |
--o)
729 ac_prev
=oldincludedir
;;
730 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
731 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
732 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
733 oldincludedir
=$ac_optarg ;;
735 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
737 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
740 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
741 |
--program-pre |
--program-pr |
--program-p)
742 ac_prev
=program_prefix
;;
743 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
744 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
745 program_prefix
=$ac_optarg ;;
747 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
748 |
--program-suf |
--program-su |
--program-s)
749 ac_prev
=program_suffix
;;
750 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
751 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
752 program_suffix
=$ac_optarg ;;
754 -program-transform-name |
--program-transform-name \
755 |
--program-transform-nam |
--program-transform-na \
756 |
--program-transform-n |
--program-transform- \
757 |
--program-transform |
--program-transfor \
758 |
--program-transfo |
--program-transf \
759 |
--program-trans |
--program-tran \
760 |
--progr-tra |
--program-tr |
--program-t)
761 ac_prev
=program_transform_name
;;
762 -program-transform-name=* |
--program-transform-name=* \
763 |
--program-transform-nam=* |
--program-transform-na=* \
764 |
--program-transform-n=* |
--program-transform-=* \
765 |
--program-transform=* |
--program-transfor=* \
766 |
--program-transfo=* |
--program-transf=* \
767 |
--program-trans=* |
--program-tran=* \
768 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
769 program_transform_name
=$ac_optarg ;;
771 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
772 |
-silent |
--silent |
--silen |
--sile |
--sil)
775 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
777 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
779 sbindir
=$ac_optarg ;;
781 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
782 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
783 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
785 ac_prev
=sharedstatedir
;;
786 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
787 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
788 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
790 sharedstatedir
=$ac_optarg ;;
792 -site |
--site |
--sit)
794 -site=* |
--site=* |
--sit=*)
797 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
799 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
802 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
803 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
804 ac_prev
=sysconfdir
;;
805 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
806 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
807 sysconfdir
=$ac_optarg ;;
809 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
810 ac_prev
=target_alias
;;
811 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
812 target_alias
=$ac_optarg ;;
814 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
817 -version |
--version |
--versio |
--versi |
--vers |
-V)
821 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
822 # Reject names that are not valid shell variable names.
823 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
824 { echo "$as_me: error: invalid package name: $ac_package" >&2
825 { (exit 1); exit 1; }; }
826 ac_package
=`echo $ac_package| sed 's/-/_/g'`
828 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
831 eval "with_$ac_package='$ac_optarg'" ;;
833 -without-* |
--without-*)
834 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
835 # Reject names that are not valid shell variable names.
836 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
837 { echo "$as_me: error: invalid package name: $ac_package" >&2
838 { (exit 1); exit 1; }; }
839 ac_package
=`echo $ac_package | sed 's/-/_/g'`
840 eval "with_$ac_package=no" ;;
843 # Obsolete; use --with-x.
846 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
847 |
--x-incl |
--x-inc |
--x-in |
--x-i)
848 ac_prev
=x_includes
;;
849 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
850 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
851 x_includes
=$ac_optarg ;;
853 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
854 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
855 ac_prev
=x_libraries
;;
856 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
857 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
858 x_libraries
=$ac_optarg ;;
860 -*) { echo "$as_me: error: unrecognized option: $ac_option
861 Try \`$0 --help' for more information." >&2
862 { (exit 1); exit 1; }; }
866 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
867 # Reject names that are not valid shell variable names.
868 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
869 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
870 { (exit 1); exit 1; }; }
871 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
872 eval "$ac_envvar='$ac_optarg'"
876 # FIXME: should be removed in autoconf 3.0.
877 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
878 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
879 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
880 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
886 if test -n "$ac_prev"; then
887 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
888 { echo "$as_me: error: missing argument to $ac_option" >&2
889 { (exit 1); exit 1; }; }
892 # Be sure to have absolute directory names.
893 for ac_var
in exec_prefix prefix
895 eval ac_val
=$
`echo $ac_var`
897 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
898 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
899 { (exit 1); exit 1; }; };;
903 # Be sure to have absolute directory names.
904 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
905 localstatedir libdir includedir oldincludedir infodir mandir
907 eval ac_val
=$
`echo $ac_var`
909 [\\/$
]* | ?
:[\\/]* ) ;;
910 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
911 { (exit 1); exit 1; }; };;
915 # There might be people who depend on the old broken behavior: `$host'
916 # used to hold the argument of --host etc.
917 # FIXME: To remove some day.
922 # FIXME: To remove some day.
923 if test "x$host_alias" != x
; then
924 if test "x$build_alias" = x
; then
925 cross_compiling
=maybe
926 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
927 If a cross compiler is detected then cross compile mode will be used." >&2
928 elif test "x$build_alias" != "x$host_alias"; then
934 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
936 test "$silent" = yes && exec 6>/dev
/null
939 # Find the source files, if location was not specified.
940 if test -z "$srcdir"; then
941 ac_srcdir_defaulted
=yes
942 # Try the directory containing this script, then its parent.
943 ac_confdir
=`(dirname "$0") 2>/dev/null ||
944 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
945 X"$0" : 'X\(//\)[^/]' \| \
946 X"$0" : 'X\(//\)$' \| \
947 X"$0" : 'X\(/\)' \| \
948 . : '\(.\)' 2>/dev/null ||
950 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
951 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
952 /^X\(\/\/\)$/{ s//\1/; q; }
953 /^X\(\/\).*/{ s//\1/; q; }
956 if test ! -r $srcdir/$ac_unique_file; then
960 ac_srcdir_defaulted
=no
962 if test ! -r $srcdir/$ac_unique_file; then
963 if test "$ac_srcdir_defaulted" = yes; then
964 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
965 { (exit 1); exit 1; }; }
967 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
968 { (exit 1); exit 1; }; }
971 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
972 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
973 { (exit 1); exit 1; }; }
974 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
975 ac_env_build_alias_set
=${build_alias+set}
976 ac_env_build_alias_value
=$build_alias
977 ac_cv_env_build_alias_set
=${build_alias+set}
978 ac_cv_env_build_alias_value
=$build_alias
979 ac_env_host_alias_set
=${host_alias+set}
980 ac_env_host_alias_value
=$host_alias
981 ac_cv_env_host_alias_set
=${host_alias+set}
982 ac_cv_env_host_alias_value
=$host_alias
983 ac_env_target_alias_set
=${target_alias+set}
984 ac_env_target_alias_value
=$target_alias
985 ac_cv_env_target_alias_set
=${target_alias+set}
986 ac_cv_env_target_alias_value
=$target_alias
987 ac_env_CC_set
=${CC+set}
989 ac_cv_env_CC_set
=${CC+set}
990 ac_cv_env_CC_value
=$CC
991 ac_env_CFLAGS_set
=${CFLAGS+set}
992 ac_env_CFLAGS_value
=$CFLAGS
993 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
994 ac_cv_env_CFLAGS_value
=$CFLAGS
995 ac_env_LDFLAGS_set
=${LDFLAGS+set}
996 ac_env_LDFLAGS_value
=$LDFLAGS
997 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
998 ac_cv_env_LDFLAGS_value
=$LDFLAGS
999 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
1000 ac_env_CPPFLAGS_value
=$CPPFLAGS
1001 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
1002 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
1003 ac_env_CXX_set
=${CXX+set}
1004 ac_env_CXX_value
=$CXX
1005 ac_cv_env_CXX_set
=${CXX+set}
1006 ac_cv_env_CXX_value
=$CXX
1007 ac_env_CXXFLAGS_set
=${CXXFLAGS+set}
1008 ac_env_CXXFLAGS_value
=$CXXFLAGS
1009 ac_cv_env_CXXFLAGS_set
=${CXXFLAGS+set}
1010 ac_cv_env_CXXFLAGS_value
=$CXXFLAGS
1011 ac_env_CPP_set
=${CPP+set}
1012 ac_env_CPP_value
=$CPP
1013 ac_cv_env_CPP_set
=${CPP+set}
1014 ac_cv_env_CPP_value
=$CPP
1017 # Report the --help message.
1019 if test "$ac_init_help" = "long"; then
1020 # Omit some internal or obsolete options to make the list less imposing.
1021 # This message is too long to be a string in the A/UX 3.1 sh.
1023 \`configure' configures this package to adapt to many kinds of systems.
1025 Usage: $0 [OPTION]... [VAR=VALUE]...
1027 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1028 VAR=VALUE. See below for descriptions of some of the useful variables.
1030 Defaults for the options are specified in brackets.
1033 -h, --help display this help and exit
1034 --help=short display options specific to this package
1035 --help=recursive display the short help of all the included packages
1036 -V, --version display version information and exit
1037 -q, --quiet, --silent do not print \`checking...' messages
1038 --cache-file=FILE cache test results in FILE [disabled]
1039 -C, --config-cache alias for \`--cache-file=config.cache'
1040 -n, --no-create do not create output files
1041 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1046 Installation directories:
1047 --prefix=PREFIX install architecture-independent files in PREFIX
1048 [$ac_default_prefix]
1049 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1052 By default, \`make install' will install all the files in
1053 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1054 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1055 for instance \`--prefix=\$HOME'.
1057 For better control, use the options below.
1059 Fine tuning of the installation directories:
1060 --bindir=DIR user executables [EPREFIX/bin]
1061 --sbindir=DIR system admin executables [EPREFIX/sbin]
1062 --libexecdir=DIR program executables [EPREFIX/libexec]
1063 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1064 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1065 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1066 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1067 --libdir=DIR object code libraries [EPREFIX/lib]
1068 --includedir=DIR C header files [PREFIX/include]
1069 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1070 --infodir=DIR info documentation [PREFIX/info]
1071 --mandir=DIR man documentation [PREFIX/man]
1077 --x-includes=DIR X include files are
in DIR
1078 --x-libraries=DIR X library files are
in DIR
1082 if test -n "$ac_init_help"; then
1087 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1088 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1089 --with-x use the X Window System
1090 --with-appresdir=DIR X11 application resource files
1092 Some influential environment variables
:
1093 CC C compiler
command
1094 CFLAGS C compiler flags
1095 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1096 nonstandard directory
<lib dir
>
1097 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
1098 headers
in a nonstandard directory
<include dir
>
1099 CXX C
++ compiler
command
1100 CXXFLAGS C
++ compiler flags
1103 Use these variables to override the choices made by
`configure' or to help
1104 it to find libraries and programs with nonstandard names/locations.
1109 if test "$ac_init_help" = "recursive"; then
1110 # If there are subdirs, report their specific --help.
1112 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1113 test -d $ac_dir || continue
1116 if test "$ac_dir" != .; then
1117 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1118 # A "../" for each directory in $ac_dir_suffix.
1119 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
1121 ac_dir_suffix= ac_top_builddir=
1125 .) # No --srcdir option. We are building in place.
1127 if test -z "$ac_top_builddir"; then
1130 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
1132 [\\/]* | ?:[\\/]* ) # Absolute name.
1133 ac_srcdir=$srcdir$ac_dir_suffix;
1134 ac_top_srcdir=$srcdir ;;
1136 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1137 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1140 # Do not use `cd foo
&& pwd` to compute absolute names, because
1141 # the directories may not exist.
1143 .) ac_abs_builddir="$ac_dir";;
1146 .) ac_abs_builddir=`pwd`;;
1147 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1148 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1151 case $ac_abs_builddir in
1152 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1154 case ${ac_top_builddir}. in
1155 .) ac_abs_top_builddir=$ac_abs_builddir;;
1156 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1157 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1160 case $ac_abs_builddir in
1161 .) ac_abs_srcdir=$ac_srcdir;;
1164 .) ac_abs_srcdir=$ac_abs_builddir;;
1165 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1166 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1169 case $ac_abs_builddir in
1170 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1172 case $ac_top_srcdir in
1173 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1174 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1175 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1180 # Check for guested configure; otherwise get Cygnus style configure.
1181 if test -f $ac_srcdir/configure.gnu; then
1183 $SHELL $ac_srcdir/configure.gnu --help=recursive
1184 elif test -f $ac_srcdir/configure; then
1186 $SHELL $ac_srcdir/configure --help=recursive
1187 elif test -f $ac_srcdir/configure.ac ||
1188 test -f $ac_srcdir/configure.in; then
1190 $ac_configure --help
1192 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1198 test -n "$ac_init_help" && exit 0
1199 if $ac_init_version; then
1202 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002,
1203 2003, 2004 Free Software Foundation, Inc.
1204 This configure script is free software; the Free Software Foundation
1205 gives unlimited permission to copy, distribute and modify it.
1211 This file contains any messages produced by compilers while
1212 running configure, to aid debugging if configure makes a mistake.
1214 It was created by $as_me, which was
1215 generated by GNU Autoconf 2.59b. Invocation command line was
1226 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1227 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1228 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1229 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1230 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1232 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1233 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1235 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1236 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1237 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1238 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1239 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1240 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1241 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1249 test -z "$as_dir" && as_dir=.
1250 echo "PATH: $as_dir"
1265 # Keep a trace of the command line.
1266 # Strip out --no-create and --no-recursion so they do not pile up.
1267 # Strip out --silent because we don't want to record it for future runs.
1268 # Also quote any args containing shell meta-characters.
1269 # Make two passes to allow for proper duplicate-argument suppression.
1274 ac_must_keep_next=false
1280 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1281 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1282 | -silent | --silent | --silen | --sile | --sil)
1284 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1285 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1288 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1290 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1291 if test $ac_must_keep_next = true; then
1292 ac_must_keep_next=false # Got value, back to normal.
1295 *=* | --config-cache | -C | -disable-* | --disable-* \
1296 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1297 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1298 | -with-* | --with-* | -without-* | --without-* | --x)
1299 case "$ac_configure_args0 " in
1300 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1303 -* ) ac_must_keep_next=true ;;
1306 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1307 # Get rid of the leading space.
1313 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1314 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1316 # When interrupted or exit'd, cleanup temporary files, and complete
1317 # config.log. We remove comments because anyway the quotes in there
1318 # would cause problems or look ugly.
1319 # WARNING: Be sure not to use single quotes in there, as some shells,
1320 # such as our DU 5.0 friend, will then `close
' the trap.
1321 trap 'exit_status
=$?
1322 # Save into config.log some information that might help in debugging.
1327 ## ---------------- ##
1328 ## Cache variables. ##
1329 ## ---------------- ##
1332 # The following way of writing the cache mishandles newlines in values,
1335 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1338 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1339 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1343 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1350 ## ----------------- ##
1351 ## Output variables. ##
1352 ## ----------------- ##
1355 for ac_var
in $ac_subst_vars
1357 eval ac_val
=$
`echo $ac_var`
1358 echo "$ac_var='"'"'$ac_val'"'"'"
1362 if test -n "$ac_subst_files"; then
1369 for ac_var
in $ac_subst_files
1371 eval ac_val
=$
`echo $ac_var`
1372 echo "$ac_var='"'"'$ac_val'"'"'"
1377 if test -s confdefs.h
; then
1384 sed "/^$/d" confdefs.h |
sort
1387 test "$ac_signal" != 0 &&
1388 echo "$as_me: caught signal $ac_signal"
1389 echo "$as_me: exit $exit_status"
1391 rm -f core
*.core
&&
1392 rm -f -r conftest
* confdefs
* conf$$
* $ac_clean_files &&
1395 for ac_signal in 1 2 13 15; do
1396 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1400 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1401 rm -f -r conftest* confdefs.h
1402 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1403 # NextStep 3.3 (patch 3) loses unless the first echo outputs at least 14 bytes.
1405 echo "$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space$ac_space" >confdefs.h
1407 # Predefined preprocessor variables.
1409 cat >>confdefs.h <<_ACEOF
1410 #define PACKAGE_NAME "$PACKAGE_NAME"
1414 cat >>confdefs.h <<_ACEOF
1415 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1419 cat >>confdefs.h <<_ACEOF
1420 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1424 cat >>confdefs.h <<_ACEOF
1425 #define PACKAGE_STRING "$PACKAGE_STRING"
1429 cat >>confdefs.h <<_ACEOF
1430 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1434 # Let the site file select an alternate cache file if it wants to.
1435 # Prefer explicitly selected file to automatically selected ones.
1436 if test -z "$CONFIG_SITE"; then
1437 if test "x$prefix" != xNONE; then
1438 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1440 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1443 for ac_site_file in $CONFIG_SITE; do
1444 if test -r "$ac_site_file"; then
1445 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1446 echo "$as_me: loading site script $ac_site_file" >&6;}
1447 sed 's
/^
/|
/' "$ac_site_file" >&5
1452 if test -r "$cache_file"; then
1453 # Some versions of bash will fail to source /dev/null (special
1454 # files actually), so we avoid doing that.
1455 if test -f "$cache_file"; then
1456 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1457 echo "$as_me: loading cache $cache_file" >&6;}
1459 [\\/]* | ?:[\\/]* ) . $cache_file;;
1460 *) . ./$cache_file;;
1464 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1465 echo "$as_me: creating cache $cache_file" >&6;}
1469 # Check that the precious variables saved in the cache have kept the same
1471 ac_cache_corrupted=false
1472 for ac_var in `(set) 2>&1 |
1473 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1474 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1475 eval ac_new_set=\$ac_env_${ac_var}_set
1476 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1477 eval ac_new_val="\$ac_env_${ac_var}_value"
1478 case $ac_old_set,$ac_new_set in
1480 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1481 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1482 ac_cache_corrupted=: ;;
1484 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1485 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1486 ac_cache_corrupted=: ;;
1489 if test "x$ac_old_val" != "x$ac_new_val"; then
1490 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1491 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1492 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1493 echo "$as_me: former value: $ac_old_val" >&2;}
1494 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1495 echo "$as_me: current value: $ac_new_val" >&2;}
1496 ac_cache_corrupted=:
1499 # Pass precious variables to config.status.
1500 if test "$ac_new_set" = set; then
1502 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1503 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1504 *) ac_arg=$ac_var=$ac_new_val ;;
1506 case " $ac_configure_args " in
1507 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1508 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1512 if $ac_cache_corrupted; then
1513 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1514 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1515 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1516 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1517 { (exit 1); exit 1; }; }
1521 ac_cpp='$CPP $CPPFLAGS'
1522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1523 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1545 ac_config_headers="$ac_config_headers src/include/config.h:src/include/config.hin"
1549 # checks for programs
1551 ac_cpp='$CPP $CPPFLAGS'
1552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1553 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1555 if test -n "$ac_tool_prefix"; then
1556 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1557 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1558 echo "$as_me:$LINENO: checking for $ac_word" >&5
1559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1560 if test "${ac_cv_prog_CC+set}" = set; then
1561 echo $ECHO_N "(cached) $ECHO_C" >&6
1563 if test -n "$CC"; then
1564 ac_cv_prog_CC="$CC" # Let the user override the test.
1566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1570 test -z "$as_dir" && as_dir=.
1571 for ac_exec_ext in '' $ac_executable_extensions; do
1572 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1573 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1583 if test -n "$CC"; then
1584 echo "$as_me:$LINENO: result: $CC" >&5
1585 echo "${ECHO_T}$CC" >&6
1587 echo "$as_me:$LINENO: result: no" >&5
1588 echo "${ECHO_T}no" >&6
1592 if test -z "$ac_cv_prog_CC"; then
1594 # Extract the first word of "gcc", so it can be a program name with args.
1595 set dummy gcc; ac_word=$2
1596 echo "$as_me:$LINENO: checking for $ac_word" >&5
1597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1598 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1599 echo $ECHO_N "(cached) $ECHO_C" >&6
1601 if test -n "$ac_ct_CC"; then
1602 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1608 test -z "$as_dir" && as_dir=.
1609 for ac_exec_ext in '' $ac_executable_extensions; do
1610 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1611 ac_cv_prog_ac_ct_CC="gcc"
1612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1620 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1621 if test -n "$ac_ct_CC"; then
1622 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1623 echo "${ECHO_T}$ac_ct_CC" >&6
1625 echo "$as_me:$LINENO: result: no" >&5
1626 echo "${ECHO_T}no" >&6
1629 if test "x$ac_ct_CC" = x; then
1632 if test "$build" != "$host"; then
1633 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1634 whose name does not start with the host triplet. If you think this
1635 configuration is useful to you, please write to autoconf@gnu.org." >&5
1636 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1637 whose name does not start with the host triplet. If you think this
1638 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1646 if test -z "$CC"; then
1647 if test -n "$ac_tool_prefix"; then
1648 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1649 set dummy ${ac_tool_prefix}cc; ac_word=$2
1650 echo "$as_me:$LINENO: checking for $ac_word" >&5
1651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1652 if test "${ac_cv_prog_CC+set}" = set; then
1653 echo $ECHO_N "(cached) $ECHO_C" >&6
1655 if test -n "$CC"; then
1656 ac_cv_prog_CC="$CC" # Let the user override the test.
1658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1662 test -z "$as_dir" && as_dir=.
1663 for ac_exec_ext in '' $ac_executable_extensions; do
1664 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1665 ac_cv_prog_CC="${ac_tool_prefix}cc"
1666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1675 if test -n "$CC"; then
1676 echo "$as_me:$LINENO: result: $CC" >&5
1677 echo "${ECHO_T}$CC" >&6
1679 echo "$as_me:$LINENO: result: no" >&5
1680 echo "${ECHO_T}no" >&6
1684 if test -z "$ac_cv_prog_CC"; then
1686 # Extract the first word of "cc", so it can be a program name with args.
1687 set dummy cc; ac_word=$2
1688 echo "$as_me:$LINENO: checking for $ac_word" >&5
1689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1690 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1691 echo $ECHO_N "(cached) $ECHO_C" >&6
1693 if test -n "$ac_ct_CC"; then
1694 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1700 test -z "$as_dir" && as_dir=.
1701 for ac_exec_ext in '' $ac_executable_extensions; do
1702 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1703 ac_cv_prog_ac_ct_CC="cc"
1704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1712 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1713 if test -n "$ac_ct_CC"; then
1714 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1715 echo "${ECHO_T}$ac_ct_CC" >&6
1717 echo "$as_me:$LINENO: result: no" >&5
1718 echo "${ECHO_T}no" >&6
1721 if test "x$ac_ct_CC" = x; then
1724 if test "$build" != "$host"; then
1725 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1726 whose name does not start with the host triplet. If you think this
1727 configuration is useful to you, please write to autoconf@gnu.org." >&5
1728 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1729 whose name does not start with the host triplet. If you think this
1730 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1739 if test -z "$CC"; then
1740 # Extract the first word of "cc", so it can be a program name with args.
1741 set dummy cc; ac_word=$2
1742 echo "$as_me:$LINENO: checking for $ac_word" >&5
1743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1744 if test "${ac_cv_prog_CC+set}" = set; then
1745 echo $ECHO_N "(cached) $ECHO_C" >&6
1747 if test -n "$CC"; then
1748 ac_cv_prog_CC="$CC" # Let the user override the test.
1751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1755 test -z "$as_dir" && as_dir=.
1756 for ac_exec_ext in '' $ac_executable_extensions; do
1757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1758 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1759 ac_prog_rejected=yes
1763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1769 if test $ac_prog_rejected = yes; then
1770 # We found a bogon in the path, so make sure we never use it.
1771 set dummy $ac_cv_prog_CC
1773 if test $# != 0; then
1774 # We chose a different compiler from the bogus one.
1775 # However, it has the same basename, so the bogon will be chosen
1776 # first if we set CC to just the basename; use the full file name.
1778 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1784 if test -n "$CC"; then
1785 echo "$as_me:$LINENO: result: $CC" >&5
1786 echo "${ECHO_T}$CC" >&6
1788 echo "$as_me:$LINENO: result: no" >&5
1789 echo "${ECHO_T}no" >&6
1793 if test -z "$CC"; then
1794 if test -n "$ac_tool_prefix"; then
1797 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1798 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1799 echo "$as_me:$LINENO: checking for $ac_word" >&5
1800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1801 if test "${ac_cv_prog_CC+set}" = set; then
1802 echo $ECHO_N "(cached) $ECHO_C" >&6
1804 if test -n "$CC"; then
1805 ac_cv_prog_CC="$CC" # Let the user override the test.
1807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1811 test -z "$as_dir" && as_dir=.
1812 for ac_exec_ext in '' $ac_executable_extensions; do
1813 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1814 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1824 if test -n "$CC"; then
1825 echo "$as_me:$LINENO: result: $CC" >&5
1826 echo "${ECHO_T}$CC" >&6
1828 echo "$as_me:$LINENO: result: no" >&5
1829 echo "${ECHO_T}no" >&6
1832 test -n "$CC" && break
1835 if test -z "$CC"; then
1839 # Extract the first word of "$ac_prog", so it can be a program name with args.
1840 set dummy $ac_prog; ac_word=$2
1841 echo "$as_me:$LINENO: checking for $ac_word" >&5
1842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1843 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1844 echo $ECHO_N "(cached) $ECHO_C" >&6
1846 if test -n "$ac_ct_CC"; then
1847 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1853 test -z "$as_dir" && as_dir=.
1854 for ac_exec_ext in '' $ac_executable_extensions; do
1855 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1856 ac_cv_prog_ac_ct_CC="$ac_prog"
1857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1865 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1866 if test -n "$ac_ct_CC"; then
1867 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1868 echo "${ECHO_T}$ac_ct_CC" >&6
1870 echo "$as_me:$LINENO: result: no" >&5
1871 echo "${ECHO_T}no" >&6
1874 test -n "$ac_ct_CC" && break
1877 if test "x$ac_ct_CC" = x; then
1880 if test "$build" != "$host"; then
1881 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1882 whose name does not start with the host triplet. If you think this
1883 configuration is useful to you, please write to autoconf@gnu.org." >&5
1884 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1885 whose name does not start with the host triplet. If you think this
1886 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1895 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1896 See \`config.log' for more details.
" >&5
1897 echo "$as_me: error
: no acceptable C compiler found
in \
$PATH
1898 See \
`config.log' for more details." >&2;}
1899 { (exit 1); exit 1; }; }
1901 # Provide some information about the compiler.
1902 echo "$as_me:$LINENO:" \
1903 "checking for C compiler version" >&5
1904 ac_compiler=`set X
$ac_compile; echo $2`
1905 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1906 (eval $ac_compiler --version </dev/null >&5) 2>&5
1908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1909 (exit $ac_status); }
1910 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1911 (eval $ac_compiler -v </dev/null >&5) 2>&5
1913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1914 (exit $ac_status); }
1915 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1916 (eval $ac_compiler -V </dev/null >&5) 2>&5
1918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1919 (exit $ac_status); }
1921 cat >conftest.$ac_ext <<_ACEOF
1924 cat confdefs.h >>conftest.$ac_ext
1925 cat >>conftest.$ac_ext <<_ACEOF
1926 /* end confdefs.h. */
1936 ac_clean_files_save=$ac_clean_files
1937 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1938 # Try to create an executable without -o first, disregard a.out.
1939 # It will help us diagnose broken compilers, and finding out an intuition
1941 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1942 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1943 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
1945 # List of possible output files, starting from the most likely.
1946 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
1947 # only as a last resort. b.out is created by i960 compilers.
1948 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
1950 # The IRIX 6 linker writes into existing files which may not be
1951 # executable, retaining their permissions. Remove them first so a
1952 # subsequent execution test works.
1954 for ac_file in $ac_files
1957 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1958 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
1963 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1964 (eval $ac_link_default) 2>&5
1966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1967 (exit $ac_status); }; then
1968 # Be careful to initialize this variable, since it used to be cached.
1969 # Otherwise an old cache value of `no' led to
`EXEEXT = no' in a Makefile.
1971 for ac_file in $ac_files
1973 test -f "$ac_file" || continue
1975 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1978 # We found the default executable, but exeext='' is most
1982 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1983 # FIXME: I believe we export ac_cv_exeext for Libtool,
1984 # but it would be cool to find out if it's true. Does anybody
1985 # maintain Libtool? --akim.
1993 echo "$as_me: failed program was:" >&5
1994 sed 's/^/| /' conftest.$ac_ext >&5
1996 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1997 See \`config.log
' for more details." >&5
1998 echo "$as_me: error: C compiler cannot create executables
1999 See \`config.log' for more details.
" >&2;}
2000 { (exit 77); exit 77; }; }
2003 ac_exeext=$ac_cv_exeext
2004 echo "$as_me:$LINENO: result
: $ac_file" >&5
2005 echo "${ECHO_T}$ac_file" >&6
2007 # Check the compiler produces executables we can run. If not, either
2008 # the compiler is broken, or we cross compile.
2009 echo "$as_me:$LINENO: checking whether the C compiler works
" >&5
2010 echo $ECHO_N "checking whether the C compiler works...
$ECHO_C" >&6
2011 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2012 # If not cross compiling, check that we can run a simple program.
2013 if test "$cross_compiling" != yes; then
2014 if { ac_try='./$ac_file'
2015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2018 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2019 (exit $ac_status); }; }; then
2022 if test "$cross_compiling" = maybe; then
2025 { { echo "$as_me:$LINENO: error
: cannot run C compiled programs.
2026 If you meant to cross compile
, use \
`--host'.
2027 See \`config.log
' for more details." >&5
2028 echo "$as_me: error: cannot run C compiled programs.
2029 If you meant to cross compile, use \`--host'.
2030 See \
`config.log' for more details." >&2;}
2031 { (exit 1); exit 1; }; }
2035 echo "$as_me:$LINENO: result: yes" >&5
2036 echo "${ECHO_T}yes" >&6
2038 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2039 ac_clean_files=$ac_clean_files_save
2040 # Check the compiler produces executables we can run. If not, either
2041 # the compiler is broken, or we cross compile.
2042 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2043 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2044 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2045 echo "${ECHO_T}$cross_compiling" >&6
2047 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2048 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2050 (eval $ac_link) 2>&5
2052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2053 (exit $ac_status); }; then
2054 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
2055 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
2056 # work properly (i.e., refer to `conftest.exe'), while it won't with
2058 for ac_file
in conftest.exe conftest conftest.
*; do
2059 test -f "$ac_file" ||
continue
2061 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2062 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2069 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2070 See \`config.log' for more details." >&5
2071 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2072 See \`config.log' for more details." >&2;}
2073 { (exit 1); exit 1; }; }
2076 rm -f conftest
$ac_cv_exeext
2077 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2078 echo "${ECHO_T}$ac_cv_exeext" >&6
2080 rm -f conftest.
$ac_ext
2081 EXEEXT
=$ac_cv_exeext
2083 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2084 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2085 if test "${ac_cv_objext+set}" = set; then
2086 echo $ECHO_N "(cached) $ECHO_C" >&6
2088 cat >conftest.
$ac_ext <<_ACEOF
2091 cat confdefs.h
>>conftest.
$ac_ext
2092 cat >>conftest.
$ac_ext <<_ACEOF
2093 /* end confdefs.h. */
2103 rm -f conftest.o conftest.obj
2104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2105 (eval $ac_compile) 2>&5
2107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108 (exit $ac_status); }; then
2109 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2111 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2112 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2117 echo "$as_me: failed program was:" >&5
2118 sed 's/^/| /' conftest.
$ac_ext >&5
2120 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2121 See \`config.log' for more details." >&5
2122 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2123 See \`config.log' for more details." >&2;}
2124 { (exit 1); exit 1; }; }
2127 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2129 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2130 echo "${ECHO_T}$ac_cv_objext" >&6
2131 OBJEXT
=$ac_cv_objext
2133 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2134 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2135 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2136 echo $ECHO_N "(cached) $ECHO_C" >&6
2138 cat >conftest.
$ac_ext <<_ACEOF
2141 cat confdefs.h
>>conftest.
$ac_ext
2142 cat >>conftest.
$ac_ext <<_ACEOF
2143 /* end confdefs.h. */
2156 rm -f conftest.
$ac_objext
2157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2158 (eval $ac_compile) 2>conftest.er1
2160 grep -v '^ *+' conftest.er1
>conftest.err
2162 cat conftest.err
>&5
2163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164 (exit $ac_status); } &&
2165 { ac_try
='test -z "$ac_c_werror_flag"
2166 || test ! -s conftest.err'
2167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171 (exit $ac_status); }; } &&
2172 { ac_try
='test -s conftest.$ac_objext'
2173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177 (exit $ac_status); }; }; then
2180 echo "$as_me: failed program was:" >&5
2181 sed 's/^/| /' conftest.
$ac_ext >&5
2185 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2186 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2189 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2190 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2191 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2192 ac_test_CFLAGS
=${CFLAGS+set}
2193 ac_save_CFLAGS
=$CFLAGS
2194 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2195 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2196 if test "${ac_cv_prog_cc_g+set}" = set; then
2197 echo $ECHO_N "(cached) $ECHO_C" >&6
2199 ac_save_c_werror_flag
=$ac_c_werror_flag
2200 ac_c_werror_flag
=yes
2203 cat >conftest.
$ac_ext <<_ACEOF
2206 cat confdefs.h
>>conftest.
$ac_ext
2207 cat >>conftest.
$ac_ext <<_ACEOF
2208 /* end confdefs.h. */
2218 rm -f conftest.
$ac_objext
2219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2220 (eval $ac_compile) 2>conftest.er1
2222 grep -v '^ *+' conftest.er1
>conftest.err
2224 cat conftest.err
>&5
2225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2226 (exit $ac_status); } &&
2227 { ac_try
='test -z "$ac_c_werror_flag"
2228 || test ! -s conftest.err'
2229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233 (exit $ac_status); }; } &&
2234 { ac_try
='test -s conftest.$ac_objext'
2235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239 (exit $ac_status); }; }; then
2242 echo "$as_me: failed program was:" >&5
2243 sed 's/^/| /' conftest.
$ac_ext >&5
2246 cat >conftest.
$ac_ext <<_ACEOF
2249 cat confdefs.h
>>conftest.
$ac_ext
2250 cat >>conftest.
$ac_ext <<_ACEOF
2251 /* end confdefs.h. */
2261 rm -f conftest.
$ac_objext
2262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2263 (eval $ac_compile) 2>conftest.er1
2265 grep -v '^ *+' conftest.er1
>conftest.err
2267 cat conftest.err
>&5
2268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269 (exit $ac_status); } &&
2270 { ac_try
='test -z "$ac_c_werror_flag"
2271 || test ! -s conftest.err'
2272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276 (exit $ac_status); }; } &&
2277 { ac_try
='test -s conftest.$ac_objext'
2278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282 (exit $ac_status); }; }; then
2285 echo "$as_me: failed program was:" >&5
2286 sed 's/^/| /' conftest.
$ac_ext >&5
2288 ac_c_werror_flag
=$ac_save_c_werror_flag
2290 cat >conftest.
$ac_ext <<_ACEOF
2293 cat confdefs.h
>>conftest.
$ac_ext
2294 cat >>conftest.
$ac_ext <<_ACEOF
2295 /* end confdefs.h. */
2305 rm -f conftest.
$ac_objext
2306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2307 (eval $ac_compile) 2>conftest.er1
2309 grep -v '^ *+' conftest.er1
>conftest.err
2311 cat conftest.err
>&5
2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 (exit $ac_status); } &&
2314 { ac_try
='test -z "$ac_c_werror_flag"
2315 || test ! -s conftest.err'
2316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320 (exit $ac_status); }; } &&
2321 { ac_try
='test -s conftest.$ac_objext'
2322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 (exit $ac_status); }; }; then
2329 echo "$as_me: failed program was:" >&5
2330 sed 's/^/| /' conftest.
$ac_ext >&5
2333 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2335 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2337 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2338 ac_c_werror_flag
=$ac_save_c_werror_flag
2340 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2341 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2342 if test "$ac_test_CFLAGS" = set; then
2343 CFLAGS
=$ac_save_CFLAGS
2344 elif test $ac_cv_prog_cc_g = yes; then
2345 if test "$GCC" = yes; then
2351 if test "$GCC" = yes; then
2357 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2358 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2359 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2360 echo $ECHO_N "(cached) $ECHO_C" >&6
2362 ac_cv_prog_cc_stdc
=no
2364 cat >conftest.
$ac_ext <<_ACEOF
2367 cat confdefs.h
>>conftest.
$ac_ext
2368 cat >>conftest.
$ac_ext <<_ACEOF
2369 /* end confdefs.h. */
2372 #include <sys/types.h>
2373 #include <sys/stat.h>
2374 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2375 struct buf { int x; };
2376 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2377 static char *e (p, i)
2383 static char *f (char * (*g) (char **, int), char **p, ...)
2388 s = g (p, va_arg (v,int));
2393 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2394 function prototypes and stuff, but not '\xHH' hex character constants.
2395 These don't provoke an error unfortunately, instead are silently treated
2396 as 'x'. The following induces an error, until -std is added to get
2397 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2398 array size at least. It's necessary to write '\x00'==0 to get something
2399 that's true only with -std. */
2400 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2402 int test (int i, double x);
2403 struct s1 {int (*f) (int a);};
2404 struct s2 {int (*f) (double a);};
2405 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2411 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2416 # Don't try gcc -ansi; that turns off useful extensions and
2417 # breaks some systems' header files.
2418 # AIX -qlanglvl=ansi
2419 # Ultrix, OSF/1, Tru64 -std
2420 # HP-UX 10.20 and later -Ae
2421 # HP-UX older versions -Aa -D_HPUX_SOURCE
2422 # SVR4 -Xc -D__EXTENSIONS__
2423 for ac_arg
in "" -qlanglvl=ansi
-std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2425 CC
="$ac_save_CC $ac_arg"
2426 rm -f conftest.
$ac_objext
2427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2428 (eval $ac_compile) 2>conftest.er1
2430 grep -v '^ *+' conftest.er1
>conftest.err
2432 cat conftest.err
>&5
2433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434 (exit $ac_status); } &&
2435 { ac_try
='test -z "$ac_c_werror_flag"
2436 || test ! -s conftest.err'
2437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441 (exit $ac_status); }; } &&
2442 { ac_try
='test -s conftest.$ac_objext'
2443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447 (exit $ac_status); }; }; then
2448 ac_cv_prog_cc_stdc
=$ac_arg
2451 echo "$as_me: failed program was:" >&5
2452 sed 's/^/| /' conftest.
$ac_ext >&5
2455 rm -f conftest.err conftest.
$ac_objext
2457 rm -f conftest.
$ac_ext conftest.
$ac_objext
2462 case "x$ac_cv_prog_cc_stdc" in
2464 echo "$as_me:$LINENO: result: none needed" >&5
2465 echo "${ECHO_T}none needed" >&6 ;;
2467 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2468 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2469 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2472 # Some people use a C++ compiler to compile C. Since we use `exit',
2473 # in C++ we need to declare it. In case someone uses the same compiler
2474 # for both compiling C and C++ we need to have the C++ compiler decide
2475 # the declaration of exit, since it's the most demanding environment.
2476 cat >conftest.
$ac_ext <<_ACEOF
2481 rm -f conftest.
$ac_objext
2482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2483 (eval $ac_compile) 2>conftest.er1
2485 grep -v '^ *+' conftest.er1
>conftest.err
2487 cat conftest.err
>&5
2488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489 (exit $ac_status); } &&
2490 { ac_try
='test -z "$ac_c_werror_flag"
2491 || test ! -s conftest.err'
2492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496 (exit $ac_status); }; } &&
2497 { ac_try
='test -s conftest.$ac_objext'
2498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502 (exit $ac_status); }; }; then
2503 for ac_declaration
in \
2505 'extern "C" void std::exit (int) throw (); using std::exit;' \
2506 'extern "C" void std::exit (int); using std::exit;' \
2507 'extern "C" void exit (int) throw ();' \
2508 'extern "C" void exit (int);' \
2511 cat >conftest.
$ac_ext <<_ACEOF
2514 cat confdefs.h
>>conftest.
$ac_ext
2515 cat >>conftest.
$ac_ext <<_ACEOF
2516 /* end confdefs.h. */
2527 rm -f conftest.
$ac_objext
2528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2529 (eval $ac_compile) 2>conftest.er1
2531 grep -v '^ *+' conftest.er1
>conftest.err
2533 cat conftest.err
>&5
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); } &&
2536 { ac_try
='test -z "$ac_c_werror_flag"
2537 || test ! -s conftest.err'
2538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542 (exit $ac_status); }; } &&
2543 { ac_try
='test -s conftest.$ac_objext'
2544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); }; }; then
2551 echo "$as_me: failed program was:" >&5
2552 sed 's/^/| /' conftest.
$ac_ext >&5
2556 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2557 cat >conftest.
$ac_ext <<_ACEOF
2560 cat confdefs.h
>>conftest.
$ac_ext
2561 cat >>conftest.
$ac_ext <<_ACEOF
2562 /* end confdefs.h. */
2572 rm -f conftest.
$ac_objext
2573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2574 (eval $ac_compile) 2>conftest.er1
2576 grep -v '^ *+' conftest.er1
>conftest.err
2578 cat conftest.err
>&5
2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); } &&
2581 { ac_try
='test -z "$ac_c_werror_flag"
2582 || test ! -s conftest.err'
2583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); }; } &&
2588 { ac_try
='test -s conftest.$ac_objext'
2589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); }; }; then
2596 echo "$as_me: failed program was:" >&5
2597 sed 's/^/| /' conftest.
$ac_ext >&5
2600 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2603 if test -n "$ac_declaration"; then
2604 echo '#ifdef __cplusplus' >>confdefs.h
2605 echo $ac_declaration >>confdefs.h
2606 echo '#endif' >>confdefs.h
2610 echo "$as_me: failed program was:" >&5
2611 sed 's/^/| /' conftest.
$ac_ext >&5
2614 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2616 ac_cpp
='$CPP $CPPFLAGS'
2617 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2618 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2619 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2622 ac_cpp
='$CXXCPP $CPPFLAGS'
2623 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2624 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2625 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
2626 if test -n "$ac_tool_prefix"; then
2627 for ac_prog
in $CCC g
++ c
++ gpp aCC CC cxx cc
++ cl FCC KCC RCC xlC_r xlC
2629 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2630 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2631 echo "$as_me:$LINENO: checking for $ac_word" >&5
2632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2633 if test "${ac_cv_prog_CXX+set}" = set; then
2634 echo $ECHO_N "(cached) $ECHO_C" >&6
2636 if test -n "$CXX"; then
2637 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
2639 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2643 test -z "$as_dir" && as_dir
=.
2644 for ac_exec_ext
in '' $ac_executable_extensions; do
2645 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2646 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
2647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2656 if test -n "$CXX"; then
2657 echo "$as_me:$LINENO: result: $CXX" >&5
2658 echo "${ECHO_T}$CXX" >&6
2660 echo "$as_me:$LINENO: result: no" >&5
2661 echo "${ECHO_T}no" >&6
2664 test -n "$CXX" && break
2667 if test -z "$CXX"; then
2669 for ac_prog
in $CCC g
++ c
++ gpp aCC CC cxx cc
++ cl FCC KCC RCC xlC_r xlC
2671 # Extract the first word of "$ac_prog", so it can be a program name with args.
2672 set dummy
$ac_prog; ac_word
=$2
2673 echo "$as_me:$LINENO: checking for $ac_word" >&5
2674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2675 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2676 echo $ECHO_N "(cached) $ECHO_C" >&6
2678 if test -n "$ac_ct_CXX"; then
2679 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
2681 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2685 test -z "$as_dir" && as_dir
=.
2686 for ac_exec_ext
in '' $ac_executable_extensions; do
2687 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2688 ac_cv_prog_ac_ct_CXX
="$ac_prog"
2689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2697 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
2698 if test -n "$ac_ct_CXX"; then
2699 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2700 echo "${ECHO_T}$ac_ct_CXX" >&6
2702 echo "$as_me:$LINENO: result: no" >&5
2703 echo "${ECHO_T}no" >&6
2706 test -n "$ac_ct_CXX" && break
2709 if test "x$ac_ct_CXX" = x
; then
2712 if test "$build" != "$host"; then
2713 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2714 whose name does not start with the host triplet. If you think this
2715 configuration is useful to you, please write to autoconf@gnu.org." >&5
2716 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2717 whose name does not start with the host triplet. If you think this
2718 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2725 # Provide some information about the compiler.
2726 echo "$as_me:$LINENO:" \
2727 "checking for C++ compiler version" >&5
2728 ac_compiler
=`set X $ac_compile; echo $2`
2729 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2730 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 (exit $ac_status); }
2734 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2735 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738 (exit $ac_status); }
2739 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2740 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743 (exit $ac_status); }
2745 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2746 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2747 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2748 echo $ECHO_N "(cached) $ECHO_C" >&6
2750 cat >conftest.
$ac_ext <<_ACEOF
2753 cat confdefs.h
>>conftest.
$ac_ext
2754 cat >>conftest.
$ac_ext <<_ACEOF
2755 /* end confdefs.h. */
2768 rm -f conftest.
$ac_objext
2769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2770 (eval $ac_compile) 2>conftest.er1
2772 grep -v '^ *+' conftest.er1
>conftest.err
2774 cat conftest.err
>&5
2775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776 (exit $ac_status); } &&
2777 { ac_try
='test -z "$ac_cxx_werror_flag"
2778 || test ! -s conftest.err'
2779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); }; } &&
2784 { ac_try
='test -s conftest.$ac_objext'
2785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); }; }; then
2792 echo "$as_me: failed program was:" >&5
2793 sed 's/^/| /' conftest.
$ac_ext >&5
2797 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2798 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
2801 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2802 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2803 GXX
=`test $ac_compiler_gnu = yes && echo yes`
2804 ac_test_CXXFLAGS
=${CXXFLAGS+set}
2805 ac_save_CXXFLAGS
=$CXXFLAGS
2806 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2807 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2808 if test "${ac_cv_prog_cxx_g+set}" = set; then
2809 echo $ECHO_N "(cached) $ECHO_C" >&6
2811 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
2812 ac_cxx_werror_flag
=yes
2815 cat >conftest.
$ac_ext <<_ACEOF
2818 cat confdefs.h
>>conftest.
$ac_ext
2819 cat >>conftest.
$ac_ext <<_ACEOF
2820 /* end confdefs.h. */
2830 rm -f conftest.
$ac_objext
2831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2832 (eval $ac_compile) 2>conftest.er1
2834 grep -v '^ *+' conftest.er1
>conftest.err
2836 cat conftest.err
>&5
2837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838 (exit $ac_status); } &&
2839 { ac_try
='test -z "$ac_cxx_werror_flag"
2840 || test ! -s conftest.err'
2841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845 (exit $ac_status); }; } &&
2846 { ac_try
='test -s conftest.$ac_objext'
2847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851 (exit $ac_status); }; }; then
2852 ac_cv_prog_cxx_g
=yes
2854 echo "$as_me: failed program was:" >&5
2855 sed 's/^/| /' conftest.
$ac_ext >&5
2858 cat >conftest.
$ac_ext <<_ACEOF
2861 cat confdefs.h
>>conftest.
$ac_ext
2862 cat >>conftest.
$ac_ext <<_ACEOF
2863 /* end confdefs.h. */
2873 rm -f conftest.
$ac_objext
2874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2875 (eval $ac_compile) 2>conftest.er1
2877 grep -v '^ *+' conftest.er1
>conftest.err
2879 cat conftest.err
>&5
2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); } &&
2882 { ac_try
='test -z "$ac_cxx_werror_flag"
2883 || test ! -s conftest.err'
2884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888 (exit $ac_status); }; } &&
2889 { ac_try
='test -s conftest.$ac_objext'
2890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); }; }; then
2897 echo "$as_me: failed program was:" >&5
2898 sed 's/^/| /' conftest.
$ac_ext >&5
2900 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
2902 cat >conftest.
$ac_ext <<_ACEOF
2905 cat confdefs.h
>>conftest.
$ac_ext
2906 cat >>conftest.
$ac_ext <<_ACEOF
2907 /* end confdefs.h. */
2917 rm -f conftest.
$ac_objext
2918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2919 (eval $ac_compile) 2>conftest.er1
2921 grep -v '^ *+' conftest.er1
>conftest.err
2923 cat conftest.err
>&5
2924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925 (exit $ac_status); } &&
2926 { ac_try
='test -z "$ac_cxx_werror_flag"
2927 || test ! -s conftest.err'
2928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932 (exit $ac_status); }; } &&
2933 { ac_try
='test -s conftest.$ac_objext'
2934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938 (exit $ac_status); }; }; then
2939 ac_cv_prog_cxx_g
=yes
2941 echo "$as_me: failed program was:" >&5
2942 sed 's/^/| /' conftest.
$ac_ext >&5
2945 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2947 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2949 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2950 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
2952 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2953 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2954 if test "$ac_test_CXXFLAGS" = set; then
2955 CXXFLAGS
=$ac_save_CXXFLAGS
2956 elif test $ac_cv_prog_cxx_g = yes; then
2957 if test "$GXX" = yes; then
2963 if test "$GXX" = yes; then
2969 for ac_declaration
in \
2971 'extern "C" void std::exit (int) throw (); using std::exit;' \
2972 'extern "C" void std::exit (int); using std::exit;' \
2973 'extern "C" void exit (int) throw ();' \
2974 'extern "C" void exit (int);' \
2977 cat >conftest.
$ac_ext <<_ACEOF
2980 cat confdefs.h
>>conftest.
$ac_ext
2981 cat >>conftest.
$ac_ext <<_ACEOF
2982 /* end confdefs.h. */
2993 rm -f conftest.
$ac_objext
2994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2995 (eval $ac_compile) 2>conftest.er1
2997 grep -v '^ *+' conftest.er1
>conftest.err
2999 cat conftest.err
>&5
3000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001 (exit $ac_status); } &&
3002 { ac_try
='test -z "$ac_cxx_werror_flag"
3003 || test ! -s conftest.err'
3004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008 (exit $ac_status); }; } &&
3009 { ac_try
='test -s conftest.$ac_objext'
3010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014 (exit $ac_status); }; }; then
3017 echo "$as_me: failed program was:" >&5
3018 sed 's/^/| /' conftest.
$ac_ext >&5
3022 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3023 cat >conftest.
$ac_ext <<_ACEOF
3026 cat confdefs.h
>>conftest.
$ac_ext
3027 cat >>conftest.
$ac_ext <<_ACEOF
3028 /* end confdefs.h. */
3038 rm -f conftest.
$ac_objext
3039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3040 (eval $ac_compile) 2>conftest.er1
3042 grep -v '^ *+' conftest.er1
>conftest.err
3044 cat conftest.err
>&5
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); } &&
3047 { ac_try
='test -z "$ac_cxx_werror_flag"
3048 || test ! -s conftest.err'
3049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053 (exit $ac_status); }; } &&
3054 { ac_try
='test -s conftest.$ac_objext'
3055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059 (exit $ac_status); }; }; then
3062 echo "$as_me: failed program was:" >&5
3063 sed 's/^/| /' conftest.
$ac_ext >&5
3066 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3069 if test -n "$ac_declaration"; then
3070 echo '#ifdef __cplusplus' >>confdefs.h
3071 echo $ac_declaration >>confdefs.h
3072 echo '#endif' >>confdefs.h
3076 ac_cpp
='$CPP $CPPFLAGS'
3077 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3078 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3079 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3084 ac_cpp
='$CXXCPP $CPPFLAGS'
3085 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3086 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3087 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3089 if test "$cross_compiling" = no
; then
3090 echo "$as_me:$LINENO: checking that C++ compiler can compile simple program" >&5
3091 echo $ECHO_N "checking that C++ compiler can compile simple program... $ECHO_C" >&6
3093 if test "$cross_compiling" = yes; then
3096 cat >conftest.
$ac_ext <<_ACEOF
3100 cat confdefs.h
>>conftest.
$ac_ext
3101 cat >>conftest.
$ac_ext <<_ACEOF
3102 /* end confdefs.h. */
3112 rm -f conftest
$ac_exeext
3113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3114 (eval $ac_link) 2>&5
3116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122 (exit $ac_status); }; }; then
3123 echo "$as_me:$LINENO: result: yes" >&5
3124 echo "${ECHO_T}yes" >&6
3126 echo "$as_me: program exited with status $ac_status" >&5
3127 echo "$as_me: failed program was:" >&5
3128 sed 's/^/| /' conftest.
$ac_ext >&5
3131 echo "$as_me:$LINENO: result: no" >&5
3132 echo "${ECHO_T}no" >&6
3133 { { echo "$as_me:$LINENO: error: a working C++ compiler is required" >&5
3134 echo "$as_me: error: a working C++ compiler is required" >&2;}
3135 { (exit 1); exit 1; }; }
3137 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3140 if test "$cross_compiling" = no
; then
3141 echo "$as_me:$LINENO: checking that C++ static constructors and destructors are called" >&5
3142 echo $ECHO_N "checking that C++ static constructors and destructors are called... $ECHO_C" >&6
3144 if test "$cross_compiling" = yes; then
3147 cat >conftest.
$ac_ext <<_ACEOF
3151 cat confdefs.h
>>conftest.
$ac_ext
3152 cat >>conftest.
$ac_ext <<_ACEOF
3153 /* end confdefs.h. */
3164 ~A() { if (i == 1) _exit(0); }
3177 rm -f conftest
$ac_exeext
3178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3179 (eval $ac_link) 2>&5
3181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); }; }; then
3188 echo "$as_me:$LINENO: result: yes" >&5
3189 echo "${ECHO_T}yes" >&6
3191 echo "$as_me: program exited with status $ac_status" >&5
3192 echo "$as_me: failed program was:" >&5
3193 sed 's/^/| /' conftest.
$ac_ext >&5
3196 echo "$as_me:$LINENO: result: no" >&5
3197 echo "${ECHO_T}no" >&6
3198 { { echo "$as_me:$LINENO: error: a working C++ compiler is required" >&5
3199 echo "$as_me: error: a working C++ compiler is required" >&2;}
3200 { (exit 1); exit 1; }; }
3202 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3205 echo "$as_me:$LINENO: checking that header files support C++" >&5
3206 echo $ECHO_N "checking that header files support C++... $ECHO_C" >&6
3207 cat >conftest.
$ac_ext <<_ACEOF
3211 cat confdefs.h
>>conftest.
$ac_ext
3212 cat >>conftest.
$ac_ext <<_ACEOF
3213 /* end confdefs.h. */
3232 rm -f conftest.
$ac_objext conftest
$ac_exeext
3233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3234 (eval $ac_link) 2>conftest.er1
3236 grep -v '^ *+' conftest.er1
>conftest.err
3238 cat conftest.err
>&5
3239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240 (exit $ac_status); } &&
3241 { ac_try
='test -z "$ac_cxx_werror_flag"
3242 || test ! -s conftest.err'
3243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); }; } &&
3248 { ac_try
='test -s conftest$ac_exeext'
3249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253 (exit $ac_status); }; }; then
3254 echo "$as_me:$LINENO: result: yes" >&5
3255 echo "${ECHO_T}yes" >&6
3257 echo "$as_me: failed program was:" >&5
3258 sed 's/^/| /' conftest.
$ac_ext >&5
3260 echo "$as_me:$LINENO: result: no" >&5
3261 echo "${ECHO_T}no" >&6
3262 { { echo "$as_me:$LINENO: error: header files do not support C++
3263 (if you are using a version of gcc/g++ earlier than 2.5,
3264 you should install libg++)" >&5
3265 echo "$as_me: error: header files do not support C++
3266 (if you are using a version of gcc/g++ earlier than 2.5,
3267 you should install libg++)" >&2;}
3268 { (exit 1); exit 1; }; }
3270 rm -f conftest.err conftest.
$ac_objext \
3271 conftest
$ac_exeext conftest.
$ac_ext
3273 ac_cpp
='$CPP $CPPFLAGS'
3274 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3275 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3276 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3279 echo "$as_me:$LINENO: checking whether character set is EBCDIC" >&5
3280 echo $ECHO_N "checking whether character set is EBCDIC... $ECHO_C" >&6
3281 cat >conftest.
$ac_ext <<_ACEOF
3285 cat confdefs.h
>>conftest.
$ac_ext
3286 cat >>conftest.
$ac_ext <<_ACEOF
3287 /* end confdefs.h. */
3290 /* Treat any failure as ASCII for compatibility with existing art.
3291 Use compile-time rather than run-time tests for cross-compiler
3294 make an error "Character set is not EBCDIC"
3307 rm -f conftest.
$ac_objext
3308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3309 (eval $ac_compile) 2>conftest.er1
3311 grep -v '^ *+' conftest.er1
>conftest.err
3313 cat conftest.err
>&5
3314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315 (exit $ac_status); } &&
3316 { ac_try
='test -z "$ac_c_werror_flag"
3317 || test ! -s conftest.err'
3318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322 (exit $ac_status); }; } &&
3323 { ac_try
='test -s conftest.$ac_objext'
3324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328 (exit $ac_status); }; }; then
3329 groff_cv_ebcdic
="yes"
3330 TTYDEVDIRS
="font/devcp1047"
3331 echo "$as_me:$LINENO: result: yes" >&5
3332 echo "${ECHO_T}yes" >&6
3334 cat >>confdefs.h
<<\_ACEOF
3335 #define IS_EBCDIC_HOST 1
3339 echo "$as_me: failed program was:" >&5
3340 sed 's/^/| /' conftest.
$ac_ext >&5
3342 groff_cv_ebcdic
="no"
3343 TTYDEVDIRS
="font/devascii font/devlatin1"
3344 OTHERDEVDIRS
="font/devlj4 font/devlbp"
3345 echo "$as_me:$LINENO: result: no" >&5
3346 echo "${ECHO_T}no" >&6
3348 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3351 if test "$groff_cv_ebcdic" = "yes"; then
3352 echo "$as_me:$LINENO: checking for OS/390 Unix" >&5
3353 echo $ECHO_N "checking for OS/390 Unix... $ECHO_C" >&6
3356 CFLAGS
="$CFLAGS -D_ALL_SOURCE"
3357 echo "$as_me:$LINENO: result: yes" >&5
3358 echo "${ECHO_T}yes" >&6 ;;
3360 echo "$as_me:$LINENO: result: no" >&5
3361 echo "${ECHO_T}no" >&6 ;;
3365 ac_cpp
='$CPP $CPPFLAGS'
3366 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3367 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3368 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3369 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3370 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3371 # On Suns, sometimes $CPP names a directory.
3372 if test -n "$CPP" && test -d "$CPP"; then
3375 if test -z "$CPP"; then
3376 if test "${ac_cv_prog_CPP+set}" = set; then
3377 echo $ECHO_N "(cached) $ECHO_C" >&6
3379 # Double quotes because CPP needs to be expanded
3380 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3383 for ac_c_preproc_warn_flag
in '' yes
3385 # Use a header file that comes with gcc, so configuring glibc
3386 # with a fresh cross-compiler works.
3387 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3388 # <limits.h> exists even on freestanding compilers.
3389 # On the NeXT, cc -E runs the code through the compiler's parser,
3390 # not just through cpp. "Syntax error" is here to catch this case.
3391 cat >conftest.
$ac_ext <<_ACEOF
3394 cat confdefs.h
>>conftest.
$ac_ext
3395 cat >>conftest.
$ac_ext <<_ACEOF
3396 /* end confdefs.h. */
3398 # include <limits.h>
3400 # include <assert.h>
3404 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3405 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3407 grep -v '^ *+' conftest.er1
>conftest.err
3409 cat conftest.err
>&5
3410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411 (exit $ac_status); } >/dev
/null
; then
3412 if test -s conftest.err
; then
3413 ac_cpp_err
=$ac_c_preproc_warn_flag
3414 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3421 if test -z "$ac_cpp_err"; then
3424 echo "$as_me: failed program was:" >&5
3425 sed 's/^/| /' conftest.
$ac_ext >&5
3427 # Broken: fails on valid input.
3430 rm -f conftest.err conftest.
$ac_ext
3432 # OK, works on sane cases. Now check whether non-existent headers
3433 # can be detected and how.
3434 cat >conftest.
$ac_ext <<_ACEOF
3437 cat confdefs.h
>>conftest.
$ac_ext
3438 cat >>conftest.
$ac_ext <<_ACEOF
3439 /* end confdefs.h. */
3440 #include <ac_nonexistent.h>
3442 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3443 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3445 grep -v '^ *+' conftest.er1
>conftest.err
3447 cat conftest.err
>&5
3448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449 (exit $ac_status); } >/dev
/null
; then
3450 if test -s conftest.err
; then
3451 ac_cpp_err
=$ac_c_preproc_warn_flag
3452 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3459 if test -z "$ac_cpp_err"; then
3460 # Broken: success on invalid input.
3463 echo "$as_me: failed program was:" >&5
3464 sed 's/^/| /' conftest.
$ac_ext >&5
3466 # Passes both tests.
3470 rm -f conftest.err conftest.
$ac_ext
3473 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3474 rm -f conftest.err conftest.
$ac_ext
3475 if $ac_preproc_ok; then
3487 echo "$as_me:$LINENO: result: $CPP" >&5
3488 echo "${ECHO_T}$CPP" >&6
3490 for ac_c_preproc_warn_flag
in '' yes
3492 # Use a header file that comes with gcc, so configuring glibc
3493 # with a fresh cross-compiler works.
3494 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3495 # <limits.h> exists even on freestanding compilers.
3496 # On the NeXT, cc -E runs the code through the compiler's parser,
3497 # not just through cpp. "Syntax error" is here to catch this case.
3498 cat >conftest.
$ac_ext <<_ACEOF
3501 cat confdefs.h
>>conftest.
$ac_ext
3502 cat >>conftest.
$ac_ext <<_ACEOF
3503 /* end confdefs.h. */
3505 # include <limits.h>
3507 # include <assert.h>
3511 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3512 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3514 grep -v '^ *+' conftest.er1
>conftest.err
3516 cat conftest.err
>&5
3517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3518 (exit $ac_status); } >/dev
/null
; then
3519 if test -s conftest.err
; then
3520 ac_cpp_err
=$ac_c_preproc_warn_flag
3521 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3528 if test -z "$ac_cpp_err"; then
3531 echo "$as_me: failed program was:" >&5
3532 sed 's/^/| /' conftest.
$ac_ext >&5
3534 # Broken: fails on valid input.
3537 rm -f conftest.err conftest.
$ac_ext
3539 # OK, works on sane cases. Now check whether non-existent headers
3540 # can be detected and how.
3541 cat >conftest.
$ac_ext <<_ACEOF
3544 cat confdefs.h
>>conftest.
$ac_ext
3545 cat >>conftest.
$ac_ext <<_ACEOF
3546 /* end confdefs.h. */
3547 #include <ac_nonexistent.h>
3549 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3550 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3552 grep -v '^ *+' conftest.er1
>conftest.err
3554 cat conftest.err
>&5
3555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556 (exit $ac_status); } >/dev
/null
; then
3557 if test -s conftest.err
; then
3558 ac_cpp_err
=$ac_c_preproc_warn_flag
3559 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3566 if test -z "$ac_cpp_err"; then
3567 # Broken: success on invalid input.
3570 echo "$as_me: failed program was:" >&5
3571 sed 's/^/| /' conftest.
$ac_ext >&5
3573 # Passes both tests.
3577 rm -f conftest.err conftest.
$ac_ext
3580 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3581 rm -f conftest.err conftest.
$ac_ext
3582 if $ac_preproc_ok; then
3585 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3586 See \`config.log' for more details." >&5
3587 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3588 See \`config.log' for more details." >&2;}
3589 { (exit 1); exit 1; }; }
3593 ac_cpp
='$CPP $CPPFLAGS'
3594 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3595 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3596 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3599 echo "$as_me:$LINENO: checking for X" >&5
3600 echo $ECHO_N "checking for X... $ECHO_C" >&6
3603 # Check whether --with-x or --without-x was given.
3604 if test "${with_x+set}" = set; then
3608 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3609 if test "x$with_x" = xno
; then
3610 # The user explicitly disabled X.
3613 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
3614 # Both variables are already set.
3617 if test "${ac_cv_have_x+set}" = set; then
3618 echo $ECHO_N "(cached) $ECHO_C" >&6
3620 # One or both of the vars are not set, and there is no cached value.
3621 ac_x_includes
=no ac_x_libraries
=no
3622 rm -f -r conftest.dir
3623 if mkdir conftest.dir
; then
3625 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3626 cat >Imakefile
<<'_ACEOF'
3628 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3630 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
3631 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3632 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3633 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3634 for ac_extension
in a so sl
; do
3635 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
3636 test -f $ac_im_libdir/libX11.
$ac_extension; then
3637 ac_im_usrlibdir
=$ac_im_libdir; break
3640 # Screen out bogus values from the imake configuration. They are
3641 # bogus both because they are the default anyway, and because
3642 # using them would break gcc on systems where it needs fixed includes.
3643 case $ac_im_incroot in
3645 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
3647 case $ac_im_usrlibdir in
3649 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
3653 rm -f -r conftest.dir
3656 # Standard set of common directories for X headers.
3657 # Check X11 before X11Rn because it is often a symlink to the current release.
3669 /usr/local/X11/include
3670 /usr/local/X11R6/include
3671 /usr/local/X11R5/include
3672 /usr/local/X11R4/include
3674 /usr/local/include/X11
3675 /usr/local/include/X11R6
3676 /usr/local/include/X11R5
3677 /usr/local/include/X11R4
3681 /usr/XFree86/include/X11
3685 /usr/unsupported/include
3687 /usr/local/x11r5/include
3688 /usr/lpp/Xamples/include
3690 /usr/openwin/include
3691 /usr/openwin/share/include'
3693 if test "$ac_x_includes" = no
; then
3694 # Guess where to find include files, by looking for Intrinsic.h.
3695 # First, try using that file with no special directory specified.
3696 cat >conftest.
$ac_ext <<_ACEOF
3699 cat confdefs.h
>>conftest.
$ac_ext
3700 cat >>conftest.
$ac_ext <<_ACEOF
3701 /* end confdefs.h. */
3702 #include <X11/Intrinsic.h>
3704 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3705 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3707 grep -v '^ *+' conftest.er1
>conftest.err
3709 cat conftest.err
>&5
3710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); } >/dev
/null
; then
3712 if test -s conftest.err
; then
3713 ac_cpp_err
=$ac_c_preproc_warn_flag
3714 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3721 if test -z "$ac_cpp_err"; then
3722 # We can compile using X headers with no special include directory.
3725 echo "$as_me: failed program was:" >&5
3726 sed 's/^/| /' conftest.
$ac_ext >&5
3728 for ac_dir
in $ac_x_header_dirs; do
3729 if test -r "$ac_dir/X11/Intrinsic.h"; then
3730 ac_x_includes
=$ac_dir
3735 rm -f conftest.err conftest.
$ac_ext
3736 fi # $ac_x_includes = no
3738 if test "$ac_x_libraries" = no
; then
3739 # Check for the libraries.
3740 # See if we find them without any special options.
3741 # Don't add to $LIBS permanently.
3744 cat >conftest.
$ac_ext <<_ACEOF
3747 cat confdefs.h
>>conftest.
$ac_ext
3748 cat >>conftest.
$ac_ext <<_ACEOF
3749 /* end confdefs.h. */
3750 #include <X11/Intrinsic.h>
3759 rm -f conftest.
$ac_objext conftest
$ac_exeext
3760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3761 (eval $ac_link) 2>conftest.er1
3763 grep -v '^ *+' conftest.er1
>conftest.err
3765 cat conftest.err
>&5
3766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3767 (exit $ac_status); } &&
3768 { ac_try
='test -z "$ac_c_werror_flag"
3769 || test ! -s conftest.err'
3770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774 (exit $ac_status); }; } &&
3775 { ac_try
='test -s conftest$ac_exeext'
3776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780 (exit $ac_status); }; }; then
3782 # We can link X programs with no special library path.
3785 echo "$as_me: failed program was:" >&5
3786 sed 's/^/| /' conftest.
$ac_ext >&5
3789 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3791 # Don't even attempt the hair of trying to link an X program!
3792 for ac_extension
in a so sl
; do
3793 if test -r $ac_dir/libXt.
$ac_extension; then
3794 ac_x_libraries
=$ac_dir
3800 rm -f conftest.err conftest.
$ac_objext \
3801 conftest
$ac_exeext conftest.
$ac_ext
3802 fi # $ac_x_libraries = no
3804 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
3805 # Didn't find X anywhere. Cache the known absence of X.
3806 ac_cv_have_x
="have_x=no"
3808 # Record where we found X for the cache.
3809 ac_cv_have_x
="have_x=yes \
3810 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3815 eval "$ac_cv_have_x"
3818 if test "$have_x" != yes; then
3819 echo "$as_me:$LINENO: result: $have_x" >&5
3820 echo "${ECHO_T}$have_x" >&6
3823 # If each of the values was on the command line, it overrides each guess.
3824 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
3825 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
3826 # Update the cache value to reflect the command line values.
3827 ac_cv_have_x
="have_x=yes \
3828 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3829 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
3830 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
3833 if test "$no_x" = yes; then
3834 # Not all programs may use this symbol, but it does not hurt to define it.
3836 cat >>confdefs.h
<<\_ACEOF
3837 #define X_DISPLAY_MISSING 1
3840 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
3842 if test -n "$x_includes"; then
3843 X_CFLAGS
="$X_CFLAGS -I$x_includes"
3846 # It would also be nice to do this for all -L options, not just this one.
3847 if test -n "$x_libraries"; then
3848 X_LIBS
="$X_LIBS -L$x_libraries"
3849 # For Solaris; some versions of Sun CC require a space after -R and
3850 # others require no space. Words are not sufficient . . . .
3851 case `(uname -sr) 2>/dev/null` in
3853 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3854 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
3855 ac_xsave_LIBS
=$LIBS; LIBS
="$LIBS -R$x_libraries"
3856 cat >conftest.
$ac_ext <<_ACEOF
3859 cat confdefs.h
>>conftest.
$ac_ext
3860 cat >>conftest.
$ac_ext <<_ACEOF
3861 /* end confdefs.h. */
3871 rm -f conftest.
$ac_objext conftest
$ac_exeext
3872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3873 (eval $ac_link) 2>conftest.er1
3875 grep -v '^ *+' conftest.er1
>conftest.err
3877 cat conftest.err
>&5
3878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879 (exit $ac_status); } &&
3880 { ac_try
='test -z "$ac_c_werror_flag"
3881 || test ! -s conftest.err'
3882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3886 (exit $ac_status); }; } &&
3887 { ac_try
='test -s conftest$ac_exeext'
3888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892 (exit $ac_status); }; }; then
3895 echo "$as_me: failed program was:" >&5
3896 sed 's/^/| /' conftest.
$ac_ext >&5
3900 rm -f conftest.err conftest.
$ac_objext \
3901 conftest
$ac_exeext conftest.
$ac_ext
3902 if test $ac_R_nospace = yes; then
3903 echo "$as_me:$LINENO: result: no" >&5
3904 echo "${ECHO_T}no" >&6
3905 X_LIBS
="$X_LIBS -R$x_libraries"
3907 LIBS
="$ac_xsave_LIBS -R $x_libraries"
3908 cat >conftest.
$ac_ext <<_ACEOF
3911 cat confdefs.h
>>conftest.
$ac_ext
3912 cat >>conftest.
$ac_ext <<_ACEOF
3913 /* end confdefs.h. */
3923 rm -f conftest.
$ac_objext conftest
$ac_exeext
3924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3925 (eval $ac_link) 2>conftest.er1
3927 grep -v '^ *+' conftest.er1
>conftest.err
3929 cat conftest.err
>&5
3930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931 (exit $ac_status); } &&
3932 { ac_try
='test -z "$ac_c_werror_flag"
3933 || test ! -s conftest.err'
3934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938 (exit $ac_status); }; } &&
3939 { ac_try
='test -s conftest$ac_exeext'
3940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3944 (exit $ac_status); }; }; then
3947 echo "$as_me: failed program was:" >&5
3948 sed 's/^/| /' conftest.
$ac_ext >&5
3952 rm -f conftest.err conftest.
$ac_objext \
3953 conftest
$ac_exeext conftest.
$ac_ext
3954 if test $ac_R_space = yes; then
3955 echo "$as_me:$LINENO: result: yes" >&5
3956 echo "${ECHO_T}yes" >&6
3957 X_LIBS
="$X_LIBS -R $x_libraries"
3959 echo "$as_me:$LINENO: result: neither works" >&5
3960 echo "${ECHO_T}neither works" >&6
3967 # Check for system-dependent libraries X programs must link with.
3968 # Do this before checking for the system-independent R6 libraries
3969 # (-lICE), since we may need -lsocket or whatever for X linking.
3971 if test "$ISC" = yes; then
3972 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
3974 # Martyn Johnson says this is needed for Ultrix, if the X
3975 # libraries were built with DECnet support. And Karl Berry says
3976 # the Alpha needs dnet_stub (dnet does not exist).
3977 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS $X_LIBS -lX11"
3978 cat >conftest.
$ac_ext <<_ACEOF
3981 cat confdefs.h
>>conftest.
$ac_ext
3982 cat >>conftest.
$ac_ext <<_ACEOF
3983 /* end confdefs.h. */
3985 /* Override any gcc2 internal prototype to avoid an error. */
3989 /* We use char because int might match the return type of a gcc2
3990 builtin and then its argument prototype would still apply. */
3991 char XOpenDisplay ();
4000 rm -f conftest.
$ac_objext conftest
$ac_exeext
4001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4002 (eval $ac_link) 2>conftest.er1
4004 grep -v '^ *+' conftest.er1
>conftest.err
4006 cat conftest.err
>&5
4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); } &&
4009 { ac_try
='test -z "$ac_c_werror_flag"
4010 || test ! -s conftest.err'
4011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4015 (exit $ac_status); }; } &&
4016 { ac_try
='test -s conftest$ac_exeext'
4017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021 (exit $ac_status); }; }; then
4024 echo "$as_me: failed program was:" >&5
4025 sed 's/^/| /' conftest.
$ac_ext >&5
4027 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4028 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
4029 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4030 echo $ECHO_N "(cached) $ECHO_C" >&6
4032 ac_check_lib_save_LIBS
=$LIBS
4034 cat >conftest.
$ac_ext <<_ACEOF
4037 cat confdefs.h
>>conftest.
$ac_ext
4038 cat >>conftest.
$ac_ext <<_ACEOF
4039 /* end confdefs.h. */
4041 /* Override any gcc2 internal prototype to avoid an error. */
4045 /* We use char because int might match the return type of a gcc2
4046 builtin and then its argument prototype would still apply. */
4056 rm -f conftest.
$ac_objext conftest
$ac_exeext
4057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4058 (eval $ac_link) 2>conftest.er1
4060 grep -v '^ *+' conftest.er1
>conftest.err
4062 cat conftest.err
>&5
4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064 (exit $ac_status); } &&
4065 { ac_try
='test -z "$ac_c_werror_flag"
4066 || test ! -s conftest.err'
4067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071 (exit $ac_status); }; } &&
4072 { ac_try
='test -s conftest$ac_exeext'
4073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); }; }; then
4078 ac_cv_lib_dnet_dnet_ntoa
=yes
4080 echo "$as_me: failed program was:" >&5
4081 sed 's/^/| /' conftest.
$ac_ext >&5
4083 ac_cv_lib_dnet_dnet_ntoa
=no
4085 rm -f conftest.err conftest.
$ac_objext \
4086 conftest
$ac_exeext conftest.
$ac_ext
4087 LIBS
=$ac_check_lib_save_LIBS
4089 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4090 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
4091 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
4092 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
4095 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
4096 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4097 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
4098 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4099 echo $ECHO_N "(cached) $ECHO_C" >&6
4101 ac_check_lib_save_LIBS
=$LIBS
4102 LIBS
="-ldnet_stub $LIBS"
4103 cat >conftest.
$ac_ext <<_ACEOF
4106 cat confdefs.h
>>conftest.
$ac_ext
4107 cat >>conftest.
$ac_ext <<_ACEOF
4108 /* end confdefs.h. */
4110 /* Override any gcc2 internal prototype to avoid an error. */
4114 /* We use char because int might match the return type of a gcc2
4115 builtin and then its argument prototype would still apply. */
4125 rm -f conftest.
$ac_objext conftest
$ac_exeext
4126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4127 (eval $ac_link) 2>conftest.er1
4129 grep -v '^ *+' conftest.er1
>conftest.err
4131 cat conftest.err
>&5
4132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4133 (exit $ac_status); } &&
4134 { ac_try
='test -z "$ac_c_werror_flag"
4135 || test ! -s conftest.err'
4136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140 (exit $ac_status); }; } &&
4141 { ac_try
='test -s conftest$ac_exeext'
4142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146 (exit $ac_status); }; }; then
4147 ac_cv_lib_dnet_stub_dnet_ntoa
=yes
4149 echo "$as_me: failed program was:" >&5
4150 sed 's/^/| /' conftest.
$ac_ext >&5
4152 ac_cv_lib_dnet_stub_dnet_ntoa
=no
4154 rm -f conftest.err conftest.
$ac_objext \
4155 conftest
$ac_exeext conftest.
$ac_ext
4156 LIBS
=$ac_check_lib_save_LIBS
4158 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4159 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
4160 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
4161 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
4166 rm -f conftest.err conftest.
$ac_objext \
4167 conftest
$ac_exeext conftest.
$ac_ext
4168 LIBS
="$ac_xsave_LIBS"
4170 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4171 # to get the SysV transport functions.
4172 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4174 # The nsl library prevents programs from opening the X display
4175 # on Irix 5.2, according to T.E. Dickey.
4176 # The functions gethostbyname, getservbyname, and inet_addr are
4177 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4178 echo "$as_me:$LINENO: checking for gethostbyname" >&5
4179 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
4180 if test "${ac_cv_func_gethostbyname+set}" = set; then
4181 echo $ECHO_N "(cached) $ECHO_C" >&6
4183 cat >conftest.
$ac_ext <<_ACEOF
4186 cat confdefs.h
>>conftest.
$ac_ext
4187 cat >>conftest.
$ac_ext <<_ACEOF
4188 /* end confdefs.h. */
4189 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4190 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4191 #define gethostbyname innocuous_gethostbyname
4193 /* System header to define __stub macros and hopefully few prototypes,
4194 which can conflict with char gethostbyname (); below.
4195 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4196 <limits.h> exists even on freestanding compilers. */
4199 # include <limits.h>
4201 # include <assert.h>
4204 #undef gethostbyname
4206 /* Override any gcc2 internal prototype to avoid an error. */
4211 /* We use char because int might match the return type of a gcc2
4212 builtin and then its argument prototype would still apply. */
4213 char gethostbyname ();
4214 /* The GNU C library defines this for functions which it implements
4215 to always fail with ENOSYS. Some functions are actually named
4216 something starting with __ and the normal name is an alias. */
4217 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4220 char (*f) () = gethostbyname;
4229 return f != gethostbyname;
4234 rm -f conftest.
$ac_objext conftest
$ac_exeext
4235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4236 (eval $ac_link) 2>conftest.er1
4238 grep -v '^ *+' conftest.er1
>conftest.err
4240 cat conftest.err
>&5
4241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4242 (exit $ac_status); } &&
4243 { ac_try
='test -z "$ac_c_werror_flag"
4244 || test ! -s conftest.err'
4245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249 (exit $ac_status); }; } &&
4250 { ac_try
='test -s conftest$ac_exeext'
4251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255 (exit $ac_status); }; }; then
4256 ac_cv_func_gethostbyname
=yes
4258 echo "$as_me: failed program was:" >&5
4259 sed 's/^/| /' conftest.
$ac_ext >&5
4261 ac_cv_func_gethostbyname
=no
4263 rm -f conftest.err conftest.
$ac_objext \
4264 conftest
$ac_exeext conftest.
$ac_ext
4266 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4267 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
4269 if test $ac_cv_func_gethostbyname = no
; then
4270 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4271 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4272 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4273 echo $ECHO_N "(cached) $ECHO_C" >&6
4275 ac_check_lib_save_LIBS
=$LIBS
4277 cat >conftest.
$ac_ext <<_ACEOF
4280 cat confdefs.h
>>conftest.
$ac_ext
4281 cat >>conftest.
$ac_ext <<_ACEOF
4282 /* end confdefs.h. */
4284 /* Override any gcc2 internal prototype to avoid an error. */
4288 /* We use char because int might match the return type of a gcc2
4289 builtin and then its argument prototype would still apply. */
4290 char gethostbyname ();
4299 rm -f conftest.
$ac_objext conftest
$ac_exeext
4300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4301 (eval $ac_link) 2>conftest.er1
4303 grep -v '^ *+' conftest.er1
>conftest.err
4305 cat conftest.err
>&5
4306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307 (exit $ac_status); } &&
4308 { ac_try
='test -z "$ac_c_werror_flag"
4309 || test ! -s conftest.err'
4310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314 (exit $ac_status); }; } &&
4315 { ac_try
='test -s conftest$ac_exeext'
4316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4320 (exit $ac_status); }; }; then
4321 ac_cv_lib_nsl_gethostbyname
=yes
4323 echo "$as_me: failed program was:" >&5
4324 sed 's/^/| /' conftest.
$ac_ext >&5
4326 ac_cv_lib_nsl_gethostbyname
=no
4328 rm -f conftest.err conftest.
$ac_objext \
4329 conftest
$ac_exeext conftest.
$ac_ext
4330 LIBS
=$ac_check_lib_save_LIBS
4332 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4333 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4334 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4335 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
4338 if test $ac_cv_lib_nsl_gethostbyname = no
; then
4339 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4340 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
4341 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4342 echo $ECHO_N "(cached) $ECHO_C" >&6
4344 ac_check_lib_save_LIBS
=$LIBS
4346 cat >conftest.
$ac_ext <<_ACEOF
4349 cat confdefs.h
>>conftest.
$ac_ext
4350 cat >>conftest.
$ac_ext <<_ACEOF
4351 /* end confdefs.h. */
4353 /* Override any gcc2 internal prototype to avoid an error. */
4357 /* We use char because int might match the return type of a gcc2
4358 builtin and then its argument prototype would still apply. */
4359 char gethostbyname ();
4368 rm -f conftest.
$ac_objext conftest
$ac_exeext
4369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4370 (eval $ac_link) 2>conftest.er1
4372 grep -v '^ *+' conftest.er1
>conftest.err
4374 cat conftest.err
>&5
4375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376 (exit $ac_status); } &&
4377 { ac_try
='test -z "$ac_c_werror_flag"
4378 || test ! -s conftest.err'
4379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383 (exit $ac_status); }; } &&
4384 { ac_try
='test -s conftest$ac_exeext'
4385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389 (exit $ac_status); }; }; then
4390 ac_cv_lib_bsd_gethostbyname
=yes
4392 echo "$as_me: failed program was:" >&5
4393 sed 's/^/| /' conftest.
$ac_ext >&5
4395 ac_cv_lib_bsd_gethostbyname
=no
4397 rm -f conftest.err conftest.
$ac_objext \
4398 conftest
$ac_exeext conftest.
$ac_ext
4399 LIBS
=$ac_check_lib_save_LIBS
4401 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4402 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
4403 if test $ac_cv_lib_bsd_gethostbyname = yes; then
4404 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lbsd"
4410 # lieder@skyler.mavd.honeywell.com says without -lsocket,
4411 # socket/setsockopt and other routines are undefined under SCO ODT
4412 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4413 # on later versions), says Simon Leinen: it contains gethostby*
4414 # variants that don't use the name server (or something). -lsocket
4415 # must be given before -lnsl if both are needed. We assume that
4416 # if connect needs -lnsl, so does gethostbyname.
4417 echo "$as_me:$LINENO: checking for connect" >&5
4418 echo $ECHO_N "checking for connect... $ECHO_C" >&6
4419 if test "${ac_cv_func_connect+set}" = set; then
4420 echo $ECHO_N "(cached) $ECHO_C" >&6
4422 cat >conftest.
$ac_ext <<_ACEOF
4425 cat confdefs.h
>>conftest.
$ac_ext
4426 cat >>conftest.
$ac_ext <<_ACEOF
4427 /* end confdefs.h. */
4428 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
4429 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4430 #define connect innocuous_connect
4432 /* System header to define __stub macros and hopefully few prototypes,
4433 which can conflict with char connect (); below.
4434 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4435 <limits.h> exists even on freestanding compilers. */
4438 # include <limits.h>
4440 # include <assert.h>
4445 /* Override any gcc2 internal prototype to avoid an error. */
4450 /* We use char because int might match the return type of a gcc2
4451 builtin and then its argument prototype would still apply. */
4453 /* The GNU C library defines this for functions which it implements
4454 to always fail with ENOSYS. Some functions are actually named
4455 something starting with __ and the normal name is an alias. */
4456 #if defined (__stub_connect) || defined (__stub___connect)
4459 char (*f) () = connect;
4468 return f != connect;
4473 rm -f conftest.
$ac_objext conftest
$ac_exeext
4474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4475 (eval $ac_link) 2>conftest.er1
4477 grep -v '^ *+' conftest.er1
>conftest.err
4479 cat conftest.err
>&5
4480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481 (exit $ac_status); } &&
4482 { ac_try
='test -z "$ac_c_werror_flag"
4483 || test ! -s conftest.err'
4484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); }; } &&
4489 { ac_try
='test -s conftest$ac_exeext'
4490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494 (exit $ac_status); }; }; then
4495 ac_cv_func_connect
=yes
4497 echo "$as_me: failed program was:" >&5
4498 sed 's/^/| /' conftest.
$ac_ext >&5
4500 ac_cv_func_connect
=no
4502 rm -f conftest.err conftest.
$ac_objext \
4503 conftest
$ac_exeext conftest.
$ac_ext
4505 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4506 echo "${ECHO_T}$ac_cv_func_connect" >&6
4508 if test $ac_cv_func_connect = no
; then
4509 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4510 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
4511 if test "${ac_cv_lib_socket_connect+set}" = set; then
4512 echo $ECHO_N "(cached) $ECHO_C" >&6
4514 ac_check_lib_save_LIBS
=$LIBS
4515 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
4516 cat >conftest.
$ac_ext <<_ACEOF
4519 cat confdefs.h
>>conftest.
$ac_ext
4520 cat >>conftest.
$ac_ext <<_ACEOF
4521 /* end confdefs.h. */
4523 /* Override any gcc2 internal prototype to avoid an error. */
4527 /* We use char because int might match the return type of a gcc2
4528 builtin and then its argument prototype would still apply. */
4538 rm -f conftest.
$ac_objext conftest
$ac_exeext
4539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4540 (eval $ac_link) 2>conftest.er1
4542 grep -v '^ *+' conftest.er1
>conftest.err
4544 cat conftest.err
>&5
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); } &&
4547 { ac_try
='test -z "$ac_c_werror_flag"
4548 || test ! -s conftest.err'
4549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553 (exit $ac_status); }; } &&
4554 { ac_try
='test -s conftest$ac_exeext'
4555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559 (exit $ac_status); }; }; then
4560 ac_cv_lib_socket_connect
=yes
4562 echo "$as_me: failed program was:" >&5
4563 sed 's/^/| /' conftest.
$ac_ext >&5
4565 ac_cv_lib_socket_connect
=no
4567 rm -f conftest.err conftest.
$ac_objext \
4568 conftest
$ac_exeext conftest.
$ac_ext
4569 LIBS
=$ac_check_lib_save_LIBS
4571 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4572 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
4573 if test $ac_cv_lib_socket_connect = yes; then
4574 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
4579 # Guillermo Gomez says -lposix is necessary on A/UX.
4580 echo "$as_me:$LINENO: checking for remove" >&5
4581 echo $ECHO_N "checking for remove... $ECHO_C" >&6
4582 if test "${ac_cv_func_remove+set}" = set; then
4583 echo $ECHO_N "(cached) $ECHO_C" >&6
4585 cat >conftest.
$ac_ext <<_ACEOF
4588 cat confdefs.h
>>conftest.
$ac_ext
4589 cat >>conftest.
$ac_ext <<_ACEOF
4590 /* end confdefs.h. */
4591 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
4592 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4593 #define remove innocuous_remove
4595 /* System header to define __stub macros and hopefully few prototypes,
4596 which can conflict with char remove (); below.
4597 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4598 <limits.h> exists even on freestanding compilers. */
4601 # include <limits.h>
4603 # include <assert.h>
4608 /* Override any gcc2 internal prototype to avoid an error. */
4613 /* We use char because int might match the return type of a gcc2
4614 builtin and then its argument prototype would still apply. */
4616 /* The GNU C library defines this for functions which it implements
4617 to always fail with ENOSYS. Some functions are actually named
4618 something starting with __ and the normal name is an alias. */
4619 #if defined (__stub_remove) || defined (__stub___remove)
4622 char (*f) () = remove;
4636 rm -f conftest.
$ac_objext conftest
$ac_exeext
4637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4638 (eval $ac_link) 2>conftest.er1
4640 grep -v '^ *+' conftest.er1
>conftest.err
4642 cat conftest.err
>&5
4643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644 (exit $ac_status); } &&
4645 { ac_try
='test -z "$ac_c_werror_flag"
4646 || test ! -s conftest.err'
4647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651 (exit $ac_status); }; } &&
4652 { ac_try
='test -s conftest$ac_exeext'
4653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657 (exit $ac_status); }; }; then
4658 ac_cv_func_remove
=yes
4660 echo "$as_me: failed program was:" >&5
4661 sed 's/^/| /' conftest.
$ac_ext >&5
4663 ac_cv_func_remove
=no
4665 rm -f conftest.err conftest.
$ac_objext \
4666 conftest
$ac_exeext conftest.
$ac_ext
4668 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4669 echo "${ECHO_T}$ac_cv_func_remove" >&6
4671 if test $ac_cv_func_remove = no
; then
4672 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4673 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
4674 if test "${ac_cv_lib_posix_remove+set}" = set; then
4675 echo $ECHO_N "(cached) $ECHO_C" >&6
4677 ac_check_lib_save_LIBS
=$LIBS
4678 LIBS
="-lposix $LIBS"
4679 cat >conftest.
$ac_ext <<_ACEOF
4682 cat confdefs.h
>>conftest.
$ac_ext
4683 cat >>conftest.
$ac_ext <<_ACEOF
4684 /* end confdefs.h. */
4686 /* Override any gcc2 internal prototype to avoid an error. */
4690 /* We use char because int might match the return type of a gcc2
4691 builtin and then its argument prototype would still apply. */
4701 rm -f conftest.
$ac_objext conftest
$ac_exeext
4702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4703 (eval $ac_link) 2>conftest.er1
4705 grep -v '^ *+' conftest.er1
>conftest.err
4707 cat conftest.err
>&5
4708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4709 (exit $ac_status); } &&
4710 { ac_try
='test -z "$ac_c_werror_flag"
4711 || test ! -s conftest.err'
4712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716 (exit $ac_status); }; } &&
4717 { ac_try
='test -s conftest$ac_exeext'
4718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722 (exit $ac_status); }; }; then
4723 ac_cv_lib_posix_remove
=yes
4725 echo "$as_me: failed program was:" >&5
4726 sed 's/^/| /' conftest.
$ac_ext >&5
4728 ac_cv_lib_posix_remove
=no
4730 rm -f conftest.err conftest.
$ac_objext \
4731 conftest
$ac_exeext conftest.
$ac_ext
4732 LIBS
=$ac_check_lib_save_LIBS
4734 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4735 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
4736 if test $ac_cv_lib_posix_remove = yes; then
4737 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
4742 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4743 echo "$as_me:$LINENO: checking for shmat" >&5
4744 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
4745 if test "${ac_cv_func_shmat+set}" = set; then
4746 echo $ECHO_N "(cached) $ECHO_C" >&6
4748 cat >conftest.
$ac_ext <<_ACEOF
4751 cat confdefs.h
>>conftest.
$ac_ext
4752 cat >>conftest.
$ac_ext <<_ACEOF
4753 /* end confdefs.h. */
4754 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
4755 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4756 #define shmat innocuous_shmat
4758 /* System header to define __stub macros and hopefully few prototypes,
4759 which can conflict with char shmat (); below.
4760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4761 <limits.h> exists even on freestanding compilers. */
4764 # include <limits.h>
4766 # include <assert.h>
4771 /* Override any gcc2 internal prototype to avoid an error. */
4776 /* We use char because int might match the return type of a gcc2
4777 builtin and then its argument prototype would still apply. */
4779 /* The GNU C library defines this for functions which it implements
4780 to always fail with ENOSYS. Some functions are actually named
4781 something starting with __ and the normal name is an alias. */
4782 #if defined (__stub_shmat) || defined (__stub___shmat)
4785 char (*f) () = shmat;
4799 rm -f conftest.
$ac_objext conftest
$ac_exeext
4800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4801 (eval $ac_link) 2>conftest.er1
4803 grep -v '^ *+' conftest.er1
>conftest.err
4805 cat conftest.err
>&5
4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807 (exit $ac_status); } &&
4808 { ac_try
='test -z "$ac_c_werror_flag"
4809 || test ! -s conftest.err'
4810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814 (exit $ac_status); }; } &&
4815 { ac_try
='test -s conftest$ac_exeext'
4816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820 (exit $ac_status); }; }; then
4821 ac_cv_func_shmat
=yes
4823 echo "$as_me: failed program was:" >&5
4824 sed 's/^/| /' conftest.
$ac_ext >&5
4828 rm -f conftest.err conftest.
$ac_objext \
4829 conftest
$ac_exeext conftest.
$ac_ext
4831 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4832 echo "${ECHO_T}$ac_cv_func_shmat" >&6
4834 if test $ac_cv_func_shmat = no
; then
4835 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4836 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
4837 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4838 echo $ECHO_N "(cached) $ECHO_C" >&6
4840 ac_check_lib_save_LIBS
=$LIBS
4842 cat >conftest.
$ac_ext <<_ACEOF
4845 cat confdefs.h
>>conftest.
$ac_ext
4846 cat >>conftest.
$ac_ext <<_ACEOF
4847 /* end confdefs.h. */
4849 /* Override any gcc2 internal prototype to avoid an error. */
4853 /* We use char because int might match the return type of a gcc2
4854 builtin and then its argument prototype would still apply. */
4864 rm -f conftest.
$ac_objext conftest
$ac_exeext
4865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4866 (eval $ac_link) 2>conftest.er1
4868 grep -v '^ *+' conftest.er1
>conftest.err
4870 cat conftest.err
>&5
4871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872 (exit $ac_status); } &&
4873 { ac_try
='test -z "$ac_c_werror_flag"
4874 || test ! -s conftest.err'
4875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879 (exit $ac_status); }; } &&
4880 { ac_try
='test -s conftest$ac_exeext'
4881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885 (exit $ac_status); }; }; then
4886 ac_cv_lib_ipc_shmat
=yes
4888 echo "$as_me: failed program was:" >&5
4889 sed 's/^/| /' conftest.
$ac_ext >&5
4891 ac_cv_lib_ipc_shmat
=no
4893 rm -f conftest.err conftest.
$ac_objext \
4894 conftest
$ac_exeext conftest.
$ac_ext
4895 LIBS
=$ac_check_lib_save_LIBS
4897 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4898 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
4899 if test $ac_cv_lib_ipc_shmat = yes; then
4900 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
4906 # Check for libraries that X11R6 Xt/Xaw programs need.
4907 ac_save_LDFLAGS
=$LDFLAGS
4908 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
4909 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4910 # check for ICE first), but we must link in the order -lSM -lICE or
4911 # we get undefined symbols. So assume we have SM if we have ICE.
4912 # These have to be linked with before -lX11, unlike the other
4913 # libraries we check for below, so use a different variable.
4914 # John Interrante, Karl Berry
4915 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4916 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
4917 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4918 echo $ECHO_N "(cached) $ECHO_C" >&6
4920 ac_check_lib_save_LIBS
=$LIBS
4921 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
4922 cat >conftest.
$ac_ext <<_ACEOF
4925 cat confdefs.h
>>conftest.
$ac_ext
4926 cat >>conftest.
$ac_ext <<_ACEOF
4927 /* end confdefs.h. */
4929 /* Override any gcc2 internal prototype to avoid an error. */
4933 /* We use char because int might match the return type of a gcc2
4934 builtin and then its argument prototype would still apply. */
4935 char IceConnectionNumber ();
4939 IceConnectionNumber ();
4944 rm -f conftest.
$ac_objext conftest
$ac_exeext
4945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4946 (eval $ac_link) 2>conftest.er1
4948 grep -v '^ *+' conftest.er1
>conftest.err
4950 cat conftest.err
>&5
4951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952 (exit $ac_status); } &&
4953 { ac_try
='test -z "$ac_c_werror_flag"
4954 || test ! -s conftest.err'
4955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959 (exit $ac_status); }; } &&
4960 { ac_try
='test -s conftest$ac_exeext'
4961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965 (exit $ac_status); }; }; then
4966 ac_cv_lib_ICE_IceConnectionNumber
=yes
4968 echo "$as_me: failed program was:" >&5
4969 sed 's/^/| /' conftest.
$ac_ext >&5
4971 ac_cv_lib_ICE_IceConnectionNumber
=no
4973 rm -f conftest.err conftest.
$ac_objext \
4974 conftest
$ac_exeext conftest.
$ac_ext
4975 LIBS
=$ac_check_lib_save_LIBS
4977 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4978 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
4979 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
4980 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
4983 LDFLAGS
=$ac_save_LDFLAGS
4989 if test -z "$groff_no_x"; then
4993 CFLAGS
="$CFLAGS $X_CFLAGS"
4994 LDFLAGS
="$LDFLAGS $X_LIBS"
4995 LIBS
="$LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
4998 echo "$as_me:$LINENO: checking for Xaw library and header files" >&5
4999 echo $ECHO_N "checking for Xaw library and header files... $ECHO_C" >&6
5000 cat >conftest.
$ac_ext <<_ACEOF
5004 cat confdefs.h
>>conftest.
$ac_ext
5005 cat >>conftest.
$ac_ext <<_ACEOF
5006 /* end confdefs.h. */
5009 #include <X11/Intrinsic.h>
5010 #include <X11/Xaw/Simple.h>
5022 rm -f conftest.
$ac_objext conftest
$ac_exeext
5023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5024 (eval $ac_link) 2>conftest.er1
5026 grep -v '^ *+' conftest.er1
>conftest.err
5028 cat conftest.err
>&5
5029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5030 (exit $ac_status); } &&
5031 { ac_try
='test -z "$ac_c_werror_flag"
5032 || test ! -s conftest.err'
5033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037 (exit $ac_status); }; } &&
5038 { ac_try
='test -s conftest$ac_exeext'
5039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043 (exit $ac_status); }; }; then
5044 echo "$as_me:$LINENO: result: yes" >&5
5045 echo "${ECHO_T}yes" >&6
5047 echo "$as_me: failed program was:" >&5
5048 sed 's/^/| /' conftest.
$ac_ext >&5
5050 echo "$as_me:$LINENO: result: no" >&5
5051 echo "${ECHO_T}no" >&6
5054 rm -f conftest.err conftest.
$ac_objext \
5055 conftest
$ac_exeext conftest.
$ac_ext
5058 echo "$as_me:$LINENO: checking for Xmu library and header files" >&5
5059 echo $ECHO_N "checking for Xmu library and header files... $ECHO_C" >&6
5060 cat >conftest.
$ac_ext <<_ACEOF
5064 cat confdefs.h
>>conftest.
$ac_ext
5065 cat >>conftest.
$ac_ext <<_ACEOF
5066 /* end confdefs.h. */
5069 #include <X11/Intrinsic.h>
5070 #include <X11/Xmu/Converters.h>
5082 rm -f conftest.
$ac_objext conftest
$ac_exeext
5083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5084 (eval $ac_link) 2>conftest.er1
5086 grep -v '^ *+' conftest.er1
>conftest.err
5088 cat conftest.err
>&5
5089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090 (exit $ac_status); } &&
5091 { ac_try
='test -z "$ac_c_werror_flag"
5092 || test ! -s conftest.err'
5093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097 (exit $ac_status); }; } &&
5098 { ac_try
='test -s conftest$ac_exeext'
5099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103 (exit $ac_status); }; }; then
5104 echo "$as_me:$LINENO: result: yes" >&5
5105 echo "${ECHO_T}yes" >&6
5107 echo "$as_me: failed program was:" >&5
5108 sed 's/^/| /' conftest.
$ac_ext >&5
5110 echo "$as_me:$LINENO: result: no" >&5
5111 echo "${ECHO_T}no" >&6
5114 rm -f conftest.err conftest.
$ac_objext \
5115 conftest
$ac_exeext conftest.
$ac_ext
5122 if test "x$groff_no_x" = "xyes"; then
5123 { echo "$as_me:$LINENO: gxditview and xtotroff won't be built" >&5
5124 echo "$as_me: gxditview and xtotroff won't be built" >&6;}
5126 XDEVDIRS
="font/devX75 font/devX75-12 font/devX100 font/devX100-12"
5127 XPROGDIRS
="src/devices/xditview src/utils/xtotroff"
5128 XLIBDIRS
="src/libs/libxutil"
5135 # Check whether --with-appresdir or --without-appresdir was given.
5136 if test "${with_appresdir+set}" = set; then
5137 withval
="$with_appresdir"
5140 if test -z "$groff_no_x"; then
5141 # Create an Imakefile, run `xmkmf', then `make'.
5142 rm -f -r conftest.dir
5143 if mkdir conftest.dir
; then
5145 # Make sure to not put `make' in the Imakefile rules,
5146 # since we grep it out.
5147 cat >Imakefile
<<'EOF'
5150 @echo 'groff_x_usrlibdir="${USRLIBDIR}"; groff_x_libdir="${LIBDIR}"'
5153 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
5154 # GNU make sometimes prints "make[1]: Entering...",
5155 # which would confuse us.
5156 eval `${MAKE-make} xlibdirs 2>/dev/null | grep -v make`
5158 # Open Windows `xmkmf' reportedly sets LIBDIR instead of USRLIBDIR.
5159 for groff_extension
in a so sl
; do
5160 if test ! -f $groff_x_usrlibdir/libX11.
$groff_extension &&
5161 test -f $groff_x_libdir/libX11.
$groff_extension; then
5162 groff_x_usrlibdir
=$groff_x_libdir
5169 rm -f -r conftest.dir
5172 # In case the test with `xmkmf' wasn't successful, try a suite of
5173 # standard directories. Check `X11' before `X11Rn' because it is often
5174 # a symlink to the current release.
5187 /usr/local/X11R6/lib
5188 /usr/local/X11R5/lib
5189 /usr/local/X11R4/lib
5192 /usr/local/lib/X11R6
5193 /usr/local/lib/X11R5
5194 /usr/local/lib/X11R4
5198 /usr/XFree86/lib/X11
5202 /usr/unsupported/lib
5204 /usr/local/x11r5/lib
5205 /usr/lpp/Xamples/lib
5208 /usr/openwin/share/lib'
5210 if test -z "$groff_x_usrlibdir"; then
5211 # We only test whether libX11 exists.
5212 for groff_dir
in $groff_x_libdirs; do
5213 for groff_extension
in a so sl
; do
5214 if test ! -r $groff_dir/libX11.
$groff_extension; then
5215 groff_x_usrlibdir
=$groff_dir
5222 if test "x$with_appresdir" = "x"; then
5223 appresdir
=$groff_x_usrlibdir/X11
/app-defaults
5225 appresdir
=$with_appresdir
5229 if test -z "$PSPRINT"; then
5232 # Extract the first word of "$ac_prog", so it can be a program name with args.
5233 set dummy
$ac_prog; ac_word
=$2
5234 echo "$as_me:$LINENO: checking for $ac_word" >&5
5235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5236 if test "${ac_cv_prog_LPR+set}" = set; then
5237 echo $ECHO_N "(cached) $ECHO_C" >&6
5239 if test -n "$LPR"; then
5240 ac_cv_prog_LPR
="$LPR" # Let the user override the test.
5242 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5246 test -z "$as_dir" && as_dir
=.
5247 for ac_exec_ext
in '' $ac_executable_extensions; do
5248 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5249 ac_cv_prog_LPR
="$ac_prog"
5250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5259 if test -n "$LPR"; then
5260 echo "$as_me:$LINENO: result: $LPR" >&5
5261 echo "${ECHO_T}$LPR" >&6
5263 echo "$as_me:$LINENO: result: no" >&5
5264 echo "${ECHO_T}no" >&6
5267 test -n "$LPR" && break
5272 # Extract the first word of "$ac_prog", so it can be a program name with args.
5273 set dummy
$ac_prog; ac_word
=$2
5274 echo "$as_me:$LINENO: checking for $ac_word" >&5
5275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5276 if test "${ac_cv_prog_LP+set}" = set; then
5277 echo $ECHO_N "(cached) $ECHO_C" >&6
5279 if test -n "$LP"; then
5280 ac_cv_prog_LP
="$LP" # Let the user override the test.
5282 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5286 test -z "$as_dir" && as_dir
=.
5287 for ac_exec_ext
in '' $ac_executable_extensions; do
5288 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5289 ac_cv_prog_LP
="$ac_prog"
5290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5299 if test -n "$LP"; then
5300 echo "$as_me:$LINENO: result: $LP" >&5
5301 echo "${ECHO_T}$LP" >&6
5303 echo "$as_me:$LINENO: result: no" >&5
5304 echo "${ECHO_T}no" >&6
5307 test -n "$LP" && break
5310 if test -n "$LPR" && test -n "$LP"; then
5311 # HP-UX provides an lpr command that emulates lpr using lp,
5312 # but it doesn't have lpq; in this case we want to use lp
5316 # Extract the first word of "$ac_prog", so it can be a program name with args.
5317 set dummy
$ac_prog; ac_word
=$2
5318 echo "$as_me:$LINENO: checking for $ac_word" >&5
5319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5320 if test "${ac_cv_prog_LPQ+set}" = set; then
5321 echo $ECHO_N "(cached) $ECHO_C" >&6
5323 if test -n "$LPQ"; then
5324 ac_cv_prog_LPQ
="$LPQ" # Let the user override the test.
5326 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5330 test -z "$as_dir" && as_dir
=.
5331 for ac_exec_ext
in '' $ac_executable_extensions; do
5332 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5333 ac_cv_prog_LPQ
="$ac_prog"
5334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5343 if test -n "$LPQ"; then
5344 echo "$as_me:$LINENO: result: $LPQ" >&5
5345 echo "${ECHO_T}$LPQ" >&6
5347 echo "$as_me:$LINENO: result: no" >&5
5348 echo "${ECHO_T}no" >&6
5351 test -n "$LPQ" && break
5354 test -n "$LPQ" || LPR
=
5356 if test -n "$LPR"; then
5358 elif test -n "$LP"; then
5363 echo "$as_me:$LINENO: checking for command to use for printing PostScript files" >&5
5364 echo $ECHO_N "checking for command to use for printing PostScript files... $ECHO_C" >&6
5365 echo "$as_me:$LINENO: result: $PSPRINT" >&5
5366 echo "${ECHO_T}$PSPRINT" >&6
5368 # Figure out DVIPRINT from PSPRINT.
5369 echo "$as_me:$LINENO: checking for command to use for printing dvi files" >&5
5370 echo $ECHO_N "checking for command to use for printing dvi files... $ECHO_C" >&6
5371 if test -n "$PSPRINT" && test -z "$DVIPRINT"; then
5372 if test "x$PSPRINT" = "xlpr"; then
5379 echo "$as_me:$LINENO: result: $DVIPRINT" >&5
5380 echo "${ECHO_T}$DVIPRINT" >&6
5381 # Extract the first word of "perl", so it can be a program name with args.
5382 set dummy perl
; ac_word
=$2
5383 echo "$as_me:$LINENO: checking for $ac_word" >&5
5384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5385 if test "${ac_cv_path_PERLPATH+set}" = set; then
5386 echo $ECHO_N "(cached) $ECHO_C" >&6
5390 ac_cv_path_PERLPATH
="$PERLPATH" # Let the user override the test with a path.
5393 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5397 test -z "$as_dir" && as_dir
=.
5398 for ac_exec_ext
in '' $ac_executable_extensions; do
5399 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5400 ac_cv_path_PERLPATH
="$as_dir/$ac_word$ac_exec_ext"
5401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5407 test -z "$ac_cv_path_PERLPATH" && ac_cv_path_PERLPATH
="/usr/bin/perl"
5411 PERLPATH
=$ac_cv_path_PERLPATH
5413 if test -n "$PERLPATH"; then
5414 echo "$as_me:$LINENO: result: $PERLPATH" >&5
5415 echo "${ECHO_T}$PERLPATH" >&6
5417 echo "$as_me:$LINENO: result: no" >&5
5418 echo "${ECHO_T}no" >&6
5421 for ac_prog
in byacc
'bison -y'
5423 # Extract the first word of "$ac_prog", so it can be a program name with args.
5424 set dummy
$ac_prog; ac_word
=$2
5425 echo "$as_me:$LINENO: checking for $ac_word" >&5
5426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5427 if test "${ac_cv_prog_YACC+set}" = set; then
5428 echo $ECHO_N "(cached) $ECHO_C" >&6
5430 if test -n "$YACC"; then
5431 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
5433 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5437 test -z "$as_dir" && as_dir
=.
5438 for ac_exec_ext
in '' $ac_executable_extensions; do
5439 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5440 ac_cv_prog_YACC
="$ac_prog"
5441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5449 YACC
=$ac_cv_prog_YACC
5450 if test -n "$YACC"; then
5451 echo "$as_me:$LINENO: result: $YACC" >&5
5452 echo "${ECHO_T}$YACC" >&6
5454 echo "$as_me:$LINENO: result: no" >&5
5455 echo "${ECHO_T}no" >&6
5458 test -n "$YACC" && break
5460 test -n "$YACC" || YACC
="yacc"
5462 if test -n "$ac_tool_prefix"; then
5463 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5464 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5465 echo "$as_me:$LINENO: checking for $ac_word" >&5
5466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5467 if test "${ac_cv_prog_RANLIB+set}" = set; then
5468 echo $ECHO_N "(cached) $ECHO_C" >&6
5470 if test -n "$RANLIB"; then
5471 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5473 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5477 test -z "$as_dir" && as_dir
=.
5478 for ac_exec_ext
in '' $ac_executable_extensions; do
5479 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5480 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5489 RANLIB
=$ac_cv_prog_RANLIB
5490 if test -n "$RANLIB"; then
5491 echo "$as_me:$LINENO: result: $RANLIB" >&5
5492 echo "${ECHO_T}$RANLIB" >&6
5494 echo "$as_me:$LINENO: result: no" >&5
5495 echo "${ECHO_T}no" >&6
5499 if test -z "$ac_cv_prog_RANLIB"; then
5500 ac_ct_RANLIB
=$RANLIB
5501 # Extract the first word of "ranlib", so it can be a program name with args.
5502 set dummy ranlib
; ac_word
=$2
5503 echo "$as_me:$LINENO: checking for $ac_word" >&5
5504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5505 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5506 echo $ECHO_N "(cached) $ECHO_C" >&6
5508 if test -n "$ac_ct_RANLIB"; then
5509 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5511 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5515 test -z "$as_dir" && as_dir
=.
5516 for ac_exec_ext
in '' $ac_executable_extensions; do
5517 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5518 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5527 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5528 if test -n "$ac_ct_RANLIB"; then
5529 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5530 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5532 echo "$as_me:$LINENO: result: no" >&5
5533 echo "${ECHO_T}no" >&6
5536 if test "x$ac_ct_RANLIB" = x
; then
5539 if test "$build" != "$host"; then
5540 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5541 whose name does not start with the host triplet. If you think this
5542 configuration is useful to you, please write to autoconf@gnu.org." >&5
5543 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5544 whose name does not start with the host triplet. If you think this
5545 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5547 RANLIB
=$ac_ct_RANLIB
5550 RANLIB
="$ac_cv_prog_RANLIB"
5554 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
5555 if test -f $ac_dir/install-sh
; then
5557 ac_install_sh
="$ac_aux_dir/install-sh -c"
5559 elif test -f $ac_dir/install.sh
; then
5561 ac_install_sh
="$ac_aux_dir/install.sh -c"
5563 elif test -f $ac_dir/shtool
; then
5565 ac_install_sh
="$ac_aux_dir/shtool install -c"
5569 if test -z "$ac_aux_dir"; then
5570 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
5571 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
5572 { (exit 1); exit 1; }; }
5574 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
5575 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
5576 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
5579 ac_dir
=`cd $ac_aux_dir; pwd`
5580 ac_install_sh
="$ac_dir/install-sh -c"
5581 for ac_prog
in install-info
5583 # Extract the first word of "$ac_prog", so it can be a program name with args.
5584 set dummy
$ac_prog; ac_word
=$2
5585 echo "$as_me:$LINENO: checking for $ac_word" >&5
5586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5587 if test "${ac_cv_prog_INSTALL_INFO+set}" = set; then
5588 echo $ECHO_N "(cached) $ECHO_C" >&6
5590 if test -n "$INSTALL_INFO"; then
5591 ac_cv_prog_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test.
5593 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5597 test -z "$as_dir" && as_dir
=.
5598 for ac_exec_ext
in '' $ac_executable_extensions; do
5599 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5600 ac_cv_prog_INSTALL_INFO
="$ac_prog"
5601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5609 INSTALL_INFO
=$ac_cv_prog_INSTALL_INFO
5610 if test -n "$INSTALL_INFO"; then
5611 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5612 echo "${ECHO_T}$INSTALL_INFO" >&6
5614 echo "$as_me:$LINENO: result: no" >&5
5615 echo "${ECHO_T}no" >&6
5618 test -n "$INSTALL_INFO" && break
5620 test -n "$INSTALL_INFO" || INSTALL_INFO
=":"
5622 # Find a good install program. We prefer a C program (faster),
5623 # so one script is as good as another. But avoid the broken or
5624 # incompatible versions:
5625 # SysV /etc/install, /usr/sbin/install
5626 # SunOS /usr/etc/install
5627 # IRIX /sbin/install
5629 # AmigaOS /C/install, which installs bootblocks on floppy discs
5630 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5631 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5632 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5633 # OS/2's system install, which has a completely different semantic
5634 # ./install, which can be erroneously created by make from ./install.sh.
5635 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5636 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5637 if test -z "$INSTALL"; then
5638 if test "${ac_cv_path_install+set}" = set; then
5639 echo $ECHO_N "(cached) $ECHO_C" >&6
5641 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5645 test -z "$as_dir" && as_dir
=.
5646 # Account for people who put trailing slashes in PATH elements.
5648 .
/ | .
// |
/cC
/* | \
5649 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
5650 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
5653 # OSF1 and SCO ODT 3.0 have their own names for install.
5654 # Don't use installbsd from OSF since it installs stuff as root
5656 for ac_prog
in ginstall scoinst
install; do
5657 for ac_exec_ext
in '' $ac_executable_extensions; do
5658 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5659 if test $ac_prog = install &&
5660 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5661 # AIX install. It has an incompatible calling convention.
5663 elif test $ac_prog = install &&
5664 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5665 # program-specific install script used by HP pwplus--don't use.
5668 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5680 if test "${ac_cv_path_install+set}" = set; then
5681 INSTALL
=$ac_cv_path_install
5683 # As a last resort, use the slow shell script. Don't cache a
5684 # value for INSTALL within a source directory, because that will
5685 # break other packages using the cache if that directory is
5686 # removed, or if the value is a relative name.
5687 INSTALL
=$ac_install_sh
5690 echo "$as_me:$LINENO: result: $INSTALL" >&5
5691 echo "${ECHO_T}$INSTALL" >&6
5693 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5694 # It thinks the first close brace ends the variable substitution.
5695 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5697 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5699 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5701 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5702 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5704 if test "$LN_S" = "ln -s"; then
5705 echo "$as_me:$LINENO: result: yes" >&5
5706 echo "${ECHO_T}yes" >&6
5708 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5709 echo "${ECHO_T}no, using $LN_S" >&6
5713 # use a dummy substitution if no csh hack is necessary to avoid errors
5714 # with non-GNU sed programs
5715 echo "$as_me:$LINENO: checking for csh hash hack" >&5
5716 echo $ECHO_N "checking for csh hash hack... $ECHO_C" >&6
5718 cat <<EOF >conftest.sh
5721 export PATH || exit 0
5725 chmod +x conftest.sh
5726 if echo .
/conftest.sh |
(csh
>/dev
/null
2>&1) >/dev
/null
2>&1; then
5727 echo "$as_me:$LINENO: result: yes" >&5
5728 echo "${ECHO_T}yes" >&6
5729 SH_SCRIPT_SED_CMD
='1s/.*/:/'
5731 echo "$as_me:$LINENO: result: no" >&5
5732 echo "${ECHO_T}no" >&6
5733 SH_SCRIPT_SED_CMD
='1s/a/a/'
5738 # checks for headers
5739 echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5740 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6
5741 if test "${ac_cv_path_GREP+set}" = set; then
5742 echo $ECHO_N "(cached) $ECHO_C" >&6
5744 # Extract the first word of "grep ggrep" to use in msg output
5745 if test -z "$GREP"; then
5746 set dummy
grep ggrep
; ac_prog_name
=$2
5747 if test "${ac_cv_path_GREP+set}" = set; then
5748 echo $ECHO_N "(cached) $ECHO_C" >&6
5750 # Create a temporary directory, and hook for its removal unless debugging.
5753 trap 'exit_status=$?; rm -f -r $tmp && exit $exit_status' 0
5754 trap '{ (exit 1); exit 1; }' 1 2 13 15
5757 # Create a (secure) tmp directory for tmp files.
5760 tmp
=`(umask 077 && mktemp -d -q "$TMPDIR/GREPXXXXXX") 2>/dev/null` &&
5761 test -n "$tmp" && test -d "$tmp"
5764 tmp
=$TMPDIR/GREP$$
-$RANDOM
5765 (umask 077 && mkdir
$tmp)
5768 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
5769 { (exit 1); exit 1; }
5771 ac_path_GREP_found
=false
5772 # Loop through the user's path and test for each of PROGNAME-LIST
5773 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5774 as_dummy
="$PATH:/usr/xpg4/bin"
5775 for as_dir
in $as_dummy
5778 test -z "$as_dir" && as_dir
=.
5779 for ac_prog
in grep ggrep
; do
5780 for ac_exec_ext
in '' $ac_executable_extensions; do
5781 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5782 test -f "$ac_path_GREP" ||
continue
5783 $ac_path_GREP_found ||
if $as_executable_p "$ac_path_GREP"; then
5784 # Check for GNU ac_path_GREP and select it if it is found.
5785 # Check for GNU $ac_path_GREP
5786 if "$ac_path_GREP" --version 2>&1 < /dev
/null |
grep 'GNU' >/dev
/null
; then
5787 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:
5790 echo $ECHO_N "0123456789$ECHO_C" >"$tmp/conftest.in"
5793 cat "$tmp/conftest.in" "$tmp/conftest.in" >"$tmp/conftest.tmp"
5794 mv "$tmp/conftest.tmp" "$tmp/conftest.in"
5795 cp "$tmp/conftest.in" "$tmp/conftest.nl"
5796 echo 'GREP' >> "$tmp/conftest.nl"
5797 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "$tmp/conftest.nl" >"$tmp/conftest.out" 2>/dev
/null ||
break
5798 diff "$tmp/conftest.out" "$tmp/conftest.nl" >/dev
/null
2>&1 ||
break
5799 ac_count
=`expr $ac_count + 1`
5800 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5801 # Best one so far, save it but keep looking for a better one
5802 ac_cv_path_GREP
="$ac_path_GREP"
5803 ac_path_GREP_max
=$ac_count
5805 # 10*(2^10) chars as input seems more than enough
5806 test $ac_count -gt 10 && break
5812 $ac_path_GREP_found && break 3
5822 GREP
="$ac_cv_path_GREP"
5823 if test -z "$GREP"; then
5824 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH:/usr/xpg4/bin" >&5
5825 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH:/usr/xpg4/bin" >&2;}
5826 { (exit 1); exit 1; }; }
5833 echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5834 echo "${ECHO_T}$ac_cv_path_GREP" >&6
5835 GREP
="$ac_cv_path_GREP"
5838 echo "$as_me:$LINENO: checking for egrep" >&5
5839 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5840 if test "${ac_cv_path_EGREP+set}" = set; then
5841 echo $ECHO_N "(cached) $ECHO_C" >&6
5843 if echo a |
($GREP -E '(a|b)') >/dev
/null
2>&1
5844 then ac_cv_path_EGREP
="$GREP -E"
5846 # Extract the first word of "egrep" to use in msg output
5847 if test -z "$EGREP"; then
5848 set dummy
egrep; ac_prog_name
=$2
5849 if test "${ac_cv_path_EGREP+set}" = set; then
5850 echo $ECHO_N "(cached) $ECHO_C" >&6
5852 # Create a temporary directory, and hook for its removal unless debugging.
5855 trap 'exit_status=$?; rm -f -r $tmp && exit $exit_status' 0
5856 trap '{ (exit 1); exit 1; }' 1 2 13 15
5859 # Create a (secure) tmp directory for tmp files.
5862 tmp
=`(umask 077 && mktemp -d -q "$TMPDIR/EGREPXXXXXX") 2>/dev/null` &&
5863 test -n "$tmp" && test -d "$tmp"
5866 tmp
=$TMPDIR/EGREP$$
-$RANDOM
5867 (umask 077 && mkdir
$tmp)
5870 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
5871 { (exit 1); exit 1; }
5873 ac_path_EGREP_found
=false
5874 # Loop through the user's path and test for each of PROGNAME-LIST
5875 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5876 as_dummy
="$PATH:/usr/xpg4/bin"
5877 for as_dir
in $as_dummy
5880 test -z "$as_dir" && as_dir
=.
5881 for ac_prog
in egrep; do
5882 for ac_exec_ext
in '' $ac_executable_extensions; do
5883 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5884 test -f "$ac_path_EGREP" ||
continue
5885 $ac_path_EGREP_found ||
if $as_executable_p "$ac_path_EGREP"; then
5886 # Check for GNU ac_path_EGREP and select it if it is found.
5887 # Check for GNU $ac_path_EGREP
5888 if "$ac_path_EGREP" --version 2>&1 < /dev
/null |
grep 'GNU' >/dev
/null
; then
5889 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:
5892 echo $ECHO_N "0123456789$ECHO_C" >"$tmp/conftest.in"
5895 cat "$tmp/conftest.in" "$tmp/conftest.in" >"$tmp/conftest.tmp"
5896 mv "$tmp/conftest.tmp" "$tmp/conftest.in"
5897 cp "$tmp/conftest.in" "$tmp/conftest.nl"
5898 echo 'EGREP' >> "$tmp/conftest.nl"
5899 "$ac_path_EGREP" 'EGREP$' < "$tmp/conftest.nl" >"$tmp/conftest.out" 2>/dev
/null ||
break
5900 diff "$tmp/conftest.out" "$tmp/conftest.nl" >/dev
/null
2>&1 ||
break
5901 ac_count
=`expr $ac_count + 1`
5902 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5903 # Best one so far, save it but keep looking for a better one
5904 ac_cv_path_EGREP
="$ac_path_EGREP"
5905 ac_path_EGREP_max
=$ac_count
5907 # 10*(2^10) chars as input seems more than enough
5908 test $ac_count -gt 10 && break
5914 $ac_path_EGREP_found && break 3
5924 EGREP
="$ac_cv_path_EGREP"
5925 if test -z "$EGREP"; then
5926 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH:/usr/xpg4/bin" >&5
5927 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH:/usr/xpg4/bin" >&2;}
5928 { (exit 1); exit 1; }; }
5936 echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5937 echo "${ECHO_T}$ac_cv_path_EGREP" >&6
5938 EGREP
="$ac_cv_path_EGREP"
5941 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5942 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5943 if test "${ac_cv_header_stdc+set}" = set; then
5944 echo $ECHO_N "(cached) $ECHO_C" >&6
5946 cat >conftest.
$ac_ext <<_ACEOF
5949 cat confdefs.h
>>conftest.
$ac_ext
5950 cat >>conftest.
$ac_ext <<_ACEOF
5951 /* end confdefs.h. */
5965 rm -f conftest.
$ac_objext
5966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5967 (eval $ac_compile) 2>conftest.er1
5969 grep -v '^ *+' conftest.er1
>conftest.err
5971 cat conftest.err
>&5
5972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973 (exit $ac_status); } &&
5974 { ac_try
='test -z "$ac_c_werror_flag"
5975 || test ! -s conftest.err'
5976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5980 (exit $ac_status); }; } &&
5981 { ac_try
='test -s conftest.$ac_objext'
5982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); }; }; then
5987 ac_cv_header_stdc
=yes
5989 echo "$as_me: failed program was:" >&5
5990 sed 's/^/| /' conftest.
$ac_ext >&5
5992 ac_cv_header_stdc
=no
5994 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5996 if test $ac_cv_header_stdc = yes; then
5997 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5998 cat >conftest.
$ac_ext <<_ACEOF
6001 cat confdefs.h
>>conftest.
$ac_ext
6002 cat >>conftest.
$ac_ext <<_ACEOF
6003 /* end confdefs.h. */
6007 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6008 $EGREP "memchr" >/dev
/null
2>&1; then
6011 ac_cv_header_stdc
=no
6017 if test $ac_cv_header_stdc = yes; then
6018 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6019 cat >conftest.
$ac_ext <<_ACEOF
6022 cat confdefs.h
>>conftest.
$ac_ext
6023 cat >>conftest.
$ac_ext <<_ACEOF
6024 /* end confdefs.h. */
6028 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6029 $EGREP "free" >/dev
/null
2>&1; then
6032 ac_cv_header_stdc
=no
6038 if test $ac_cv_header_stdc = yes; then
6039 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6040 if test "$cross_compiling" = yes; then
6043 cat >conftest.
$ac_ext <<_ACEOF
6046 cat confdefs.h
>>conftest.
$ac_ext
6047 cat >>conftest.
$ac_ext <<_ACEOF
6048 /* end confdefs.h. */
6051 #if ((' ' & 0x0FF) == 0x020)
6052 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6053 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6055 # define ISLOWER(c) \
6056 (('a' <= (c) && (c) <= 'i') \
6057 || ('j' <= (c) && (c) <= 'r') \
6058 || ('s' <= (c) && (c) <= 'z'))
6059 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6062 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6067 for (i = 0; i < 256; i++)
6068 if (XOR (islower (i), ISLOWER (i))
6069 || toupper (i) != TOUPPER (i))
6074 rm -f conftest
$ac_exeext
6075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6076 (eval $ac_link) 2>&5
6078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6079 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); }; }; then
6087 echo "$as_me: program exited with status $ac_status" >&5
6088 echo "$as_me: failed program was:" >&5
6089 sed 's/^/| /' conftest.
$ac_ext >&5
6092 ac_cv_header_stdc
=no
6094 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6098 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6099 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6100 if test $ac_cv_header_stdc = yes; then
6102 cat >>confdefs.h
<<\_ACEOF
6103 #define STDC_HEADERS 1
6108 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6118 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6119 inttypes.h stdint.h unistd.h
6121 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6122 echo "$as_me:$LINENO: checking for $ac_header" >&5
6123 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6124 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6125 echo $ECHO_N "(cached) $ECHO_C" >&6
6127 cat >conftest.
$ac_ext <<_ACEOF
6130 cat confdefs.h
>>conftest.
$ac_ext
6131 cat >>conftest.
$ac_ext <<_ACEOF
6132 /* end confdefs.h. */
6133 $ac_includes_default
6135 #include <$ac_header>
6137 rm -f conftest.
$ac_objext
6138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6139 (eval $ac_compile) 2>conftest.er1
6141 grep -v '^ *+' conftest.er1
>conftest.err
6143 cat conftest.err
>&5
6144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145 (exit $ac_status); } &&
6146 { ac_try
='test -z "$ac_c_werror_flag"
6147 || test ! -s conftest.err'
6148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152 (exit $ac_status); }; } &&
6153 { ac_try
='test -s conftest.$ac_objext'
6154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158 (exit $ac_status); }; }; then
6159 eval "$as_ac_Header=yes"
6161 echo "$as_me: failed program was:" >&5
6162 sed 's/^/| /' conftest.
$ac_ext >&5
6164 eval "$as_ac_Header=no"
6166 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6169 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6170 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6171 cat >>confdefs.h
<<_ACEOF
6172 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6191 for ac_header
in stdlib.h unistd.h dirent.h limits.h sys
/dir.h \
6192 string.h
strings.h math.h sys
/time.h direct.h process.h
6194 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6195 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6196 echo "$as_me:$LINENO: checking for $ac_header" >&5
6197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6198 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6199 echo $ECHO_N "(cached) $ECHO_C" >&6
6201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6202 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6204 # Is the header compilable?
6205 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6206 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6207 cat >conftest.
$ac_ext <<_ACEOF
6210 cat confdefs.h
>>conftest.
$ac_ext
6211 cat >>conftest.
$ac_ext <<_ACEOF
6212 /* end confdefs.h. */
6213 $ac_includes_default
6214 #include <$ac_header>
6216 rm -f conftest.
$ac_objext
6217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6218 (eval $ac_compile) 2>conftest.er1
6220 grep -v '^ *+' conftest.er1
>conftest.err
6222 cat conftest.err
>&5
6223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224 (exit $ac_status); } &&
6225 { ac_try
='test -z "$ac_c_werror_flag"
6226 || test ! -s conftest.err'
6227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231 (exit $ac_status); }; } &&
6232 { ac_try
='test -s conftest.$ac_objext'
6233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237 (exit $ac_status); }; }; then
6238 ac_header_compiler
=yes
6240 echo "$as_me: failed program was:" >&5
6241 sed 's/^/| /' conftest.
$ac_ext >&5
6243 ac_header_compiler
=no
6245 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6246 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6247 echo "${ECHO_T}$ac_header_compiler" >&6
6249 # Is the header present?
6250 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6251 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6252 cat >conftest.
$ac_ext <<_ACEOF
6255 cat confdefs.h
>>conftest.
$ac_ext
6256 cat >>conftest.
$ac_ext <<_ACEOF
6257 /* end confdefs.h. */
6258 #include <$ac_header>
6260 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6261 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6263 grep -v '^ *+' conftest.er1
>conftest.err
6265 cat conftest.err
>&5
6266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267 (exit $ac_status); } >/dev
/null
; then
6268 if test -s conftest.err
; then
6269 ac_cpp_err
=$ac_c_preproc_warn_flag
6270 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6277 if test -z "$ac_cpp_err"; then
6278 ac_header_preproc
=yes
6280 echo "$as_me: failed program was:" >&5
6281 sed 's/^/| /' conftest.
$ac_ext >&5
6283 ac_header_preproc
=no
6285 rm -f conftest.err conftest.
$ac_ext
6286 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6287 echo "${ECHO_T}$ac_header_preproc" >&6
6289 # So? What about this header?
6290 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6292 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6293 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6294 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6295 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6296 ac_header_preproc
=yes
6299 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6300 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6301 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6302 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6303 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6304 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6305 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6306 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6307 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6308 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6309 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6310 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6313 ## ------------------------------------------ ##
6314 ## Report this to the AC_PACKAGE_NAME lists. ##
6315 ## ------------------------------------------ ##
6318 sed "s/^/$as_me: WARNING: /" >&2
6321 echo "$as_me:$LINENO: checking for $ac_header" >&5
6322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6324 echo $ECHO_N "(cached) $ECHO_C" >&6
6326 eval "$as_ac_Header=\$ac_header_preproc"
6328 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6329 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6332 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6333 cat >>confdefs.h
<<_ACEOF
6334 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6341 echo "$as_me:$LINENO: checking for ISC 3.x or 4.x" >&5
6342 echo $ECHO_N "checking for ISC 3.x or 4.x... $ECHO_C" >&6
6343 if grep '[34]\.' /usr
/options
/cb.name
>/dev
/null
2>&1
6345 echo "$as_me:$LINENO: result: yes" >&5
6346 echo "${ECHO_T}yes" >&6
6348 cat >>confdefs.h
<<\_ACEOF
6353 echo "$as_me:$LINENO: result: no" >&5
6354 echo "${ECHO_T}no" >&6
6356 echo "$as_me:$LINENO: checking whether -D_POSIX_SOURCE is necessary" >&5
6357 echo $ECHO_N "checking whether -D_POSIX_SOURCE is necessary... $ECHO_C" >&6
6359 ac_cpp
='$CXXCPP $CPPFLAGS'
6360 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6361 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6362 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6364 cat >conftest.
$ac_ext <<_ACEOF
6368 cat confdefs.h
>>conftest.
$ac_ext
6369 cat >>conftest.
$ac_ext <<_ACEOF
6370 /* end confdefs.h. */
6374 extern "C" { void fileno(int); }
6386 rm -f conftest.
$ac_objext
6387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6388 (eval $ac_compile) 2>conftest.er1
6390 grep -v '^ *+' conftest.er1
>conftest.err
6392 cat conftest.err
>&5
6393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394 (exit $ac_status); } &&
6395 { ac_try
='test -z "$ac_cxx_werror_flag"
6396 || test ! -s conftest.err'
6397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401 (exit $ac_status); }; } &&
6402 { ac_try
='test -s conftest.$ac_objext'
6403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407 (exit $ac_status); }; }; then
6408 echo "$as_me:$LINENO: result: yes" >&5
6409 echo "${ECHO_T}yes" >&6
6411 cat >>confdefs.h
<<\_ACEOF
6412 #define _POSIX_SOURCE 1
6416 echo "$as_me: failed program was:" >&5
6417 sed 's/^/| /' conftest.
$ac_ext >&5
6419 echo "$as_me:$LINENO: result: no" >&5
6420 echo "${ECHO_T}no" >&6
6422 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6424 ac_cpp
='$CPP $CPPFLAGS'
6425 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6426 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6427 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6430 # checks for header stuff
6432 ac_cpp
='$CXXCPP $CPPFLAGS'
6433 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6434 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6435 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6437 echo "$as_me:$LINENO: checking for return type of srand" >&5
6438 echo $ECHO_N "checking for return type of srand... $ECHO_C" >&6
6439 cat >conftest.
$ac_ext <<_ACEOF
6443 cat confdefs.h
>>conftest.
$ac_ext
6444 cat >>conftest.
$ac_ext <<_ACEOF
6445 /* end confdefs.h. */
6449 extern "C" { void srand(unsigned int); }
6461 rm -f conftest.
$ac_objext
6462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6463 (eval $ac_compile) 2>conftest.er1
6465 grep -v '^ *+' conftest.er1
>conftest.err
6467 cat conftest.err
>&5
6468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469 (exit $ac_status); } &&
6470 { ac_try
='test -z "$ac_cxx_werror_flag"
6471 || test ! -s conftest.err'
6472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476 (exit $ac_status); }; } &&
6477 { ac_try
='test -s conftest.$ac_objext'
6478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482 (exit $ac_status); }; }; then
6483 echo "$as_me:$LINENO: result: void" >&5
6484 echo "${ECHO_T}void" >&6
6486 cat >>confdefs.h
<<\_ACEOF
6487 #define RET_TYPE_SRAND_IS_VOID 1
6491 echo "$as_me: failed program was:" >&5
6492 sed 's/^/| /' conftest.
$ac_ext >&5
6494 echo "$as_me:$LINENO: result: int" >&5
6495 echo "${ECHO_T}int" >&6
6497 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6499 ac_cpp
='$CPP $CPPFLAGS'
6500 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6501 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6502 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6504 echo "$as_me:$LINENO: checking whether gettimeofday must be declared" >&5
6505 echo $ECHO_N "checking whether gettimeofday must be declared... $ECHO_C" >&6
6507 ac_cpp
='$CXXCPP $CPPFLAGS'
6508 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6509 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6510 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6512 if test "${groff_cv_decl_needed_gettimeofday+set}" = set; then
6513 echo $ECHO_N "(cached) $ECHO_C" >&6
6515 cat >conftest.
$ac_ext <<_ACEOF
6519 cat confdefs.h
>>conftest.
$ac_ext
6520 cat >>conftest.
$ac_ext <<_ACEOF
6521 /* end confdefs.h. */
6525 #ifdef HAVE_STRING_H
6528 #ifdef HAVE_STRINGS_H
6529 #include <strings.h>
6531 #ifdef HAVE_STDLIB_H
6534 #ifdef HAVE_SYS_TIME_H
6535 #include <sys/time.h>
6537 #ifdef HAVE_UNISTD_H
6550 #ifndef gettimeofday
6551 char *p = (char *) gettimeofday;
6560 rm -f conftest.
$ac_objext
6561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6562 (eval $ac_compile) 2>conftest.er1
6564 grep -v '^ *+' conftest.er1
>conftest.err
6566 cat conftest.err
>&5
6567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568 (exit $ac_status); } &&
6569 { ac_try
='test -z "$ac_cxx_werror_flag"
6570 || test ! -s conftest.err'
6571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575 (exit $ac_status); }; } &&
6576 { ac_try
='test -s conftest.$ac_objext'
6577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581 (exit $ac_status); }; }; then
6582 groff_cv_decl_needed_gettimeofday
=no
6584 echo "$as_me: failed program was:" >&5
6585 sed 's/^/| /' conftest.
$ac_ext >&5
6587 groff_cv_decl_needed_gettimeofday
=yes
6589 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6592 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_gettimeofday" >&5
6593 echo "${ECHO_T}$groff_cv_decl_needed_gettimeofday" >&6
6594 if test $groff_cv_decl_needed_gettimeofday = yes; then
6596 cat >>confdefs.h
<<\_ACEOF
6597 #define NEED_DECLARATION_GETTIMEOFDAY 1
6602 ac_cpp
='$CPP $CPPFLAGS'
6603 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6604 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6605 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6607 echo "$as_me:$LINENO: checking whether hypot must be declared" >&5
6608 echo $ECHO_N "checking whether hypot must be declared... $ECHO_C" >&6
6610 ac_cpp
='$CXXCPP $CPPFLAGS'
6611 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6612 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6613 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6615 if test "${groff_cv_decl_needed_hypot+set}" = set; then
6616 echo $ECHO_N "(cached) $ECHO_C" >&6
6618 cat >conftest.
$ac_ext <<_ACEOF
6622 cat confdefs.h
>>conftest.
$ac_ext
6623 cat >>conftest.
$ac_ext <<_ACEOF
6624 /* end confdefs.h. */
6628 #ifdef HAVE_STRING_H
6631 #ifdef HAVE_STRINGS_H
6632 #include <strings.h>
6634 #ifdef HAVE_STDLIB_H
6637 #ifdef HAVE_SYS_TIME_H
6638 #include <sys/time.h>
6640 #ifdef HAVE_UNISTD_H
6654 char *p = (char *) hypot;
6663 rm -f conftest.
$ac_objext
6664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6665 (eval $ac_compile) 2>conftest.er1
6667 grep -v '^ *+' conftest.er1
>conftest.err
6669 cat conftest.err
>&5
6670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6671 (exit $ac_status); } &&
6672 { ac_try
='test -z "$ac_cxx_werror_flag"
6673 || test ! -s conftest.err'
6674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6678 (exit $ac_status); }; } &&
6679 { ac_try
='test -s conftest.$ac_objext'
6680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684 (exit $ac_status); }; }; then
6685 groff_cv_decl_needed_hypot
=no
6687 echo "$as_me: failed program was:" >&5
6688 sed 's/^/| /' conftest.
$ac_ext >&5
6690 groff_cv_decl_needed_hypot
=yes
6692 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6695 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_hypot" >&5
6696 echo "${ECHO_T}$groff_cv_decl_needed_hypot" >&6
6697 if test $groff_cv_decl_needed_hypot = yes; then
6699 cat >>confdefs.h
<<\_ACEOF
6700 #define NEED_DECLARATION_HYPOT 1
6705 ac_cpp
='$CPP $CPPFLAGS'
6706 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6707 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6708 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6710 echo "$as_me:$LINENO: checking whether popen must be declared" >&5
6711 echo $ECHO_N "checking whether popen must be declared... $ECHO_C" >&6
6713 ac_cpp
='$CXXCPP $CPPFLAGS'
6714 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6715 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6716 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6718 if test "${groff_cv_decl_needed_popen+set}" = set; then
6719 echo $ECHO_N "(cached) $ECHO_C" >&6
6721 cat >conftest.
$ac_ext <<_ACEOF
6725 cat confdefs.h
>>conftest.
$ac_ext
6726 cat >>conftest.
$ac_ext <<_ACEOF
6727 /* end confdefs.h. */
6731 #ifdef HAVE_STRING_H
6734 #ifdef HAVE_STRINGS_H
6735 #include <strings.h>
6737 #ifdef HAVE_STDLIB_H
6740 #ifdef HAVE_SYS_TIME_H
6741 #include <sys/time.h>
6743 #ifdef HAVE_UNISTD_H
6757 char *p = (char *) popen;
6766 rm -f conftest.
$ac_objext
6767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6768 (eval $ac_compile) 2>conftest.er1
6770 grep -v '^ *+' conftest.er1
>conftest.err
6772 cat conftest.err
>&5
6773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774 (exit $ac_status); } &&
6775 { ac_try
='test -z "$ac_cxx_werror_flag"
6776 || test ! -s conftest.err'
6777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6781 (exit $ac_status); }; } &&
6782 { ac_try
='test -s conftest.$ac_objext'
6783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6787 (exit $ac_status); }; }; then
6788 groff_cv_decl_needed_popen
=no
6790 echo "$as_me: failed program was:" >&5
6791 sed 's/^/| /' conftest.
$ac_ext >&5
6793 groff_cv_decl_needed_popen
=yes
6795 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6798 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_popen" >&5
6799 echo "${ECHO_T}$groff_cv_decl_needed_popen" >&6
6800 if test $groff_cv_decl_needed_popen = yes; then
6802 cat >>confdefs.h
<<\_ACEOF
6803 #define NEED_DECLARATION_POPEN 1
6808 ac_cpp
='$CPP $CPPFLAGS'
6809 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6810 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6811 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6813 echo "$as_me:$LINENO: checking whether pclose must be declared" >&5
6814 echo $ECHO_N "checking whether pclose must be declared... $ECHO_C" >&6
6816 ac_cpp
='$CXXCPP $CPPFLAGS'
6817 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6818 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6819 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6821 if test "${groff_cv_decl_needed_pclose+set}" = set; then
6822 echo $ECHO_N "(cached) $ECHO_C" >&6
6824 cat >conftest.
$ac_ext <<_ACEOF
6828 cat confdefs.h
>>conftest.
$ac_ext
6829 cat >>conftest.
$ac_ext <<_ACEOF
6830 /* end confdefs.h. */
6834 #ifdef HAVE_STRING_H
6837 #ifdef HAVE_STRINGS_H
6838 #include <strings.h>
6840 #ifdef HAVE_STDLIB_H
6843 #ifdef HAVE_SYS_TIME_H
6844 #include <sys/time.h>
6846 #ifdef HAVE_UNISTD_H
6860 char *p = (char *) pclose;
6869 rm -f conftest.
$ac_objext
6870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6871 (eval $ac_compile) 2>conftest.er1
6873 grep -v '^ *+' conftest.er1
>conftest.err
6875 cat conftest.err
>&5
6876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6877 (exit $ac_status); } &&
6878 { ac_try
='test -z "$ac_cxx_werror_flag"
6879 || test ! -s conftest.err'
6880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884 (exit $ac_status); }; } &&
6885 { ac_try
='test -s conftest.$ac_objext'
6886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890 (exit $ac_status); }; }; then
6891 groff_cv_decl_needed_pclose
=no
6893 echo "$as_me: failed program was:" >&5
6894 sed 's/^/| /' conftest.
$ac_ext >&5
6896 groff_cv_decl_needed_pclose
=yes
6898 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6901 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_pclose" >&5
6902 echo "${ECHO_T}$groff_cv_decl_needed_pclose" >&6
6903 if test $groff_cv_decl_needed_pclose = yes; then
6905 cat >>confdefs.h
<<\_ACEOF
6906 #define NEED_DECLARATION_PCLOSE 1
6911 ac_cpp
='$CPP $CPPFLAGS'
6912 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6913 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6914 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6916 echo "$as_me:$LINENO: checking whether putenv must be declared" >&5
6917 echo $ECHO_N "checking whether putenv must be declared... $ECHO_C" >&6
6919 ac_cpp
='$CXXCPP $CPPFLAGS'
6920 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6921 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6922 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6924 if test "${groff_cv_decl_needed_putenv+set}" = set; then
6925 echo $ECHO_N "(cached) $ECHO_C" >&6
6927 cat >conftest.
$ac_ext <<_ACEOF
6931 cat confdefs.h
>>conftest.
$ac_ext
6932 cat >>conftest.
$ac_ext <<_ACEOF
6933 /* end confdefs.h. */
6937 #ifdef HAVE_STRING_H
6940 #ifdef HAVE_STRINGS_H
6941 #include <strings.h>
6943 #ifdef HAVE_STDLIB_H
6946 #ifdef HAVE_SYS_TIME_H
6947 #include <sys/time.h>
6949 #ifdef HAVE_UNISTD_H
6963 char *p = (char *) putenv;
6972 rm -f conftest.
$ac_objext
6973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6974 (eval $ac_compile) 2>conftest.er1
6976 grep -v '^ *+' conftest.er1
>conftest.err
6978 cat conftest.err
>&5
6979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6980 (exit $ac_status); } &&
6981 { ac_try
='test -z "$ac_cxx_werror_flag"
6982 || test ! -s conftest.err'
6983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6987 (exit $ac_status); }; } &&
6988 { ac_try
='test -s conftest.$ac_objext'
6989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993 (exit $ac_status); }; }; then
6994 groff_cv_decl_needed_putenv
=no
6996 echo "$as_me: failed program was:" >&5
6997 sed 's/^/| /' conftest.
$ac_ext >&5
6999 groff_cv_decl_needed_putenv
=yes
7001 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7004 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_putenv" >&5
7005 echo "${ECHO_T}$groff_cv_decl_needed_putenv" >&6
7006 if test $groff_cv_decl_needed_putenv = yes; then
7008 cat >>confdefs.h
<<\_ACEOF
7009 #define NEED_DECLARATION_PUTENV 1
7014 ac_cpp
='$CPP $CPPFLAGS'
7015 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7016 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7017 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7019 echo "$as_me:$LINENO: checking whether rand must be declared" >&5
7020 echo $ECHO_N "checking whether rand must be declared... $ECHO_C" >&6
7022 ac_cpp
='$CXXCPP $CPPFLAGS'
7023 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7024 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7025 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7027 if test "${groff_cv_decl_needed_rand+set}" = set; then
7028 echo $ECHO_N "(cached) $ECHO_C" >&6
7030 cat >conftest.
$ac_ext <<_ACEOF
7034 cat confdefs.h
>>conftest.
$ac_ext
7035 cat >>conftest.
$ac_ext <<_ACEOF
7036 /* end confdefs.h. */
7040 #ifdef HAVE_STRING_H
7043 #ifdef HAVE_STRINGS_H
7044 #include <strings.h>
7046 #ifdef HAVE_STDLIB_H
7049 #ifdef HAVE_SYS_TIME_H
7050 #include <sys/time.h>
7052 #ifdef HAVE_UNISTD_H
7066 char *p = (char *) rand;
7075 rm -f conftest.
$ac_objext
7076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7077 (eval $ac_compile) 2>conftest.er1
7079 grep -v '^ *+' conftest.er1
>conftest.err
7081 cat conftest.err
>&5
7082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083 (exit $ac_status); } &&
7084 { ac_try
='test -z "$ac_cxx_werror_flag"
7085 || test ! -s conftest.err'
7086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7090 (exit $ac_status); }; } &&
7091 { ac_try
='test -s conftest.$ac_objext'
7092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7096 (exit $ac_status); }; }; then
7097 groff_cv_decl_needed_rand
=no
7099 echo "$as_me: failed program was:" >&5
7100 sed 's/^/| /' conftest.
$ac_ext >&5
7102 groff_cv_decl_needed_rand
=yes
7104 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7107 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_rand" >&5
7108 echo "${ECHO_T}$groff_cv_decl_needed_rand" >&6
7109 if test $groff_cv_decl_needed_rand = yes; then
7111 cat >>confdefs.h
<<\_ACEOF
7112 #define NEED_DECLARATION_RAND 1
7117 ac_cpp
='$CPP $CPPFLAGS'
7118 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7119 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7120 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7122 echo "$as_me:$LINENO: checking whether snprintf must be declared" >&5
7123 echo $ECHO_N "checking whether snprintf must be declared... $ECHO_C" >&6
7125 ac_cpp
='$CXXCPP $CPPFLAGS'
7126 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7127 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7128 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7130 if test "${groff_cv_decl_needed_snprintf+set}" = set; then
7131 echo $ECHO_N "(cached) $ECHO_C" >&6
7133 cat >conftest.
$ac_ext <<_ACEOF
7137 cat confdefs.h
>>conftest.
$ac_ext
7138 cat >>conftest.
$ac_ext <<_ACEOF
7139 /* end confdefs.h. */
7143 #ifdef HAVE_STRING_H
7146 #ifdef HAVE_STRINGS_H
7147 #include <strings.h>
7149 #ifdef HAVE_STDLIB_H
7152 #ifdef HAVE_SYS_TIME_H
7153 #include <sys/time.h>
7155 #ifdef HAVE_UNISTD_H
7169 char *p = (char *) snprintf;
7178 rm -f conftest.
$ac_objext
7179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7180 (eval $ac_compile) 2>conftest.er1
7182 grep -v '^ *+' conftest.er1
>conftest.err
7184 cat conftest.err
>&5
7185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7186 (exit $ac_status); } &&
7187 { ac_try
='test -z "$ac_cxx_werror_flag"
7188 || test ! -s conftest.err'
7189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193 (exit $ac_status); }; } &&
7194 { ac_try
='test -s conftest.$ac_objext'
7195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199 (exit $ac_status); }; }; then
7200 groff_cv_decl_needed_snprintf
=no
7202 echo "$as_me: failed program was:" >&5
7203 sed 's/^/| /' conftest.
$ac_ext >&5
7205 groff_cv_decl_needed_snprintf
=yes
7207 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7210 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_snprintf" >&5
7211 echo "${ECHO_T}$groff_cv_decl_needed_snprintf" >&6
7212 if test $groff_cv_decl_needed_snprintf = yes; then
7214 cat >>confdefs.h
<<\_ACEOF
7215 #define NEED_DECLARATION_SNPRINTF 1
7220 ac_cpp
='$CPP $CPPFLAGS'
7221 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7222 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7223 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7225 echo "$as_me:$LINENO: checking whether srand must be declared" >&5
7226 echo $ECHO_N "checking whether srand must be declared... $ECHO_C" >&6
7228 ac_cpp
='$CXXCPP $CPPFLAGS'
7229 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7230 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7231 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7233 if test "${groff_cv_decl_needed_srand+set}" = set; then
7234 echo $ECHO_N "(cached) $ECHO_C" >&6
7236 cat >conftest.
$ac_ext <<_ACEOF
7240 cat confdefs.h
>>conftest.
$ac_ext
7241 cat >>conftest.
$ac_ext <<_ACEOF
7242 /* end confdefs.h. */
7246 #ifdef HAVE_STRING_H
7249 #ifdef HAVE_STRINGS_H
7250 #include <strings.h>
7252 #ifdef HAVE_STDLIB_H
7255 #ifdef HAVE_SYS_TIME_H
7256 #include <sys/time.h>
7258 #ifdef HAVE_UNISTD_H
7272 char *p = (char *) srand;
7281 rm -f conftest.
$ac_objext
7282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7283 (eval $ac_compile) 2>conftest.er1
7285 grep -v '^ *+' conftest.er1
>conftest.err
7287 cat conftest.err
>&5
7288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289 (exit $ac_status); } &&
7290 { ac_try
='test -z "$ac_cxx_werror_flag"
7291 || test ! -s conftest.err'
7292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296 (exit $ac_status); }; } &&
7297 { ac_try
='test -s conftest.$ac_objext'
7298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302 (exit $ac_status); }; }; then
7303 groff_cv_decl_needed_srand
=no
7305 echo "$as_me: failed program was:" >&5
7306 sed 's/^/| /' conftest.
$ac_ext >&5
7308 groff_cv_decl_needed_srand
=yes
7310 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7313 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_srand" >&5
7314 echo "${ECHO_T}$groff_cv_decl_needed_srand" >&6
7315 if test $groff_cv_decl_needed_srand = yes; then
7317 cat >>confdefs.h
<<\_ACEOF
7318 #define NEED_DECLARATION_SRAND 1
7323 ac_cpp
='$CPP $CPPFLAGS'
7324 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7325 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7326 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7328 echo "$as_me:$LINENO: checking whether strcasecmp must be declared" >&5
7329 echo $ECHO_N "checking whether strcasecmp must be declared... $ECHO_C" >&6
7331 ac_cpp
='$CXXCPP $CPPFLAGS'
7332 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7333 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7334 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7336 if test "${groff_cv_decl_needed_strcasecmp+set}" = set; then
7337 echo $ECHO_N "(cached) $ECHO_C" >&6
7339 cat >conftest.
$ac_ext <<_ACEOF
7343 cat confdefs.h
>>conftest.
$ac_ext
7344 cat >>conftest.
$ac_ext <<_ACEOF
7345 /* end confdefs.h. */
7349 #ifdef HAVE_STRING_H
7352 #ifdef HAVE_STRINGS_H
7353 #include <strings.h>
7355 #ifdef HAVE_STDLIB_H
7358 #ifdef HAVE_SYS_TIME_H
7359 #include <sys/time.h>
7361 #ifdef HAVE_UNISTD_H
7375 char *p = (char *) strcasecmp;
7384 rm -f conftest.
$ac_objext
7385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7386 (eval $ac_compile) 2>conftest.er1
7388 grep -v '^ *+' conftest.er1
>conftest.err
7390 cat conftest.err
>&5
7391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7392 (exit $ac_status); } &&
7393 { ac_try
='test -z "$ac_cxx_werror_flag"
7394 || test ! -s conftest.err'
7395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7399 (exit $ac_status); }; } &&
7400 { ac_try
='test -s conftest.$ac_objext'
7401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7405 (exit $ac_status); }; }; then
7406 groff_cv_decl_needed_strcasecmp
=no
7408 echo "$as_me: failed program was:" >&5
7409 sed 's/^/| /' conftest.
$ac_ext >&5
7411 groff_cv_decl_needed_strcasecmp
=yes
7413 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7416 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_strcasecmp" >&5
7417 echo "${ECHO_T}$groff_cv_decl_needed_strcasecmp" >&6
7418 if test $groff_cv_decl_needed_strcasecmp = yes; then
7420 cat >>confdefs.h
<<\_ACEOF
7421 #define NEED_DECLARATION_STRCASECMP 1
7426 ac_cpp
='$CPP $CPPFLAGS'
7427 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7428 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7429 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7431 echo "$as_me:$LINENO: checking whether strncasecmp must be declared" >&5
7432 echo $ECHO_N "checking whether strncasecmp must be declared... $ECHO_C" >&6
7434 ac_cpp
='$CXXCPP $CPPFLAGS'
7435 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7436 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7437 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7439 if test "${groff_cv_decl_needed_strncasecmp+set}" = set; then
7440 echo $ECHO_N "(cached) $ECHO_C" >&6
7442 cat >conftest.
$ac_ext <<_ACEOF
7446 cat confdefs.h
>>conftest.
$ac_ext
7447 cat >>conftest.
$ac_ext <<_ACEOF
7448 /* end confdefs.h. */
7452 #ifdef HAVE_STRING_H
7455 #ifdef HAVE_STRINGS_H
7456 #include <strings.h>
7458 #ifdef HAVE_STDLIB_H
7461 #ifdef HAVE_SYS_TIME_H
7462 #include <sys/time.h>
7464 #ifdef HAVE_UNISTD_H
7478 char *p = (char *) strncasecmp;
7487 rm -f conftest.
$ac_objext
7488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7489 (eval $ac_compile) 2>conftest.er1
7491 grep -v '^ *+' conftest.er1
>conftest.err
7493 cat conftest.err
>&5
7494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7495 (exit $ac_status); } &&
7496 { ac_try
='test -z "$ac_cxx_werror_flag"
7497 || test ! -s conftest.err'
7498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7502 (exit $ac_status); }; } &&
7503 { ac_try
='test -s conftest.$ac_objext'
7504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7508 (exit $ac_status); }; }; then
7509 groff_cv_decl_needed_strncasecmp
=no
7511 echo "$as_me: failed program was:" >&5
7512 sed 's/^/| /' conftest.
$ac_ext >&5
7514 groff_cv_decl_needed_strncasecmp
=yes
7516 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7519 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_strncasecmp" >&5
7520 echo "${ECHO_T}$groff_cv_decl_needed_strncasecmp" >&6
7521 if test $groff_cv_decl_needed_strncasecmp = yes; then
7523 cat >>confdefs.h
<<\_ACEOF
7524 #define NEED_DECLARATION_STRNCASECMP 1
7529 ac_cpp
='$CPP $CPPFLAGS'
7530 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7531 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7532 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7534 echo "$as_me:$LINENO: checking whether vfprintf must be declared" >&5
7535 echo $ECHO_N "checking whether vfprintf must be declared... $ECHO_C" >&6
7537 ac_cpp
='$CXXCPP $CPPFLAGS'
7538 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7539 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7540 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7542 if test "${groff_cv_decl_needed_vfprintf+set}" = set; then
7543 echo $ECHO_N "(cached) $ECHO_C" >&6
7545 cat >conftest.
$ac_ext <<_ACEOF
7549 cat confdefs.h
>>conftest.
$ac_ext
7550 cat >>conftest.
$ac_ext <<_ACEOF
7551 /* end confdefs.h. */
7555 #ifdef HAVE_STRING_H
7558 #ifdef HAVE_STRINGS_H
7559 #include <strings.h>
7561 #ifdef HAVE_STDLIB_H
7564 #ifdef HAVE_SYS_TIME_H
7565 #include <sys/time.h>
7567 #ifdef HAVE_UNISTD_H
7581 char *p = (char *) vfprintf;
7590 rm -f conftest.
$ac_objext
7591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7592 (eval $ac_compile) 2>conftest.er1
7594 grep -v '^ *+' conftest.er1
>conftest.err
7596 cat conftest.err
>&5
7597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7598 (exit $ac_status); } &&
7599 { ac_try
='test -z "$ac_cxx_werror_flag"
7600 || test ! -s conftest.err'
7601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605 (exit $ac_status); }; } &&
7606 { ac_try
='test -s conftest.$ac_objext'
7607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7611 (exit $ac_status); }; }; then
7612 groff_cv_decl_needed_vfprintf
=no
7614 echo "$as_me: failed program was:" >&5
7615 sed 's/^/| /' conftest.
$ac_ext >&5
7617 groff_cv_decl_needed_vfprintf
=yes
7619 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7622 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_vfprintf" >&5
7623 echo "${ECHO_T}$groff_cv_decl_needed_vfprintf" >&6
7624 if test $groff_cv_decl_needed_vfprintf = yes; then
7626 cat >>confdefs.h
<<\_ACEOF
7627 #define NEED_DECLARATION_VFPRINTF 1
7632 ac_cpp
='$CPP $CPPFLAGS'
7633 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7634 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7635 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7637 echo "$as_me:$LINENO: checking whether vsnprintf must be declared" >&5
7638 echo $ECHO_N "checking whether vsnprintf must be declared... $ECHO_C" >&6
7640 ac_cpp
='$CXXCPP $CPPFLAGS'
7641 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7642 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7643 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7645 if test "${groff_cv_decl_needed_vsnprintf+set}" = set; then
7646 echo $ECHO_N "(cached) $ECHO_C" >&6
7648 cat >conftest.
$ac_ext <<_ACEOF
7652 cat confdefs.h
>>conftest.
$ac_ext
7653 cat >>conftest.
$ac_ext <<_ACEOF
7654 /* end confdefs.h. */
7658 #ifdef HAVE_STRING_H
7661 #ifdef HAVE_STRINGS_H
7662 #include <strings.h>
7664 #ifdef HAVE_STDLIB_H
7667 #ifdef HAVE_SYS_TIME_H
7668 #include <sys/time.h>
7670 #ifdef HAVE_UNISTD_H
7684 char *p = (char *) vsnprintf;
7693 rm -f conftest.
$ac_objext
7694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7695 (eval $ac_compile) 2>conftest.er1
7697 grep -v '^ *+' conftest.er1
>conftest.err
7699 cat conftest.err
>&5
7700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701 (exit $ac_status); } &&
7702 { ac_try
='test -z "$ac_cxx_werror_flag"
7703 || test ! -s conftest.err'
7704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708 (exit $ac_status); }; } &&
7709 { ac_try
='test -s conftest.$ac_objext'
7710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7714 (exit $ac_status); }; }; then
7715 groff_cv_decl_needed_vsnprintf
=no
7717 echo "$as_me: failed program was:" >&5
7718 sed 's/^/| /' conftest.
$ac_ext >&5
7720 groff_cv_decl_needed_vsnprintf
=yes
7722 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7725 echo "$as_me:$LINENO: result: $groff_cv_decl_needed_vsnprintf" >&5
7726 echo "${ECHO_T}$groff_cv_decl_needed_vsnprintf" >&6
7727 if test $groff_cv_decl_needed_vsnprintf = yes; then
7729 cat >>confdefs.h
<<\_ACEOF
7730 #define NEED_DECLARATION_VSNPRINTF 1
7735 ac_cpp
='$CPP $CPPFLAGS'
7736 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7737 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7738 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7741 ac_cpp
='$CXXCPP $CPPFLAGS'
7742 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7743 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7744 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7746 echo "$as_me:$LINENO: checking for sys_nerr in <errno.h>, <stdio.h>, or <stdlib.h>" >&5
7747 echo $ECHO_N "checking for sys_nerr in <errno.h>, <stdio.h>, or <stdlib.h>... $ECHO_C" >&6
7748 cat >conftest.
$ac_ext <<_ACEOF
7752 cat confdefs.h
>>conftest.
$ac_ext
7753 cat >>conftest.
$ac_ext <<_ACEOF
7754 /* end confdefs.h. */
7776 rm -f conftest.
$ac_objext
7777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7778 (eval $ac_compile) 2>conftest.er1
7780 grep -v '^ *+' conftest.er1
>conftest.err
7782 cat conftest.err
>&5
7783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784 (exit $ac_status); } &&
7785 { ac_try
='test -z "$ac_cxx_werror_flag"
7786 || test ! -s conftest.err'
7787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791 (exit $ac_status); }; } &&
7792 { ac_try
='test -s conftest.$ac_objext'
7793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797 (exit $ac_status); }; }; then
7798 echo "$as_me:$LINENO: result: yes" >&5
7799 echo "${ECHO_T}yes" >&6
7801 cat >>confdefs.h
<<\_ACEOF
7802 #define HAVE_SYS_NERR 1
7806 echo "$as_me: failed program was:" >&5
7807 sed 's/^/| /' conftest.
$ac_ext >&5
7809 echo "$as_me:$LINENO: result: no" >&5
7810 echo "${ECHO_T}no" >&6
7812 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7814 ac_cpp
='$CPP $CPPFLAGS'
7815 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7816 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7817 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7819 echo "$as_me:$LINENO: checking for sys_errlist in <errno.h>, <stdio.h>, or <stdlib.h>" >&5
7820 echo $ECHO_N "checking for sys_errlist in <errno.h>, <stdio.h>, or <stdlib.h>... $ECHO_C" >&6
7821 cat >conftest.
$ac_ext <<_ACEOF
7825 cat confdefs.h
>>conftest.
$ac_ext
7826 cat >>conftest.
$ac_ext <<_ACEOF
7827 /* end confdefs.h. */
7841 k = (int)sys_errlist[0];
7849 rm -f conftest.
$ac_objext
7850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7851 (eval $ac_compile) 2>conftest.er1
7853 grep -v '^ *+' conftest.er1
>conftest.err
7855 cat conftest.err
>&5
7856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7857 (exit $ac_status); } &&
7858 { ac_try
='test -z "$ac_c_werror_flag"
7859 || test ! -s conftest.err'
7860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7864 (exit $ac_status); }; } &&
7865 { ac_try
='test -s conftest.$ac_objext'
7866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7870 (exit $ac_status); }; }; then
7871 echo "$as_me:$LINENO: result: yes" >&5
7872 echo "${ECHO_T}yes" >&6
7874 cat >>confdefs.h
<<\_ACEOF
7875 #define HAVE_SYS_ERRLIST 1
7879 echo "$as_me: failed program was:" >&5
7880 sed 's/^/| /' conftest.
$ac_ext >&5
7882 echo "$as_me:$LINENO: result: no" >&5
7883 echo "${ECHO_T}no" >&6
7885 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7887 ac_cpp
='$CXXCPP $CPPFLAGS'
7888 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7889 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7890 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7892 echo "$as_me:$LINENO: checking C++ <osfcn.h>" >&5
7893 echo $ECHO_N "checking C++ <osfcn.h>... $ECHO_C" >&6
7894 cat >conftest.
$ac_ext <<_ACEOF
7898 cat confdefs.h
>>conftest.
$ac_ext
7899 cat >>conftest.
$ac_ext <<_ACEOF
7900 /* end confdefs.h. */
7920 rm -f conftest.
$ac_objext
7921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7922 (eval $ac_compile) 2>conftest.er1
7924 grep -v '^ *+' conftest.er1
>conftest.err
7926 cat conftest.err
>&5
7927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7928 (exit $ac_status); } &&
7929 { ac_try
='test -z "$ac_cxx_werror_flag"
7930 || test ! -s conftest.err'
7931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7935 (exit $ac_status); }; } &&
7936 { ac_try
='test -s conftest.$ac_objext'
7937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7941 (exit $ac_status); }; }; then
7942 echo "$as_me:$LINENO: result: yes" >&5
7943 echo "${ECHO_T}yes" >&6
7945 cat >>confdefs.h
<<\_ACEOF
7946 #define HAVE_CC_OSFCN_H 1
7950 echo "$as_me: failed program was:" >&5
7951 sed 's/^/| /' conftest.
$ac_ext >&5
7953 echo "$as_me:$LINENO: result: no" >&5
7954 echo "${ECHO_T}no" >&6
7956 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7958 ac_cpp
='$CPP $CPPFLAGS'
7959 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7960 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7961 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7964 ac_cpp
='$CXXCPP $CPPFLAGS'
7965 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7966 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7967 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7969 echo "$as_me:$LINENO: checking C++ <limits.h>" >&5
7970 echo $ECHO_N "checking C++ <limits.h>... $ECHO_C" >&6
7971 cat >conftest.
$ac_ext <<_ACEOF
7975 cat confdefs.h
>>conftest.
$ac_ext
7976 cat >>conftest.
$ac_ext <<_ACEOF
7977 /* end confdefs.h. */
7998 rm -f conftest.
$ac_objext
7999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8000 (eval $ac_compile) 2>conftest.er1
8002 grep -v '^ *+' conftest.er1
>conftest.err
8004 cat conftest.err
>&5
8005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006 (exit $ac_status); } &&
8007 { ac_try
='test -z "$ac_cxx_werror_flag"
8008 || test ! -s conftest.err'
8009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 (exit $ac_status); }; } &&
8014 { ac_try
='test -s conftest.$ac_objext'
8015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019 (exit $ac_status); }; }; then
8020 echo "$as_me:$LINENO: result: yes" >&5
8021 echo "${ECHO_T}yes" >&6
8023 cat >>confdefs.h
<<\_ACEOF
8024 #define HAVE_CC_LIMITS_H 1
8028 echo "$as_me: failed program was:" >&5
8029 sed 's/^/| /' conftest.
$ac_ext >&5
8031 echo "$as_me:$LINENO: result: no" >&5
8032 echo "${ECHO_T}no" >&6
8034 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8036 ac_cpp
='$CPP $CPPFLAGS'
8037 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8038 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8039 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8042 ac_cpp
='$CXXCPP $CPPFLAGS'
8043 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8044 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8045 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8047 echo "$as_me:$LINENO: checking C++ <inttypes.h>" >&5
8048 echo $ECHO_N "checking C++ <inttypes.h>... $ECHO_C" >&6
8049 cat >conftest.
$ac_ext <<_ACEOF
8053 cat confdefs.h
>>conftest.
$ac_ext
8054 cat >>conftest.
$ac_ext <<_ACEOF
8055 /* end confdefs.h. */
8058 #include <sys/types.h>
8059 #include <inttypes.h>
8067 uintmax_t i = (uintmax_t)-1;
8075 rm -f conftest.
$ac_objext
8076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8077 (eval $ac_compile) 2>conftest.er1
8079 grep -v '^ *+' conftest.er1
>conftest.err
8081 cat conftest.err
>&5
8082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8083 (exit $ac_status); } &&
8084 { ac_try
='test -z "$ac_cxx_werror_flag"
8085 || test ! -s conftest.err'
8086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8090 (exit $ac_status); }; } &&
8091 { ac_try
='test -s conftest.$ac_objext'
8092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096 (exit $ac_status); }; }; then
8097 groff_cv_header_inttypes_h
=yes
8099 cat >>confdefs.h
<<\_ACEOF
8100 #define HAVE_CC_INTTYPES_H 1
8104 echo "$as_me: failed program was:" >&5
8105 sed 's/^/| /' conftest.
$ac_ext >&5
8107 groff_cv_header_inttypes_h
=no
8109 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8110 echo "$as_me:$LINENO: result: $groff_cv_header_inttypes_h" >&5
8111 echo "${ECHO_T}$groff_cv_header_inttypes_h" >&6
8113 ac_cpp
='$CPP $CPPFLAGS'
8114 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8115 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8116 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8119 # checks for typedefs
8121 ac_cpp
='$CXXCPP $CPPFLAGS'
8122 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8123 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8124 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8126 echo "$as_me:$LINENO: checking for unsigned long long" >&5
8127 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
8128 cat >conftest.
$ac_ext <<_ACEOF
8132 cat confdefs.h
>>conftest.
$ac_ext
8133 cat >>conftest.
$ac_ext <<_ACEOF
8134 /* end confdefs.h. */
8137 unsigned long long ull = 1;
8139 unsigned long long ullmax = (unsigned long long)-1;
8147 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
8155 rm -f conftest.
$ac_objext conftest
$ac_exeext
8156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8157 (eval $ac_link) 2>conftest.er1
8159 grep -v '^ *+' conftest.er1
>conftest.err
8161 cat conftest.err
>&5
8162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163 (exit $ac_status); } &&
8164 { ac_try
='test -z "$ac_cxx_werror_flag"
8165 || test ! -s conftest.err'
8166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8170 (exit $ac_status); }; } &&
8171 { ac_try
='test -s conftest$ac_exeext'
8172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176 (exit $ac_status); }; }; then
8177 groff_cv_type_unsigned_long_long
=yes
8179 echo "$as_me: failed program was:" >&5
8180 sed 's/^/| /' conftest.
$ac_ext >&5
8182 groff_cv_type_unsigned_long_long
=no
8184 rm -f conftest.err conftest.
$ac_objext \
8185 conftest
$ac_exeext conftest.
$ac_ext
8186 echo "$as_me:$LINENO: result: $groff_cv_type_unsigned_long_long" >&5
8187 echo "${ECHO_T}$groff_cv_type_unsigned_long_long" >&6
8189 ac_cpp
='$CPP $CPPFLAGS'
8190 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8191 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8192 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8195 if test $groff_cv_header_inttypes_h = no
; then
8197 test $groff_cv_type_unsigned_long_long = yes \
8198 && ac_type
='unsigned long long' \
8199 || ac_type
='unsigned long'
8201 cat >>confdefs.h
<<_ACEOF
8202 #define uintmax_t $ac_type
8207 ac_cpp
='$CXXCPP $CPPFLAGS'
8208 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8209 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8210 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8212 echo "$as_me:$LINENO: checking for declaration of time_t" >&5
8213 echo $ECHO_N "checking for declaration of time_t... $ECHO_C" >&6
8214 cat >conftest.
$ac_ext <<_ACEOF
8218 cat confdefs.h
>>conftest.
$ac_ext
8219 cat >>conftest.
$ac_ext <<_ACEOF
8220 /* end confdefs.h. */
8232 struct tm *p = localtime(&t);
8240 rm -f conftest.
$ac_objext
8241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8242 (eval $ac_compile) 2>conftest.er1
8244 grep -v '^ *+' conftest.er1
>conftest.err
8246 cat conftest.err
>&5
8247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8248 (exit $ac_status); } &&
8249 { ac_try
='test -z "$ac_cxx_werror_flag"
8250 || test ! -s conftest.err'
8251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255 (exit $ac_status); }; } &&
8256 { ac_try
='test -s conftest.$ac_objext'
8257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261 (exit $ac_status); }; }; then
8262 echo "$as_me:$LINENO: result: yes" >&5
8263 echo "${ECHO_T}yes" >&6
8265 echo "$as_me: failed program was:" >&5
8266 sed 's/^/| /' conftest.
$ac_ext >&5
8268 echo "$as_me:$LINENO: result: no" >&5
8269 echo "${ECHO_T}no" >&6
8271 cat >>confdefs.h
<<\_ACEOF
8272 #define LONG_FOR_TIME_T 1
8276 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8278 ac_cpp
='$CPP $CPPFLAGS'
8279 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8280 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8281 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8283 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
8284 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
8285 if test "${ac_cv_type_signal+set}" = set; then
8286 echo $ECHO_N "(cached) $ECHO_C" >&6
8288 cat >conftest.
$ac_ext <<_ACEOF
8291 cat confdefs.h
>>conftest.
$ac_ext
8292 cat >>conftest.
$ac_ext <<_ACEOF
8293 /* end confdefs.h. */
8294 #include <sys/types.h>
8300 extern "C" void (*signal (int, void (*)(int)))(int);
8302 void (*signal ()) ();
8313 rm -f conftest.
$ac_objext
8314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8315 (eval $ac_compile) 2>conftest.er1
8317 grep -v '^ *+' conftest.er1
>conftest.err
8319 cat conftest.err
>&5
8320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321 (exit $ac_status); } &&
8322 { ac_try
='test -z "$ac_c_werror_flag"
8323 || test ! -s conftest.err'
8324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8328 (exit $ac_status); }; } &&
8329 { ac_try
='test -s conftest.$ac_objext'
8330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8334 (exit $ac_status); }; }; then
8335 ac_cv_type_signal
=void
8337 echo "$as_me: failed program was:" >&5
8338 sed 's/^/| /' conftest.
$ac_ext >&5
8340 ac_cv_type_signal
=int
8342 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8344 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
8345 echo "${ECHO_T}$ac_cv_type_signal" >&6
8347 cat >>confdefs.h
<<_ACEOF
8348 #define RETSIGTYPE $ac_cv_type_signal
8352 echo "$as_me:$LINENO: checking struct exception" >&5
8353 echo $ECHO_N "checking struct exception... $ECHO_C" >&6
8354 cat >conftest.
$ac_ext <<_ACEOF
8358 cat confdefs.h
>>conftest.
$ac_ext
8359 cat >>conftest.
$ac_ext <<_ACEOF
8360 /* end confdefs.h. */
8379 rm -f conftest.
$ac_objext
8380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8381 (eval $ac_compile) 2>conftest.er1
8383 grep -v '^ *+' conftest.er1
>conftest.err
8385 cat conftest.err
>&5
8386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387 (exit $ac_status); } &&
8388 { ac_try
='test -z "$ac_c_werror_flag"
8389 || test ! -s conftest.err'
8390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394 (exit $ac_status); }; } &&
8395 { ac_try
='test -s conftest.$ac_objext'
8396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400 (exit $ac_status); }; }; then
8401 echo "$as_me:$LINENO: result: yes" >&5
8402 echo "${ECHO_T}yes" >&6
8404 cat >>confdefs.h
<<\_ACEOF
8405 #define HAVE_STRUCT_EXCEPTION 1
8409 echo "$as_me: failed program was:" >&5
8410 sed 's/^/| /' conftest.
$ac_ext >&5
8412 echo "$as_me:$LINENO: result: no" >&5
8413 echo "${ECHO_T}no" >&6
8415 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8417 # checks for libraries
8418 echo "$as_me:$LINENO: checking for main in -lc" >&5
8419 echo $ECHO_N "checking for main in -lc... $ECHO_C" >&6
8420 if test "${ac_cv_lib_c_main+set}" = set; then
8421 echo $ECHO_N "(cached) $ECHO_C" >&6
8423 ac_check_lib_save_LIBS
=$LIBS
8425 cat >conftest.
$ac_ext <<_ACEOF
8428 cat confdefs.h
>>conftest.
$ac_ext
8429 cat >>conftest.
$ac_ext <<_ACEOF
8430 /* end confdefs.h. */
8441 rm -f conftest.
$ac_objext conftest
$ac_exeext
8442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8443 (eval $ac_link) 2>conftest.er1
8445 grep -v '^ *+' conftest.er1
>conftest.err
8447 cat conftest.err
>&5
8448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449 (exit $ac_status); } &&
8450 { ac_try
='test -z "$ac_c_werror_flag"
8451 || test ! -s conftest.err'
8452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456 (exit $ac_status); }; } &&
8457 { ac_try
='test -s conftest$ac_exeext'
8458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462 (exit $ac_status); }; }; then
8463 ac_cv_lib_c_main
=yes
8465 echo "$as_me: failed program was:" >&5
8466 sed 's/^/| /' conftest.
$ac_ext >&5
8470 rm -f conftest.err conftest.
$ac_objext \
8471 conftest
$ac_exeext conftest.
$ac_ext
8472 LIBS
=$ac_check_lib_save_LIBS
8474 echo "$as_me:$LINENO: result: $ac_cv_lib_c_main" >&5
8475 echo "${ECHO_T}$ac_cv_lib_c_main" >&6
8476 if test $ac_cv_lib_c_main = yes; then
8481 echo "$as_me:$LINENO: checking for sin in -lm" >&5
8482 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
8483 if test "${ac_cv_lib_m_sin+set}" = set; then
8484 echo $ECHO_N "(cached) $ECHO_C" >&6
8486 ac_check_lib_save_LIBS
=$LIBS
8488 cat >conftest.
$ac_ext <<_ACEOF
8491 cat confdefs.h
>>conftest.
$ac_ext
8492 cat >>conftest.
$ac_ext <<_ACEOF
8493 /* end confdefs.h. */
8495 /* Override any gcc2 internal prototype to avoid an error. */
8499 /* We use char because int might match the return type of a gcc2
8500 builtin and then its argument prototype would still apply. */
8510 rm -f conftest.
$ac_objext conftest
$ac_exeext
8511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8512 (eval $ac_link) 2>conftest.er1
8514 grep -v '^ *+' conftest.er1
>conftest.err
8516 cat conftest.err
>&5
8517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518 (exit $ac_status); } &&
8519 { ac_try
='test -z "$ac_c_werror_flag"
8520 || test ! -s conftest.err'
8521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525 (exit $ac_status); }; } &&
8526 { ac_try
='test -s conftest$ac_exeext'
8527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531 (exit $ac_status); }; }; then
8534 echo "$as_me: failed program was:" >&5
8535 sed 's/^/| /' conftest.
$ac_ext >&5
8539 rm -f conftest.err conftest.
$ac_objext \
8540 conftest
$ac_exeext conftest.
$ac_ext
8541 LIBS
=$ac_check_lib_save_LIBS
8543 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8544 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
8545 if test $ac_cv_lib_m_sin = yes; then
8551 # checks for functions
8554 for ac_header
in stdlib.h unistd.h
8556 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8557 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8558 echo "$as_me:$LINENO: checking for $ac_header" >&5
8559 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8560 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8561 echo $ECHO_N "(cached) $ECHO_C" >&6
8563 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8564 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8566 # Is the header compilable?
8567 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8568 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8569 cat >conftest.
$ac_ext <<_ACEOF
8572 cat confdefs.h
>>conftest.
$ac_ext
8573 cat >>conftest.
$ac_ext <<_ACEOF
8574 /* end confdefs.h. */
8575 $ac_includes_default
8576 #include <$ac_header>
8578 rm -f conftest.
$ac_objext
8579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8580 (eval $ac_compile) 2>conftest.er1
8582 grep -v '^ *+' conftest.er1
>conftest.err
8584 cat conftest.err
>&5
8585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586 (exit $ac_status); } &&
8587 { ac_try
='test -z "$ac_c_werror_flag"
8588 || test ! -s conftest.err'
8589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593 (exit $ac_status); }; } &&
8594 { ac_try
='test -s conftest.$ac_objext'
8595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599 (exit $ac_status); }; }; then
8600 ac_header_compiler
=yes
8602 echo "$as_me: failed program was:" >&5
8603 sed 's/^/| /' conftest.
$ac_ext >&5
8605 ac_header_compiler
=no
8607 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8608 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8609 echo "${ECHO_T}$ac_header_compiler" >&6
8611 # Is the header present?
8612 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8613 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8614 cat >conftest.
$ac_ext <<_ACEOF
8617 cat confdefs.h
>>conftest.
$ac_ext
8618 cat >>conftest.
$ac_ext <<_ACEOF
8619 /* end confdefs.h. */
8620 #include <$ac_header>
8622 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8623 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8625 grep -v '^ *+' conftest.er1
>conftest.err
8627 cat conftest.err
>&5
8628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629 (exit $ac_status); } >/dev
/null
; then
8630 if test -s conftest.err
; then
8631 ac_cpp_err
=$ac_c_preproc_warn_flag
8632 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8639 if test -z "$ac_cpp_err"; then
8640 ac_header_preproc
=yes
8642 echo "$as_me: failed program was:" >&5
8643 sed 's/^/| /' conftest.
$ac_ext >&5
8645 ac_header_preproc
=no
8647 rm -f conftest.err conftest.
$ac_ext
8648 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8649 echo "${ECHO_T}$ac_header_preproc" >&6
8651 # So? What about this header?
8652 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8654 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8655 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8656 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8657 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8658 ac_header_preproc
=yes
8661 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8662 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8663 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8664 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8665 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8666 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8667 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8668 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8669 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8670 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8671 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8672 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8675 ## ------------------------------------------ ##
8676 ## Report this to the AC_PACKAGE_NAME lists. ##
8677 ## ------------------------------------------ ##
8680 sed "s/^/$as_me: WARNING: /" >&2
8683 echo "$as_me:$LINENO: checking for $ac_header" >&5
8684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8685 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8686 echo $ECHO_N "(cached) $ECHO_C" >&6
8688 eval "$as_ac_Header=\$ac_header_preproc"
8690 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8691 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8694 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8695 cat >>confdefs.h
<<_ACEOF
8696 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8704 for ac_func
in getpagesize
8706 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8707 echo "$as_me:$LINENO: checking for $ac_func" >&5
8708 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8709 if eval "test \"\${$as_ac_var+set}\" = set"; then
8710 echo $ECHO_N "(cached) $ECHO_C" >&6
8712 cat >conftest.
$ac_ext <<_ACEOF
8715 cat confdefs.h
>>conftest.
$ac_ext
8716 cat >>conftest.
$ac_ext <<_ACEOF
8717 /* end confdefs.h. */
8718 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8719 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8720 #define $ac_func innocuous_$ac_func
8722 /* System header to define __stub macros and hopefully few prototypes,
8723 which can conflict with char $ac_func (); below.
8724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8725 <limits.h> exists even on freestanding compilers. */
8728 # include <limits.h>
8730 # include <assert.h>
8735 /* Override any gcc2 internal prototype to avoid an error. */
8740 /* We use char because int might match the return type of a gcc2
8741 builtin and then its argument prototype would still apply. */
8743 /* The GNU C library defines this for functions which it implements
8744 to always fail with ENOSYS. Some functions are actually named
8745 something starting with __ and the normal name is an alias. */
8746 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8749 char (*f) () = $ac_func;
8758 return f != $ac_func;
8763 rm -f conftest.
$ac_objext conftest
$ac_exeext
8764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8765 (eval $ac_link) 2>conftest.er1
8767 grep -v '^ *+' conftest.er1
>conftest.err
8769 cat conftest.err
>&5
8770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771 (exit $ac_status); } &&
8772 { ac_try
='test -z "$ac_c_werror_flag"
8773 || test ! -s conftest.err'
8774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8778 (exit $ac_status); }; } &&
8779 { ac_try
='test -s conftest$ac_exeext'
8780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8784 (exit $ac_status); }; }; then
8785 eval "$as_ac_var=yes"
8787 echo "$as_me: failed program was:" >&5
8788 sed 's/^/| /' conftest.
$ac_ext >&5
8790 eval "$as_ac_var=no"
8792 rm -f conftest.err conftest.
$ac_objext \
8793 conftest
$ac_exeext conftest.
$ac_ext
8795 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8796 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8797 if test `eval echo '${'$as_ac_var'}'` = yes; then
8798 cat >>confdefs.h
<<_ACEOF
8799 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8805 echo "$as_me:$LINENO: checking for working mmap" >&5
8806 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8807 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8808 echo $ECHO_N "(cached) $ECHO_C" >&6
8810 if test "$cross_compiling" = yes; then
8811 ac_cv_func_mmap_fixed_mapped
=no
8813 cat >conftest.
$ac_ext <<_ACEOF
8816 cat confdefs.h
>>conftest.
$ac_ext
8817 cat >>conftest.
$ac_ext <<_ACEOF
8818 /* end confdefs.h. */
8819 $ac_includes_default
8820 /* malloc might have been renamed as rpl_malloc. */
8823 /* Thanks to Mike Haertel and Jim Avera for this test.
8824 Here is a matrix of mmap possibilities:
8825 mmap private not fixed
8826 mmap private fixed at somewhere currently unmapped
8827 mmap private fixed at somewhere already mapped
8828 mmap shared not fixed
8829 mmap shared fixed at somewhere currently unmapped
8830 mmap shared fixed at somewhere already mapped
8831 For private mappings, we should verify that changes cannot be read()
8832 back from the file, nor mmap's back from the file at a different
8833 address. (There have been systems where private was not correctly
8834 implemented like the infamous i386 svr4.0, and systems where the
8835 VM page cache was not coherent with the file system buffer cache
8836 like early versions of FreeBSD and possibly contemporary NetBSD.)
8837 For shared mappings, we should conversely verify that changes get
8838 propagated back to all the places they're supposed to be.
8840 Grep wants private fixed already mapped.
8841 The main things grep needs to know about mmap are:
8842 * does it exist and is it safe to write into the mmap'd area
8843 * how to use it (BSD variants) */
8846 #include <sys/mman.h>
8848 #if !STDC_HEADERS && !HAVE_STDLIB_H
8852 /* This mess was copied from the GNU getpagesize.h. */
8853 #if !HAVE_GETPAGESIZE
8854 /* Assume that all systems that can run configure have sys/param.h. */
8855 # if !HAVE_SYS_PARAM_H
8856 # define HAVE_SYS_PARAM_H 1
8859 # ifdef _SC_PAGESIZE
8860 # define getpagesize() sysconf(_SC_PAGESIZE)
8861 # else /* no _SC_PAGESIZE */
8862 # if HAVE_SYS_PARAM_H
8863 # include <sys/param.h>
8864 # ifdef EXEC_PAGESIZE
8865 # define getpagesize() EXEC_PAGESIZE
8866 # else /* no EXEC_PAGESIZE */
8868 # define getpagesize() NBPG * CLSIZE
8871 # endif /* no CLSIZE */
8872 # else /* no NBPG */
8874 # define getpagesize() NBPC
8875 # else /* no NBPC */
8877 # define getpagesize() PAGESIZE
8878 # endif /* PAGESIZE */
8879 # endif /* no NBPC */
8880 # endif /* no NBPG */
8881 # endif /* no EXEC_PAGESIZE */
8882 # else /* no HAVE_SYS_PARAM_H */
8883 # define getpagesize() 8192 /* punt totally */
8884 # endif /* no HAVE_SYS_PARAM_H */
8885 # endif /* no _SC_PAGESIZE */
8887 #endif /* no HAVE_GETPAGESIZE */
8892 char *data, *data2, *data3;
8896 pagesize = getpagesize ();
8898 /* First, make a file with some known garbage in it. */
8899 data = (char *) malloc (pagesize);
8902 for (i = 0; i < pagesize; ++i)
8903 *(data + i) = rand ();
8905 fd = creat ("conftest.mmap", 0600);
8908 if (write (fd, data, pagesize) != pagesize)
8912 /* Next, try to mmap the file at a fixed address which already has
8913 something else allocated at it. If we can, also make sure that
8914 we see the same garbage. */
8915 fd = open ("conftest.mmap", O_RDWR);
8918 data2 = (char *) malloc (2 * pagesize);
8921 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
8922 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8923 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8925 for (i = 0; i < pagesize; ++i)
8926 if (*(data + i) != *(data2 + i))
8929 /* Finally, make sure that changes to the mapped area do not
8930 percolate back to the file as seen by read(). (This is a bug on
8931 some variants of i386 svr4.0.) */
8932 for (i = 0; i < pagesize; ++i)
8933 *(data2 + i) = *(data2 + i) + 1;
8934 data3 = (char *) malloc (pagesize);
8937 if (read (fd, data3, pagesize) != pagesize)
8939 for (i = 0; i < pagesize; ++i)
8940 if (*(data + i) != *(data3 + i))
8946 rm -f conftest
$ac_exeext
8947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8948 (eval $ac_link) 2>&5
8950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956 (exit $ac_status); }; }; then
8957 ac_cv_func_mmap_fixed_mapped
=yes
8959 echo "$as_me: program exited with status $ac_status" >&5
8960 echo "$as_me: failed program was:" >&5
8961 sed 's/^/| /' conftest.
$ac_ext >&5
8964 ac_cv_func_mmap_fixed_mapped
=no
8966 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8969 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8970 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8971 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8973 cat >>confdefs.h
<<\_ACEOF
8981 LIBS
="$LIBS $LIBC $LIBM"
8990 for ac_func
in fmod getcwd putenv snprintf strcasecmp \
8991 strerror strncasecmp strtol
8993 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8994 echo "$as_me:$LINENO: checking for $ac_func" >&5
8995 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8996 if eval "test \"\${$as_ac_var+set}\" = set"; then
8997 echo $ECHO_N "(cached) $ECHO_C" >&6
8999 cat >conftest.
$ac_ext <<_ACEOF
9002 cat confdefs.h
>>conftest.
$ac_ext
9003 cat >>conftest.
$ac_ext <<_ACEOF
9004 /* end confdefs.h. */
9005 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9006 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9007 #define $ac_func innocuous_$ac_func
9009 /* System header to define __stub macros and hopefully few prototypes,
9010 which can conflict with char $ac_func (); below.
9011 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9012 <limits.h> exists even on freestanding compilers. */
9015 # include <limits.h>
9017 # include <assert.h>
9022 /* Override any gcc2 internal prototype to avoid an error. */
9027 /* We use char because int might match the return type of a gcc2
9028 builtin and then its argument prototype would still apply. */
9030 /* The GNU C library defines this for functions which it implements
9031 to always fail with ENOSYS. Some functions are actually named
9032 something starting with __ and the normal name is an alias. */
9033 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9036 char (*f) () = $ac_func;
9045 return f != $ac_func;
9050 rm -f conftest.
$ac_objext conftest
$ac_exeext
9051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9052 (eval $ac_link) 2>conftest.er1
9054 grep -v '^ *+' conftest.er1
>conftest.err
9056 cat conftest.err
>&5
9057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058 (exit $ac_status); } &&
9059 { ac_try
='test -z "$ac_c_werror_flag"
9060 || test ! -s conftest.err'
9061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065 (exit $ac_status); }; } &&
9066 { ac_try
='test -s conftest$ac_exeext'
9067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071 (exit $ac_status); }; }; then
9072 eval "$as_ac_var=yes"
9074 echo "$as_me: failed program was:" >&5
9075 sed 's/^/| /' conftest.
$ac_ext >&5
9077 eval "$as_ac_var=no"
9079 rm -f conftest.err conftest.
$ac_objext \
9080 conftest
$ac_exeext conftest.
$ac_ext
9082 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9083 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9084 if test `eval echo '${'$as_ac_var'}'` = yes; then
9085 cat >>confdefs.h
<<_ACEOF
9086 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9091 "$ac_func.$ac_objext" | \
9092 *" $ac_func.$ac_objext" | \
9093 "$ac_func.$ac_objext "* | \
9094 *" $ac_func.$ac_objext "* ) ;;
9095 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext" ;;
9102 # vsnprintf is in the same source file as snprintf
9104 for ac_func
in vsnprintf
9106 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9107 echo "$as_me:$LINENO: checking for $ac_func" >&5
9108 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9109 if eval "test \"\${$as_ac_var+set}\" = set"; then
9110 echo $ECHO_N "(cached) $ECHO_C" >&6
9112 cat >conftest.
$ac_ext <<_ACEOF
9115 cat confdefs.h
>>conftest.
$ac_ext
9116 cat >>conftest.
$ac_ext <<_ACEOF
9117 /* end confdefs.h. */
9118 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9119 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9120 #define $ac_func innocuous_$ac_func
9122 /* System header to define __stub macros and hopefully few prototypes,
9123 which can conflict with char $ac_func (); below.
9124 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9125 <limits.h> exists even on freestanding compilers. */
9128 # include <limits.h>
9130 # include <assert.h>
9135 /* Override any gcc2 internal prototype to avoid an error. */
9140 /* We use char because int might match the return type of a gcc2
9141 builtin and then its argument prototype would still apply. */
9143 /* The GNU C library defines this for functions which it implements
9144 to always fail with ENOSYS. Some functions are actually named
9145 something starting with __ and the normal name is an alias. */
9146 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9149 char (*f) () = $ac_func;
9158 return f != $ac_func;
9163 rm -f conftest.
$ac_objext conftest
$ac_exeext
9164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9165 (eval $ac_link) 2>conftest.er1
9167 grep -v '^ *+' conftest.er1
>conftest.err
9169 cat conftest.err
>&5
9170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9171 (exit $ac_status); } &&
9172 { ac_try
='test -z "$ac_c_werror_flag"
9173 || test ! -s conftest.err'
9174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178 (exit $ac_status); }; } &&
9179 { ac_try
='test -s conftest$ac_exeext'
9180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184 (exit $ac_status); }; }; then
9185 eval "$as_ac_var=yes"
9187 echo "$as_me: failed program was:" >&5
9188 sed 's/^/| /' conftest.
$ac_ext >&5
9190 eval "$as_ac_var=no"
9192 rm -f conftest.err conftest.
$ac_objext \
9193 conftest
$ac_exeext conftest.
$ac_ext
9195 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9196 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9197 if test `eval echo '${'$as_ac_var'}'` = yes; then
9198 cat >>confdefs.h
<<_ACEOF
9199 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9204 "snprintf.$ac_objext" | \
9205 *" snprintf.$ac_objext" | \
9206 "snprintf.$ac_objext "* | \
9207 *" snprintf.$ac_objext "* ) ;;
9208 *) LIBOBJS
="$LIBOBJS snprintf.$ac_objext" ;;
9221 for ac_func
in gettimeofday isatty
kill rename setlocale strsep
9223 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9224 echo "$as_me:$LINENO: checking for $ac_func" >&5
9225 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9226 if eval "test \"\${$as_ac_var+set}\" = set"; then
9227 echo $ECHO_N "(cached) $ECHO_C" >&6
9229 cat >conftest.
$ac_ext <<_ACEOF
9232 cat confdefs.h
>>conftest.
$ac_ext
9233 cat >>conftest.
$ac_ext <<_ACEOF
9234 /* end confdefs.h. */
9235 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9236 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9237 #define $ac_func innocuous_$ac_func
9239 /* System header to define __stub macros and hopefully few prototypes,
9240 which can conflict with char $ac_func (); below.
9241 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9242 <limits.h> exists even on freestanding compilers. */
9245 # include <limits.h>
9247 # include <assert.h>
9252 /* Override any gcc2 internal prototype to avoid an error. */
9257 /* We use char because int might match the return type of a gcc2
9258 builtin and then its argument prototype would still apply. */
9260 /* The GNU C library defines this for functions which it implements
9261 to always fail with ENOSYS. Some functions are actually named
9262 something starting with __ and the normal name is an alias. */
9263 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9266 char (*f) () = $ac_func;
9275 return f != $ac_func;
9280 rm -f conftest.
$ac_objext conftest
$ac_exeext
9281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9282 (eval $ac_link) 2>conftest.er1
9284 grep -v '^ *+' conftest.er1
>conftest.err
9286 cat conftest.err
>&5
9287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288 (exit $ac_status); } &&
9289 { ac_try
='test -z "$ac_c_werror_flag"
9290 || test ! -s conftest.err'
9291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295 (exit $ac_status); }; } &&
9296 { ac_try
='test -s conftest$ac_exeext'
9297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301 (exit $ac_status); }; }; then
9302 eval "$as_ac_var=yes"
9304 echo "$as_me: failed program was:" >&5
9305 sed 's/^/| /' conftest.
$ac_ext >&5
9307 eval "$as_ac_var=no"
9309 rm -f conftest.err conftest.
$ac_objext \
9310 conftest
$ac_exeext conftest.
$ac_ext
9312 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9313 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9314 if test `eval echo '${'$as_ac_var'}'` = yes; then
9315 cat >>confdefs.h
<<_ACEOF
9316 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9322 echo "$as_me:$LINENO: checking for mkstemp" >&5
9323 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
9325 ac_cpp
='$CXXCPP $CPPFLAGS'
9326 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9327 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9328 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9331 cat >conftest.
$ac_ext <<_ACEOF
9335 cat confdefs.h
>>conftest.
$ac_ext
9336 cat >>conftest.
$ac_ext <<_ACEOF
9337 /* end confdefs.h. */
9358 rm -f conftest.
$ac_objext conftest
$ac_exeext
9359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9360 (eval $ac_link) 2>conftest.er1
9362 grep -v '^ *+' conftest.er1
>conftest.err
9364 cat conftest.err
>&5
9365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9366 (exit $ac_status); } &&
9367 { ac_try
='test -z "$ac_cxx_werror_flag"
9368 || test ! -s conftest.err'
9369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373 (exit $ac_status); }; } &&
9374 { ac_try
='test -s conftest$ac_exeext'
9375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9379 (exit $ac_status); }; }; then
9380 echo "$as_me:$LINENO: result: yes" >&5
9381 echo "${ECHO_T}yes" >&6
9383 cat >>confdefs.h
<<\_ACEOF
9384 #define HAVE_MKSTEMP 1
9388 echo "$as_me: failed program was:" >&5
9389 sed 's/^/| /' conftest.
$ac_ext >&5
9391 echo "$as_me:$LINENO: result: no" >&5
9392 echo "${ECHO_T}no" >&6
9394 "mkstemp.$ac_objext" | \
9395 *" mkstemp.$ac_objext" | \
9396 "mkstemp.$ac_objext "* | \
9397 *" mkstemp.$ac_objext "* ) ;;
9398 *) LIBOBJS
="$LIBOBJS mkstemp.$ac_objext" ;;
9402 rm -f conftest.err conftest.
$ac_objext \
9403 conftest
$ac_exeext conftest.
$ac_ext
9405 ac_cpp
='$CPP $CPPFLAGS'
9406 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9407 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9408 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
9410 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
9411 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
9412 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
9413 echo $ECHO_N "(cached) $ECHO_C" >&6
9415 cat >conftest.
$ac_ext <<_ACEOF
9418 cat confdefs.h
>>conftest.
$ac_ext
9419 cat >>conftest.
$ac_ext <<_ACEOF
9420 /* end confdefs.h. */
9421 $ac_includes_default
9426 char *p = (char *) sys_siglist;
9433 rm -f conftest.
$ac_objext
9434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9435 (eval $ac_compile) 2>conftest.er1
9437 grep -v '^ *+' conftest.er1
>conftest.err
9439 cat conftest.err
>&5
9440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9441 (exit $ac_status); } &&
9442 { ac_try
='test -z "$ac_c_werror_flag"
9443 || test ! -s conftest.err'
9444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9448 (exit $ac_status); }; } &&
9449 { ac_try
='test -s conftest.$ac_objext'
9450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9454 (exit $ac_status); }; }; then
9455 ac_cv_have_decl_sys_siglist
=yes
9457 echo "$as_me: failed program was:" >&5
9458 sed 's/^/| /' conftest.
$ac_ext >&5
9460 ac_cv_have_decl_sys_siglist
=no
9462 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9464 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
9465 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
9466 if test $ac_cv_have_decl_sys_siglist = yes; then
9468 cat >>confdefs.h
<<_ACEOF
9469 #define HAVE_DECL_SYS_SIGLIST 1
9474 cat >>confdefs.h
<<_ACEOF
9475 #define HAVE_DECL_SYS_SIGLIST 0
9483 # checks for compiler characteristics
9485 ac_cpp
='$CXXCPP $CPPFLAGS'
9486 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9487 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9488 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9490 echo "$as_me:$LINENO: checking whether ANSI array delete syntax is supported" >&5
9491 echo $ECHO_N "checking whether ANSI array delete syntax is supported... $ECHO_C" >&6
9492 cat >conftest.
$ac_ext <<_ACEOF
9496 cat confdefs.h
>>conftest.
$ac_ext
9497 cat >>conftest.
$ac_ext <<_ACEOF
9498 /* end confdefs.h. */
9505 char *p = new char[5];
9514 rm -f conftest.
$ac_objext
9515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9516 (eval $ac_compile) 2>conftest.er1
9518 grep -v '^ *+' conftest.er1
>conftest.err
9520 cat conftest.err
>&5
9521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9522 (exit $ac_status); } &&
9523 { ac_try
='test -z "$ac_cxx_werror_flag"
9524 || test ! -s conftest.err'
9525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9529 (exit $ac_status); }; } &&
9530 { ac_try
='test -s conftest.$ac_objext'
9531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535 (exit $ac_status); }; }; then
9536 echo "$as_me:$LINENO: result: yes" >&5
9537 echo "${ECHO_T}yes" >&6
9539 echo "$as_me: failed program was:" >&5
9540 sed 's/^/| /' conftest.
$ac_ext >&5
9542 echo "$as_me:$LINENO: result: no" >&5
9543 echo "${ECHO_T}no" >&6
9545 cat >>confdefs.h
<<\_ACEOF
9546 #define ARRAY_DELETE_NEEDS_SIZE 1
9550 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9552 ac_cpp
='$CPP $CPPFLAGS'
9553 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9554 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9555 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
9558 ac_cpp
='$CXXCPP $CPPFLAGS'
9559 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9560 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9561 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9563 echo "$as_me:$LINENO: checking traditional preprocessor" >&5
9564 echo $ECHO_N "checking traditional preprocessor... $ECHO_C" >&6
9565 cat >conftest.
$ac_ext <<_ACEOF
9569 cat confdefs.h
>>conftest.
$ac_ext
9570 cat >>conftest.
$ac_ext <<_ACEOF
9571 /* end confdefs.h. */
9574 #define name2(a, b) a/**/b
9582 int name2(foo, bar);
9590 rm -f conftest.
$ac_objext
9591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9592 (eval $ac_compile) 2>conftest.er1
9594 grep -v '^ *+' conftest.er1
>conftest.err
9596 cat conftest.err
>&5
9597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9598 (exit $ac_status); } &&
9599 { ac_try
='test -z "$ac_cxx_werror_flag"
9600 || test ! -s conftest.err'
9601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9605 (exit $ac_status); }; } &&
9606 { ac_try
='test -s conftest.$ac_objext'
9607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611 (exit $ac_status); }; }; then
9612 echo "$as_me:$LINENO: result: yes" >&5
9613 echo "${ECHO_T}yes" >&6
9615 cat >>confdefs.h
<<\_ACEOF
9616 #define TRADITIONAL_CPP 1
9620 echo "$as_me: failed program was:" >&5
9621 sed 's/^/| /' conftest.
$ac_ext >&5
9623 echo "$as_me:$LINENO: result: no" >&5
9624 echo "${ECHO_T}no" >&6
9626 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9628 ac_cpp
='$CPP $CPPFLAGS'
9629 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9630 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9631 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
9634 # checks for operating system services
9635 echo "$as_me:$LINENO: checking w_coredump" >&5
9636 echo $ECHO_N "checking w_coredump... $ECHO_C" >&6
9637 if test "$cross_compiling" = yes; then
9638 echo "$as_me:$LINENO: result: no" >&5
9639 echo "${ECHO_T}no" >&6
9641 cat >conftest.
$ac_ext <<_ACEOF
9645 cat confdefs.h
>>conftest.
$ac_ext
9646 cat >>conftest.
$ac_ext <<_ACEOF
9647 /* end confdefs.h. */
9650 #include <sys/types.h>
9651 #include <sys/wait.h>
9665 ((union wait *)&i)->w_coredump = 1;
9676 rm -f conftest
$ac_exeext
9677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9678 (eval $ac_link) 2>&5
9680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 (exit $ac_status); }; }; then
9687 echo "$as_me:$LINENO: result: yes" >&5
9688 echo "${ECHO_T}yes" >&6
9690 cat >>confdefs.h
<<\_ACEOF
9691 #define WCOREFLAG 0200
9695 echo "$as_me: program exited with status $ac_status" >&5
9696 echo "$as_me: failed program was:" >&5
9697 sed 's/^/| /' conftest.
$ac_ext >&5
9700 echo "$as_me:$LINENO: result: no" >&5
9701 echo "${ECHO_T}no" >&6
9703 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9706 # other random stuff
9707 echo "$as_me:$LINENO: checking default value for grops -b option" >&5
9708 echo $ECHO_N "checking default value for grops -b option... $ECHO_C" >&6
9709 test -n "${BROKEN_SPOOLER_FLAGS}" || BROKEN_SPOOLER_FLAGS
=0
9710 echo "$as_me:$LINENO: result: $BROKEN_SPOOLER_FLAGS" >&5
9711 echo "${ECHO_T}$BROKEN_SPOOLER_FLAGS" >&6
9713 echo "$as_me:$LINENO: checking default paper size" >&5
9714 echo $ECHO_N "checking default paper size... $ECHO_C" >&6
9715 groff_prefix
=$prefix
9716 test "x$prefix" = "xNONE" && groff_prefix
=$ac_default_prefix
9717 if test -z "$PAGE"; then
9719 if test -r $groff_prefix/share
/groff
/font
/devps
/DESC
; then
9720 descfile
=$groff_prefix/share
/groff
/font
/devps
/DESC
9721 elif test -r $groff_prefix/lib
/groff
/font
/devps
/DESC
; then
9722 descfile
=$groff_prefix/lib
/groff
/font
/devps
/DESC
9724 for f
in $groff_prefix/share
/groff
/*/font
/devps
/DESC
; do
9732 if test -n "$descfile"; then
9733 if grep '^paperlength[ ]\+841890' $descfile >/dev
/null
2>&1; then
9735 elif grep '^papersize[ ]\+[aA]4' $descfile >/dev
/null
2>&1; then
9741 if test -z "$PAGE"; then
9742 dom
=`awk '($1 == "dom" || $1 == "search") { print $2; exit}' \
9743 /etc/resolv.conf 2>/dev/null`
9744 if test -z "$dom"; then
9745 dom
=`(domainname) 2>/dev/null | tr -d '+'`
9747 ||
test "$dom" = '(none)'; then
9748 dom
=`(hostname) 2>/dev/null | grep '\.'`
9751 # If the top-level domain is two letters and it's not `us' or `ca'
9752 # then they probably use A4 paper.
9754 *.
[Uu
][Ss
]|
*.
[Cc
][Aa
])
9761 test -n "$PAGE" || PAGE
=letter
9762 if test "x$PAGE" = "xA4"; then
9764 cat >>confdefs.h
<<\_ACEOF
9769 echo "$as_me:$LINENO: result: $PAGE" >&5
9770 echo "${ECHO_T}$PAGE" >&6
9772 echo "$as_me:$LINENO: checking for existing troff installation" >&5
9773 echo $ECHO_N "checking for existing troff installation... $ECHO_C" >&6
9774 if test "x`(echo .tm '|n(.g' | tr '|' '\\\\' | troff -z -i 2>&1) 2>/dev/null`" = x0
; then
9775 echo "$as_me:$LINENO: result: yes" >&5
9776 echo "${ECHO_T}yes" >&6
9779 echo "$as_me:$LINENO: result: no" >&5
9780 echo "${ECHO_T}no" >&6
9784 echo "$as_me:$LINENO: checking for prefix of system macro packages" >&5
9785 echo $ECHO_N "checking for prefix of system macro packages... $ECHO_C" >&6
9787 sys_tmac_file_prefix
=
9788 for d
in /usr
/share
/lib
/tmac
/usr
/lib
/tmac
; do
9789 for t
in "" tmac.
; do
9792 if test -z "$sys_tmac_prefix" \
9794 && grep '^\.if' $f >/dev
/null
2>&1; then
9795 sys_tmac_prefix
=$d/$t
9796 sys_tmac_file_prefix
=$t
9801 echo "$as_me:$LINENO: result: $sys_tmac_prefix" >&5
9802 echo "${ECHO_T}$sys_tmac_prefix" >&6
9805 echo "$as_me:$LINENO: checking which system macro packages should be made available" >&5
9806 echo $ECHO_N "checking which system macro packages should be made available... $ECHO_C" >&6
9808 if test "x$sys_tmac_file_prefix" = "xtmac."; then
9809 for f
in $sys_tmac_prefix*; do
9810 suff
=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
9815 grep "Copyright.*Free Software Foundation" $f >/dev
/null \
9816 || tmac_wrap
="$tmac_wrap $suff" ;;
9819 elif test -n "$sys_tmac_prefix"; then
9820 files
=`echo $sys_tmac_prefix*`
9821 grep "\\.so" $files >conftest.sol
9824 ${sys_tmac_prefix}e
)
9832 if grep "\\.so.*/$b\$" conftest.sol
>/dev
/null \
9833 ||
grep -l "Copyright.*Free Software Foundation" $f >/dev
/null
; then
9836 suff
=`echo $f | sed -e "s;$sys_tmac_prefix;;"`
9841 tmac_wrap
="$tmac_wrap $suff" ;;
9848 echo "$as_me:$LINENO: result: $tmac_wrap" >&5
9849 echo "${ECHO_T}$tmac_wrap" >&6
9851 echo "$as_me:$LINENO: checking separator character to use in groff search paths" >&5
9852 echo $ECHO_N "checking separator character to use in groff search paths... $ECHO_C" >&6
9853 cp ${srcdir}/src
/include
/nonposix.h conftest.h
9854 cat >conftest.
$ac_ext <<_ACEOF
9858 cat confdefs.h
>>conftest.
$ac_ext
9859 cat >>conftest.
$ac_ext <<_ACEOF
9860 /* end confdefs.h. */
9864 #include "conftest.h"
9872 #if PATH_SEP_CHAR == ';'
9873 make an error "Path separator is ';'"
9882 rm -f conftest.
$ac_objext
9883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9884 (eval $ac_compile) 2>conftest.er1
9886 grep -v '^ *+' conftest.er1
>conftest.err
9888 cat conftest.err
>&5
9889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9890 (exit $ac_status); } &&
9891 { ac_try
='test -z "$ac_c_werror_flag"
9892 || test ! -s conftest.err'
9893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897 (exit $ac_status); }; } &&
9898 { ac_try
='test -s conftest.$ac_objext'
9899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9903 (exit $ac_status); }; }; then
9904 GROFF_PATH_SEPARATOR
=":"
9906 echo "$as_me: failed program was:" >&5
9907 sed 's/^/| /' conftest.
$ac_ext >&5
9909 GROFF_PATH_SEPARATOR
=";"
9911 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9912 echo "$as_me:$LINENO: result: $GROFF_PATH_SEPARATOR" >&5
9913 echo "${ECHO_T}$GROFF_PATH_SEPARATOR" >&6
9916 make_install_html
=install_html
9919 # Extract the first word of "pnmcut", so it can be a program name with args.
9920 set dummy pnmcut
; ac_word
=$2
9921 echo "$as_me:$LINENO: checking for $ac_word" >&5
9922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9923 if test "${ac_cv_prog_pnmcut+set}" = set; then
9924 echo $ECHO_N "(cached) $ECHO_C" >&6
9926 if test -n "$pnmcut"; then
9927 ac_cv_prog_pnmcut
="$pnmcut" # Let the user override the test.
9929 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9933 test -z "$as_dir" && as_dir
=.
9934 for ac_exec_ext
in '' $ac_executable_extensions; do
9935 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9936 ac_cv_prog_pnmcut
="found"
9937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9943 test -z "$ac_cv_prog_pnmcut" && ac_cv_prog_pnmcut
="missing"
9946 pnmcut
=$ac_cv_prog_pnmcut
9947 if test -n "$pnmcut"; then
9948 echo "$as_me:$LINENO: result: $pnmcut" >&5
9949 echo "${ECHO_T}$pnmcut" >&6
9951 echo "$as_me:$LINENO: result: no" >&5
9952 echo "${ECHO_T}no" >&6
9955 if test $pnmcut = missing
; then
9956 missing
="$missing pnmcut"
9957 fi;# Extract the first word of "pnmcrop", so it can be a program name with args.
9958 set dummy pnmcrop
; ac_word
=$2
9959 echo "$as_me:$LINENO: checking for $ac_word" >&5
9960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9961 if test "${ac_cv_prog_pnmcrop+set}" = set; then
9962 echo $ECHO_N "(cached) $ECHO_C" >&6
9964 if test -n "$pnmcrop"; then
9965 ac_cv_prog_pnmcrop
="$pnmcrop" # Let the user override the test.
9967 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9971 test -z "$as_dir" && as_dir
=.
9972 for ac_exec_ext
in '' $ac_executable_extensions; do
9973 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9974 ac_cv_prog_pnmcrop
="found"
9975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9981 test -z "$ac_cv_prog_pnmcrop" && ac_cv_prog_pnmcrop
="missing"
9984 pnmcrop
=$ac_cv_prog_pnmcrop
9985 if test -n "$pnmcrop"; then
9986 echo "$as_me:$LINENO: result: $pnmcrop" >&5
9987 echo "${ECHO_T}$pnmcrop" >&6
9989 echo "$as_me:$LINENO: result: no" >&5
9990 echo "${ECHO_T}no" >&6
9993 if test $pnmcrop = missing
; then
9994 missing
="$missing pnmcrop"
9995 fi;# Extract the first word of "pnmtopng", so it can be a program name with args.
9996 set dummy pnmtopng
; ac_word
=$2
9997 echo "$as_me:$LINENO: checking for $ac_word" >&5
9998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9999 if test "${ac_cv_prog_pnmtopng+set}" = set; then
10000 echo $ECHO_N "(cached) $ECHO_C" >&6
10002 if test -n "$pnmtopng"; then
10003 ac_cv_prog_pnmtopng
="$pnmtopng" # Let the user override the test.
10005 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10006 for as_dir
in $PATH
10009 test -z "$as_dir" && as_dir
=.
10010 for ac_exec_ext
in '' $ac_executable_extensions; do
10011 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10012 ac_cv_prog_pnmtopng
="found"
10013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10019 test -z "$ac_cv_prog_pnmtopng" && ac_cv_prog_pnmtopng
="missing"
10022 pnmtopng
=$ac_cv_prog_pnmtopng
10023 if test -n "$pnmtopng"; then
10024 echo "$as_me:$LINENO: result: $pnmtopng" >&5
10025 echo "${ECHO_T}$pnmtopng" >&6
10027 echo "$as_me:$LINENO: result: no" >&5
10028 echo "${ECHO_T}no" >&6
10031 if test $pnmtopng = missing
; then
10032 missing
="$missing pnmtopng"
10033 fi;# Extract the first word of "psselect", so it can be a program name with args.
10034 set dummy psselect
; ac_word
=$2
10035 echo "$as_me:$LINENO: checking for $ac_word" >&5
10036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10037 if test "${ac_cv_prog_psselect+set}" = set; then
10038 echo $ECHO_N "(cached) $ECHO_C" >&6
10040 if test -n "$psselect"; then
10041 ac_cv_prog_psselect
="$psselect" # Let the user override the test.
10043 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10044 for as_dir
in $PATH
10047 test -z "$as_dir" && as_dir
=.
10048 for ac_exec_ext
in '' $ac_executable_extensions; do
10049 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10050 ac_cv_prog_psselect
="found"
10051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10057 test -z "$ac_cv_prog_psselect" && ac_cv_prog_psselect
="missing"
10060 psselect
=$ac_cv_prog_psselect
10061 if test -n "$psselect"; then
10062 echo "$as_me:$LINENO: result: $psselect" >&5
10063 echo "${ECHO_T}$psselect" >&6
10065 echo "$as_me:$LINENO: result: no" >&5
10066 echo "${ECHO_T}no" >&6
10069 if test $psselect = missing
; then
10070 missing
="$missing psselect"
10071 fi;# Extract the first word of "pnmtops", so it can be a program name with args.
10072 set dummy pnmtops
; ac_word
=$2
10073 echo "$as_me:$LINENO: checking for $ac_word" >&5
10074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10075 if test "${ac_cv_prog_pnmtops+set}" = set; then
10076 echo $ECHO_N "(cached) $ECHO_C" >&6
10078 if test -n "$pnmtops"; then
10079 ac_cv_prog_pnmtops
="$pnmtops" # Let the user override the test.
10081 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10082 for as_dir
in $PATH
10085 test -z "$as_dir" && as_dir
=.
10086 for ac_exec_ext
in '' $ac_executable_extensions; do
10087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10088 ac_cv_prog_pnmtops
="found"
10089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10095 test -z "$ac_cv_prog_pnmtops" && ac_cv_prog_pnmtops
="missing"
10098 pnmtops
=$ac_cv_prog_pnmtops
10099 if test -n "$pnmtops"; then
10100 echo "$as_me:$LINENO: result: $pnmtops" >&5
10101 echo "${ECHO_T}$pnmtops" >&6
10103 echo "$as_me:$LINENO: result: no" >&5
10104 echo "${ECHO_T}no" >&6
10107 if test $pnmtops = missing
; then
10108 missing
="$missing pnmtops"
10109 fi;# Extract the first word of "gs", so it can be a program name with args.
10110 set dummy gs
; ac_word
=$2
10111 echo "$as_me:$LINENO: checking for $ac_word" >&5
10112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10113 if test "${ac_cv_prog_gs+set}" = set; then
10114 echo $ECHO_N "(cached) $ECHO_C" >&6
10116 if test -n "$gs"; then
10117 ac_cv_prog_gs
="$gs" # Let the user override the test.
10119 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10120 for as_dir
in $PATH
10123 test -z "$as_dir" && as_dir
=.
10124 for ac_exec_ext
in '' $ac_executable_extensions; do
10125 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10126 ac_cv_prog_gs
="found"
10127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10133 test -z "$ac_cv_prog_gs" && ac_cv_prog_gs
="missing"
10137 if test -n "$gs"; then
10138 echo "$as_me:$LINENO: result: $gs" >&5
10139 echo "${ECHO_T}$gs" >&6
10141 echo "$as_me:$LINENO: result: no" >&5
10142 echo "${ECHO_T}no" >&6
10145 if test $gs = missing
; then
10146 missing
="$missing gs"
10149 if test -n "$missing"; then
10153 cnt
=`expr $cnt + 1`
10160 progs
="\`$prog1'" ;;
10162 progs
="\`$prog1' and \`$prog2'" ;;
10164 progs
="\`$prog1', \`$prog2', and \`$prog3'" ;;
10166 progs
="\`$prog1', \`$prog2', \`$prog3', and \`$prog4'" ;;
10168 progs
="\`$prog1', \`$prog2', \`$prog3', \`$prog4', and \`$prog5'" ;;
10170 progs
="\`$prog1', \`$prog2', \`$prog3', \`$prog4', \`$prog5', and \`$prog6'" ;;
10176 { echo "$as_me:$LINENO: WARNING:
10180 can't be found in the path, thus the HTML backend of groff (grohtml)
10181 won't work properly. Consequently, no documentation in HTML format
10182 is built and installed.
10184 echo "$as_me: WARNING:
10188 can't be found in the path, thus the HTML backend of groff (grohtml)
10189 won't work properly. Consequently, no documentation in HTML format
10190 is built and installed.
10196 echo "$as_me:$LINENO: checking whether pnmtops can handle the -nosetpage option" >&5
10197 echo $ECHO_N "checking whether pnmtops can handle the -nosetpage option... $ECHO_C" >&6
10198 if echo P2
2 2 255 0 1 2 0 | pnmtops
-nosetpage > /dev
/null
2>&1 ; then
10199 echo "$as_me:$LINENO: result: yes" >&5
10200 echo "${ECHO_T}yes" >&6
10201 pnmtops_nosetpage
="pnmtops -nosetpage"
10203 echo "$as_me:$LINENO: result: no" >&5
10204 echo "${ECHO_T}no" >&6
10205 pnmtops_nosetpage
="pnmtops"
10208 if test -n "$ac_tool_prefix"; then
10209 # Extract the first word of "${ac_tool_prefix}gs gsos2", so it can be a program name with args.
10210 set dummy
${ac_tool_prefix}gs gsos2
; ac_word
=$2
10211 echo "$as_me:$LINENO: checking for $ac_word" >&5
10212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10213 if test "${ac_cv_path_GHOSTSCRIPT+set}" = set; then
10214 echo $ECHO_N "(cached) $ECHO_C" >&6
10216 case $GHOSTSCRIPT in
10218 ac_cv_path_GHOSTSCRIPT
="$GHOSTSCRIPT" # Let the user override the test with a path.
10221 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10222 for as_dir
in $PATH
10225 test -z "$as_dir" && as_dir
=.
10226 for ac_exec_ext
in '' $ac_executable_extensions; do
10227 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10228 ac_cv_path_GHOSTSCRIPT
="$as_dir/$ac_word$ac_exec_ext"
10229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10238 GHOSTSCRIPT
=$ac_cv_path_GHOSTSCRIPT
10240 if test -n "$GHOSTSCRIPT"; then
10241 echo "$as_me:$LINENO: result: $GHOSTSCRIPT" >&5
10242 echo "${ECHO_T}$GHOSTSCRIPT" >&6
10244 echo "$as_me:$LINENO: result: no" >&5
10245 echo "${ECHO_T}no" >&6
10249 if test -z "$ac_cv_path_GHOSTSCRIPT"; then
10250 ac_pt_GHOSTSCRIPT
=$GHOSTSCRIPT
10251 # Extract the first word of "gs gsos2", so it can be a program name with args.
10252 set dummy gs gsos2
; ac_word
=$2
10253 echo "$as_me:$LINENO: checking for $ac_word" >&5
10254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10255 if test "${ac_cv_path_ac_pt_GHOSTSCRIPT+set}" = set; then
10256 echo $ECHO_N "(cached) $ECHO_C" >&6
10258 case $ac_pt_GHOSTSCRIPT in
10260 ac_cv_path_ac_pt_GHOSTSCRIPT
="$ac_pt_GHOSTSCRIPT" # Let the user override the test with a path.
10263 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10264 for as_dir
in $PATH
10267 test -z "$as_dir" && as_dir
=.
10268 for ac_exec_ext
in '' $ac_executable_extensions; do
10269 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10270 ac_cv_path_ac_pt_GHOSTSCRIPT
="$as_dir/$ac_word$ac_exec_ext"
10271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10280 ac_pt_GHOSTSCRIPT
=$ac_cv_path_ac_pt_GHOSTSCRIPT
10282 if test -n "$ac_pt_GHOSTSCRIPT"; then
10283 echo "$as_me:$LINENO: result: $ac_pt_GHOSTSCRIPT" >&5
10284 echo "${ECHO_T}$ac_pt_GHOSTSCRIPT" >&6
10286 echo "$as_me:$LINENO: result: no" >&5
10287 echo "${ECHO_T}no" >&6
10290 if test "x$ac_pt_GHOSTSCRIPT" = x
; then
10291 GHOSTSCRIPT
="missing"
10293 if test "$build" != "$host"; then
10294 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
10295 whose name does not start with the host triplet. If you think this
10296 configuration is useful to you, please write to autoconf@gnu.org." >&5
10297 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
10298 whose name does not start with the host triplet. If you think this
10299 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
10301 GHOSTSCRIPT
=$ac_pt_GHOSTSCRIPT
10304 GHOSTSCRIPT
="$ac_cv_path_GHOSTSCRIPT"
10309 ac_config_files
="$ac_config_files stamp-h"
10311 ac_config_files
="$ac_config_files Makefile doc/Makefile src/utils/xtotroff/Makefile"
10313 ac_config_files
="$ac_config_files contrib/gdiffmk/tests/runtests"
10315 ac_config_files
="$ac_config_files test-groff"
10317 cat >confcache
<<\_ACEOF
10318 # This file is a shell script that caches the results of configure
10319 # tests run on this system so they can be shared between configure
10320 # scripts and configure runs, see configure's option --config-cache.
10321 # It is not useful on other systems. If it contains results you don't
10322 # want to keep, you may remove or edit it.
10324 # config.status only pays attention to the cache file if you give it
10325 # the --recheck option to rerun configure.
10327 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10328 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10329 # following values.
10333 # The following way of writing the cache mishandles newlines in values,
10334 # but we know of no workaround that is simple, portable, and efficient.
10335 # So, don't put newlines in cache variables' values.
10336 # Ultrix sh set writes to stderr and can't be redirected directly,
10337 # and sets the high bit in the cache file unless we assign to the vars.
10340 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10342 # `set' does not quote correctly, so add quotes (double-quote
10343 # substitution turns \\\\ into \\, and sed turns \\ into \).
10346 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10349 # `set' quotes correctly as required by POSIX, so do not add quotes.
10351 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10358 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10360 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10362 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
10363 if test -w $cache_file; then
10364 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10365 cat confcache
>$cache_file
10367 echo "not updating unwritable cache $cache_file"
10372 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
10373 # Let make expand exec_prefix.
10374 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
10376 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10377 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10378 # trailing colons and then remove the whole line if VPATH becomes empty
10379 # (actually we leave an empty line to preserve line numbers).
10380 if test "x$srcdir" = x.
; then
10381 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
10382 s/:*\$(srcdir):*/:/;
10383 s/:*\${srcdir}:*/:/;
10385 s/^\([^=]*=[ ]*\):*/\1/;
10391 DEFS
=-DHAVE_CONFIG_H
10395 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
10396 # 1. Remove the extension, and $U if already installed.
10397 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
10398 ac_i
=`echo "$ac_i" | sed "$ac_script"`
10400 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
10401 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
10403 LIBOBJS
=$ac_libobjs
10405 LTLIBOBJS
=$ac_ltlibobjs
10409 : ${CONFIG_STATUS=./config.status}
10410 ac_clean_files_save
=$ac_clean_files
10411 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
10412 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10413 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10414 cat >$CONFIG_STATUS <<_ACEOF
10416 # Generated by $as_me.
10417 # Run this file to recreate the current configuration.
10418 # Compiler output produced by configure, useful for debugging
10419 # configure, is in config.log if it exists.
10422 ac_cs_recheck=false
10424 SHELL=\${CONFIG_SHELL-$SHELL}
10427 cat >>$CONFIG_STATUS <<\_ACEOF
10428 ## --------------------- ##
10429 ## M4sh Initialization. ##
10430 ## --------------------- ##
10432 # Be Bourne compatible
10433 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
10436 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10437 # is contrary to our usage. Disable this feature.
10438 alias -g '${1+"$@"}'='"$@"'
10439 setopt NO_GLOB_SUBST
10440 elif test -n "${BASH_VERSION+set}${KSH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
10443 BIN_SH
=xpg4
; export BIN_SH
# for Tru64
10444 DUALCASE
=1; export DUALCASE
# for MKS sh
10448 # Avoid depending upon Character Ranges.
10449 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
10450 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10451 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
10452 as_cr_digits
='0123456789'
10453 as_cr_alnum
=$as_cr_Letters$as_cr_digits
10455 # The user is always right.
10456 if test "${PATH_SEPARATOR+set}" != set; then
10457 echo "#! /bin/sh" >conf$$.sh
10458 echo "exit 0" >>conf$$.sh
10460 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10468 # Support unset when possible.
10469 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
10476 # Find who we are. Look in the path if we contain no path at all
10479 *[\\/]* ) as_myself
=$0 ;;
10480 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10481 for as_dir
in $PATH
10484 test -z "$as_dir" && as_dir
=.
10485 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
10490 # We did not find ourselves, most probably we were run as `sh COMMAND'
10491 # in which case we are not to be found in the path.
10492 if test "x$as_myself" = x
; then
10495 if test ! -f "$as_myself"; then
10496 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute file name" >&5
10497 echo "$as_me: error: cannot find myself; rerun with an absolute file name" >&2;}
10498 { (exit 1); exit 1; }; }
10501 # Work around bugs in pre-3.0 UWIN ksh.
10502 for as_var
in ENV MAIL MAILPATH
10503 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
10511 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10512 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10513 LC_TELEPHONE LC_TIME
10515 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10516 eval $as_var=C
; export $as_var
10518 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
10522 # Required to use basename.
10523 if expr a
: '\(a\)' >/dev
/null
2>&1; then
10529 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
10530 as_basename
=basename
10536 # Name of the executable.
10537 as_me
=`$as_basename "$0" ||
10538 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10539 X"$0" : 'X\(//\)$' \| \
10540 X"$0" : 'X\(/\)$' \| \
10541 . : '\(.\)' 2>/dev/null ||
10543 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10544 /^X\/\(\/\/\)$/{ s//\1/; q; }
10545 /^X\/\(\/\).*/{ s//\1/; q; }
10551 as_lineno_1
=$LINENO
10552 as_lineno_2
=$LINENO
10553 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
10554 test "x$as_lineno_1" != "x$as_lineno_2" &&
10555 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
10557 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10558 # uniformly replaced by the line number. The first 'sed' inserts a
10559 # line-number line after each line using $LINENO; the second 'sed'
10560 # does the real work. The second script uses 'N' to pair each
10561 # line-number line with the line containing $LINENO, and appends
10562 # trailing '-' during substitution so that $LINENO is not a special
10563 # case at line end.
10564 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10565 # scripts with optimization help from Paolo Bonzini. Blame Lee
10566 # E. McMahon (1931-1989) for sed's syntax. :-)
10578 s,[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\),\2\1\2,
10581 ' >$as_me.lineno
&&
10582 chmod +x
$as_me.lineno ||
10583 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10584 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10585 { (exit 1); exit 1; }; }
10587 # Don't try to exec as it changes $[0], causing all sort of problems
10588 # (the dirname of $[0] is not the place where we might find the
10589 # original and so on. Autoconf is especially sensible to this).
10591 # Exit status is that of the last command.
10596 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10597 *c
*,-n*) ECHO_N
= ECHO_C
='
10599 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
10600 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
10603 if expr a
: '\(a\)' >/dev
/null
2>&1; then
10609 rm -f conf$$ conf$$.exe conf$$.
file
10611 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
10612 # We could just check for DJGPP; but this test a) works b) is more generic
10613 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10614 if test -f conf$$.exe
; then
10615 # Don't use ln at all; we don't have any links
10620 elif ln conf$$.
file conf$$
2>/dev
/null
; then
10625 rm -f conf$$ conf$$.exe conf$$.
file
10627 if mkdir
-p .
2>/dev
/null
; then
10630 test -d .
/-p && rmdir .
/-p
10634 as_executable_p
="test -f"
10636 # Sed expression to map a string onto a valid CPP name.
10637 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10639 # Sed expression to map a string onto a valid variable name.
10640 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10644 # We need space, tab and new line, in precisely that order.
10654 # Open the log real soon, to keep \$[0] and so on meaningful, and to
10655 # report actual input values of CONFIG_FILES etc. instead of their
10656 # values after options handling. Logging --version etc. is OK.
10660 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10661 ## Running $as_me. ##
10666 This file was extended by $as_me, which was
10667 generated by GNU Autoconf 2.59b. Invocation command line was
10669 CONFIG_FILES = $CONFIG_FILES
10670 CONFIG_HEADERS = $CONFIG_HEADERS
10671 CONFIG_LINKS = $CONFIG_LINKS
10672 CONFIG_COMMANDS = $CONFIG_COMMANDS
10676 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10680 # Files that config.status was made for.
10681 if test -n "$ac_config_files"; then
10682 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10685 if test -n "$ac_config_headers"; then
10686 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10689 if test -n "$ac_config_links"; then
10690 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10693 if test -n "$ac_config_commands"; then
10694 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10697 cat >>$CONFIG_STATUS <<\_ACEOF
10700 \`$as_me' instantiates files from templates according to the
10701 current configuration.
10703 Usage: $0 [OPTIONS] [FILE]...
10705 -h, --help print this help, then exit
10706 -V, --version print version number, then exit
10707 -q, --quiet do not print progress messages
10708 -d, --debug don't remove temporary files
10709 --recheck update $as_me by reconfiguring in the same conditions
10710 --file=FILE[:TEMPLATE]
10711 instantiate the configuration file FILE
10712 --header=FILE[:TEMPLATE]
10713 instantiate the configuration header FILE
10715 Configuration files:
10718 Configuration headers:
10721 Report bugs to <bug-autoconf@gnu.org>."
10724 cat >>$CONFIG_STATUS <<_ACEOF
10727 configured by $0, generated by GNU Autoconf 2.59b,
10728 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10730 Copyright (C) 2004 Free Software Foundation, Inc.
10731 This config.status script is free software; the Free Software Foundation
10732 gives unlimited permission to copy, distribute and modify it."
10737 cat >>$CONFIG_STATUS <<\_ACEOF
10738 # If no file are specified by the user, then we need to provide default
10739 # value. By we need to know if files were specified by the user.
10745 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
10746 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
10754 *) # This is not an option, so the user has probably given explicit
10757 ac_need_defaults
=false
;;
10761 # Handling of the options.
10763 cat >>$CONFIG_STATUS <<\_ACEOF
10764 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
10766 --version |
--vers* |
-V )
10767 echo "$ac_cs_version"; exit 0 ;;
10769 # Conflict between --help and --header
10770 { { echo "$as_me:$LINENO: error: ambiguous option: $1
10771 Try \`$0 --help' for more information." >&5
10772 echo "$as_me: error: ambiguous option: $1
10773 Try \`$0 --help' for more information." >&2;}
10774 { (exit 1); exit 1; }; };;
10775 --help |
--hel |
-h )
10776 echo "$ac_cs_usage"; exit 0 ;;
10777 --debug |
--d* |
-d )
10779 --file |
--fil |
--fi |
--f )
10781 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
10782 ac_need_defaults
=false
;;
10783 --header |
--heade |
--head |
--hea )
10785 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
10786 ac_need_defaults
=false
;;
10787 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
10788 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
10791 # This is an error.
10792 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10793 Try \`$0 --help' for more information." >&5
10794 echo "$as_me: error: unrecognized option: $1
10795 Try \`$0 --help' for more information." >&2;}
10796 { (exit 1); exit 1; }; } ;;
10798 *) ac_config_targets
="$ac_config_targets $1" ;;
10804 ac_configure_extra_args
=
10806 if $ac_cs_silent; then
10808 ac_configure_extra_args
="$ac_configure_extra_args --silent"
10812 cat >>$CONFIG_STATUS <<_ACEOF
10813 if \$ac_cs_recheck; then
10814 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10815 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10824 cat >>$CONFIG_STATUS <<\_ACEOF
10825 for ac_config_target
in $ac_config_targets
10827 case "$ac_config_target" in
10828 # Handling of arguments.
10829 "stamp-h" ) CONFIG_FILES
="$CONFIG_FILES stamp-h" ;;
10830 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
10831 "doc/Makefile" ) CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
10832 "src/utils/xtotroff/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/utils/xtotroff/Makefile" ;;
10833 "contrib/gdiffmk/tests/runtests" ) CONFIG_FILES
="$CONFIG_FILES contrib/gdiffmk/tests/runtests" ;;
10834 "test-groff" ) CONFIG_FILES
="$CONFIG_FILES test-groff" ;;
10835 "src/include/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/include/config.h:src/include/config.hin" ;;
10836 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10837 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10838 { (exit 1); exit 1; }; };;
10842 # If the user did not use the arguments to specify the items to instantiate,
10843 # then the envvar interface is used. Set only those that are not.
10844 # We use the long form for the default assignment because of an extremely
10845 # bizarre bug on SunOS 4.1.3.
10846 if $ac_need_defaults; then
10847 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
10848 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
10851 # Have a temporary directory for convenience. Make it in the build tree
10852 # simply because there is no reason to put it here, and in addition,
10853 # creating and moving files from /tmp can sometimes cause problems.
10854 # Create a temporary directory, and hook for its removal unless debugging.
10857 trap 'exit_status=$?; rm -f -r $tmp && exit $exit_status' 0
10858 trap '{ (exit 1); exit 1; }' 1 2 13 15
10861 # Create a (secure) tmp directory for tmp files.
10864 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10865 test -n "$tmp" && test -d "$tmp"
10868 tmp
=.
/confstat$$
-$RANDOM
10869 (umask 077 && mkdir
$tmp)
10872 echo "$me: cannot create a temporary directory in ." >&2
10873 { (exit 1); exit 1; }
10878 cat >>$CONFIG_STATUS <<_ACEOF
10881 # CONFIG_FILES section.
10884 # No need to generate the scripts if there are no CONFIG_FILES.
10885 # This happens for instance when ./config.status config.h
10886 if test -n "\$CONFIG_FILES"; then
10887 # Protect against being on the right side of a sed subst in config.status.
10888 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10889 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10890 s,@SHELL@,$SHELL,;t t
10891 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10892 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10893 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10894 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10895 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10896 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10897 s,@exec_prefix@,$exec_prefix,;t t
10898 s,@prefix@,$prefix,;t t
10899 s,@program_transform_name@,$program_transform_name,;t t
10900 s,@bindir@,$bindir,;t t
10901 s,@sbindir@,$sbindir,;t t
10902 s,@libexecdir@,$libexecdir,;t t
10903 s,@datadir@,$datadir,;t t
10904 s,@sysconfdir@,$sysconfdir,;t t
10905 s,@sharedstatedir@,$sharedstatedir,;t t
10906 s,@localstatedir@,$localstatedir,;t t
10907 s,@libdir@,$libdir,;t t
10908 s,@includedir@,$includedir,;t t
10909 s,@oldincludedir@,$oldincludedir,;t t
10910 s,@infodir@,$infodir,;t t
10911 s,@mandir@,$mandir,;t t
10912 s,@build_alias@,$build_alias,;t t
10913 s,@host_alias@,$host_alias,;t t
10914 s,@target_alias@,$target_alias,;t t
10915 s,@DEFS@,$DEFS,;t t
10916 s,@ECHO_C@,$ECHO_C,;t t
10917 s,@ECHO_N@,$ECHO_N,;t t
10918 s,@ECHO_T@,$ECHO_T,;t t
10919 s,@LIBS@,$LIBS,;t t
10921 s,@CFLAGS@,$CFLAGS,;t t
10922 s,@LDFLAGS@,$LDFLAGS,;t t
10923 s,@CPPFLAGS@,$CPPFLAGS,;t t
10924 s,@ac_ct_CC@,$ac_ct_CC,;t t
10925 s,@EXEEXT@,$EXEEXT,;t t
10926 s,@OBJEXT@,$OBJEXT,;t t
10928 s,@CXXFLAGS@,$CXXFLAGS,;t t
10929 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
10930 s,@TTYDEVDIRS@,$TTYDEVDIRS,;t t
10931 s,@OTHERDEVDIRS@,$OTHERDEVDIRS,;t t
10933 s,@X_CFLAGS@,$X_CFLAGS,;t t
10934 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
10935 s,@X_LIBS@,$X_LIBS,;t t
10936 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
10937 s,@XDEVDIRS@,$XDEVDIRS,;t t
10938 s,@XPROGDIRS@,$XPROGDIRS,;t t
10939 s,@XLIBDIRS@,$XLIBDIRS,;t t
10940 s,@appresdir@,$appresdir,;t t
10944 s,@PSPRINT@,$PSPRINT,;t t
10945 s,@DVIPRINT@,$DVIPRINT,;t t
10946 s,@PERLPATH@,$PERLPATH,;t t
10947 s,@YACC@,$YACC,;t t
10948 s,@RANLIB@,$RANLIB,;t t
10949 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10950 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
10951 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10952 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10953 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10954 s,@LN_S@,$LN_S,;t t
10955 s,@SH_SCRIPT_SED_CMD@,$SH_SCRIPT_SED_CMD,;t t
10956 s,@GREP@,$GREP,;t t
10957 s,@EGREP@,$EGREP,;t t
10958 s,@LIBC@,$LIBC,;t t
10959 s,@LIBM@,$LIBM,;t t
10960 s,@LIBOBJS@,$LIBOBJS,;t t
10961 s,@BROKEN_SPOOLER_FLAGS@,$BROKEN_SPOOLER_FLAGS,;t t
10962 s,@PAGE@,$PAGE,;t t
10964 s,@sys_tmac_prefix@,$sys_tmac_prefix,;t t
10965 s,@tmac_wrap@,$tmac_wrap,;t t
10966 s,@GROFF_PATH_SEPARATOR@,$GROFF_PATH_SEPARATOR,;t t
10967 s,@pnmcut@,$pnmcut,;t t
10968 s,@pnmcrop@,$pnmcrop,;t t
10969 s,@pnmtopng@,$pnmtopng,;t t
10970 s,@psselect@,$psselect,;t t
10971 s,@pnmtops@,$pnmtops,;t t
10973 s,@make_html@,$make_html,;t t
10974 s,@make_install_html@,$make_install_html,;t t
10975 s,@pnmtops_nosetpage@,$pnmtops_nosetpage,;t t
10976 s,@GHOSTSCRIPT@,$GHOSTSCRIPT,;t t
10977 s,@ac_pt_GHOSTSCRIPT@,$ac_pt_GHOSTSCRIPT,;t t
10978 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10983 cat >>$CONFIG_STATUS <<\_ACEOF
10984 # Split the substitutions into bite-sized pieces for seds with
10985 # small command number limits, like on Digital OSF/1 and HP-UX.
10986 ac_max_sed_lines
=48
10987 ac_sed_frag
=1 # Number of current file.
10988 ac_beg
=1 # First line for current file.
10989 ac_end
=$ac_max_sed_lines # Line after last line for current file.
10992 while $ac_more_lines; do
10993 if test $ac_beg -gt 1; then
10994 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
10996 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
10998 if test ! -s $tmp/subs.frag
; then
10999 ac_more_lines
=false
11001 # The purpose of the label and of the branching condition is to
11002 # speed up the sed processing (if there are no `@' at all, there
11003 # is no need to browse any of the substitutions).
11004 # These are the two extra sed commands mentioned above.
11006 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
11007 if test -z "$ac_sed_cmds"; then
11008 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
11010 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11012 ac_sed_frag
=`expr $ac_sed_frag + 1`
11014 ac_end
=`expr $ac_end + $ac_max_sed_lines`
11017 if test -z "$ac_sed_cmds"; then
11020 fi # test -n "$CONFIG_FILES"
11023 cat >>$CONFIG_STATUS <<\_ACEOF
11024 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
11025 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11027 - |
*:- |
*:-:* ) # input from stdin
11029 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
11030 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
11031 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
11032 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
11033 * ) ac_file_in
=$ac_file.
in ;;
11036 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11037 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
11038 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11039 X"$ac_file" : 'X\(//\)[^/]' \| \
11040 X"$ac_file" : 'X\(//\)$' \| \
11041 X"$ac_file" : 'X\(/\)' \| \
11042 . : '\(.\)' 2>/dev/null ||
11044 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11045 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11046 /^X\(\/\/\)$/{ s//\1/; q; }
11047 /^X\(\/\).*/{ s//\1/; q; }
11049 { if $as_mkdir_p; then
11050 test -d "$ac_dir" || mkdir
-p "$ac_dir"
11054 while test ! -d "$as_dir"; do
11055 as_dirs
="$as_dir $as_dirs"
11056 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
11057 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11058 X"$as_dir" : 'X\(//\)[^/]' \| \
11059 X"$as_dir" : 'X\(//\)$' \| \
11060 X"$as_dir" : 'X\(/\)' \| \
11061 . : '\(.\)' 2>/dev/null ||
11063 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11064 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11065 /^X\(\/\/\)$/{ s//\1/; q; }
11066 /^X\(\/\).*/{ s//\1/; q; }
11069 test ! -n "$as_dirs" || mkdir
$as_dirs
11070 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11071 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11072 { (exit 1); exit 1; }; }; }
11076 if test "$ac_dir" != .
; then
11077 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11078 # A "../" for each directory in $ac_dir_suffix.
11079 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11081 ac_dir_suffix
= ac_top_builddir
=
11085 .
) # No --srcdir option. We are building in place.
11087 if test -z "$ac_top_builddir"; then
11090 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
11092 [\\/]* | ?
:[\\/]* ) # Absolute name.
11093 ac_srcdir
=$srcdir$ac_dir_suffix;
11094 ac_top_srcdir
=$srcdir ;;
11095 *) # Relative name.
11096 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
11097 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
11100 # Do not use `cd foo && pwd` to compute absolute names, because
11101 # the directories may not exist.
11103 .
) ac_abs_builddir
="$ac_dir";;
11106 .
) ac_abs_builddir
=`pwd`;;
11107 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
11108 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
11111 case $ac_abs_builddir in
11112 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
11114 case ${ac_top_builddir}.
in
11115 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
11116 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
11117 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
11120 case $ac_abs_builddir in
11121 .
) ac_abs_srcdir
=$ac_srcdir;;
11124 .
) ac_abs_srcdir
=$ac_abs_builddir;;
11125 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
11126 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
11129 case $ac_abs_builddir in
11130 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
11132 case $ac_top_srcdir in
11133 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
11134 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
11135 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
11141 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
11142 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
11145 if test x
"$ac_file" != x-
; then
11146 { echo "$as_me:$LINENO: creating $ac_file" >&5
11147 echo "$as_me: creating $ac_file" >&6;}
11150 # Let's still pretend it is `configure' which instantiates (i.e., don't
11151 # use $as_me), people would be surprised to read:
11152 # /* config.h. Generated by config.status. */
11153 if test x
"$ac_file" = x-
; then
11156 configure_input
="$ac_file. "
11158 configure_input
=$configure_input"Generated from `echo $ac_file_in |
11159 sed 's,.*/,,'` by configure."
11161 # First look for the input files in the build tree, otherwise in the
11163 ac_file_inputs
=`IFS=:
11164 for f in $ac_file_in; do
11166 -) echo $tmp/stdin ;;
11168 # Absolute (can't be DOS-style, as IFS=:)
11169 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11170 echo "$as_me: error: cannot find input file: $f" >&2;}
11171 { (exit 1); exit 1; }; }
11174 if test -f "$f"; then
11177 elif test -f "$srcdir/$f"; then
11182 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11183 echo "$as_me: error: cannot find input file: $f" >&2;}
11184 { (exit 1); exit 1; }; }
11187 done` ||
{ (exit 1); exit 1; }
11189 cat >>$CONFIG_STATUS <<_ACEOF
11193 cat >>$CONFIG_STATUS <<\_ACEOF
11195 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
11196 s
,@configure_input@
,$configure_input,;t t
11197 s
,@srcdir@
,$ac_srcdir,;t t
11198 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
11199 s
,@top_srcdir@
,$ac_top_srcdir,;t t
11200 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
11201 s
,@builddir@
,$ac_builddir,;t t
11202 s
,@abs_builddir@
,$ac_abs_builddir,;t t
11203 s
,@top_builddir@
,$ac_top_builddir,;t t
11204 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
11205 s
,@INSTALL@
,$ac_INSTALL,;t t
11206 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11208 if test x"$ac_file" != x-; then
11209 mv $tmp/out $ac_file
11215 # Run the commands associated with the file.
11217 stamp-h ) echo timestamp > stamp-h ;;
11218 contrib/gdiffmk/tests/runtests ) chmod +x contrib/gdiffmk/tests/runtests ;;
11219 test-groff ) chmod +x test-groff ;;
11223 cat >>$CONFIG_STATUS <<\_ACEOF
11226 # CONFIG_HEADER section.
11229 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
11230 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11232 # ac_d sets the value in "#define NAME VALUE" lines.
11233 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11234 ac_dB
='[ ].*$,\1#\2'
11237 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11238 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11239 ac_uB
='$,\1#\2define\3'
11243 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
11244 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11246 - |
*:- |
*:-:* ) # input from stdin
11248 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
11249 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
11250 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
11251 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
11252 * ) ac_file_in
=$ac_file.
in ;;
11255 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
11256 echo "$as_me: creating $ac_file" >&6;}
11258 # First look for the input files in the build tree, otherwise in the
11260 ac_file_inputs
=`IFS=:
11261 for f in $ac_file_in; do
11263 -) echo $tmp/stdin ;;
11265 # Absolute (can't be DOS-style, as IFS=:)
11266 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11267 echo "$as_me: error: cannot find input file: $f" >&2;}
11268 { (exit 1); exit 1; }; }
11269 # Quote $f, to prevent DOS file names from being IFS'd.
11272 if test -f "$f"; then
11275 elif test -f "$srcdir/$f"; then
11280 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11281 echo "$as_me: error: cannot find input file: $f" >&2;}
11282 { (exit 1); exit 1; }; }
11285 done` ||
{ (exit 1); exit 1; }
11286 # Remove the trailing spaces.
11287 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11291 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11292 # `conftest.undefs', that substitutes the proper values into
11293 # config.h.in to produce config.h. The first handles `#define'
11294 # templates, and the second `#undef' templates.
11295 # And first: Protect against being on the right side of a sed subst in
11296 # config.status. Protect against being in an unquoted here document
11297 # in config.status.
11298 rm -f conftest.defines conftest.undefs
11299 # Using a here document instead of a string reduces the quoting nightmare.
11300 # Putting comments in sed scripts is not portable.
11302 # `end' is used to avoid that the second main sed command (meant for
11303 # 0-ary CPP macros) applies to n-ary macro definitions.
11304 # See the Autoconf documentation for `clear'.
11305 cat >confdef2sed.
sed <<\_ACEOF
11310 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11312 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11315 # If some macros were called several times there might be several times
11316 # the same #defines, which is useless. Nevertheless, we may not want to
11317 # sort them, since we want the *last* AC-DEFINE to be honored.
11318 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11319 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11320 rm -f confdef2sed.sed
11322 # This sed command replaces #undef with comments. This is necessary, for
11323 # example, in the case of _POSIX_SOURCE, which is predefined and required
11324 # on some systems where configure will not decide to define it.
11325 cat >>conftest.undefs <<\_ACEOF
11326 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11329 # Break up conftest.defines because some shells have a limit on the size
11330 # of here documents, and old seds have small limits too (100 cmds).
11331 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11332 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11333 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11334 echo ' :' >>$CONFIG_STATUS
11335 rm -f conftest.tail
11336 while grep . conftest.defines >/dev/null
11338 # Write a limited-size here document to $tmp/defines.sed.
11339 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11340 # Speed up: don't consider the non `#define' lines.
11341 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11342 # Work around the forget-to-reset-the-flag bug.
11343 echo 't clr' >>$CONFIG_STATUS
11344 echo ': clr' >>$CONFIG_STATUS
11345 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
11347 sed -f $tmp/defines.sed $tmp/in >$tmp/out
11349 mv $tmp/out $tmp/in
11351 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
11352 rm -f conftest.defines
11353 mv conftest.
tail conftest.defines
11355 rm -f conftest.defines
11356 echo ' fi # grep' >>$CONFIG_STATUS
11357 echo >>$CONFIG_STATUS
11359 # Break up conftest.undefs because some shells have a limit on the size
11360 # of here documents, and old seds have small limits too (100 cmds).
11361 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
11362 rm -f conftest.
tail
11363 while grep . conftest.undefs
>/dev
/null
11365 # Write a limited-size here document to $tmp/undefs.sed.
11366 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11367 # Speed up: don't consider the non
`#undef'
11368 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11369 # Work around the forget-to-reset-the-flag bug.
11370 echo 't clr' >>$CONFIG_STATUS
11371 echo ': clr' >>$CONFIG_STATUS
11372 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11374 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11376 mv $tmp/out $tmp/in
11378 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11379 rm -f conftest.undefs
11380 mv conftest.tail conftest.undefs
11382 rm -f conftest.undefs
11384 cat >>$CONFIG_STATUS <<\_ACEOF
11385 # Let's still pretend it is `configure
' which instantiates (i.e., don't
11386 # use $as_me), people would be surprised to read:
11387 # /* config.h. Generated by config.status. */
11388 if test x
"$ac_file" = x-
; then
11389 echo "/* Generated by configure. */" >$tmp/config.h
11391 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
11393 cat $tmp/in >>$tmp/config.h
11395 if test x
"$ac_file" != x-
; then
11396 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
11397 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11398 echo "$as_me: $ac_file is unchanged" >&6;}
11400 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
11401 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11402 X"$ac_file" : 'X\(//\)[^/]' \| \
11403 X"$ac_file" : 'X\(//\)$' \| \
11404 X"$ac_file" : 'X\(/\)' \| \
11405 . : '\(.\)' 2>/dev/null ||
11407 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11408 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11409 /^X\(\/\/\)$/{ s//\1/; q; }
11410 /^X\(\/\).*/{ s//\1/; q; }
11412 { if $as_mkdir_p; then
11413 test -d "$ac_dir" || mkdir
-p "$ac_dir"
11417 while test ! -d "$as_dir"; do
11418 as_dirs
="$as_dir $as_dirs"
11419 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
11420 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11421 X"$as_dir" : 'X\(//\)[^/]' \| \
11422 X"$as_dir" : 'X\(//\)$' \| \
11423 X"$as_dir" : 'X\(/\)' \| \
11424 . : '\(.\)' 2>/dev/null ||
11426 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11427 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11428 /^X\(\/\/\)$/{ s//\1/; q; }
11429 /^X\(\/\).*/{ s//\1/; q; }
11432 test ! -n "$as_dirs" || mkdir
$as_dirs
11433 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11434 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11435 { (exit 1); exit 1; }; }; }
11438 mv $tmp/config.h
$ac_file
11442 rm -f $tmp/config.h
11447 cat >>$CONFIG_STATUS <<\_ACEOF
11449 { (exit 0); exit 0; }
11451 chmod +x
$CONFIG_STATUS
11452 ac_clean_files
=$ac_clean_files_save
11455 # configure is writing to config.log, and then calls config.status.
11456 # config.status does its own redirection, appending to config.log.
11457 # Unfortunately, on DOS this fails, as config.log is still kept open
11458 # by configure, so config.status won't be able to write to it; its
11459 # output is simply discarded. So we exec the FD to /dev/null,
11460 # effectively closing config.log, so it can be properly (re)opened and
11461 # appended to by config.status. When coming back to configure, we
11462 # need to make the FD available again.
11463 if test "$no_create" != yes; then
11465 ac_config_status_args
=
11466 test "$silent" = yes &&
11467 ac_config_status_args
="$ac_config_status_args --quiet"
11469 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
11471 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11472 # would make configure fail if this is the last instruction.
11473 $ac_cs_success ||
{ (exit 1); exit 1; }
11477 if test -z "$groff_no_x"; then
11478 if test "x$with_appresdir" = "x"; then
11479 { echo "$as_me:$LINENO:
11481 The application resource file for gxditview will be installed as
11483 $appresdir/GXditview
11485 (an existing file will be saved as \`GXditview.old').
11486 To install it into a different directory, say, \`/etc/gxditview',
11487 add \`--with-appresdir=/etc/gxditview' to the configure script
11488 command line options and rerun it. The environment variable
11489 \`APPLRESDIR' must then be set to \`/etc/' (note the trailing slash),
11490 omitting the \`gxditview' part which is automatically appended by
11491 the X11 searching routines for resource files. More details can be
11492 found in the X(7) manual page.
11496 The application resource file for gxditview will be installed as
11498 $appresdir/GXditview
11500 (an existing file will be saved as \`GXditview.old').
11501 To install it into a different directory, say, \`/etc/gxditview',
11502 add \`--with-appresdir=/etc/gxditview' to the configure script
11503 command line options and rerun it. The environment variable
11504 \`APPLRESDIR' must then be set to \`/etc/' (note the trailing slash),
11505 omitting the \`gxditview' part which is automatically appended by
11506 the X11 searching routines for resource files. More details can be
11507 found in the X(7) manual page.