5 # Author: Pekka Riikonen <priikone@silcnet.org>
7 # Copyright (C) 2005 Pekka Riikonen
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation; version 2 of the License.
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
19 if test x$compile_libs = xtrue; then
22 ## Will compile included libs
24 AC_MSG_NOTICE([Configuring SILC libraries])
26 # SILC Library directories
27 SILC_LIB_INCLUDES="$SILC_LIB_INCLUDES -I$SILC_TOP_SRCDIR/lib/contrib"
28 SILC_LIB_INCLUDES="$SILC_LIB_INCLUDES -I$SILC_TOP_SRCDIR/lib/silccore"
29 SILC_LIB_INCLUDES="$SILC_LIB_INCLUDES -I$SILC_TOP_SRCDIR/lib/silccrypt"
31 SILC_LIB_INCLUDES="$SILC_LIB_INCLUDES -I$SILC_TOP_SRCDIR/lib/silcmath"
33 SILC_LIB_INCLUDES="$SILC_LIB_INCLUDES -I$SILC_TOP_SRCDIR/lib/silcmath/mpi"
36 SILC_LIB_INCLUDES="$SILC_LIB_INCLUDES -I$SILC_TOP_SRCDIR/lib/silcske"
37 SILC_LIB_INCLUDES="$SILC_LIB_INCLUDES -I$SILC_TOP_SRCDIR/lib/silcutil"
38 SILC_LIB_INCLUDES="$SILC_LIB_INCLUDES -I$SILC_TOP_SRCDIR/lib/silcsftp"
40 SILC_LIB_INCLUDES="$SILC_LIB_INCLUDES -I$SILC_TOP_SRCDIR/lib/silcsim"
42 #ifdef SILC_DIST_CLIENT
43 SILC_LIB_INCLUDES="$SILC_LIB_INCLUDES -I$SILC_TOP_SRCDIR/lib/silcclient"
44 #endif SILC_DIST_CLIENT
47 ## Library versioning.
49 # Do the releases and library versioning according to following rules:
51 # - If any code has changed in library, increment [LIB]_REVISION
52 # - If functions were added, set [LIB]_REVISION to 0
53 # - If functions were added, removed or changed, increment [LIB]_CURRENT
54 # - If functions were added, increment [LIB]_AGE
55 # - If functions were removed, set [LIB]_AGE to 0
57 # where [LIB] is LIBSILC and LIBSILCCLIENT, and where "functions" means
58 # functions public interfaces.
60 # The LIB_BASE_VERSION defines the SILC software major.minor version and
61 # it is increment only when these version numbers actually change.
64 # Base version for libraries. Do not change this unless SILC version
69 LIBSILC_CURRENT=4 # prev = 3
70 LIBSILC_REVISION=0 # prev = 0
71 LIBSILC_AGE=3 # prev = 2
73 # libsilcclient versions
74 LIBSILCCLIENT_CURRENT=3 # prev = 3
75 LIBSILCCLIENT_REVISION=1 # prev = 0
76 LIBSILCCLIENT_AGE=2 # prev = 2
78 # Substitute the version numbers
79 AC_SUBST(LIB_BASE_VERSION)
80 AC_SUBST(LIBSILC_CURRENT)
81 AC_SUBST(LIBSILC_REVISION)
83 AC_SUBST(LIBSILCCLIENT_CURRENT)
84 AC_SUBST(LIBSILCCLIENT_REVISION)
85 AC_SUBST(LIBSILCCLIENT_AGE)
87 # Make enable-shared aware
88 AM_CONDITIONAL(SILC_ENABLE_SHARED, test "$enable_shared" = yes)
90 # Stack trace checking
92 AC_MSG_CHECKING(whether to enable stack tracing)
93 AC_ARG_ENABLE(stack-trace,
94 [ --enable-stack-trace enable memory stack trace],
96 case "${enableval}" in
99 AC_DEFINE([SILC_STACKTRACE], [], [SILC_STACKTRACE])
115 lib/silccore/Makefile
116 lib/silccrypt/Makefile
121 lib/silcutil/Makefile
122 lib/silcutil/unix/Makefile
123 lib/silcutil/win32/Makefile
124 lib/silcutil/beos/Makefile
125 lib/silcutil/os2/Makefile
126 lib/silcutil/epoc/Makefile
127 #ifdef SILC_DIST_MATH
128 lib/silcmath/Makefile
129 #endif SILC_DIST_MATH
130 lib/silcsftp/Makefile
131 #ifdef SILC_DIST_INPLACE
132 lib/silcutil/tests/Makefile
133 lib/silccrypt/tests/Makefile
134 lib/silccore/tests/Makefile
135 lib/silcsftp/tests/Makefile
136 #endif SILC_DIST_INPLACE
139 #ifdef SILC_DIST_TOOLKIT
144 #endif SILC_DIST_TOOLKIT
146 #ifdef SILC_DIST_CLIENTLIB
147 AC_CONFIG_FILES(lib/silcclient/Makefile)
148 #endif SILC_DIST_CLIENTLIB