summaryrefslogtreecommitdiffstats
path: root/src/external
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2012-01-31 16:39:36 +0100
committerStephen Gallagher <sgallagh@redhat.com>2012-02-01 19:33:29 -0500
commit4d81fe27ced3d2e96866aeaf61661a925cb8edf1 (patch)
tree2490570d947acaca58e5e9a5196a34372154b037 /src/external
parent3989d650bec60c66c02bc72f7313acdc876aae58 (diff)
downloadsssd-4d81fe27ced3d2e96866aeaf61661a925cb8edf1.tar.gz
sssd-4d81fe27ced3d2e96866aeaf61661a925cb8edf1.tar.xz
sssd-4d81fe27ced3d2e96866aeaf61661a925cb8edf1.zip
Use profiling Docbook XSLT only if available, fall back to normal
Diffstat (limited to 'src/external')
-rw-r--r--src/external/docbook.m413
1 files changed, 5 insertions, 8 deletions
diff --git a/src/external/docbook.m4 b/src/external/docbook.m4
index cae89feb1..deb8632fa 100644
--- a/src/external/docbook.m4
+++ b/src/external/docbook.m4
@@ -10,15 +10,10 @@ AC_DEFUN([CHECK_XML_TOOLS],
if test ! -x "$XMLLINT"; then
AC_MSG_ERROR([Could not find xmllint])
fi
-
- AC_PATH_PROG([XMLCATALOG], [xmlcatalog])
- if test ! -x "$XMLCATALOG"; then
- AC_MSG_ERROR([Could not find xmlcatalog])
- fi
])
dnl Usage:
-dnl CHECK_STYLESHEET_URI(FILE, URI, [FRIENDLY-NAME])
+dnl CHECK_STYLESHEET_URI(FILE, URI, [FRIENDLY-NAME], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
dnl Checks if the XML catalog given by FILE exists and
dnl if a particular URI appears in the XML catalog
AC_DEFUN([CHECK_STYLESHEET],
@@ -26,10 +21,12 @@ AC_DEFUN([CHECK_STYLESHEET],
AC_CHECK_FILE($1, [], [AC_MSG_ERROR([could not find XML catalog])])
AC_MSG_CHECKING([for ifelse([$3],,[$2],[$3]) in XML catalog])
- if AC_RUN_LOG([$XMLCATALOG --noout "$1" "$2" >&2]); then
+ if AC_RUN_LOG([$XSLTPROC --catalogs --nonet --noout "$2" >&2]); then
AC_MSG_RESULT([yes])
+ m4_ifval([$4], [$4], [:])
else
- AC_MSG_ERROR([could not find ifelse([$3],,[$2],[$3]) in XML catalog])
+ AC_MSG_RESULT([no])
+ m4_ifval([$5], [$5], [:])
fi
])