1 | # =========================================================================== |
---|
2 | # http://autoconf-archive.cryp.to/acltx_prog_makeindex.html |
---|
3 | # =========================================================================== |
---|
4 | # |
---|
5 | # SYNOPSIS |
---|
6 | # |
---|
7 | # ACLTX_PROG_MAKEINDEX([ACTION-IF-NOT-FOUND]) |
---|
8 | # |
---|
9 | # DESCRIPTION |
---|
10 | # |
---|
11 | # This macro find a makeindex application and set the variable makeindex |
---|
12 | # to the name of the application or to no if not found if |
---|
13 | # ACTION-IF-NOT-FOUND is not specified, configure fail when then |
---|
14 | # application is not found. |
---|
15 | # |
---|
16 | # LICENSE |
---|
17 | # |
---|
18 | # Copyright (c) 2008 Boretti Mathieu <boretti@eig.unige.ch> |
---|
19 | # |
---|
20 | # This library is free software; you can redistribute it and/or modify it |
---|
21 | # under the terms of the GNU Lesser General Public License as published by |
---|
22 | # the Free Software Foundation; either version 2.1 of the License, or (at |
---|
23 | # your option) any later version. |
---|
24 | # |
---|
25 | # This library is distributed in the hope that it will be useful, but |
---|
26 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
27 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser |
---|
28 | # General Public License for more details. |
---|
29 | # |
---|
30 | # You should have received a copy of the GNU Lesser General Public License |
---|
31 | # along with this library. If not, see <http://www.gnu.org/licenses/>. |
---|
32 | |
---|
33 | AC_DEFUN([ACLTX_PROG_MAKEINDEX],[ |
---|
34 | AC_CHECK_PROGS(makeindex,makeindex,no) |
---|
35 | if test $makeindex = "no" ; |
---|
36 | then |
---|
37 | ifelse($#,0,[AC_MSG_ERROR([Unable to find the makeindex application])], |
---|
38 | $1) |
---|
39 | fi |
---|
40 | ]) |
---|