Build: Replace use of deprecated AM_PATH_XML2
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 4 Oct 2016 18:37:57 +0000 (14:37 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 4 Oct 2016 18:37:57 +0000 (14:37 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
configure.ac
src/common/config/Makefile.am
tests/regression/tools/mi/Makefile.am

index 810e1f19dc51ec35482b200d6fb723f5bd0d80de..9b13e35931d46e1b3f4e6832af2bda70f533b4da 100644 (file)
@@ -324,7 +324,9 @@ PKG_CHECK_MODULES([POPT], [popt],
        ]
 )
 
-AM_PATH_XML2(2.7.6, true, AC_MSG_ERROR(No supported version of libxml2 found.))
+PKG_CHECK_MODULES([libxml2], [libxml-2.0 >= 2.7.6])
+AC_SUBST([XML_CFLAGS])
+AC_SUBST([XML_LIBS])
 
 # Check for uuid in system libs
 AC_CHECK_FUNCS([uuid_generate],
index 6e33d5b600e01d69c50b2297051b729dc9278d53..afc83f26f377b01e29f37f44fdbd69a658fa0df6 100644 (file)
@@ -4,8 +4,8 @@ noinst_LTLIBRARIES = libconfig.la
 
 libconfig_la_SOURCES = ini.c ini.h session-config.c session-config.h \
                config-session-abi.h config-internal.h
-libconfig_la_CPPFLAGS = $(XML_CPPFLAGS) $(AM_CPPFLAGS)
-libconfig_la_LIBADD = $(XML_LIBS)
+libconfig_la_CPPFLAGS = $(libxml2_CFLAGS) $(AM_CPPFLAGS)
+libconfig_la_LIBADD = ${libxml2_LIBS}
 
 xmldir = $(datadir)/xml/lttng
 dist_xml_DATA = session.xsd
index f5d5e2130bbe1de0ade5add9fd966a04e6d426de..f26efe0d0eec43160fd61de204f3500c6f8be410 100644 (file)
@@ -2,12 +2,12 @@ AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/src
 
 noinst_PROGRAMS = validate_xml extract_xml
 validate_xml_SOURCES = validate_xml.c
-validate_xml_CPPFLAGS = $(XML_CPPFLAGS) $(AM_CPPFLAGS)
-validate_xml_LDADD = $(XML_LIBS)
+validate_xml_CPPFLAGS = $(libxml2_CFLAGS) $(AM_CPPFLAGS)
+validate_xml_LDADD = $(libxml2_LIBS)
 
 extract_xml_SOURCES = extract_xml.c
-extract_xml_CPPFLAGS = $(XML_CPPFLAGS) $(AM_CPPFLAGS)
-extract_xml_LDADD = $(XML_LIBS)
+extract_xml_CPPFLAGS = $(libxml2_CFLAGS) $(AM_CPPFLAGS)
+extract_xml_LDADD = $(libxml2_LIBS)
 
 noinst_SCRIPTS = test_mi
 EXTRA_DIST = test_mi
This page took 0.040031 seconds and 5 git commands to generate.