]> git.ipfire.org Git - oddments/ddns.git/blobdiff - configure.ac
Add support for generating manpages.
[oddments/ddns.git] / configure.ac
index 4199a19384480867e909b899341f5c7ecf4ee46b..2d4c568f3445ce78c22bd1435293c30b22e0f494 100644 (file)
@@ -51,6 +51,8 @@ AC_PROG_LN_S
 AC_PROG_MKDIR_P
 AC_PROG_SED
 
 AC_PROG_MKDIR_P
 AC_PROG_SED
 
+AC_PATH_PROG([XSLTPROC], [xsltproc])
+
 # Python
 AM_PATH_PYTHON([2.7])
 
 # Python
 AM_PATH_PYTHON([2.7])
 
@@ -62,6 +64,14 @@ fi
 
 save_LIBS="$LIBS"
 
 
 save_LIBS="$LIBS"
 
+# ------------------------------------------------------------------------------
+have_manpages=no
+AC_ARG_ENABLE(manpages, AS_HELP_STRING([--disable-manpages], [disable manpages]))
+AS_IF([test "x$enable_manpages" != xno], [have_manpages=yes])
+AM_CONDITIONAL(ENABLE_MANPAGES, [test "x$have_manpages" = "xyes"])
+
+# ------------------------------------------------------------------------------
+
 AC_CONFIG_FILES([
        Makefile
        po/Makefile.in
 AC_CONFIG_FILES([
        Makefile
        po/Makefile.in
@@ -76,4 +86,6 @@ AC_MSG_RESULT([
        sysconfdir        : ${sysconfdir}
 
        nsupdate          : ${NSUPDATE}
        sysconfdir        : ${sysconfdir}
 
        nsupdate          : ${NSUPDATE}
+
+       Generate manpages : ${have_manpages}
 ])
 ])