2001-04-26 19:29:02 +00:00
|
|
|
dnl AM_PATH_XML2([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
|
2004-06-28 09:27:23 +00:00
|
|
|
dnl Test for XML, and define XML_CPPFLAGS and XML_LIBS
|
2001-04-26 07:43:59 +00:00
|
|
|
dnl
|
2022-11-23 03:07:56 +00:00
|
|
|
AC_DEFUN([AM_PATH_XML2],[
|
2023-04-29 19:48:50 +02:00
|
|
|
m4_warn([obsolete], [AM_PATH_XML2 is deprecated, use PKG_CHECK_MODULES instead])
|
2022-12-05 16:18:14 +00:00
|
|
|
AC_REQUIRE([PKG_PROG_PKG_CONFIG])
|
2001-04-26 19:29:02 +00:00
|
|
|
|
2022-12-05 16:18:14 +00:00
|
|
|
verdep=ifelse([$1], [], [], [">= $1"])
|
|
|
|
PKG_CHECK_MODULES(XML, [libxml-2.0 $verdep], [$2], [$3])
|
2001-04-26 19:29:02 +00:00
|
|
|
|
2022-12-05 16:18:14 +00:00
|
|
|
XML_CPPFLAGS=$XML_CFLAGS
|
2004-06-28 09:27:23 +00:00
|
|
|
AC_SUBST(XML_CPPFLAGS)
|
2001-04-26 19:29:02 +00:00
|
|
|
AC_SUBST(XML_LIBS)
|
2001-04-26 07:43:59 +00:00
|
|
|
])
|