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/silcutil"
34 SILC_LIB_INCLUDES="$SILC_LIB_INCLUDES -I$SILC_TOP_SRCDIR/lib/silcske"
36 SILC_LIB_INCLUDES="$SILC_LIB_INCLUDES -I$SILC_TOP_SRCDIR/lib/silcsftp"
39 SILC_LIB_INCLUDES="$SILC_LIB_INCLUDES -I$SILC_TOP_SRCDIR/lib/silcsim"
41 #ifdef SILC_DIST_CLIENT
42 SILC_LIB_INCLUDES="$SILC_LIB_INCLUDES -I$SILC_TOP_SRCDIR/lib/silcclient"
43 #endif SILC_DIST_CLIENT
45 SILC_LIB_INCLUDES="$SILC_LIB_INCLUDES -I$SILC_TOP_SRCDIR/lib/silcasn1"
49 ## Library versioning.
51 # Do the releases and library versioning according to following rules:
53 # - If any code has changed in library, increment [LIB]_REVISION
54 # - If functions were added, removed or changed, set [LIB]_REVISION to 0
55 # - If functions were added, removed or changed, increment [LIB]_CURRENT
56 # - If functions were added, increment [LIB]_AGE
57 # - If functions were removed, set [LIB]_AGE to 0
59 # where [LIB] is LIBSILC and LIBSILCCLIENT, and where "functions" means
60 # functions public interfaces.
62 # The LIB_BASE_VERSION defines the SILC software major.minor version and
63 # it is increment only when these version numbers actually change.
66 # Base version for libraries. Do not change this unless SILC version
71 LIBSILC_CURRENT=5 # prev = 4
72 LIBSILC_REVISION=0 # prev = 0
73 LIBSILC_AGE=3 # prev = 3
75 # libsilcclient versions
76 LIBSILCCLIENT_CURRENT=4 # prev = 4
77 LIBSILCCLIENT_REVISION=0 # prev = 0
78 LIBSILCCLIENT_AGE=3 # prev = 3
80 # Substitute the version numbers
81 AC_SUBST(LIB_BASE_VERSION)
82 AC_SUBST(LIBSILC_CURRENT)
83 AC_SUBST(LIBSILC_REVISION)
85 AC_SUBST(LIBSILCCLIENT_CURRENT)
86 AC_SUBST(LIBSILCCLIENT_REVISION)
87 AC_SUBST(LIBSILCCLIENT_AGE)
90 # SIM modules directory
92 MODULESDIR="$silc_prefix/modules"
94 [[ --with-simdir=DIR directory for SIM modules [PREFIX/modules]]],
100 MODULESDIR="$withval"
105 AC_DEFINE_UNQUOTED([SILC_MODULESDIR], "$MODULESDIR", [SILC_MODULESDIR])
108 #ifdef SILC_DIST_TOOLKIT
109 # Stack trace checking
111 AC_MSG_CHECKING(whether to enable stack tracing)
112 AC_ARG_ENABLE(stack-trace,
113 [ --enable-stack-trace enable memory stack trace],
115 case "${enableval}" in
118 AC_DEFINE([SILC_STACKTRACE], [], [SILC_STACKTRACE])
127 #endif SILC_DIST_TOOLKIT
135 lib/silccore/Makefile
136 lib/silccrypt/Makefile
141 lib/silcutil/Makefile
142 lib/silcutil/unix/Makefile
143 lib/silcutil/win32/Makefile
144 lib/silcutil/beos/Makefile
145 lib/silcutil/os2/Makefile
146 lib/silcutil/epoc/Makefile
147 #ifdef SILC_DIST_SFTP
148 lib/silcsftp/Makefile
149 #endif SILC_DIST_SFTP
150 #ifdef SILC_DIST_INPLACE
151 lib/silcutil/tests/Makefile
152 lib/silccrypt/tests/Makefile
153 lib/silccore/tests/Makefile
154 lib/silcsftp/tests/Makefile
155 #endif SILC_DIST_INPLACE
158 #ifdef SILC_DIST_TOOLKIT
163 #endif SILC_DIST_TOOLKIT
165 #ifdef SILC_DIST_CLIENTLIB
166 AC_CONFIG_FILES(lib/silcclient/Makefile)
167 #endif SILC_DIST_CLIENTLIB
169 #ifdef SILC_DIST_ASN1
171 lib/silcasn1/Makefile
172 #ifdef SILC_DIST_INPLACE
173 lib/silcasn1/tests/Makefile
174 #endif SILC_DIST_INPLACE
176 #endif SILC_DIST_ASN1