[svn-commits] kmoore: branch 12 r400384 - in /branches/12: ./ include/asterisk/ main/

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu Oct 3 12:57:51 CDT 2013


Author: kmoore
Date: Thu Oct  3 12:57:49 2013
New Revision: 400384

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=400384
Log:
Detect and use xsltCleanupGlobals when available

This introduces usage of an additional libxslt cleanup function,
xsltCleanupGlobals, when the configure script detects that it is
available. Early versions of the library did not include this function.

(closes issue ASTERISK-22570)
Reported by: Corey Farrell
Patches:
    xsltCleanupGlobals.patch uploaded by Corey Farrell (License 5909)

Modified:
    branches/12/configure
    branches/12/configure.ac
    branches/12/include/asterisk/autoconfig.h.in
    branches/12/main/xml.c

Modified: branches/12/configure.ac
URL: http://svnview.digium.com/svn/asterisk/branches/12/configure.ac?view=diff&rev=400384&r1=400383&r2=400384
==============================================================================
--- branches/12/configure.ac (original)
+++ branches/12/configure.ac Thu Oct  3 12:57:49 2013
@@ -415,6 +415,7 @@
 AST_EXT_LIB_SETUP([LIBEDIT], [NetBSD Editline library], [libedit], [, use 'internal' Editline otherwise])
 AST_EXT_LIB_SETUP([LIBXML2], [LibXML2], [libxml2])
 AST_EXT_LIB_SETUP([LIBXSLT], [LibXSLT], [libxslt])
+AST_EXT_LIB_SETUP_OPTIONAL([LIBXSLT_CLEANUP], [LibXSLT Library Cleanup Function], [LIBXSLT], [libxslt])
 AST_EXT_LIB_SETUP([LTDL], [libtool], [ltdl])
 AST_EXT_LIB_SETUP([LUA], [Lua], [lua])
 AST_EXT_LIB_SETUP([MISDN], [mISDN user], [misdn])
@@ -570,6 +571,7 @@
 	fi
 
         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}])
 
 fi
 

Modified: branches/12/include/asterisk/autoconfig.h.in
URL: http://svnview.digium.com/svn/asterisk/branches/12/include/asterisk/autoconfig.h.in?view=diff&rev=400384&r1=400383&r2=400384
==============================================================================
--- branches/12/include/asterisk/autoconfig.h.in (original)
+++ branches/12/include/asterisk/autoconfig.h.in Thu Oct  3 12:57:49 2013
@@ -399,6 +399,9 @@
 
 /* Define to 1 if you have the LibXSLT library. */
 #undef HAVE_LIBXSLT
+
+/* Define to 1 if LIBXSLT has the LibXSLT Library Cleanup Function feature. */
+#undef HAVE_LIBXSLT_CLEANUP
 
 /* Define to 1 if you have the <limits.h> header file. */
 #undef HAVE_LIMITS_H

Modified: branches/12/main/xml.c
URL: http://svnview.digium.com/svn/asterisk/branches/12/main/xml.c?view=diff&rev=400384&r1=400383&r2=400384
==============================================================================
--- branches/12/main/xml.c (original)
+++ branches/12/main/xml.c Thu Oct  3 12:57:49 2013
@@ -55,6 +55,9 @@
 int ast_xml_finish(void)
 {
 	xmlCleanupParser();
+#ifdef HAVE_LIBXSLT_CLEANUP
+	xsltCleanupGlobals();
+#endif
 
 	return 0;
 }




More information about the svn-commits mailing list