--- gst-plugins-base/configure.ac@@/DIST_GST-PLUGINS-BASE-0.10.13	2007-06-05 07:13:34.000000000 -0500
+++ gst-plugins-base/configure.ac	2007-07-16 14:28:23.000000000 -0500
@@ -196,6 +196,21 @@
 AC_CHECK_HEADERS([regex.h], HAVE_REGEX_H="yes", HAVE_REGEX_H="no")
 AM_CONDITIONAL(HAVE_REGEX_H, test "x$HAVE_REGEX_H" = "xyes")
 
+if test "x$HAVE_REGEX_H" = "xyes"; then
+  ac_cppflags_save="$CPPFLAGS"
+  CPPFLAGS="-Wall -Werror `$PKG_CONFIG --cflags libxml-2.0`"
+  AC_COMPILE_IFELSE(
+    AC_LANG_PROGRAM([
+#include <libxml/HTMLparser.h>
+                     ],[
+#ifndef LIBXML_HTML_ENABLED
+#error libxml2 has no HTML support
+#endif /* LIBXML_HTML_ENABLED */
+                     ]), HAVE_LIBXML_HTML=yes, HAVE_LIBXML_HTML=no)
+  AM_CONDITIONAL(HAVE_LIBXML_HTML, test "x$HAVE_LIBXML_HTML" = "xyes")
+  CPPFLAGS="$ac_cppflags_save"
+fi
+
 dnl used in gst/tcp
 AC_CHECK_HEADERS([sys/socket.h], 
   HAVE_SYS_SOCKET_H="yes", HAVE_SYS_SOCKET_H="no")
--- gst-plugins-base/gst/Makefile.am@@/DIST_GST-PLUGINS-BASE-0.10.13	2005-11-03 03:31:30.000000000 -0600
+++ gst-plugins-base/gst/Makefile.am	2007-07-16 13:26:10.000000000 -0500
@@ -1,8 +1,10 @@
 if HAVE_REGEX_H
+if HAVE_LIBXML_HTML
 SUBPARSE = subparse
 else
 SUBPARSE =
 endif
+endif
 
 if HAVE_SYS_SOCKET_H
 TCP = tcp
