maintainer/run-distcheck.sh: fix to be executable from another system
[nautilus-actions.git] / m4 / fma-enable-docs.m4
blobae2972af86b4129c64394b64ad27a637e05a0c34
1 # FileManager-Actions
2 # A file-manager extension which offers configurable context menu actions.
4 # Copyright (C) 2005 The GNOME Foundation
5 # Copyright (C) 2006-2008 Frederic Ruaudel and others (see AUTHORS)
6 # Copyright (C) 2009-2015 Pierre Wieser and others (see AUTHORS)
8 # FileManager-Actions is free software; you can redistribute it and/or
9 # modify it under the terms of the GNU General Public License as
10 # published by the Free Software Foundation; either version 2 of
11 # the License, or (at your option) any later version.
13 # FileManager-Actions is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 # General Public License for more details.
18 # You should have received a copy of the GNU General Public License
19 # along with FileManager-Actions; see the file COPYING. If not, see
20 # <http://www.gnu.org/licenses/>.
22 # Authors:
23 #   Frederic Ruaudel <grumz@grumz.net>
24 #   Rodrigo Moya <rodrigo@gnome-db.org>
25 #   Pierre Wieser <pwieser@trychlos.org>
26 #   ... and many others (see AUTHORS)
28 # serial 5 rename as FMA_ENABLE_DOCS
30 dnl --enable-docs
31 dnl   This macro targets the maintainer and enable the generation of al
32 dnl   documentation stuff.
33 dnl   This is a shortcut for:
34 dnl   --enable-deprecated
35 dnl   --enable-gconf
36 dnl   --enable-scrollkeeper (omf generation)
37 dnl   --enable-gtk-doc
38 dnl   --enable-gtk-doc-html (html reference manual generation)
39 dnl   --enable-html-manuals (html user's guide manual generation)
40 dnl   --enable-pdf-manuals (pdf user's guide manual generation)
41 dnl
42 dnl usage:  FMA_ENABLE_DOCS
44 AC_DEFUN([FMA_ENABLE_DOCS],[
45         AC_REQUIRE([_AC_ARG_FMA_ENABLE_DOCS])dnl
47         AC_MSG_CHECKING([whether to build all the documentation stuff])
49         if test "${enable_docs}" = "yes"; then
50                 AC_MSG_RESULT([yes])
51                 enable_deprecated="yes"
52                 enable_gconf="yes"
53                 enable_scrollkeeper="yes"
54                 enable_gtk_doc="yes"
55                 enable_gtk_doc_html="yes"
56                 enable_html_manuals="yes"
57                 enable_pdf_manuals="yes"
58         else
59                 AC_MSG_RESULT([no])
60         fi
63 AC_DEFUN([_AC_ARG_FMA_ENABLE_DOCS],[
64         AC_ARG_ENABLE(
65                 [docs],
66                 AC_HELP_STRING(
67                         [--enable-docs@<:@no@:>@],
68                         [build all documentation @<:@gdt@:>@]),
69                         [enable_docs=$enableval],
70                         [enable_docs="no"])