summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorTom Lane2012-08-17 04:05:26 +0000
committerTom Lane2012-08-17 04:05:26 +0000
commit470d0b9789981bc91a8ef2654911d80ab6a6be57 (patch)
tree86802b7e189e61fe97f13aee1dc0c692c0d7a65e /configure.in
parent305557984dd964ac397c6752e9d0f14646b60f15 (diff)
Check LIBXML_VERSION instead of testing in configure script.
We had put a test for libxml2's xmlStructuredErrorContext variable in configure, but of course that doesn't work on Windows builds. The next best alternative seems to be to test the LIBXML_VERSION symbol provided by xmlversion.h. Per report from Talha Bin Rizwan, though this fixes it in a different way than his proposed patch.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in17
1 files changed, 0 insertions, 17 deletions
diff --git a/configure.in b/configure.in
index 8ed09f58ab..fa48a2b207 100644
--- a/configure.in
+++ b/configure.in
@@ -1539,23 +1539,6 @@ AC_SUBST(LDAP_LIBS_FE)
AC_SUBST(LDAP_LIBS_BE)
-# Older versions of libxml2 lack the xmlStructuredErrorContext variable
-# (which could be a macro referring to a function, if threading is enabled)
-if test "$with_libxml" = yes ; then
- AC_CACHE_CHECK([for xmlStructuredErrorContext], pgac_cv_libxml_structerrctx,
- [AC_TRY_LINK([#include <libxml/globals.h>
- void *globptr;],
- [globptr = xmlStructuredErrorContext],
- [pgac_cv_libxml_structerrctx=yes],
- [pgac_cv_libxml_structerrctx=no])])
- if test x"$pgac_cv_libxml_structerrctx" = x"yes"; then
- AC_DEFINE(HAVE_XMLSTRUCTUREDERRORCONTEXT,
- 1,
- [Define to 1 if your libxml has xmlStructuredErrorContext.])
- fi
-fi
-
-
# This test makes sure that run tests work at all. Sometimes a shared
# library is found by the linker, but the runtime linker can't find it.
# This check should come after all modifications of compiler or linker