https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89466

--- Comment #17 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Wed Feb 27 11:25:44 2019
New Revision: 269249

URL: https://gcc.gnu.org/viewcvs?rev=269249&root=gcc&view=rev
Log:
PR libstdc++/89466 avoid slow xsltproc command in configure

Certain broken versions of xsltproc ignore the --nonet option and will
attempt to fetch the docbook stylesheet from the WWW when it isn't in
the local XML catalog.

This patch checks for the local stylesheet directory first, and doesn't
use xsltproc if no local stylesheets are found. Checking for the local
directory is done using xmlcatalog if available, only checking the
hardcoded list of directories if xmlcatalog fails. The right directory
for Suse is added to the hardcoded list.

This should avoid doing an xsltproc check that would need to download
the stylesheet, so no network connection is made even if a broken
xsltproc is present.

        PR libstdc++/89466
        * acinclude.m4 (GLIBCXX_CONFIGURE_DOCBOOK): Reorder check for local
        stylesheet directories before check for xsltproc. Try to use
        xmlcatalog to find local stylesheet directory before trying hardcoded
        paths. Add path used by suse to hardcoded paths. Adjust xsltproc
        check to look for the same stylesheet as doc/Makefile.am uses. Don't
        use xsltproc if xmlcatalog fails to find a local stylesheet.
        * configure.ac: Check for xmlcatalog.
        * Makefile.in: Regenerate.
        * configure: Likewise.
        * doc/Makefile.in: Likewise.
        * include/Makefile.in: Likewise.
        * libsupc++/Makefile.in: Likewise.
        * po/Makefile.in: Likewise.
        * python/Makefile.in: Likewise.
        * src/Makefile.in: Likewise.
        * src/c++11/Makefile.in: Likewise.
        * src/c++17/Makefile.in: Likewise.
        * src/c++98/Makefile.in: Likewise.
        * src/filesystem/Makefile.in: Likewise.
        * testsuite/Makefile.in: Likewise.

Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/Makefile.in
    trunk/libstdc++-v3/acinclude.m4
    trunk/libstdc++-v3/configure
    trunk/libstdc++-v3/configure.ac
    trunk/libstdc++-v3/doc/Makefile.in
    trunk/libstdc++-v3/include/Makefile.in
    trunk/libstdc++-v3/libsupc++/Makefile.in
    trunk/libstdc++-v3/po/Makefile.in
    trunk/libstdc++-v3/python/Makefile.in
    trunk/libstdc++-v3/src/Makefile.in
    trunk/libstdc++-v3/src/c++11/Makefile.in
    trunk/libstdc++-v3/src/c++17/Makefile.in
    trunk/libstdc++-v3/src/c++98/Makefile.in
    trunk/libstdc++-v3/src/filesystem/Makefile.in
    trunk/libstdc++-v3/testsuite/Makefile.in

Reply via email to