+# libxml2 check
+AC_MSG_CHECKING([for libxml2 package information])
+if test "$PKG_CONFIG" = yes; then
+ if pkg-config --modversion libxml-2.0 >/dev/null 2>&1; then
+ AC_MSG_RESULT(yes)
+ else
+ AC_MSG_RESULT(no)
+ HAS_LIBXML=no
+ fi
+ if test "$HAS_LIBXML" != no; then
+ AC_CHECK_LIB(xml2, xmlReadFile, [HAS_LIBXML=yes], [HAS_LIBXML=no], `pkg-config --libs libxml-2.0`)
+ fi
+else
+ AC_MSG_RESULT(no)
+ HAS_LIBXML=no
+fi
+
+# Gtk GUI check