~ubuntu-branches/ubuntu/trusty/libuser/trusty

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Ghe Rivero
  • Date: 2008-03-11 17:40:21 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20080311174021-vngcaurluxihaht4
Tags: 1:0.56.8.dfsg.1-1
* New upstream release
* New download homepage at copyright file
* Lintian clean: copyright-without-copyright-notice 

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
  AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
28
28
  AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
29
29
  dnl for overriding the documentation installation directory
30
 
  AC_ARG_WITH(html-dir,
31
 
    AC_HELP_STRING([--with-html-dir=PATH], [path to installed docs]),,
 
30
  AC_ARG_WITH([html-dir],
 
31
    AS_HELP_STRING([--with-html-dir=PATH], [path to installed docs]),,
32
32
    [with_html_dir='${datadir}/gtk-doc/html'])
33
33
  HTML_DIR="$with_html_dir"
34
 
  AC_SUBST(HTML_DIR)
 
34
  AC_SUBST([HTML_DIR])
35
35
 
36
36
  dnl enable/disable documentation building
37
 
  AC_ARG_ENABLE(gtk-doc,
38
 
    AC_HELP_STRING([--enable-gtk-doc],
39
 
                   [use gtk-doc to build documentation [default=no]]),,
40
 
    enable_gtk_doc=no)
 
37
  AC_ARG_ENABLE([gtk-doc],
 
38
    AS_HELP_STRING([--enable-gtk-doc],
 
39
                   [use gtk-doc to build documentation [[default=no]]]),,
 
40
    [enable_gtk_doc=no])
41
41
 
42
 
  have_gtk_doc=no
43
42
  if test x$enable_gtk_doc = xyes; then
44
 
    if test -z "$PKG_CONFIG"; then
45
 
      AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
46
 
    fi
47
 
    if test "$PKG_CONFIG" != "no" && $PKG_CONFIG --exists gtk-doc; then
48
 
      have_gtk_doc=yes
49
 
    fi
50
 
 
51
 
  dnl do we want to do a version check?
52
 
ifelse([$1],[],,
53
 
    [gtk_doc_min_version=$1
54
 
    if test "$have_gtk_doc" = yes; then
55
 
      AC_MSG_CHECKING([gtk-doc version >= $gtk_doc_min_version])
56
 
      if $PKG_CONFIG --atleast-version $gtk_doc_min_version gtk-doc; then
57
 
        AC_MSG_RESULT(yes)
58
 
      else
59
 
        AC_MSG_RESULT(no)
60
 
        have_gtk_doc=no
61
 
      fi
62
 
    fi
63
 
])
64
 
    if test "$have_gtk_doc" != yes; then
65
 
      enable_gtk_doc=no
66
 
    fi
 
43
    ifelse([$1],[],
 
44
      [PKG_CHECK_EXISTS([gtk-doc],,
 
45
                        AC_MSG_ERROR([gtk-doc not installed and --enable-gtk-doc requested]))],
 
46
      [PKG_CHECK_EXISTS([gtk-doc >= $1],,
 
47
                        AC_MSG_ERROR([You need to have gtk-doc >= $1 installed to build gtk-doc]))])
67
48
  fi
68
49
 
69
 
  AM_CONDITIONAL(ENABLE_GTK_DOC, test x$enable_gtk_doc = xyes)
70
 
  AM_CONDITIONAL(GTK_DOC_USE_LIBTOOL, test -n "$LIBTOOL")
 
50
  AC_MSG_CHECKING([whether to build gtk-doc documentation])
 
51
  AC_MSG_RESULT($enable_gtk_doc)
 
52
 
 
53
  AC_PATH_PROGS(GTKDOC_CHECK,gtkdoc-check,)
 
54
 
 
55
  AM_CONDITIONAL([ENABLE_GTK_DOC], [test x$enable_gtk_doc = xyes])
 
56
  AM_CONDITIONAL([GTK_DOC_USE_LIBTOOL], [test -n "$LIBTOOL"])
71
57
])
72
58
 
73
59
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-