~ubuntu-branches/ubuntu/lucid/gnome-doc-utils/lucid

« back to all changes in this revision

Viewing changes to gnome-doc-utils.m4

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2005-12-19 08:34:21 UTC
  • mto: (2.1.1 etch) (1.1.18 upstream)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20051219083421-k72rkh3n6vox1c0t
Tags: upstream-0.5.2
ImportĀ upstreamĀ versionĀ 0.5.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
dnl GNOME_DOC_INIT
 
1
dnl GNOME_DOC_INIT([MINIMUM-VERSION])
2
2
 
3
3
AC_DEFUN([GNOME_DOC_INIT],
4
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
 
5
15
AC_ARG_WITH([help-dir],
6
16
  AC_HELP_STRING([--with-help-dir=DIR], [path to help docs]),,
7
17
  [with_help_dir='${datadir}/gnome/help'])
20
30
DOC_USER_FORMATS="$with_help_formats"
21
31
AC_SUBST(DOC_USER_FORMATS)
22
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
 
23
39
AC_OUTPUT_COMMANDS([
24
 
gdumk=`pkg-config --variable prefix gnome-doc-utils`/share/gnome-doc-utils/gnome-doc-utils.make
25
 
if ! test -f gnome-doc-utils.m4; then
 
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
26
46
  if ! cmp -s $gdumk gnome-doc-utils.make; then
27
 
    cp $gdumk .
 
47
    cp $gdumk gnome-doc-utils.make
28
48
  fi
29
49
fi
30
 
if ! grep -q 'gnome-doc-utils\.make' Makefile.am; then
 
50
if ! grep 'gnome-doc-utils\.make' $ac_top_srcdir/Makefile.am >/dev/null; then
31
51
  echo gnome-doc-utils.make should be added to EXTRA_DIST in Makefile.am
32
52
fi
33
53
])