udpates.
authorPekka Riikonen <priikone@silcnet.org>
Mon, 11 Jun 2007 19:15:00 +0000 (19:15 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Mon, 11 Jun 2007 19:15:00 +0000 (19:15 +0000)
CHANGES
configure.ad

diff --git a/CHANGES b/CHANGES
index 87a83573b26f3cc7322ea03f33a9222abc8b8dd0..a87492f3ff6ebf63ebb9dedd513a8fb9fabdf609 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,9 @@
+Mon Jun 11 22:10:17 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
+
+       * Added __SILC_TOOLKIT_x_x_x macro to all Toolkit distribution
+         which can be used to check for Toolkit version in third-party
+         software.  Affected file is configure.ad, includes/silc.h.in.
+
 Sun Jun 10 17:32:15 EEST 2007  Pekka Riikonen <priikone@silcnet.org>
 
        * Added support for channel@server channel name strings to
index 47702fb418fce498db2117fe8495ad766a25a1c0..dfa3df0efe76a5e21773e5c0cd06a31f7420b2fb 100644 (file)
@@ -94,6 +94,11 @@ __SILC_HAVE_PTHREAD=""
 __SILC_HAVE_SIM=""
 __SILC_ENABLE_DEBUG=""
 
+#ifdef SILC_DIST_TOOLKIT
+toolkitver=`echo $VERSION | sed 's/\.//g'`
+__SILC_PACKAGE_VERSION="#define __SILC_TOOLKIT_VERSION $toolkitver"
+#endif SILC_DIST_TOOLKIT
+
 AC_PROG_RANLIB
 #ifndef SILC_DIST_TOOLKIT
 AC_DISABLE_SHARED
@@ -1319,6 +1324,7 @@ AC_SUBST(SILC_LIB_INCLUDES)
 AC_SUBST(__SILC_HAVE_PTHREAD)
 AC_SUBST(__SILC_HAVE_SIM)
 AC_SUBST(__SILC_ENABLE_DEBUG)
+AC_SUBST(__SILC_PACKAGE_VERSION)
 
 #
 # Fix the libtool to support run-time configuration.  This allows us