File enblend-latex-optional.patch of Package enblend-enfuse
--- a/configure.ac
+++ b/configure.ac
@@ -316,15 +316,9 @@
can_build_doc=yes
-AC_PATH_PROGS(LATEX, [latex elatex lambda],
- [AC_MSG_WARN(missing LaTeX translator)
- can_build_doc=no
- missing_for_doc="$missing_for_doc latex"])
-AC_PATH_PROG(PDFLATEX, pdflatex,
- [AC_MSG_WARN([missing PDFLaTeX translator -- no direct translation of LaTeX to PDF available])
- missing_for_doc="$missing_for_doc pdflatex"])
-
-if test "$latex" != 'no'
+AC_PATH_PROGS(LATEX, [latex elatex lambda])
+
+if test -n "$LATEX"
then
AC_LATEX_CLASS(report,report,[],
[AC_MSG_WARN(missing document class report.cls)
@@ -351,6 +345,10 @@
[AC_MSG_WARN(missing LaTeX package package_name)
can_build_doc=no
missing_for_doc="$missing_for_doc package_name.sty"])])
+else
+ AC_MSG_WARN(missing LaTeX translator)
+ can_build_doc=no
+ missing_for_doc="$missing_for_doc latex"
fi
if test "$PERL" != false; then
@@ -381,6 +379,13 @@
fi
+AC_PATH_PROG(PDFLATEX, pdflatex)
+if test -z "$PDFLATEX"; then
+ AC_MSG_WARN([missing PDFLaTeX translator -- no direct translation of LaTeX to PDF available])
+ missing_for_doc="$missing_for_doc pdflatex"
+fi
+
+
AC_PATH_PROG(TEXLOGANALYSER, texloganalyser, cat)
if test "$TEXLOGANALYSER" = cat; then
AC_MSG_WARN([cannot find texloganalyser; will substitute cat(1)])