Description: Fix FTBFS caused by xml2-config removal Author: Peter Blackman Bug-Debian: https://bugs.debian.org/949143 Last-Update: 2020-01-19 Index: b/configure.ac =================================================================== --- a/configure.ac +++ b/configure.ac @@ -70,13 +70,11 @@ if test "${enable_pthread}" = "yes" ; then AC_CHECK_LIB([pthread],[pthread_create],,[AC_MSG_WARN([Pthread library not found - threads disabled.])]) fi + AC_CHECK_LIB([jpeg],[jpeg_start_compress],,[AC_MSG_ERROR([The jpeg library is required.])]) -AC_PATH_PROG(XML2_CONFIG,xml2-config, no, $PATH:/bin:/usr/bin:/usr/local/bin) -if test "$XML2_CONFIG" != "no" -then - CPPFLAGS="`$XML2_CONFIG --cflags` $CPPFLAGS" -fi +PKG_CHECK_MODULES(XML, libxml-2.0) +#CPPFLAGS+=" -I${includedir}/libxml2" AC_OUTPUT([ Makefile Index: b/Makefile.am =================================================================== --- a/Makefile.am +++ b/Makefile.am @@ -35,3 +35,7 @@ pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = flam3.pc + +CPPFLAGS += $(XML_CFLAGS) +LDFLAGS += $(XML_LIBS) +