From 7234200b5e95f4374cedf568c54ac21de3380ac6 Mon Sep 17 00:00:00 2001 From: Yevgen Muntyan <17531749+muntyan@users.noreply.github.com> Date: Mon, 25 Jul 2005 13:33:33 +0000 Subject: [PATCH] Correct check for xmlReadFile and xmlParseFile --- acinclude.m4 | 34 ++-------------------------------- 1 file changed, 2 insertions(+), 32 deletions(-) diff --git a/acinclude.m4 b/acinclude.m4 index 820e241e..d623c4ad 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -342,39 +342,9 @@ AC_DEFUN([AC_CHECK_XML_STUFF],[ save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $XML_CFLAGS" save_LDFLAGS="$LDFLAGS" - LDFLAGS="$LDFLAGS $XML_LDFLAGS" + LDFLAGS="$LDFLAGS $XML_LIBS" - AC_MSG_CHECKING([for xmlParseFile]) - AC_COMPILE_IFELSE([AC_LANG_SOURCE([[ - #include - #include - int main () - { - xmlDoc *doc; - doc = xmlParseFile ("filename"); - return 0; - }]])],[ - AC_MSG_RESULT(found) - AC_DEFINE(HAVE_XMLPARSEFILE,1,[Define if libxml2 defines xmlParseFile]) - ],[ - AC_MSG_RESULT(not found) - ]) - - AC_MSG_CHECKING([for xmlReadFile]) - AC_COMPILE_IFELSE([AC_LANG_SOURCE([[ - #include - #include - int main () - { - xmlDoc *doc; - doc = xmlReadFile ("filename", NULL, 0); - return 0; - }]])],[ - AC_MSG_RESULT(found) - AC_DEFINE(HAVE_XMLREADFILE,1,[Define if libxml2 defines xmlReadFile]) - ],[ - AC_MSG_RESULT(not found) - ]) + AC_CHECK_FUNCS(xmlReadFile xmlParseFile) AC_MSG_CHECKING([for xmlNode.line]) AC_COMPILE_IFELSE([AC_LANG_SOURCE([[