[cairo-commit] 2 commits - configure.ac

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Jan 6 21:57:23 UTC 2021


 configure.ac |    8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

New commits:
commit 9508d25d6ac228ec13b21b54df6aa6f22b8a95f3
Merge: 414d0aee1 a012540d9
Author: Heiko Lewin <hlewin at gmx.de>
Date:   Wed Jan 6 21:57:21 2021 +0000

    Merge branch 'xml-requires-png' into 'master'
    
    autoconf: Reject --enable-xml --disable-png
    
    See merge request cairo/cairo!87

commit a012540d990f9baeccf8b7441c27a11acbc2a672
Author: Uli Schlachter <psychon at znc.in>
Date:   Sat Dec 19 11:10:13 2020 +0100

    autoconf: Reject --enable-xml --disable-png
    
    The xml surface depends on png. Before this commit, configuring with
    autogen.sh --disable-png --disable-svg --enable-xml resulted in a
    failing build:
    
    src/cairo-xml-surface.c: In function ‘_cairo_xml_emit_image’:
    src/cairo-xml-surface.c:673:14: error: implicit declaration of function
    ‘cairo_surface_write_to_png_stream’
    
    After this commit, configure instead rejects this combination with:
    
    checking whether cairo's xml surface backend feature could be enabled... no (requires --enable-png)
    configure: error:  xml surface backend feature could not be enabled
    
    Noticed-at: https://gitlab.freedesktop.org/cairo/cairo/-/merge_requests/67#note_644347
    Signed-off-by: Uli Schlachter <psychon at znc.in>

diff --git a/configure.ac b/configure.ac
index 8d23ae0c1..a0a06d109 100644
--- a/configure.ac
+++ b/configure.ac
@@ -715,8 +715,12 @@ CAIRO_ENABLE_SURFACE_BACKEND(recording, recording, always)
 CAIRO_ENABLE_SURFACE_BACKEND(observer, observer, always)
 CAIRO_ENABLE_SURFACE_BACKEND(tee, tee, no)
 CAIRO_ENABLE_SURFACE_BACKEND(xml, xml, no, [
-    use_xml=$have_libz
-    xml_NONPKGCONFIG_LIBS=-lz
+    if test "x$use_png" != "xyes"; then
+        use_xml="no (requires --enable-png)"
+    else
+        use_xml=$have_libz
+        xml_NONPKGCONFIG_LIBS=-lz
+    fi
 ])
 
 dnl ===========================================================================


More information about the cairo-commit mailing list