/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

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