fi
+dnl
+dnl Search for db2pdf which is required for building PDF documentation
+dnl
+
+AC_PATH_PROG([DB2PDF], [db2pdf], [])
+if test "x$DB2PDF" = "x"; then
+ AC_MSG_WARN([db2pdf is not installed so PDF documentation cannot be built])
+fi
+
+
dnl
dnl Allow the user to specify the location of the html/docbook.xsl stylesheet
dnl
HTML_DOCBOOK_XSL=$(XSLBASE)/html/docbook.xsl
CHUNK_HTML_DOCBOOK_XSL=$(XSLBASE)/html/chunk.xsl
+# OpenJade's db2pdf script for PDF generation from DocBook
+DB2PDF = @DB2PDF@
+
# Directories for documentation and man pages
PGSQL_DOCDIR=@PGSQL_DOCDIR@
PGSQL_MANDIR=@PGSQL_MANDIR@
$(HTML_DOCBOOK_XSL) \
$<
+postgis.pdf: postgis-out.xml
+ @if test x"$(DB2PDF)" = x; then \
+ echo "Error: db2pdf not found, can't build posgis.pdf"; \
+ echo " try installing docbook-utils package and then re-run configure"; \
+ false; \
+ else \
+ $(DB2PDF) $< && mv postgis-out.pdf postgis.pdf; \
+ fi
+
clean:
@rm -f \
postgis-out.xml \