]> git.proxmox.com Git - mirror_lxc.git/commitdiff
configure: support for the "docbook2man" utility to build the documentation
authorPeter Simons <simons@cryp.to>
Thu, 25 Apr 2013 10:20:30 +0000 (12:20 +0200)
committerStéphane Graber <stgraber@ubuntu.com>
Thu, 25 Apr 2013 13:29:51 +0000 (15:29 +0200)
This adds docbook2man as an alternative name for the docbook compiler.
As that name was used on Debian based systems for an older version of the tool,
this change also adds a check so that docbook2man is never used on Debian based
systems.

Reported-by: Peter Simons <simons@cryp.to>
Reported-by: Christian Bühler christian@cbuehler.de
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
configure.ac

index 7dc82cfbcb8db10be6758e5298d3ac93b312feaa..9b58bab3838d98b4ba6630aae2f4b84582e17c97 100644 (file)
@@ -66,8 +66,14 @@ AC_ARG_ENABLE([doc],
 if test "x$enable_doc" = "xyes" -o "x$enable_doc" = "xauto"; then
        db2xman=""
 
+       if test "x$with_distro" = "xdebian" -o "x$with_distro" = "xubuntu"; then
+               dbparsers="docbook2x-man db2x_docbook2man"
+       else
+               dbparsers="docbook2x-man db2x_docbook2man docbook2man"
+       fi
+
        AC_MSG_CHECKING(for docbook2x-man)
-       for name in docbook2x-man db2x_docbook2man; do
+       for name in ${dbparsers}; do
                if "$name" --help >/dev/null 2>&1; then
                        db2xman="$name"
                        break;