2007-12-14 00:46:32 +00:00
|
|
|
AC_DEFUN([AM_PATH_LIBEXPAT],
|
|
|
|
[
|
|
|
|
LIBS_save=$LIBS
|
|
|
|
CPPFLAGS_save=$CPPFLAGS
|
|
|
|
|
2012-04-07 12:30:32 +00:00
|
|
|
LIBS="-lexpat $LIBS"
|
2007-12-14 00:46:32 +00:00
|
|
|
AC_CHECK_LIB([expat], [XML_ParserCreate], [have_libexpat=yes])
|
|
|
|
if test "x$have_libexpat" = "xyes"; then
|
|
|
|
AC_DEFINE([HAVE_LIBEXPAT], [1], [Define to 1 if you have libexpat.])
|
2012-04-07 12:30:32 +00:00
|
|
|
EXPAT_LIBS=-lexpat
|
|
|
|
EXPAT_CFLAGS=
|
2016-01-22 13:27:39 +00:00
|
|
|
AC_SUBST([EXPAT_LIBS])
|
|
|
|
AC_SUBST([EXPAT_CFLAGS])
|
2007-12-14 00:46:32 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
LIBS=$LIBS_save
|
|
|
|
CPPFLAGS=$CPPFLAGS_save
|
|
|
|
|
|
|
|
])
|