PageRenderTime 24ms CodeModel.GetById 19ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 1ms

/build/m4/shamrock/monodoc.m4

http://github.com/hbons/SparkleShare
m4 | 25 lines | 21 code | 4 blank | 0 comment | 0 complexity | dc46759bff577957dad15b3a063ee41a MD5 | raw file
 1AC_DEFUN([SHAMROCK_CHECK_MONODOC],
 2[
 3	AC_ARG_ENABLE(docs, AC_HELP_STRING([--disable-docs], 
 4		[Do not build documentation]), , enable_docs=yes)
 5
 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])
10		fi
11
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])
15		fi
16
17		DOCDIR=`$PKG_CONFIG monodoc --variable=sourcesdir`
18		AC_SUBST(DOCDIR)
19		AM_CONDITIONAL(BUILD_DOCS, true)
20	else
21		AC_MSG_NOTICE([not building ${PACKAGE} API documentation])
22		AM_CONDITIONAL(BUILD_DOCS, false)
23	fi
24])
25