SparkleShare/build/m4/shamrock/gnome-doc.m4
2011-09-14 02:09:03 +02:00

24 lines
868 B
Plaintext
Executable file

AC_DEFUN([SHAMROCK_CHECK_GNOME_DOC_UTILS],
[
AC_ARG_ENABLE([user-help],
AC_HELP_STRING([--enable-user-help], [Enable building the user-help [[default=auto]]]),,
enable_user_help=auto)
if test "x$enable_user_help" = "xauto"; then
PKG_CHECK_MODULES(GNOME_DOC_UTILS,
gnome-doc-utils,
enable_user_help=yes, enable_user_help=no)
elif test "x$enable_user_help" = "xyes"; then
PKG_CHECK_MODULES(GNOME_DOC_UTILS, gnome-doc-utils)
fi
# GNOME_DOC_INIT sets ENABLE_SK, but if we have disabled
# user docs, then this needs to be defined manually.
AM_CONDITIONAL(ENABLE_SK, false)
if test "x$enable_user_help" = "xyes"; then
GNOME_DOC_INIT([$1], enable_user_help=yes, enable_user_help=no)
fi
AM_CONDITIONAL(HAVE_GNOME_DOC_UTILS, test "x$enable_user_help" = "xyes")
])