1
AC_DEFUN([SHAMROCK_CHECK_MONODOC],
3
AC_ARG_ENABLE(docs, AC_HELP_STRING([--disable-docs],
4
[Do not build documentation]), enable_docs=no, enable_docs=yes)
6
if test "x$enable_docs" = "xyes"; then
7
AC_PATH_PROG(MONODOCER, monodocer, no)
8
if test "x$MONODOCER" = "xno"; then
9
AC_MSG_ERROR([You need to install monodoc, or pass --disable-docs to configure to skip documentation installation])
12
AC_PATH_PROG(MDASSEMBLER, mdassembler, no)
13
if test "x$MDASSEMBLER" = "xno"; then
14
AC_MSG_ERROR([You need to install mdassembler, or pass --disable-docs to configure to skip documentation installation])
17
DOCDIR=`$PKG_CONFIG monodoc --variable=sourcesdir`
19
AM_CONDITIONAL(BUILD_DOCS, true)
21
AC_MSG_NOTICE([not building ${PACKAGE} API documentation])
22
AM_CONDITIONAL(BUILD_DOCS, false)