summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.am4
-rw-r--r--configure.in2
2 files changed, 5 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 7eb63487..ae954adb 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -71,6 +71,10 @@ ledger_LDADD = $(LIBOBJS) libledger.a -lboost_python -lpython$(PYTHON_VERSION)
else
ledger_LDADD = $(LIBOBJS) libledger.a
endif
+if HAVE_XMLPARSE
+ledger_CXXFLAGS += -DHAVE_XMLPARSE=1
+ledger_LDADD += -lxmlparse -lxmltok
+endif
if DEBUG
ledger_CXXFLAGS += -DDEBUG_LEVEL=4
endif
diff --git a/configure.in b/configure.in
index 6baf8fb4..c887fe06 100644
--- a/configure.in
+++ b/configure.in
@@ -98,7 +98,7 @@ if [test x$xml = xtrue ]; then
AC_TRY_LINK(
[#include <stdio.h>
extern "C" {
- #include <xmlparse.h> // expat XML parser
+ #include <xmlparse.h> // expat XML parser
}],
[XML_Parser parser = XML_ParserCreate(NULL);
return parser != NULL;],