summaryrefslogtreecommitdiff
path: root/Build/source/utils/xindy/m4/ac_prog_latex.m4
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/utils/xindy/m4/ac_prog_latex.m4')
-rw-r--r--Build/source/utils/xindy/m4/ac_prog_latex.m419
1 files changed, 19 insertions, 0 deletions
diff --git a/Build/source/utils/xindy/m4/ac_prog_latex.m4 b/Build/source/utils/xindy/m4/ac_prog_latex.m4
new file mode 100644
index 00000000000..450eaf91daf
--- /dev/null
+++ b/Build/source/utils/xindy/m4/ac_prog_latex.m4
@@ -0,0 +1,19 @@
+dnl @synopsis AC_PROG_LATEX
+dnl
+dnl This macro test if latex is installed. If latex is installed, it
+dnl set $latex to the right value
+dnl
+dnl @category LaTeX
+dnl @author Mathieu Boretti <boretti@bss-network.com>
+dnl @version 2005-01-21
+dnl @license GPLWithACException
+
+AC_DEFUN([AC_PROG_LATEX],[
+AC_CHECK_PROGS(latex,[latex elatex lambda],no)
+export latex;
+if test $latex = "no" ;
+then
+ AC_MSG_ERROR([Unable to find a LaTeX application]);
+fi
+AC_SUBST(latex)
+])