diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2010-02-17 09:14:40 -0500 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2010-02-18 13:48:44 -0500 |
commit | 8e9ac4d7443939ed0d152708d3877b29252d16fe (patch) | |
tree | b857cd509655146456b0ad624db527c1c3c366f3 /server/sss_client/external/docbook.m4 | |
parent | 29e9f5e711a03135944e30ad241c8182dacc6049 (diff) | |
download | sssd-8e9ac4d7443939ed0d152708d3877b29252d16fe.tar.gz sssd-8e9ac4d7443939ed0d152708d3877b29252d16fe.tar.bz2 sssd-8e9ac4d7443939ed0d152708d3877b29252d16fe.zip |
Eliminate separate build tree for sss_client
Diffstat (limited to 'server/sss_client/external/docbook.m4')
-rw-r--r-- | server/sss_client/external/docbook.m4 | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/server/sss_client/external/docbook.m4 b/server/sss_client/external/docbook.m4 new file mode 100644 index 00000000..cae89feb --- /dev/null +++ b/server/sss_client/external/docbook.m4 @@ -0,0 +1,35 @@ +dnl Checks for tools needed to generate manual pages +AC_DEFUN([CHECK_XML_TOOLS], +[ + AC_PATH_PROG([XSLTPROC], [xsltproc]) + if test ! -x "$XSLTPROC"; then + AC_MSG_ERROR([Could not find xsltproc]) + fi + + AC_PATH_PROG([XMLLINT], [xmllint]) + 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 Checks if the XML catalog given by FILE exists and +dnl if a particular URI appears in the XML catalog +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 + AC_MSG_RESULT([yes]) + else + AC_MSG_ERROR([could not find ifelse([$3],,[$2],[$3]) in XML catalog]) + fi +]) + |