mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-04 14:30:21 +01:00
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@znc.in>
This commit is contained in:
parent
7b258a2fb8
commit
a012540d99
1 changed files with 6 additions and 2 deletions
|
|
@ -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 ===========================================================================
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue