home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2006 November (DVD) / PCWELT_11_2006.ISO / casper / filesystem.squashfs / usr / share / aclocal / gnome-doc-utils.m4 < prev    next >
Encoding:
M4 Source File  |  2006-08-07  |  1.1 KB  |  40 lines

  1. dnl GNOME_DOC_INIT([MINIMUM-VERSION])
  2.  
  3. AC_DEFUN([GNOME_DOC_INIT],
  4. [
  5. dnl Only apply the version check if we're not configuring ourselves!
  6. if test "x$PACKAGE" != "xgnome-doc-utils"; then
  7.   GDU_REQUIRED_VERSION=0.3.2
  8.   if test -n "$1"; then
  9.     GDU_REQUIRED_VERSION=$1
  10.   fi
  11.  
  12.   PKG_CHECK_MODULES([GDU_MODULE_VERSION_CHECK],[gnome-doc-utils >= $GDU_REQUIRED_VERSION])
  13. fi
  14.  
  15. AC_ARG_WITH([help-dir],
  16.   AC_HELP_STRING([--with-help-dir=DIR], [path to help docs]),,
  17.   [with_help_dir='${datadir}/gnome/help'])
  18. HELP_DIR="$with_help_dir"
  19. AC_SUBST(HELP_DIR)
  20.  
  21. AC_ARG_WITH([omf-dir],
  22.   AC_HELP_STRING([--with-omf-dir=DIR], [path to OMF files]),,
  23.   [with_omf_dir='${datadir}/omf'])
  24. OMF_DIR="$with_omf_dir"
  25. AC_SUBST(OMF_DIR)
  26.  
  27. AC_ARG_WITH([help-formats],
  28.   AC_HELP_STRING([--with-help-formats=FORMATS], [list of formats]),,
  29.   [with_help_formats=''])
  30. DOC_USER_FORMATS="$with_help_formats"
  31. AC_SUBST(DOC_USER_FORMATS)
  32.  
  33. AC_ARG_ENABLE([scrollkeeper],
  34.     [AC_HELP_STRING([--disable-scrollkeeper],
  35.             [do not make updates to the scrollkeeper database])],,
  36.     enable_scrollkeeper=yes)
  37. AM_CONDITIONAL(ENABLE_SK, test "x$enable_scrollkeeper" = "xyes")
  38.  
  39. ])
  40.