integrated in "make tests" added -q option, and more conditional features

* Makefile.am gentest.py testapi.c: integrated in "make tests"
  added -q option, and more conditional features fixes
* catalog.c debugXML.c parser.c testThreads.c xmllint.c
  xmlschemastypes.c xmlwriter.cinclude/libxml/catalog.h
  include/libxml/debugXML.h: various compilation and conditional
  cleanups.
* doc/*: regenerated
Daniel
diff --git a/xmlwriter.c b/xmlwriter.c
index 3255c67..099d3f0 100644
--- a/xmlwriter.c
+++ b/xmlwriter.c
@@ -4405,7 +4405,7 @@
             return;
         }
 #else
-        xmlWriterErrMsg(writer, XML_ERR_INTERNAL_ERROR,
+        xmlWriterErrMsg(NULL, XML_ERR_INTERNAL_ERROR,
                         "libxml2 built without HTML support\n");
         ctxt->errNo = XML_ERR_INTERNAL_ERROR;
         ctxt->instate = XML_PARSER_EOF;