blob: b5dd9a8565d3c0ea852c8b15e6076cf571bdd232 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
$NetBSD: patch-ac,v 1.2 2012/12/25 21:04:32 joerg Exp $
--- configure.ac.orig 2006-12-24 18:43:36.000000000 +0000
+++ configure.ac
@@ -52,7 +52,10 @@ if test -n "$XML_CONFIG" && test -n "$TR
if test $LIBXML2_VERSION -eq 2616; then
AC_DEFINE([XML_SAVE_FORMAT], [1], [The libxml2 version 2.6.16 has no such option defined in the library headers])
fi
- if test $LIBXML2_VERSION -ge 2616; then
+ good_libxml2=no
+ case "$LIBXML2_VERSION" in 27*|28*|29*) good_libxml2=yes;; esac
+ test $LIBXML2_VERSION -ge 2616 && good_libxml2=yes
+ if test $good_libxml2 = yes; then
AC_DEFINE([HAVE_LIBXML2])
LIBXML2_LIBS="`$XML_CONFIG --libs`"
LIBXML2_CFLAGS="`$XML_CONFIG --cflags`"
|