Correcting automake handling for --enable-man configure option that has never worked...
authorDaniel Baumann <daniel.baumann@progress-technologies.net>
Fri, 22 Jul 2011 09:35:39 +0000 (11:35 +0200)
committerMartin Bagge / brother <brother@bsnet.se>
Fri, 22 Jul 2011 10:30:40 +0000 (12:30 +0200)
configure.ac
man/Makefile.am

index a8c54a7..4a5666e 100644 (file)
@@ -31,11 +31,12 @@ AC_HEADER_STDC
 IT_PROG_INTLTOOL([0.40.0])
 
 AC_ARG_ENABLE(man,
-       [AC_HELP_STRING([--enable-man],
-               [regenerate roff man pages from Docbook @<:@default=yes@:>@])],
-       [enable_man="${enableval}"],
-       [enable_man=yes]
-)
+AC_HELP_STRING([--enable-man],[regenerate roff man pages from Docbook @<:@default=yes@:>@]),
+[case "${enableval}" in
+  yes)  enable_man=yes ;;
+  no)   enable_man=no ;;
+  *) AC_MSG_ERROR([bad value "${enableval}" for --enable-man, use "yes" (default) or "no".]) ;;
+esac],[])
 
 AC_ARG_ENABLE(more_warnings,
        [AC_HELP_STRING([--enable-more-warnings],
index cd867b5..d1f543a 100644 (file)
@@ -9,7 +9,7 @@ EXTRA_DIST = \
        $(man_XMANS)
 
 
-if ENABLE_REGENERATE_MAN
+if ENABLE_MAN
 
 lxappearance.1: lxappearance.xml
        $(XSLTPROC) -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<