]> git.ipfire.org Git - location/libloc.git/commitdiff
configure: Adjust man-pages switch with documentation
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 27 Nov 2020 15:27:08 +0000 (15:27 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 27 Nov 2020 15:27:08 +0000 (15:27 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Makefile.am
configure.ac

index ebd7e1771c896d479c9a1be0439e94803d86190c..dc594f8580f79f5f05ccfe1bed0950050c38ca81 100644 (file)
@@ -406,7 +406,7 @@ MANPAGES_XML  = $(patsubst %.txt,%.xml,$(MANPAGES_TXT))
 .PHONY: man
 man: $(MANPAGES) $(MANPAGES_HTML)
 
-if ENABLE_MANPAGES
+if ENABLE_MAN_PAGES
 man_MANS = \
        $(MANPAGES)
 endif
index 012d8ca3ab67eeb1565267cb6ee3427cfe3f32c0..9eb9012b1f5992dcc0b196120be653a5bbbf70b1 100644 (file)
@@ -43,16 +43,16 @@ AC_PROG_MKDIR_P
 
 # - man ------------------------------------------------------------------------
 
-have_manpages=no
-AC_ARG_ENABLE(manpages, AS_HELP_STRING([--disable-man-pages],
+have_man_pages=no
+AC_ARG_ENABLE(man_pages, AS_HELP_STRING([--disable-man-pages],
        [do not install man pages]))
-AS_IF([test "x$enable_manpages" != xno], [have_manpages=yes])
-AM_CONDITIONAL(ENABLE_MANPAGES, [test "x$have_manpages" = "xyes"])
+AS_IF([test "x$enable_man_pages" != xno], [have_man_pages=yes])
+AM_CONDITIONAL(ENABLE_MAN_PAGES, [test "x$have_man_pages" = "xyes"])
 
 AC_PATH_PROG([XSLTPROC], [xsltproc])
 
 AC_CHECK_PROGS(ASCIIDOC, [asciidoc])
-if test "${have_manpages}" = "yes" && test -z "${ASCIIDOC}"; then
+if test "${have_man_pages}" = "yes" && test -z "${ASCIIDOC}"; then
        AC_MSG_ERROR([Required program 'asciidoc' not found])
 fi
 # - debug ----------------------------------------------------------------------