/build/m4/shamrock/gnome-doc.m4

http://github.com/hbons/SparkleShare · m4 · 23 lines · 18 code · 3 blank · 2 comment · 0 complexity · d1a7f741a0cf6520bcbc67d98cfa66b4 MD5 · raw file

  1. AC_DEFUN([SHAMROCK_CHECK_GNOME_DOC_UTILS],
  2. [
  3. AC_ARG_ENABLE([user-help],
  4. AC_HELP_STRING([--enable-user-help], [Enable building the user-help [[default=auto]]]),,
  5. enable_user_help=auto)
  6. if test "x$enable_user_help" = "xauto"; then
  7. PKG_CHECK_MODULES(GNOME_DOC_UTILS,
  8. gnome-doc-utils,
  9. enable_user_help=yes, enable_user_help=no)
  10. elif test "x$enable_user_help" = "xyes"; then
  11. PKG_CHECK_MODULES(GNOME_DOC_UTILS, gnome-doc-utils)
  12. fi
  13. # GNOME_DOC_INIT sets ENABLE_SK, but if we have disabled
  14. # user docs, then this needs to be defined manually.
  15. AM_CONDITIONAL(ENABLE_SK, false)
  16. if test "x$enable_user_help" = "xyes"; then
  17. GNOME_DOC_INIT([$1], enable_user_help=yes, enable_user_help=no)
  18. fi
  19. AM_CONDITIONAL(HAVE_GNOME_DOC_UTILS, test "x$enable_user_help" = "xyes")
  20. ])