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_CLIENTLIB
42 SILC_LIB_INCLUDES="$SILC_LIB_INCLUDES -I$SILC_TOP_SRCDIR/lib/silcclient"
43 #endif SILC_DIST_CLIENTLIB
45 SILC_LIB_INCLUDES="$SILC_LIB_INCLUDES -I$SILC_TOP_SRCDIR/lib/silcasn1"
48 SILC_LIB_INCLUDES="$SILC_LIB_INCLUDES -I$SILC_TOP_SRCDIR/lib/silcskr"
50 #ifdef SILC_DIST_SERVERLIB
51 SILC_LIB_INCLUDES="$SILC_LIB_INCLUDES -I$SILC_TOP_SRCDIR/lib/silcserver"
52 #endif SILC_DIST_SERVERLIB
55 ## Library versioning.
57 # Do the releases and library versioning according to following rules:
59 # - If any code has changed in library, increment [LIB]_REVISION
60 # - If functions were added, removed or changed, set [LIB]_REVISION to 0
61 # - If functions were added, removed or changed, increment [LIB]_CURRENT
62 # - If functions were added, increment [LIB]_AGE
63 # - If functions were removed, set [LIB]_AGE to 0
65 # where [LIB] is LIBSILC, LIBSILCCLIENT or LIBSILCSERVER, and where
66 # "functions" means functions public interfaces (API).
68 # The LIB_BASE_VERSION defines the SILC software major.minor version and
69 # it is increment only when these version numbers actually change.
72 # Base version for libraries. Do not change this unless SILC version
77 LIBSILC_CURRENT=1 # prev = 0
78 LIBSILC_REVISION=0 # prev = 0
79 LIBSILC_AGE=0 # prev = 0
81 # libsilcclient versions
82 LIBSILCCLIENT_CURRENT=1 # prev = 0
83 LIBSILCCLIENT_REVISION=0 # prev = 0
84 LIBSILCCLIENT_AGE=0 # prev = 0
86 # libsilcserver versions
87 LIBSILCSERVER_CURRENT=1 # prev = 0
88 LIBSILCSERVER_REVISION=0 # prev = 0
89 LIBSILCSERVER_AGE=0 # prev = 0
91 # Substitute the version numbers
92 AC_SUBST(LIB_BASE_VERSION)
93 AC_SUBST(LIBSILC_CURRENT)
94 AC_SUBST(LIBSILC_REVISION)
96 AC_SUBST(LIBSILCCLIENT_CURRENT)
97 AC_SUBST(LIBSILCCLIENT_REVISION)
98 AC_SUBST(LIBSILCCLIENT_AGE)
99 AC_SUBST(LIBSILCSERVER_CURRENT)
100 AC_SUBST(LIBSILCSERVER_REVISION)
101 AC_SUBST(LIBSILCSERVER_AGE)
104 # SIM modules directory
106 MODULESDIR="$silc_prefix/modules"
108 [[ --with-simdir=DIR directory for SIM modules [PREFIX/modules]]],
114 MODULESDIR="$withval"
119 AC_DEFINE_UNQUOTED([SILC_MODULESDIR], "$MODULESDIR", [SILC_MODULESDIR])
122 #ifdef SILC_DIST_TOOLKIT
123 # Stack trace checking
125 AC_MSG_CHECKING(whether to enable stack tracing)
126 AC_ARG_ENABLE(stack-trace,
127 [ --enable-stack-trace enable memory stack trace],
129 case "${enableval}" in
132 AC_DEFINE([SILC_STACKTRACE], [], [SILC_STACKTRACE])
141 #endif SILC_DIST_TOOLKIT
149 lib/silccore/Makefile
150 lib/silccrypt/Makefile
155 lib/silcutil/Makefile
156 lib/silcutil/unix/Makefile
157 lib/silcutil/win32/Makefile
158 lib/silcutil/beos/Makefile
159 lib/silcutil/os2/Makefile
160 lib/silcutil/epoc/Makefile
161 #ifdef SILC_DIST_SFTP
162 lib/silcsftp/Makefile
163 #endif SILC_DIST_SFTP
164 #ifdef SILC_DIST_INPLACE
165 lib/silcutil/tests/Makefile
166 lib/silccrypt/tests/Makefile
167 lib/silccore/tests/Makefile
168 lib/silcsftp/tests/Makefile
169 #endif SILC_DIST_INPLACE
172 #ifdef SILC_DIST_TOOLKIT
178 #endif SILC_DIST_TOOLKIT
180 #ifdef SILC_DIST_CLIENTLIB
181 AC_CONFIG_FILES(lib/silcclient/Makefile)
182 #endif SILC_DIST_CLIENTLIB
184 #ifdef SILC_DIST_SERVERLIB
186 lib/silcserver/Makefile
187 lib/silcserver/tests/Makefile
189 #endif SILC_DIST_SERVERLIB
191 #ifdef SILC_DIST_ASN1
193 lib/silcasn1/Makefile
194 #ifdef SILC_DIST_INPLACE
195 lib/silcasn1/tests/Makefile
196 #endif SILC_DIST_INPLACE
198 #endif SILC_DIST_ASN1
203 #ifdef SILC_DIST_INPLACE
204 lib/silcskr/tests/Makefile
205 #endif SILC_DIST_INPLACE