From eec3b52505aece7ca93a70b34b700b7dcc17001d Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Thu, 19 Jun 2008 11:39:23 -0700 Subject: [PATCH] doc: for ps to pdf conversion, use "acrodist", "ps2pdf" or "pstopdf" For PostScript to PDF conversion, use whichever of "acrodist", "ps2pdf", or "pstopdf" which we can find on the system. I haven't tried either acrodist or pstopdf myself, only going my the documentation, but prefer acrodist since it is claimed to produce smaller output files than ps2pdf. --- configure.in | 8 +++++--- doc/Makefile.in | 11 +++++++++-- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/configure.in b/configure.in index 9e79f349..0d536533 100644 --- a/configure.in +++ b/configure.in @@ -66,9 +66,11 @@ PA_ADD_CFLAGS([-Wall]) PA_ADD_CFLAGS([-std=c99]) PA_ADD_CFLAGS([-pedantic]) -dnl Look for "nroff" or "groff" -AC_CHECK_PROGS(NROFF, nroff, echo) -AC_SUBST(NROFF) +dnl Look for programs... +AC_CHECK_PROGS(NROFF, nroff, echo) +AC_CHECK_PROGS(ACRODIST, acrodist, false) +AC_CHECK_PROGS(PS2PDF, ps2pdf, false) +AC_CHECK_PROGS(PSTOPDF, pstopdf, false) dnl Checks for header files. AC_HEADER_STDC diff --git a/doc/Makefile.in b/doc/Makefile.in index 4f2328f0..cf283ecf 100644 --- a/doc/Makefile.in +++ b/doc/Makefile.in @@ -19,7 +19,12 @@ INSTALL_DATA = @INSTALL_DATA@ PERL = perl MAKEINFO = makeinfo TEXI2DVI = texi2dvi -PS2PDF = ps2pdf # Part of GhostScript +TEXI2IPF = texi2ipf +IPFC = ipfc + +ACRODIST = @ACRODIST@ # Acrobat Distiller +PSTOPDF = @PSTOPDF@ # BSD/MacOS X utility +PS2PDF = @PS2PDF@ # Part of GhostScript SRCS = nasmdoc.src OUT = info html nasmdoc.txt nasmdoc.ps nasmdoc.pdf @@ -57,7 +62,9 @@ nasmdoc.ps: nasmdoc.dip nasmlogo.eps $(srcdir)/../version genpsdriver.pl \ $(PERL) $(srcdir)/genpsdriver.pl > nasmdoc.ps nasmdoc.pdf: nasmdoc.ps - $(PS2PDF) nasmdoc.ps + $(ACRODIST) -n -q --nosecurity -o $@ $< || \ + $(PS2PDF) $< $@ || \ + $(PSTOPDF) $< -o $@ .PHONY: info info: info/nasm.info -- 2.11.4.GIT