documentation compilation bug?
David Relson
relson at osagesoftware.com
Tue Sep 2 22:10:54 CEST 2003
On Tue, 2 Sep 2003 14:16:57 -0500 (CDT)
Bob Friesenhahn <bfriesen at simple.dallas.tx.us> wrote:
> On Tue, 2 Sep 2003, Jason Rennie wrote:
>
> > I just tried compiling the current CVS bogofilter code. It barfed
> > because I don't have xmlto installed. Seems that configure should
> > have caught this problem, but it didn't.
>
> I have griped about this before. Unfortunately, 'xmlto' has a number
> of complex or obscure dependencies, some of which are totally
> unnecessary.
Bob and Jason,
Try the patch below and let me know if it works for you guys.
David
Index: configure.ac
===================================================================
RCS file: /cvsroot/bogofilter/bogofilter/configure.ac,v
retrieving revision 1.138
diff -u -r1.138 configure.ac
--- configure.ac 30 Aug 2003 13:10:28 -0000 1.138
+++ configure.ac 2 Sep 2003 20:05:33 -0000
@@ -394,6 +394,13 @@
fi
AM_CONDITIONAL(NEEDTRIO, test "$needtrio" = "1")
+dnl check if XMLTO is somewhere
+AC_CHECK_PROG(ac_cv_enable_xmlto, xmlto, yes, no)
+AC_MSG_CHECKING([whether xmlto is available])
+AC_MSG_RESULT($ac_cv_enable_xmlto)
+
+AM_CONDITIONAL(ENABLE_XMLTO, test x$ac_cv_enable_xmlto = xyes)
+
AC_CACHE_SAVE
if test "$sysconfdir" = "\${prefix}/etc" \
Index: doc/Makefile.am
===================================================================
RCS file: /cvsroot/bogofilter/bogofilter/doc/Makefile.am,v
retrieving revision 1.19
diff -u -r1.19 Makefile.am
--- doc/Makefile.am 4 Aug 2003 23:30:46 -0000 1.19
+++ doc/Makefile.am 2 Sep 2003 20:05:33 -0000
@@ -5,7 +5,10 @@
# what to build
man_MANS = bogofilter.1 bogoutil.1 bogoupgrade.1 bogolexer.1
+
+if ENABLE_XMLTO
html_MANS = bogofilter.html bogoutil.html bogoupgrade.html
bogolexer.html
+endif
all: $(man_MANS) $(html_MANS)
More information about the Bogofilter
mailing list