aboutsummaryrefslogtreecommitdiff
path: root/gdb/configure.ac
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2007-01-09 14:58:57 +0000
committerDaniel Jacobowitz <drow@false.org>2007-01-09 14:58:57 +0000
commitca4ca11edda678ddafee7314829cc14c11a570ca (patch)
treee015f69dc34d4a370dacb95d4230098af790ddf1 /gdb/configure.ac
parent10a2343ede2c3b8c9123e275d7f2c42dbfc78981 (diff)
downloadgdb-ca4ca11edda678ddafee7314829cc14c11a570ca.zip
gdb-ca4ca11edda678ddafee7314829cc14c11a570ca.tar.gz
gdb-ca4ca11edda678ddafee7314829cc14c11a570ca.tar.bz2
* configure.ac: Check for XML_StopParser.
* xml-support.c (gdb_xml_body_text): Check for an error. (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser. (gdb_xml_end_element_wrapper): Likewise. * config.in, configure: Regenerated.
Diffstat (limited to 'gdb/configure.ac')
-rw-r--r--gdb/configure.ac5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/configure.ac b/gdb/configure.ac
index 563782e..3a55c51 100644
--- a/gdb/configure.ac
+++ b/gdb/configure.ac
@@ -325,6 +325,11 @@ AC_LIB_HAVE_LINKFLAGS([expat], [], [#include "expat.h"],
[XML_Parser p = XML_ParserCreate (0);])
if test "$HAVE_LIBEXPAT" != yes; then
AC_MSG_WARN([expat is missing or unusable; some features may be disabled.])
+else
+ save_LIBS=$LIBS
+ LIBS="$LIBS $LIBEXPAT"
+ AC_CHECK_FUNCS(XML_StopParser)
+ LIBS=$save_LIBS
fi
# ------------------------- #