build system: Docbook: look for & prefer -nons XSL stylesheets

This commit is contained in:
Moritz Bunkus 2019-04-16 10:37:57 +02:00
parent 2556a08165
commit 3e8fa4b95e
No known key found for this signature in database
GPG Key ID: 74AF00ADF2E32C85

View File

@ -8,7 +8,11 @@ if ! test -z "$DOCBOOK_ROOT"; then
else
AC_MSG_CHECKING([for DocBook XSL root directory])
for i in /usr/share/xml/docbook/stylesheet/xsl/nwalsh /usr/share/xml/docbook/stylesheet/nwalsh `ls -d /usr/share/sgml/docbook/xsl-stylesheets* /usr/share/xml/docbook/xsl-stylesheets* 2> /dev/null`; do
for i in `ls -d /usr/share/xml/docbook/xsl-stylesheets*-nons 2> /dev/null` \
/usr/share/xml/docbook/stylesheet/xsl/nwalsh \
/usr/share/xml/docbook/stylesheet/nwalsh \
`ls -d /usr/share/sgml/docbook/xsl-stylesheets* /usr/share/xml/docbook/xsl-stylesheets* 2> /dev/null` \
; do
if test -f "$i/manpages/docbook.xsl"; then
DOCBOOK_ROOT="$i"
break