From 4772849016ec17c77045fc552944490fb4ab83f0 Mon Sep 17 00:00:00 2001 From: Corey Farrell Date: Thu, 30 Mar 2017 10:51:14 -0400 Subject: Build System: Fix --disable-xmldoc option. The configure option to disable XML documentation does not currently work. This patch makes it effective, but also causes an ABI change by removing the ast_xmldoc_* symbols. Disabling xmldoc also prevents docs from being automatically generated, but they can still be manually generated with 'make doc/core-en_US.xml'. ASTERISK-26639 Change-Id: Ifac562340c09f80c83e0203de098fcac93bf8c44 --- configure | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'configure') diff --git a/configure b/configure index 784e775eb..268347b99 100755 --- a/configure +++ b/configure @@ -718,6 +718,7 @@ PBX_DYNAMIC_LIST POW_LIB PBX_WORKING_FORK LIBOBJS +DISABLE_XMLDOC CONFIG_LIBXML2 UUID_LIB UUID_INCLUDE @@ -14430,16 +14431,20 @@ fi # Check whether --enable-xmldoc was given. if test "${enable_xmldoc+set}" = set; then : enableval=$enable_xmldoc; case "${enableval}" in - y|ye|yes) disable_xmldoc=no ;; - n|no) disable_xmldoc=yes ;; + y|ye|yes) DISABLE_XMLDOC=no ;; + n|no) DISABLE_XMLDOC=yes ;; *) as_fn_error $? "bad value ${enableval} for --disable-xmldoc" "$LINENO" 5 ;; esac else - disable_xmldoc=no + DISABLE_XMLDOC=no fi -if test "${disable_xmldoc}" != "yes"; then + +if test "${DISABLE_XMLDOC}" != "yes"; then + +$as_echo "#define AST_XML_DOCS 1" >>confdefs.h + if test "x${PBX_LIBXSLT}" != "x1" -a "${USE_LIBXSLT}" != "no"; then pbxlibdir="" -- cgit v1.2.3