From: Michael Orlitzky Date: Mon, 7 Aug 2023 21:50:07 +0000 (-0400) Subject: Makefile.am,configure.ac: prepare for libxml2 X-Git-Tag: 0.0.1~12 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=6d4814828fcf329d64a1474e194751b2ac76be79;p=libsvgtiny-pixbuf.git Makefile.am,configure.ac: prepare for libxml2 I'm going to write my awful strstr-based XML parser with libxml2 soon. Have ./configure look for it and "make" use it. --- diff --git a/Makefile.am b/Makefile.am index 7d7e48e..9032a53 100644 --- a/Makefile.am +++ b/Makefile.am @@ -8,11 +8,13 @@ libpixbufloader_svg_la_CPPFLAGS = $(CAIRO_CFLAGS) \ $(GDKPIXBUF_CFLAGS) \ $(GTK4_CFLAGS) \ $(LIBSVGTINY_CFLAGS) \ + $(LIBXML2_CFLAGS) \ -DGDK_PIXBUF_ENABLE_BACKEND libpixbufloader_svg_la_LIBADD = $(CAIRO_LIBS) \ $(GDKPIXBUF_LIBS) \ $(GTK4_LIBS) \ - $(LIBSVGTINY_LIBS) + $(LIBSVGTINY_LIBS) \ + $(LIBXML2_LIBS) # Create foo.so instead of foo.so.x.y.z, and allow it to be # dlopen()ed. diff --git a/configure.ac b/configure.ac index 0e6978d..bca5c7c 100644 --- a/configure.ac +++ b/configure.ac @@ -10,6 +10,7 @@ PKG_CHECK_MODULES([CAIRO], [cairo]) PKG_CHECK_MODULES([GDKPIXBUF], [gdk-pixbuf-2.0]) PKG_CHECK_MODULES([GTK4], [gtk4]) PKG_CHECK_MODULES([LIBSVGTINY], [libsvgtiny]) +PKG_CHECK_MODULES([LIBXML2], [libxml-2.0]) AC_MSG_CHECKING([for gdk-pixbuf module location]) # Hack alert: we need to install our module into this specific