forked from Imagelibrary/binutils-gdb
* 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.
This commit is contained in:
@@ -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
|
||||
|
||||
# ------------------------- #
|
||||
|
||||
Reference in New Issue
Block a user