1
dnl Checks for tools needed to generate manual pages
2
AC_DEFUN([CHECK_XML_TOOLS],
4
AC_PATH_PROG([XSLTPROC], [xsltproc])
5
if test ! -x "$XSLTPROC"; then
6
AC_MSG_ERROR([Could not find xsltproc])
9
AC_PATH_PROG([XMLLINT], [xmllint])
10
if test ! -x "$XMLLINT"; then
11
AC_MSG_ERROR([Could not find xmllint])
14
AC_PATH_PROG([XMLCATALOG], [xmlcatalog])
15
if test ! -x "$XMLCATALOG"; then
16
AC_MSG_ERROR([Could not find xmlcatalog])
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],
26
AC_CHECK_FILE($1, [], [AC_MSG_ERROR([could not find XML catalog])])
28
AC_MSG_CHECKING([for ifelse([$3],,[$2],[$3]) in XML catalog])
29
if AC_RUN_LOG([$XMLCATALOG --noout "$1" "$2" >&2]); then
32
AC_MSG_ERROR([could not find ifelse([$3],,[$2],[$3]) in XML catalog])