source: trunk/m4/ax_docutils.m4 @ 12

Revision 12, 672 bytes checked in by mmamonski, 10 years ago (diff)

version 1.0.7 release candidate

  • Property svn:keywords set to Id
Line 
1# $Id$
2#
3# SYNOPSIS
4#
5#   AX_DOCUTILS([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
6#
7# DESCRIPTION
8#
9#   Test for the Docutils -- Python driven reStructuredText processor.
10#   This macro calls (through AC_CHECK_PROGS)::
11#
12#     AC_SUBST(RST2HTML)
13#     AC_SUBST(RST2LATEX)
14#
15# LAST MODIFICATION
16#
17#   2007-12-14
18#
19# LICENSE
20#
21#   Written by Łukasz Cieśnik <lukasz.ciesnik@fedstage.com>
22#   and placed under Public Domain
23#
24
25AC_DEFUN([AX_DOCUTILS], [
26        AC_CHECK_PROGS([RST2HTML], [rst2html rst2html.py])
27        AC_CHECK_PROGS([RST2LATEX], [rst2latex rst2latex.py])
28        if test x$RST2HTML != x -a x$RST2LATEX != x; then
29                ifelse([$1], , :, [$1])
30        else
31                ifelse([$2], , :, [$2])
32        fi
33])
Note: See TracBrowser for help on using the repository browser.