summaryrefslogtreecommitdiffstats
path: root/gnulib-local
diff options
context:
space:
mode:
authorDaniel Burr <dburr@dburr.net>2016-05-28 09:30:00 +0900
committerDaiki Ueno <ueno@gnu.org>2016-05-28 09:33:24 +0900
commit7a8f93d8de8f24a303c5aec30ceb696700a503ec (patch)
tree21adf5f186336043c20b55da715246c213b43941 /gnulib-local
parent4bbb204a5586c9d2f0158dfc1f738c0e57395d96 (diff)
downloadexternal_gettext-7a8f93d8de8f24a303c5aec30ceb696700a503ec.zip
external_gettext-7a8f93d8de8f24a303c5aec30ceb696700a503ec.tar.gz
external_gettext-7a8f93d8de8f24a303c5aec30ceb696700a503ec.tar.bz2
build: Make libxml2 check tighter
* gnulib-local/m4/libxml.m4 (gl_LIBXML): Try to check xmlXPathSetContextNode, which is available in libxml2 2.9.1 or later. Problem reported by Dominyk in: http://savannah.gnu.org/bugs/?46844 Copyright-paperwork-exempt: yes
Diffstat (limited to 'gnulib-local')
-rw-r--r--gnulib-local/m4/libxml.m418
1 files changed, 15 insertions, 3 deletions
diff --git a/gnulib-local/m4/libxml.m4 b/gnulib-local/m4/libxml.m4
index 3edca0f..480c700 100644
--- a/gnulib-local/m4/libxml.m4
+++ b/gnulib-local/m4/libxml.m4
@@ -44,8 +44,12 @@ AC_DEFUN([gl_LIBXML],
LIBS="$gl_save_LIBS $LIBXML2 $LIBICONV"
AC_TRY_LINK([#include <libxml/xmlversion.h>
#include <libxml/xmlmemory.h>
+ #include <libxml/xpath.h>
],
- [xmlCheckVersion (0); xmlFree ((void *) 0);],
+ [xmlCheckVersion (0);
+ xmlFree ((void *) 0);
+ xmlXPathSetContextNode ((void *)0, (void *)0);
+ ],
[gl_cv_libxml=yes
gl_cv_LIBXML="$LIBXML2 $LIBICONV"
gl_cv_LTLIBXML="$LTLIBXML2 $LTLIBICONV"
@@ -55,8 +59,12 @@ AC_DEFUN([gl_LIBXML],
CPPFLAGS="$CPPFLAGS $INCXML2"
AC_TRY_LINK([#include <libxml/xmlversion.h>
#include <libxml/xmlmemory.h>
+ #include <libxml/xpath.h>
],
- [xmlCheckVersion (0); xmlFree ((void *) 0);],
+ [xmlCheckVersion (0);
+ xmlFree ((void *) 0);
+ xmlXPathSetContextNode ((void *)0, (void *)0);
+ ],
[gl_cv_libxml=yes
gl_cv_LIBXML="$LIBXML2 $LIBICONV"
gl_cv_LTLIBXML="$LTLIBXML2 $LTLIBICONV"
@@ -82,8 +90,12 @@ AC_DEFUN([gl_LIBXML],
CPPFLAGS="$gl_save_CPPFLAGS -I$libxml2_include_dir"
AC_TRY_LINK([#include <libxml/xmlversion.h>
#include <libxml/xmlmemory.h>
+ #include <libxml/xpath.h>
],
- [xmlCheckVersion (0); xmlFree ((void *) 0);],
+ [xmlCheckVersion (0);
+ xmlFree ((void *) 0);
+ xmlXPathSetContextNode ((void *)0, (void *)0);
+ ],
[gl_cv_libxml=yes
gl_cv_LIBXML="$LIBXML2 $LIBICONV"
gl_cv_LTLIBXML="$LTLIBXML2 $LTLIBICONV"