build system: run xsltproc with higher maximum recursion depth

On macOS the default `xsltproc` installation has the same limit (3000)
as on Linux, but for some reason it exceeds that limit on
macOS. Bumping it to 10000 lets builds succeed on macOS, too.

Fixes #2754.
This commit is contained in:
Moritz Bunkus 2020-04-07 18:35:17 +02:00
parent e7951011a9
commit 9eb4a11b35
No known key found for this signature in database
GPG Key ID: 74AF00ADF2E32C85

View File

@ -31,7 +31,7 @@ else
fi fi
# It's just rude to go over the net to build # It's just rude to go over the net to build
XSLTPROC_FLAGS=--nonet XSLTPROC_FLAGS="--nonet --maxdepth 10000"
AC_ARG_WITH(xsltproc, AC_ARG_WITH(xsltproc,
AC_HELP_STRING([--with-xsltproc=prog],[use prog instead of looking for xsltproc]), AC_HELP_STRING([--with-xsltproc=prog],[use prog instead of looking for xsltproc]),
@ -52,7 +52,7 @@ AC_CACHE_CHECK([whether xsltproc works],
[ac_cv_xsltproc_works], [ac_cv_xsltproc_works],
[ [
ac_cv_xsltproc_works=no ac_cv_xsltproc_works=no
"$XSLTPROC" "$XSLTPROC_FLAGS" "$DOCBOOK_ROOT/manpages/docbook.xsl" >/dev/null 2>/dev/null << END "$XSLTPROC" $XSLTPROC_FLAGS "$DOCBOOK_ROOT/manpages/docbook.xsl" >/dev/null 2>/dev/null << END
<?xml version="1.0" encoding='ISO-8859-1'?> <?xml version="1.0" encoding='ISO-8859-1'?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"> <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
<book id="test"> <book id="test">