Index: /trunk/psLib/configure.ac
===================================================================
--- /trunk/psLib/configure.ac	(revision 6830)
+++ /trunk/psLib/configure.ac	(revision 6831)
@@ -251,4 +251,16 @@
     [AC_MSG_ERROR([GNOME XML C parser is required.  Obtain it at http://www.xmlsoft.org or use --with-xml2-config to specify location.])])
 
+AC_MSG_CHECKING([xml2 version])
+XML_VERSION=`xml2-config --version`
+XML_VERSION_major=`echo $XML_VERSION | ${PERL} -pe 's|^(\d+).*|\1|'`
+XML_VERSION_minor=`echo $XML_VERSION | ${PERL} -pe 's|^(\d+)\.(\d+).*|\2|'`
+dnl First test the minimum version of 2.6
+if test $XML_VERSION_major -lt 2 || ( test $XML_VERSION_major -eq 2 && test $XML_VERSION_minor -lt 6 )
+then
+	AC_MSG_ERROR([requires libxml2 2.6.0 or greater, found $XML_VERSION.  Install newer version or use --with-xml2-config to specify another location.])
+else
+    AC_MSG_RESULT([$XML_VERSION... yes])
+fi
+
 AC_MSG_CHECKING([xml2 cflags])
 XML_CFLAGS="`${XML_CONFIG} --cflags`"
@@ -309,6 +321,4 @@
 dnl ------- restore CFLAGS / LDFLAGS (tests done) --------
 CFLAGS="${CFLAGS} -Wall -Werror"
-AC_MSG_RESULT([CFLAGS is ${CFLAGS}])
-AC_MSG_RESULT([LDFLAGS is ${LDFLAGS}])
 
 dnl ---------------- export variables --------------------
