Newer
Older
Handbook / configuration / include / ac_prog_latex.m4
  1. dnl @synopsis AC_PROG_LATEX
  2. dnl
  3. dnl This macro test if latex is installed. If latex is installed, it
  4. dnl set $latex to the right value
  5. dnl
  6. dnl @category LaTeX
  7. dnl @author Mathieu Boretti <boretti@bss-network.com>
  8. dnl @version 2005-01-21
  9. dnl @license GPLWithACException
  10.  
  11. AC_DEFUN([AC_PROG_LATEX],[
  12. AC_PATH_PROGS(latex,[latex elatex lambda],no)
  13. export latex;
  14. if test $latex = "no" ;
  15. then
  16. AC_MSG_ERROR([Unable to find a LaTeX application]);
  17. fi
  18. AC_SUBST(latex)
  19. ])