[project @ 2002-07-23 10:08:58 by simonmar]
authorsimonmar <unknown>
Tue, 23 Jul 2002 10:08:58 +0000 (10:08 +0000)
committersimonmar <unknown>
Tue, 23 Jul 2002 10:08:58 +0000 (10:08 +0000)
Add FPTOOLS_HADDOCK to detect an installed version of Haddock.

aclocal.m4

index 4542f41..e34db88 100644 (file)
@@ -1,4 +1,4 @@
-dnl $Id: aclocal.m4,v 1.106 2002/07/20 05:37:10 dons Exp $
+dnl $Id: aclocal.m4,v 1.107 2002/07/23 10:08:58 simonmar Exp $
 dnl 
 dnl Extra autoconf macros for the Glasgow fptools
 dnl
@@ -223,6 +223,26 @@ AC_SUBST(HappyVersion)
 ])
 
 dnl
+dnl Check for Haddock and version.  If there's no installed Haddock, we look
+dnl for a haddock source tree and point the build system at that instead.
+dnl
+AC_DEFUN(FPTOOLS_HADDOCK,
+[
+if test -d $srcdir/haddock; then
+   SrcTreeHaddockCmd=$hardtop/haddock/src/haddock-inplace
+fi
+if test x"$UseSrcTreeHaddock" = xYES; then
+  HaddockCmd=$SrcTreeHaddockCmd
+else
+  AC_PATH_PROG(HaddockCmd,haddock,$SrcTreeHaddockCmd)
+fi
+dnl Darn, I forgot to make Haddock print out its version number when
+dnl invoked with -v.  We could try generating some HTML and grepping
+dnl through that to find the version number, but I think we'll make
+dnl do without it for now.
+])
+
+dnl
 dnl What's the best way of doing context diffs?
 dnl
 dnl (NB: NeXTStep thinks diff'ing a file against itself is "trouble")