Commit | Line | Data |
---|---|---|
fb2149fc MW |
1 | dnl -*-autoconf-*- |
2 | ||
0bef29cb MW |
3 | ### SYNOPSIS |
4 | ### | |
5 | ### mdw_MANEXT | |
6 | ### | |
7 | ### DESCRIPTION | |
8 | ### | |
9 | ### Define the `@manext@' substitution as an extension to append to manpage | |
10 | ### section names. | |
11 | ### | |
12 | ### A `--with-man-ext' command-line option is defined, which allows the end | |
13 | ### user to override the setting; otherwise it is set to DFLT. | |
14 | ### | |
15 | ### LICENSE | |
16 | ### | |
17 | ### Copyright (c) 2003 Mark Wooding <mdw@distorted.org.uk> | |
18 | ### | |
19 | ### This program is free software: you can redistribute it and/or modify it | |
20 | ### under the terms of the GNU General Public License as published by the | |
21 | ### Free Software Foundation, either version 2 of the License, or (at your | |
22 | ### option) any later version. | |
23 | ### | |
24 | ### This program is distributed in the hope that it will be useful, but | |
25 | ### WITHOUT ANY WARRANTY; without even the implied warranty of | |
26 | ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
27 | ### General Public License for more details. | |
28 | ### | |
29 | ### You should have received a copy of the GNU General Public License along | |
30 | ### with this program. If not, see <http://www.gnu.org/licenses/>. | |
31 | ### | |
32 | ### As a special exception, the respective Autoconf Macro's copyright owner | |
33 | ### gives unlimited permission to copy, distribute and modify the configure | |
34 | ### scripts that are the output of Autoconf when processing the Macro. You | |
35 | ### need not follow the terms of the GNU General Public License when using | |
36 | ### or distributing such scripts, even though portions of the text of the | |
37 | ### Macro appear in them. The GNU General Public License (GPL) does govern | |
38 | ### all other use of the material that constitutes the Autoconf Macro. | |
39 | ### | |
40 | ### This special exception to the GPL applies to versions of the Autoconf | |
41 | ### Macro released by the Autoconf Archive. When you make and distribute a | |
42 | ### modified version of the Autoconf Macro, you may extend this special | |
43 | ### exception to the GPL to apply to your modified version as well. | |
fb2149fc | 44 | |
0bef29cb | 45 | # serial 1 |
fb2149fc MW |
46 | AC_DEFUN([mdw_MANEXT], [ |
47 | AC_ARG_WITH([man-ext], | |
17cf912d MW |
48 | [AS_HELP_STRING([--with-man-ext=EXT], |
49 | [give manpages the EXT extension (e.g., foo.3EXT)])], | |
fb2149fc MW |
50 | [manext=$withval], [manext=mLib]) |
51 | AC_SUBST(manext)]) |