Thanks Sean Bright (seanbright) for all your help on the #asterisk-dev channel with this patch.<br><br>Eliel Sardaņons<br>LU1ALY<br><br><div class="gmail_quote">On Tue, Oct 21, 2008 at 9:22 PM, SVN commits to the Asterisk project <span dir="ltr"><<a href="mailto:asterisk-commits@lists.digium.com">asterisk-commits@lists.digium.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Author: eliel<br>
Date: Tue Oct 21 18:22:37 2008<br>
New Revision: 151422<br>
<br>
URL: <a href="http://svn.digium.com/view/asterisk?view=rev&rev=151422" target="_blank">http://svn.digium.com/view/asterisk?view=rev&rev=151422</a><br>
Log:<br>
Make libxml2 not a mandatory library, but warn the user if it is not installed asking<br>
to run configure with option '--disable-xmldoc' or install libxml2 development package.<br>
<br>
Modified:<br>
team/group/appdocsxml/configure<br>
team/group/appdocsxml/<a href="http://configure.ac" target="_blank">configure.ac</a><br>
<br>
Modified: team/group/appdocsxml/<a href="http://configure.ac" target="_blank">configure.ac</a><br>
URL: <a href="http://svn.digium.com/view/asterisk/team/group/appdocsxml/configure.ac?view=diff&rev=151422&r1=151421&r2=151422" target="_blank">http://svn.digium.com/view/asterisk/team/group/appdocsxml/configure.ac?view=diff&rev=151422&r1=151421&r2=151422</a><br>
==============================================================================<br>
--- team/group/appdocsxml/<a href="http://configure.ac" target="_blank">configure.ac</a> (original)<br>
+++ team/group/appdocsxml/<a href="http://configure.ac" target="_blank">configure.ac</a> Tue Oct 21 18:22:37 2008<br>
@@ -1249,10 +1249,27 @@<br>
<br>
AST_EXT_LIB_CHECK([LDAP], [ldap], [ldap_initialize], [ldap.h])<br>
<br>
-AST_EXT_TOOL_CHECK([LIBXML2], [xml2], , ,<br>
-[#include <libxml/tree.h><br>
-#include <libxml/parser.h>],<br>
-[LIBXML_TEST_VERSION])<br>
+AC_ARG_ENABLE([xmldoc],<br>
+ [AS_HELP_STRING([--disable-xmldoc],<br>
+ [Explicity disable XML documentation])],<br>
+ [case "${enableval}" in<br>
+ y|ye|yes) disable_xmldoc=no ;;<br>
+ n|no) disable_xmldoc=yes ;;<br>
+ *) AC_MSG_ERROR(bad value ${enableval} for --disable-xmldoc) ;;<br>
+ esac], [disable_xmldoc=no])<br>
+<br>
+if test "${disable_xmldoc}" != "yes"; then<br>
+ AST_EXT_TOOL_CHECK([LIBXML2], [xml2], , ,<br>
+ [#include <libxml/tree.h><br>
+ #include <libxml/parser.h>],<br>
+ [LIBXML_TEST_VERSION])<br>
+ if test "${PBX_LIBXML2}" != 1; then<br>
+ AC_MSG_NOTICE(*** XML documentation will not be available because the 'libxml2' development package is missing.)<br>
+ AC_MSG_NOTICE(*** Please run the 'configure' script with the '--disable-xmldoc' parameter option)<br>
+ AC_MSG_NOTICE(*** or install the 'libxml2' development package.)<br>
+ exit 1<br>
+ fi<br>
+fi<br>
<br>
AST_EXT_LIB_CHECK([MISDN], [mISDN], [mISDN_open], [mISDNuser/mISDNlib.h])<br>
<br>
<br>
<br>
_______________________________________________<br>
--Bandwidth and Colocation Provided by <a href="http://www.api-digital.com--" target="_blank">http://www.api-digital.com--</a><br>
<br>
asterisk-commits mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-commits" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-commits</a><br>
</blockquote></div><br><br>