From 14d401376f3fe4c003af89b4683b4e8a0d245380 Mon Sep 17 00:00:00 2001 From: Ian Abbott Date: Tue, 1 May 2012 18:03:57 +0100 Subject: [PATCH] configure: Avoid PDF generation by default if don't have dblatex Changed handling of --with-pdf-backend[=yes] to avoid picking the default xmlto backend for PDF generation because it's broken. The default xmlto backend for PDF generation can still be selected using --with-pdf-backend=default if you really want to try it. --- configure.ac | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 428e07c..97c848e 100644 --- a/configure.ac +++ b/configure.ac @@ -197,7 +197,15 @@ if test "$XMLTO" != "no"; then # Prefer dblatex, then default backend. # Could use [dblatex fop] to prefer dblatex or fop. AC_CHECK_PROGS([PDF_BACKEND], [dblatex], [default]) - AC_MSG_NOTICE([Will use $PDF_BACKEND backend for PDF generation]) + # The default backend is broken, so avoid it for now. + if test "$PDF_BACKEND" = "default"; then + AC_MSG_WARN([Default PDF backend is broken, disabling PDF generation]) + AC_MSG_WARN([(dblatex is recommended for PDF generation)]) + PDF_BACKEND="no" + fi + if test "$PDF_BACKEND" != "no"; then + AC_MSG_NOTICE([Will use $PDF_BACKEND backend for PDF generation]) + fi ;; default) # Use xmlto's default backend. -- 2.26.2