aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac4
-rw-r--r--doc/user/Makefile.am9
2 files changed, 13 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 1873a4e..11596a6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -47,6 +47,10 @@ GUILE_MODULE_REQUIRED([srfi srfi-35])
AC_PATH_PROG([LOUT], [lout])
AM_CONDITIONAL([HAVE_LOUT], [test "x$LOUT" != "x"])
+# Look for `ps2pdf' from GhostScript.
+AC_PATH_PROG([PS2PDF], [ps2pdf])
+AM_CONDITIONAL([HAVE_PS2PDF], [test "x$PS2PDF" != "x"])
+
# Look for Ploticus.
AC_PATH_PROGS([PLOTICUS], [ploticus pl])
AM_CONDITIONAL([HAVE_PLOTICUS], [test "x$PLOTICUS" != "x"])
diff --git a/doc/user/Makefile.am b/doc/user/Makefile.am
index 3a83b20..d9d11bd 100644
--- a/doc/user/Makefile.am
+++ b/doc/user/Makefile.am
@@ -23,7 +23,11 @@ load_path = $(top_srcdir)/src/guile:$(top_srcdir)/src/guile/skribilo/package:$(t
if HAVE_LOUT
+if HAVE_PS2PDF
+pdf_DATA = user.pdf
+else
ps_DATA = user.ps
+endif
.skb.lout:
GUILE_LOAD_PATH=$(load_path):$$GUILE_LOAD_PATH \
@@ -34,6 +38,11 @@ ps_DATA = user.ps
endif
+if HAVE_PS2PDF
+.ps.pdf:
+ $(PS2PDF) $(@:%.pdf=%.ps)
+endif
+
if HAVE_PLOTICUS
doc-config.scm:
-echo "(define %have-ploticus? #t)" > $@