# HG changeset patch
# User Dan Smith <danms(a)us.ibm.com>
# Date 1202834750 28800
# Node ID 520d0cf3451a118877bf623b8927ff4f46a8e899
# Parent 5fc07aeb10b77e6560d3be415887842b61d69d95
[CU] Make libcmpiutil include libxml libraries/includes
As needed for the CIMXML EO parser
Signed-off-by: Dan Smith <danms(a)us.ibm.com>
diff -r 5fc07aeb10b7 -r 520d0cf3451a acinclude.m4
--- a/acinclude.m4 Mon Feb 11 15:52:26 2008 -0800
+++ b/acinclude.m4 Tue Feb 12 08:45:50 2008 -0800
@@ -92,3 +92,9 @@ AC_DEFUN([CHECK_BROKEN_CMPIFT],
]
)])
+AC_DEFUN([CHECK_LIBXML2],
+ [
+ PKG_CHECK_MODULES([LIBXML], [libxml-2.0])
+ CPPFLAGS="$CPPFLAGS $LIBXML_CFLAGS"
+ LDFLAGS="$LDFLAGS $LIBXML_LDFLAGS"
+ ])
diff -r 5fc07aeb10b7 -r 520d0cf3451a configure.ac
--- a/configure.ac Mon Feb 11 15:52:26 2008 -0800
+++ b/configure.ac Tue Feb 12 08:45:50 2008 -0800
@@ -50,6 +50,8 @@ AC_ARG_ENABLE([eoparser],
AM_CONDITIONAL([build_eoparser],[test x$eoparser = xyes])
+CHECK_LIBXML2
+
if test x${eoparser} = xyes; then
CFLAGS+=" -DHAVE_EOPARSER"
fi