Commit 5285a4d3 authored by Jack Moffitt's avatar Jack Moffitt
Browse files

AC_CHECK_FUNC is stupid. I can't take a parameter for what libs to

check, so the global variable LIBS must be set.  Added a save/restore
for the call.

svn path=/trunk/ices/; revision=2234
parent 1f862993
......@@ -102,7 +102,11 @@ if test -n "$XMLCONFIG"
then
XML_LIBS="`$XMLCONFIG --libs`"
CPPFLAGS="$CPPFLAGS `$XMLCONFIG --cflags`"
save_LIBS="$LIBS"
LIBS="$LIBS $XML_LIBS"
AC_CHECK_FUNC(xmlParseFile,, [AC_MSG_ERROR([There was a problem linking with libxml])])
LIBS="$save_LIBS"
save_LIBS=
else
AC_MSG_ERROR([xml-config could not be found])
fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment