Adding a configure option to remove tree manipulation code which is not

* configure.in entities.c tree.c valid.c xmllint.c
  include/libxml/tree.h include/libxml/xmlversion.h.in:
  Adding a configure option to remove tree manipulation
  code which is not strictly needed by the parser.
Daniel
diff --git a/configure.in b/configure.in
index 7b74776..16176cc 100644
--- a/configure.in
+++ b/configure.in
@@ -528,7 +528,7 @@
 fi
 
 AC_ARG_WITH(output,
-[  --with-output              add the serialization support (on)])
+[  --with-output           add the serialization support (on)])
 if test "$with_minimum" = "yes" -a "$with_output" = ""
 then
     with_output=no
@@ -541,6 +541,20 @@
 fi
 AC_SUBST(WITH_OUTPUT)
 
+AC_ARG_WITH(tree,
+[  --with-tree             add the DOM like tree manipulation APIs (on)])
+if test "$with_minimum" = "yes" -a "$with_tree" = ""
+then
+    with_tree=no
+fi
+if test "$with_tree" = "no" ; then
+    echo Disabling DOM like tree manipulation APIs
+    WITH_TREE=0
+else    
+    WITH_TREE=1
+fi
+AC_SUBST(WITH_TREE)
+
 AC_ARG_WITH(ftp,
 [  --with-ftp              add the FTP support (on)])
 if test "$with_minimum" = "yes" -a "$with_ftp" = ""
@@ -596,7 +610,7 @@
 AC_SUBST(TEST_HTML)
 
 AC_ARG_WITH(legacy,
-[  --with-legacy             add deprecated APIs for compatibility (on)])
+[  --with-legacy           add deprecated APIs for compatibility (on)])
 if test "$with_minimum" = "yes" -a "$with_legacy" = ""
 then
     with_legacy=no