]> git.meshlink.io Git - catta/commitdiff
* added support for XMLTOMAN in configure.ac (fetched from ifplugd)
authorSebastien Estienne <sebastien.estienne@gmail.com>
Sat, 6 Aug 2005 14:30:13 +0000 (14:30 +0000)
committerSebastien Estienne <sebastien.estienne@gmail.com>
Sat, 6 Aug 2005 14:30:13 +0000 (14:30 +0000)
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@248 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

configure.ac

index 5da0054ed1deb2822f56ebe7ae3472e7824ea39e..3c554a93ebd59b1d4aa6d2a6eb4058237a198919 100644 (file)
@@ -109,6 +109,28 @@ DX_PDF_FEATURE(OFF)
 DX_PS_FEATURE(OFF)
 DX_INIT_DOXYGEN(avahi, doxygen.cfg, doxygen)
 
+#
+# XMLTOMAN manpage generation
+#
+AC_ARG_ENABLE(xmltoman,
+        AS_HELP_STRING(--disable-xmltoman,Disable rebuilding of man pages with xmltoman),
+[case "${enableval}" in
+  yes) xmltoman=yes ;;
+  no)  xmltoman=no ;;
+  *) AC_MSG_ERROR([bad value ${enableval} for --disable-xmltoman]) ;;
+esac],[xmltoman=yes])
+
+if test x$xmltoman = xyes ; then
+   AC_CHECK_PROG(have_xmltoman, xmltoman, yes, no)
+
+   if test x$have_xmltoman = xno ; then
+     AC_MSG_WARN([*** Not rebuilding man pages as xmltoman is not found ***])
+     xmltoman=no
+   fi
+fi
+
+AM_CONDITIONAL([USE_XMLTOMAN], [test "x$xmltoman" = xyes])
+
 #
 # D-BUS
 #