diff options
author | Corey Farrell <git@cfware.com> | 2017-03-30 10:51:14 -0400 |
---|---|---|
committer | Corey Farrell <git@cfware.com> | 2017-10-25 10:26:16 -0500 |
commit | 4772849016ec17c77045fc552944490fb4ab83f0 (patch) | |
tree | 61605523f5bf7da0f14790eab90524a3a92d3c33 /configure | |
parent | cf63db721767bb6f1302ea3ed8e664494f1f63ec (diff) |
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
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -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="" |