Merge branch 'xml-requires-png' into 'master'

autoconf: Reject --enable-xml --disable-png

See merge request cairo/cairo!87
This commit is contained in:
Heiko Lewin 2021-01-06 21:57:21 +00:00
commit 9508d25d6a

View file

@ -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 ===========================================================================