mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
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
This commit is contained in:
10
configure.ac
10
configure.ac
@@ -690,12 +690,14 @@ AC_ARG_ENABLE([xmldoc],
|
||||
[AS_HELP_STRING([--disable-xmldoc],
|
||||
[Explicitly disable XML documentation])],
|
||||
[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 ;;
|
||||
*) AC_MSG_ERROR(bad value ${enableval} for --disable-xmldoc) ;;
|
||||
esac], [disable_xmldoc=no])
|
||||
esac], [DISABLE_XMLDOC=no])
|
||||
|
||||
if test "${disable_xmldoc}" != "yes"; then
|
||||
AC_SUBST([DISABLE_XMLDOC])
|
||||
if test "${DISABLE_XMLDOC}" != "yes"; then
|
||||
AC_DEFINE([AST_XML_DOCS], 1, [Define to enable XML documentation.])
|
||||
AST_EXT_LIB_CHECK([LIBXSLT], [xslt], [xsltLoadStylesheetPI], [libxslt/xsltInternals.h], [${LIBXML2_LIB}], [${LIBXML2_INCLUDE}])
|
||||
AST_EXT_LIB_CHECK([LIBXSLT_CLEANUP], [xslt], [xsltCleanupGlobals], [libxslt/xsltInternals.h], [${LIBXML2_LIB}], [${LIBXML2_INCLUDE}])
|
||||
|
||||
|
Reference in New Issue
Block a user