From: Sebastien Estienne Date: Sat, 6 Aug 2005 14:30:13 +0000 (+0000) Subject: * added support for XMLTOMAN in configure.ac (fetched from ifplugd) X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=1ca2effccb9f61094ecbeea405eaa40093b01efb;p=catta * added support for XMLTOMAN in configure.ac (fetched from ifplugd) git-svn-id: file:///home/lennart/svn/public/avahi/trunk@248 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- diff --git a/configure.ac b/configure.ac index 5da0054..3c554a9 100644 --- a/configure.ac +++ b/configure.ac @@ -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 #