~ubuntu-branches/ubuntu/lucid/ido/lucid-proposed

« back to all changes in this revision

Viewing changes to build/autotools/gtk-doc.m4

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2010-06-08 19:39:32 UTC
  • mfrom: (20.1.1 ido)
  • Revision ID: james.westby@ubuntu.com-20100608193932-lg79huv5phykyqot
Tags: 0.1.6-0ubuntu1
New upstream version fixing indicator-sound theming issues (lp: #532234)

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
[
9
9
  AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
10
10
  AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
 
11
 
 
12
  dnl check for tools we added during development
 
13
  AC_PATH_PROG([GTKDOC_CHECK],[gtkdoc-check])
 
14
  AC_PATH_PROGS([GTKDOC_REBASE],[gtkdoc-rebase],[true])
 
15
  AC_PATH_PROG([GTKDOC_MKPDF],[gtkdoc-mkpdf])
 
16
 
11
17
  dnl for overriding the documentation installation directory
12
18
  AC_ARG_WITH([html-dir],
13
19
    AS_HELP_STRING([--with-html-dir=PATH], [path to installed docs]),,
26
32
      [PKG_CHECK_EXISTS([gtk-doc],,
27
33
                        AC_MSG_ERROR([gtk-doc not installed and --enable-gtk-doc requested]))],
28
34
      [PKG_CHECK_EXISTS([gtk-doc >= $1],,
29
 
                        AC_MSG_ERROR([You need to have gtk-doc >= $1 installed to build gtk-doc]))])
 
35
                        AC_MSG_ERROR([You need to have gtk-doc >= $1 installed to build $PACKAGE_NAME]))])
30
36
  fi
31
37
 
32
38
  AC_MSG_CHECKING([whether to build gtk-doc documentation])
33
39
  AC_MSG_RESULT($enable_gtk_doc)
34
40
 
35
 
  AC_PATH_PROGS(GTKDOC_CHECK,gtkdoc-check,)
 
41
  dnl enable/disable output formats
 
42
  AC_ARG_ENABLE([gtk-doc-html],
 
43
    AS_HELP_STRING([--enable-gtk-doc-html],
 
44
                   [build documentation in html format [[default=yes]]]),,
 
45
    [enable_gtk_doc_html=yes])
 
46
    AC_ARG_ENABLE([gtk-doc-pdf],
 
47
      AS_HELP_STRING([--enable-gtk-doc-pdf],
 
48
                     [build documentation in pdf format [[default=no]]]),,
 
49
      [enable_gtk_doc_pdf=no])
 
50
 
 
51
  if test -z "$GTKDOC_MKPDF"; then
 
52
    enable_gtk_doc_pdf=no
 
53
  fi
 
54
 
36
55
 
37
56
  AM_CONDITIONAL([ENABLE_GTK_DOC], [test x$enable_gtk_doc = xyes])
 
57
  AM_CONDITIONAL([GTK_DOC_BUILD_HTML], [test x$enable_gtk_doc_html = xyes])
 
58
  AM_CONDITIONAL([GTK_DOC_BUILD_PDF], [test x$enable_gtk_doc_pdf = xyes])
38
59
  AM_CONDITIONAL([GTK_DOC_USE_LIBTOOL], [test -n "$LIBTOOL"])
 
60
  AM_CONDITIONAL([GTK_DOC_USE_REBASE], [test -n "$GTKDOC_REBASE"])
39
61
])