~ubuntu-branches/ubuntu/saucy/sssd/saucy

« back to all changes in this revision

Viewing changes to server/external/docbook.m4

  • Committer: Stéphane Graber
  • Date: 2011-06-15 16:23:14 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: stgraber@ubuntu.com-20110615162314-rbhoppnpaxfqo5q7
Merge 1.5.8

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
dnl Checks for tools needed to generate manual pages
2
 
AC_DEFUN([CHECK_XML_TOOLS],
3
 
[
4
 
  AC_PATH_PROG([XSLTPROC], [xsltproc])
5
 
  if test ! -x "$XSLTPROC"; then
6
 
    AC_MSG_ERROR([Could not find xsltproc])
7
 
  fi
8
 
 
9
 
  AC_PATH_PROG([XMLLINT], [xmllint])
10
 
  if test ! -x "$XMLLINT"; then
11
 
    AC_MSG_ERROR([Could not find xmllint])
12
 
  fi
13
 
 
14
 
  AC_PATH_PROG([XMLCATALOG], [xmlcatalog])
15
 
  if test ! -x "$XMLCATALOG"; then
16
 
    AC_MSG_ERROR([Could not find xmlcatalog])
17
 
  fi
18
 
])
19
 
 
20
 
dnl Usage:
21
 
dnl   CHECK_STYLESHEET_URI(FILE, URI, [FRIENDLY-NAME])
22
 
dnl Checks if the XML catalog given by FILE exists and
23
 
dnl if a particular URI appears in the XML catalog
24
 
AC_DEFUN([CHECK_STYLESHEET],
25
 
[
26
 
  AC_CHECK_FILE($1, [], [AC_MSG_ERROR([could not find XML catalog])])
27
 
 
28
 
  AC_MSG_CHECKING([for ifelse([$3],,[$2],[$3]) in XML catalog])
29
 
  if AC_RUN_LOG([$XMLCATALOG --noout "$1" "$2" >&2]); then
30
 
    AC_MSG_RESULT([yes])
31
 
  else
32
 
    AC_MSG_ERROR([could not find ifelse([$3],,[$2],[$3]) in XML catalog])
33
 
  fi
34
 
])
35