~ubuntu-branches/ubuntu/hardy/gnome-commander/hardy

« back to all changes in this revision

Viewing changes to m4/gnome-doc-utils.m4

  • Committer: Bazaar Package Importer
  • Author(s): Michael Vogt
  • Date: 2006-06-13 15:39:48 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20060613153948-gvrt3mb2ddk5u62o
Tags: 1.2.0-3
added --disable-scrollkeeper on build

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
AC_OUTPUT_COMMANDS([
 
40
gdumk=`pkg-config --variable datadir gnome-doc-utils`/gnome-doc-utils/gnome-doc-utils.make
 
41
if test -f $srcdir/gnome-doc-utils.m4; then
 
42
  if ! cmp -s $srcdir/gnome-doc-utils.make gnome-doc-utils.make; then
 
43
    cp $srcdir/gnome-doc-utils.make gnome-doc-utils.make
 
44
  fi
 
45
else
 
46
  if ! cmp -s $gdumk gnome-doc-utils.make; then
 
47
    cp $gdumk gnome-doc-utils.make
 
48
  fi
 
49
fi
 
50
if ! grep 'gnome-doc-utils\.make' $ac_top_srcdir/Makefile.am >/dev/null; then
 
51
  echo gnome-doc-utils.make should be added to EXTRA_DIST in Makefile.am
 
52
fi
 
53
])
 
54
])