1 AC_DEFUN([MOONLIGHT_CHECK_EXPAT],
3 AC_CHECK_HEADER(expat.h)
5 AC_MSG_CHECKING(for libexpat)
7 LDFLAGS_save="$LDFLAGS"
10 LDFLAGS="$LDFLAGS -lexpat"
13 AC_TRY_LINK_FUNC(XML_ParserCreateNS, have_expat_libs="yes", have_expat_libs="no")
15 LDFLAGS="$LDFLAGS_save"
18 if test "$have_expat_libs" = "no"; then
20 AC_MSG_ERROR([Failed to find suitable libexpat libraries. Please make sure that libexpat-2.0.x is installed.])