4 # Author: Pekka Riikonen <priikone@silcnet.org>
6 # Copyright (C) 2000 - 2002 Pekka Riikonen
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2 of the License, or
11 # (at your option) any later version.
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 AC_INIT(includes/silcversion.h)
21 # Put here any platform specific stuff
36 # ./prepare script will automatically put the correct version. Do not edit!
38 AM_INIT_AUTOMAKE(SILC_PACKAGE, SILC_VERSION)
40 AC_CONFIG_HEADERS(includes/silcdefs.h)
51 ## Distribution definition. ./prepare will automatically add here a correct
52 ## value. Do not edit!
54 silc_dist=SILC_PACKAGE
55 SILC_DIST_SUBDIRS="SILC_DISTRIBUTION_SUBDIRS"
56 AC_DEFINE(SILC_DIST_DEFINE)
60 ## Library versioning.
62 # Do the releases and library versioning according to following rules:
64 # - If any code has changed in library, increment [LIB]_REVISION
65 # - If functions were added, set [LIB]_REVISION to 0
66 # - If functions were added, removed or changed, increment [LIB]_CURRENT
67 # - If functions were added, increment [LIB]_AGE
68 # - If functions were removed, set [LIB]_AGE to 0
70 # where [LIB] is LIBSILC and LIBSILCCLIENT, and where "functions" means
71 # functions public interfaces.
73 # The LIB_BASE_VERSION defines the SILC software major.minor version and
74 # it is increment only when these version numbers actually change.
77 # Base version for libraries. Do not change this unless SILC version
86 # libsilcclient versions
87 LIBSILCCLIENT_CURRENT=2
88 LIBSILCCLIENT_REVISION=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)
108 AC_PATH_PROG(sedpath, sed)
116 # More header checking
118 AC_CHECK_HEADERS(unistd.h string.h getopt.h errno.h fcntl.h assert.h)
119 AC_CHECK_HEADERS(sys/types.h sys/stat.h sys/time.h stddef.h)
120 AC_CHECK_HEADERS(netinet/in.h netinet/tcp.h xti.h netdb.h)
121 AC_CHECK_HEADERS(pwd.h grp.h termcap.h paths.h)
122 AC_CHECK_HEADERS(ncurses.h signal.h ctype.h utime.h)
123 AC_CHECK_HEADERS(arpa/inet.h sys/mman.h limits.h termios.h locale.h langinfo.h)
133 AC_CHECK_SIZEOF(long long, 0)
134 AC_SUBST(SILC_SIZEOF_LONG_LONG, $ac_cv_sizeof_long_long)
135 AC_CHECK_SIZEOF(long, 0)
136 AC_SUBST(SILC_SIZEOF_LONG, $ac_cv_sizeof_long)
137 AC_CHECK_SIZEOF(int, 0)
138 AC_SUBST(SILC_SIZEOF_INT, $ac_cv_sizeof_int)
139 AC_CHECK_SIZEOF(short, 0)
140 AC_SUBST(SILC_SIZEOF_SHORT, $ac_cv_sizeof_short)
141 AC_CHECK_SIZEOF(char, 0)
142 AC_SUBST(SILC_SIZEOF_CHAR, $ac_cv_sizeof_char)
143 AC_CHECK_SIZEOF(void *, 0)
144 AC_SUBST(SILC_SIZEOF_VOID_P, $ac_cv_sizeof_void_p)
146 # Function and library checking
148 AC_CHECK_FUNC(gethostbyname, [],
150 AC_CHECK_LIB(nsl, gethostbyname, LIBS="$LIBS -lnsl")
151 AC_CHECK_FUNC(res_gethostbyname, [],
152 AC_CHECK_LIB(resolv, res_gethostbyname, LIBS="$LIBS -lresolv")
155 AC_CHECK_FUNC(socket, [],
156 AC_CHECK_LIB(socket, socket, LIBS="$LIBS -lsocket")
158 AC_CHECK_FUNCS(gethostname gethostbyaddr getservbyname getservbyport)
159 AC_CHECK_FUNCS(select listen bind shutdown close connect setsockopt)
160 AC_CHECK_FUNCS(time ctime utime gettimeofday)
161 AC_CHECK_FUNCS(chmod fcntl stat fstat getenv putenv strerror)
162 AC_CHECK_FUNCS(getpid getgid getsid getpgid getpgrp getuid)
163 AC_CHECK_FUNCS(setgroups initgroups nl_langinfo)
164 AC_CHECK_FUNCS(strchr strstr strcpy strncpy memcpy memset memmove)
166 # SIM support checking
167 # XXX These needs to be changed as more supported platforms appear.
168 # XXX This probably needs to be made platform dependant check.
171 AC_MSG_CHECKING(for SIM support)
173 AC_CHECK_HEADERS(dlfcn.h,
175 AC_CHECK_LIB(dl, dlopen,
182 AC_CHECK_LIB(c, dlopen,
190 AM_CONDITIONAL(SILC_SIM, test x$sim_support = xtrue)
191 if test x$sim_support = xtrue; then
192 AC_MSG_RESULT(Enabled SIM support.)
194 AC_MSG_RESULT(No SIM support found.)
197 # lib/contrib conditionals
199 AC_CHECK_HEADER(regex.h, have_regex=1, have_regex=0)
200 AM_CONDITIONAL(HAVE_REGEX, test x$have_regex = x1)
201 AC_CHECK_FUNC(getopt_long, have_getopt_long=1, have_getopt_long=0)
202 AM_CONDITIONAL(HAVE_GETOPT_LONG, test x$have_getopt_long = x1)
205 ## Enable/disable checking
210 AC_MSG_CHECKING(whether to enable IPv6 support)
212 [ --enable-ipv6 enable IPv6 support],
214 case "${enableval}" in
233 if test x$check_ipv6 = xtrue; then
237 #ifdef HAVE_SYS_TYPES_H
238 #include <sys/types.h>
240 #ifdef HAVE_NETINET_TCP_H
241 #include <netinet/tcp.h>
246 #include <sys/socket.h>
247 #ifdef HAVE_NETINET_IN_H
248 #include <netinet/in.h>
252 struct sockaddr_in6 sin6;
253 int family = AF_INET6;
266 AC_MSG_CHECKING(whether to enable debugging)
269 [ --enable-debug enable debugging],
271 case "${enableval}" in
274 AC_DEFINE(SILC_DEBUG)
286 # Stack trace checking
288 AC_MSG_CHECKING(whether to enable stack tracing)
289 summary_stacktrace="no"
290 AC_ARG_ENABLE(stack-trace,
291 [ --enable-stack-trace enable memory stack trace],
293 case "${enableval}" in
296 AC_DEFINE(SILC_STACKTRACE)
297 summary_stacktrace="yes"
307 # Disable all assembler optimizations
309 AC_MSG_CHECKING(whether to enable assembler optimizations)
312 [ --disable-asm do not use assembler optimizations],
323 ## Compiler and compiler flag checks
326 # Function to check if compiler flag works
327 # Usage: SILC_ADD_CFLAGS(FLAGS, [ACTION-IF-FAILED])
328 AC_DEFUN(SILC_ADD_CFLAGS,
329 [ tmp_CFLAGS="$CFLAGS"
331 AC_MSG_CHECKING(whether $CC accepts $1 flag)
332 AC_TRY_LINK(, , AC_MSG_RESULT(yes), [AC_MSG_RESULT(no)
339 # GCC specific options
340 if test "x$summary_debug" = "xyes"; then
341 SILC_ADD_CFLAGS(-g -O)
343 SILC_ADD_CFLAGS(-g -O2)
345 SILC_ADD_CFLAGS(-Wall -finline-functions)
350 SILC_ADD_CFLAGS(-g3 -O2, SILC_ADD_CFLAGS(-g3 -O, SILC_ADD_CFLAGS(-O)))
354 SILC_ADD_CFLAGS(-O2, SILC_ADD_CFLAGS(-O))
358 # Intel C++ Compiler needs -restrict
359 if test "x$CC" = "xicc"; then
360 SILC_ADD_CFLAGS(-restrict)
365 # Workaround a bug in GCC 2.x which causes memory exhaustion
366 # when compiling sha1 with optimizations on UltraSPARC.
369 if test "$GCC" -a "$host_cpu" = "sparc64"; then
370 AC_MSG_CHECKING(whether to enable GCC 2.x workaround for SHA1)
373 #if defined(__sparc64__) && (__GNUC__ == 2)
392 # Default installation destination
394 AC_PREFIX_DEFAULT(/usr/local/silc)
395 if test "x$prefix" != xNONE; then
396 silc_prefix="$prefix"
398 silc_prefix="$ac_default_prefix"
403 if test "x$sysconfdir" != 'x${prefix}/etc'; then
406 ETCDIR="$silc_prefix/etc"
410 [[ --with-etcdir=DIR directory for system files [/etc/silc]]],
421 AC_DEFINE_UNQUOTED(SILC_ETCDIR, "$ETCDIR")
425 HELPDIR="$silc_prefix/help"
427 [[ --with-helpdir=DIR directory for SILC help files [PREFIX/help]]],
438 AC_DEFINE_UNQUOTED(SILC_HELPDIR, "$HELPDIR")
442 DOCDIR="$silc_prefix/doc"
444 [[ --with-docdir=DIR directory for SILC documentation [PREFIX/doc]]],
455 AC_DEFINE_UNQUOTED(SILC_DOCDIR, "$DOCDIR")
457 # SIM modules directory
459 MODULESDIR="$silc_prefix/modules"
461 [[ --with-simdir=DIR directory for SIM modules [PREFIX/modules]]],
467 MODULESDIR="$withval"
472 AC_DEFINE_UNQUOTED(SILC_MODULESDIR, "$MODULESDIR")
476 LOGSDIR="$silc_prefix/logs"
478 [[ --with-logsdir=DIR directory for SILC Server logs [PREFIX/logs]]],
489 AC_DEFINE_UNQUOTED(SILC_LOGSDIR, "$LOGSDIR")
491 # silcd config file checking
493 summary_silcd_configfile="/etc/silc/silcd.conf"
494 AC_ARG_WITH(silcd-config-file,
495 [[ --with-silcd-config-file=FILE use FILE as default configuration file
496 for SILC Server [/etc/silc/silcd.conf]]],
497 AC_DEFINE_UNQUOTED(SILC_SERVER_CONFIG_FILE, "$withval")
498 summary_silcd_configfile="$withval"
501 # silcd pid file checking
503 if test "x$localstatedir" != 'x${prefix}/var'; then
504 PIDFILE="$localstatedir/silcd.pid"
506 PIDFILE="$silc_prefix/var/silcd.pid"
509 AC_ARG_WITH(silcd-pid-file,
510 [[ --with-silcd-pid-file=FILE use FILE as default pid file for SILC
511 Server [/var/run/silcd.pid]]],
525 ## With/without checkings
528 # SOCKS4 support checking
531 SAVE_CFLAGS="$CFLAGS"
532 SAVE_LDFLAGS="$LDFLAGS"
533 AC_MSG_CHECKING(whether to support SOCKS4)
535 [[ --with-socks4[=DIR] with SOCKS4 support [search in DIR/lib and DIR/include]]],
545 if test -d "$withval/include"; then
546 CFLAGS="$CFLAGS -I$withval/include"
548 if test -d "$withval/lib"; then
549 LDFLAGS="$LDFLAGS -L$withval/lib"
561 AC_MSG_ERROR(Could not find SOCKS4 library.)
563 CFLAGS="$SAVE_CFLAGS"
564 LDFLAGS="$SAVE_LDFLAGS"
570 # SOCKS5 support checking
573 SAVE_CFLAGS="$CFLAGS"
574 SAVE_LDFLAGS="$LDFLAGS"
575 AC_MSG_CHECKING(whether to support SOCKS5)
577 [[ --with-socks5[=DIR] with SOCKS5 support [search in DIR/lib and DIR/include]]],
587 if test -d "$withval/include"; then
588 CFLAGS="$CFLAGS -I$withval/include"
590 if test -d "$withval/lib"; then
591 LDFLAGS="$LDFLAGS -L$withval/lib"
594 LIBS="-lsocks5 $LIBS"
603 AC_MSG_ERROR(Could not find SOCKS5 library.)
605 CFLAGS="$SAVE_CFLAGS"
606 LDFLAGS="$SAVE_LDFLAGS"
612 if test "x$socks" = "x4"; then
614 CFLAGS="$CFLAGS -Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dbind=Rbind -Daccept=Raccept -Dlisten=Rlisten -Dselect=Rselect"
617 if test "x$socks" = "x5"; then
620 AC_DEFINE(Rconnect, SOCKSconnect)
621 AC_DEFINE(Rgetsockname, SOCKSgetsockname)
622 AC_DEFINE(Rgetpeername, SOCKSgetpeername)
623 AC_DEFINE(Rbind, SOCKSbind)
624 AC_DEFINE(Raccept, SOCKSaccept)
625 AC_DEFINE(Rlisten, SOCKSlisten)
626 AC_DEFINE(Rselect, SOCKSselect)
627 AC_DEFINE(Rrecvfrom, SOCKSrecvfrom)
628 AC_DEFINE(Rsendto, SOCKSsendto)
629 AC_DEFINE(Rrecv, SOCKSrecv)
630 AC_DEFINE(Rsend, SOCKSsend)
631 AC_DEFINE(Rread, SOCKSread)
632 AC_DEFINE(Rwrite, SOCKSwrite)
633 AC_DEFINE(Rrresvport, SOCKSrresvport)
634 AC_DEFINE(Rshutdown, SOCKSshutdown)
635 AC_DEFINE(Rlisten, SOCKSlisten)
636 AC_DEFINE(Rclose, SOCKSclose)
637 AC_DEFINE(Rdup, SOCKSdup)
638 AC_DEFINE(Rdup2, SOCKSdup2)
639 AC_DEFINE(Rfclose, SOCKSfclose)
640 AC_DEFINE(Rgethostbyname, SOCKSgethostbyname)
643 # MP library checking. First check whether user wants to use GMP and use
644 # it if found. If not or not defined then compile the MPI library in the
649 SAVE_CFLAGS="$CFLAGS"
650 SAVE_LDFLAGS="$LDFLAGS"
651 AC_MSG_CHECKING(whether to search for GMP)
653 [[ --with-gmp[=DIR] use GMP instead of MPI [search in DIR/lib and DIR/include]]],
662 if test -d "$withval/include"; then
663 CFLAGS="$CFLAGS -I$withval/include"
665 if test -d "$withval/lib"; then
666 LDFLAGS="$LDFLAGS -L$withval/lib"
673 AC_CHECK_LIB(gmp, __gmpz_init,
676 AC_DEFINE(SILC_MP_GMP)
677 AC_MSG_RESULT(Using GMP as a MP library.)
681 CFLAGS="$SAVE_CFLAGS"
682 LDFLAGS="$SAVE_LDFLAGS"
688 AM_CONDITIONAL(SILC_MP_GMP, test x$mp_gmp = xtrue)
689 AM_CONDITIONAL(SILC_MP_NSS_MPI, test x$mp_gmp = xfalse)
690 if test x$mp_gmp = xfalse; then
691 AC_DEFINE(SILC_MP_NSS_MPI)
692 AC_MSG_RESULT(Using NSS MPI as a MP library.)
700 SAVE_CFLAGS="$CFLAGS"
701 SAVE_LDFLAGS="$LDFLAGS"
702 SAVE_CPPFLAGS="$CPPFLAGS"
703 AC_MSG_CHECKING(whether to implicit search for libiconv)
705 [[ --with-iconv[=DIR] use libiconv [search in DIR/include and DIR/lib]]],
710 AC_CHECK_HEADERS(iconv.h,
712 AC_CHECK_FUNC(iconv, has_iconv=true)
718 if test -d $withval/include; then
719 CPPFLAGS="$CPPFLAGS -I$withval/include"
720 CFLAGS="$CFLAGS -I$withval/include"
722 if test -d $withval/lib; then
723 LDFLAGS="$LDFLAGS -L$withval/lib"
730 AC_CHECK_HEADERS(iconv.h,
732 AC_CHECK_FUNCS(iconv,
740 if test x$check_iconv = xtrue; then
741 AC_MSG_RESULT(starting search...)
744 unset ac_cv_header__iconv_h_ ac_cv_header_iconv_h || true
746 AC_CHECK_HEADERS(iconv.h,
749 AC_MSG_CHECKING(for iconv in -liconv)
756 iconv_t cd = iconv_open("", "");
757 iconv(cd, NULL, NULL, NULL, NULL);
762 AC_DEFINE(HAVE_ICONV, 1, [Define if you have the iconv() function.])
769 CFLAGS="$SAVE_CFLAGS"
770 LDFLAGS="$SAVE_LDFLAGS"
771 CPPFLAGS="$SAVE_CPPFLAGS"
776 if test x$check_iconv = xtrue; then
777 # search for iconv library..
779 SAVE_CFLAGS="$CFLAGS"
780 SAVE_LDFLAGS="$LDFLAGS"
781 SAVE_CPPFLAGS="$CPPFLAGS"
783 for dir in `echo "/usr/local /usr/pkg /usr/contrib"`; do
784 if test x$has_iconv = xfalse; then
785 AC_MSG_RESULT(searching in $dir...)
787 if test -d $dir/include; then
788 CPPFLAGS="$CPPFLAGS -I$dir/include"
789 CFLAGS="$CFLAGS -I$dir/include"
791 if test -d $dir/lib; then
792 LDFLAGS="$LDFLAGS -L$dir/lib"
796 unset ac_cv_header__iconv_h_ ac_cv_header_iconv_h || true
798 AC_CHECK_HEADERS(iconv.h,
801 AC_MSG_CHECKING(for iconv in -liconv)
808 iconv_t cd = iconv_open("", "");
809 iconv(cd, NULL, NULL, NULL, NULL);
815 AC_DEFINE(HAVE_ICONV, 1, [Define if you have the iconv() function.])
822 CFLAGS="$SAVE_CFLAGS"
823 LDFLAGS="$SAVE_LDFLAGS"
824 CPPFLAGS="$SAVE_CPPFLAGS"
828 CFLAGS="$SAVE_CFLAGS"
829 LDFLAGS="$SAVE_LDFLAGS"
830 CPPFLAGS="$SAVE_CPPFLAGS"
836 if test x$has_iconv = xtrue; then
837 # (1) Some implementations of iconv won't convert from UTF-8 to UTF-8.
838 # (2) In glibc-2.1.2 and earlier there is a bug that messes up ob and
839 # obl when args 2 and 3 are 0 (fixed in glibc-2.1.3).
841 AC_CACHE_CHECK([whether this iconv is good enough], ac_iconv_good,
852 ob = buf, obl = sizeof(buf);
853 return ((cd = iconv_open("UTF-8", "UTF-8")) != (iconv_t)(-1) &&
854 (iconv(cd, 0, 0, &ob, &obl) ||
855 !(ob == buf && obl == sizeof(buf)) ||
870 if test x$ac_iconv_good = xno; then
871 AC_MSG_RESULT(Try using libiconv instead.)
875 # POSIX threads support
878 AC_MSG_CHECKING(whether to search for POSIX threads)
879 AC_ARG_WITH(pthreads,
880 [[ --with-pthreads[=DIR] use POSIX threads [search in DIR/include and DIR/lib]]],
887 if test -d $withval/include; then
888 CPPFLAGS="$CPPFLAGS -I$withval/include"
889 CFLAGS="$CFLAGS -I$withval/include"
891 if test -d $withval/lib; then
892 LDFLAGS="$LDFLAGS -L$withval/lib"
900 if test x$check_threads = xtrue; then
902 SAVE_CFLAGS="$CFLAGS"
903 SAVE_LDFLAGS="$LDFLAGS"
904 SAVE_CPPFLAGS="$CPPFLAGS"
907 AC_CHECK_HEADERS(pthread.h,
909 LIBS="$LIBS -lpthread"
910 AC_CHECK_LIB(pthread, pthread_attr_init, has_threads=true,
915 LIBS="$SAVE_LIBS -pthread"
916 AC_CHECK_LIB(c_r, pthread_attr_init, has_threads=true, LIBS="$SAVE_LIBS")
925 # search for pthread library..
926 for dir in `echo "/usr/local /usr/pkg /usr/contrib /usr/pkg/pthreads /usr/local/pthreads"`; do
927 if test x$has_threads = xfalse; then
928 AC_MSG_RESULT(searching in $dir...)
930 if test -d $dir/include; then
931 CPPFLAGS="$CPPFLAGS -I$dir/include"
932 CFLAGS="$CFLAGS -I$dir/include"
934 if test -d $dir/lib; then
935 LDFLAGS="$LDFLAGS -L$dir/lib"
939 unset ac_cv_header__pthread_h_ ac_cv_header_pthread_h || true
941 AC_CHECK_HEADERS(pthread.h,
943 LIBS="$LIBS -lpthread"
944 AC_CHECK_LIB(pthread, pthread_attr_init, has_threads=true,
949 CFLAGS="$SAVE_CFLAGS"
950 LDFLAGS="$SAVE_LDFLAGS"
951 CPPFLAGS="$SAVE_CPPFLAGS"
955 CFLAGS="$SAVE_CFLAGS"
956 LDFLAGS="$SAVE_LDFLAGS"
957 CPPFLAGS="$SAVE_CPPFLAGS"
967 AM_CONDITIONAL(SILC_THREADS, test x$has_threads = xtrue)
968 if test x$has_threads = xtrue; then
969 CFLAGS="$CFLAGS -D_REENTRANT"
971 # XXX possibly incomplete
974 CFLAGS="$CFLAGS -D_THREAD_SAFE"
975 if test x"$GCC" = xyes; then
976 CFLAGS="$CFLAGS -mthreads"
980 CFLAGS="$CFLAGS -D_THREAD_SAFE"
982 *-*-sysv5uw7*) # UnixWare 7
983 if test "$GCC" != "yes"; then
984 CFLAGS="$CFLAGS -Kthread"
986 CFLAGS="$CFLAGS -pthread"
990 CFLAGS="$CFLAGS -D_POSIX4A_DRAFT10_SOURCE"
994 AC_CHECK_FUNC(pthread_create)
995 AC_DEFINE(SILC_HAVE_PTHREAD)
996 AC_DEFINE(SILC_THREADS)
999 # Native WIN32 compilation under cygwin
1001 AC_MSG_CHECKING(whether to compile native WIN32 code)
1003 [ --with-win32 compile native WIN32 (MinGW) code (-mno-cygwin)],
1006 AC_DEFINE(SILC_WIN32)
1008 CFLAGS="-mno-cygwin $CFLAGS"
1009 LIBS="$LIBS -lwsock32"
1014 AM_CONDITIONAL(SILC_WIN32, test x$win32_support = xtrue)
1016 # Native EPOC support (disabled by default)
1018 AM_CONDITIONAL(SILC_EPOC, test xfalse = xtrue)
1020 # Native BeOS support (disabled by default)
1022 AM_CONDITIONAL(SILC_BEOS, test xfalse = xtrue)
1024 # Native OS2 support (disabled by default)
1026 AM_CONDITIONAL(SILC_OS2, test xfalse = xtrue)
1031 AC_MSG_CHECKING(whether to compile Irssi SILC Client)
1033 [ --without-irssi compile without Irssi SILC Client],
1037 SILC_DIST_SUBDIRS=`echo $SILC_DIST_SUBDIRS | $sedpath -e 's/irssi//'`
1046 AC_MSG_CHECKING(whether to compile SILC Server)
1048 [ --without-silcd compile without SILC Server],
1052 SILC_DIST_SUBDIRS=`echo $SILC_DIST_SUBDIRS | $sedpath -e 's/silcd//'`
1058 # Irssi perl support
1061 [[ --with-perl[=yes|no|module] Build with Perl support - also specifies
1062 if it should be built into main silc binary
1063 (static, default) or as a module]])
1066 AC_MSG_CHECKING(whether to do libtoolfix)
1067 AC_ARG_WITH(libtoolfix,
1068 [ --without-libtoolfix Do not fix libtool, for package builders],
1078 AC_DEFINE_UNQUOTED(SILC_ETCDIR, "$ETCDIR")
1086 # Other configure scripts
1088 if test x$without_irssi = xfalse; then
1089 if test "x$silc_dist" = "xsilc-client" ||
1090 test "x$silc_dist" = "xsilc-toolkit"; then
1091 AC_CONFIG_SUBDIRS(irssi)
1095 if test x$mp_gmp = xfalse; then
1096 AC_CONFIG_SUBDIRS(lib/silcmath/mpi)
1099 #AC_CONFIG_SUBDIRS(lib/zlib)
1101 SILC_TOP_SRCDIR=`pwd`
1102 AC_SUBST(SILC_TOP_SRCDIR)
1103 #SILC_INSTALL_PREFIX=$ac_default_prefix
1104 #AC_SUBST(SILC_INSTALL_PREFIX)
1106 INCLUDE_DEFINES_INT="include \$(top_srcdir)/Makefile.defines_int"
1107 AC_SUBST(INCLUDE_DEFINES_INT)
1108 AC_SUBST(SILC_DIST_SUBDIRS)
1111 # Fix the libtool to support run-time configuration. This allows us
1112 # to in run-time specify when to compile shared/static libraries without
1113 # need to reconfigure the entire libtool.
1115 if test x$libtoolfix = xtrue; then
1116 ./libtoolfix $SILC_TOP_SRCDIR/ltmain.sh
1118 AM_CONDITIONAL(SILC_LIBTOOLFIX, test x$libtoolfix = xtrue)
1127 Makefile.defines_int
1131 lib/contrib/Makefile
1132 lib/silccore/Makefile
1133 lib/silccore/tests/Makefile
1134 lib/silccrypt/Makefile
1135 lib/silccrypt/tests/Makefile
1136 lib/silcmath/Makefile
1137 lib/silcmath/mpi/Makefile.defines
1138 lib/silcmath/mpi/Makefile.defines_int
1139 lib/silcsim/Makefile
1140 lib/silcske/Makefile
1141 lib/silcutil/Makefile
1142 lib/silcutil/unix/Makefile
1143 lib/silcutil/win32/Makefile
1144 lib/silcutil/beos/Makefile
1145 lib/silcutil/os2/Makefile
1146 lib/silcutil/epoc/Makefile
1147 lib/silcsftp/Makefile
1148 lib/silcsftp/tests/Makefile
1149 doc/example_silcd.conf
1150 includes/silcincludes.h
1154 if test "x$silc_dist" = "xsilc-client" ||
1155 test "x$silc_dist" = "xsilc-toolkit"; then
1156 AC_CONFIG_FILES(lib/silcclient/Makefile)
1159 if test x$without_irssi = xfalse ; then
1160 if test "x$silc_dist" = "xsilc-client" ||
1161 test "x$silc_dist" = "xsilc-toolkit"; then
1163 irssi/Makefile.defines
1164 irssi/Makefile.defines_int
1169 if test x$without_silcd = xfalse ; then
1170 if test "x$silc_dist" = "xsilc-server" ||
1171 test "x$silc_dist" = "xsilc-toolkit"; then
1178 if test "x$silc_dist" = "xsilc-toolkit"; then
1182 win32/libsilc/Makefile
1183 win32/libsilcclient/Makefile
1185 tutorial/Makefile.defines
1186 tutorial/Makefile.defines_int
1192 s_bindir=`eval echo $bindir`;s_bindir=`eval echo $s_bindir`
1193 s_sbindir=`eval echo $sbindir`;s_sbindir=`eval echo $s_sbindir`
1194 s_mandir=`eval echo $mandir`;s_mandir=`eval echo $s_mandir`
1195 s_includedir=`eval echo $includedir`;s_includedir=`eval echo $s_includedir`
1198 echo "SILC Configuration Summary:"
1199 echo "---------------------------"
1200 echo " Target host ...................: $target"
1201 echo " Compiler ......................: $CC"
1202 echo " CFLAGS ........................: $CFLAGS"
1203 echo " CPPFLAGS ......................: $CPPFLAGS"
1204 echo " LDFLAGS .......................: $LDFLAGS"
1205 echo " LIBS ..........................: $LIBS"
1207 echo " Installation prefix ...........: $prefix"
1208 echo " bin directory .................: $s_bindir"
1209 echo " sbin directory ................: $s_sbindir"
1210 echo " etc directory .................: $ETCDIR"
1211 echo " man directory .................: $s_mandir"
1212 echo " help directory ................: $HELPDIR"
1213 echo " doc directory .................: $DOCDIR"
1214 echo " logs directory ................: $LOGSDIR"
1215 echo " SIM directory .................: $MODULESDIR"
1216 echo " include directory .............: $s_includedir"
1219 if test "x$silc_dist" = "xsilc-client" ||
1220 test "x$silc_dist" = "xsilc-toolkit"; then
1222 if test x$without_irssi = xtrue; then
1225 echo " Compile SILC Client ...........: $irssi"
1228 if test "x$silc_dist" = "xsilc-server" ||
1229 test "x$silc_dist" = "xsilc-toolkit"; then
1231 if test x$without_silcd = xtrue; then
1234 echo " Compile SILC Server ...........: $silcd"
1235 echo " Server configuration file .....: $summary_silcd_configfile"
1236 echo " Server PID file ...............: $PIDFILE"
1239 if test x$sim_support = xfalse; then
1244 if test x$has_iconv = xfalse; then
1249 echo " SIM support ...................: $sim_support"
1250 echo " IPv6 support ..................: $summary_ipv6"
1251 echo " Iconv support .................: $iconv_support"
1252 echo " Assembler optimizations .......: $summary_asm"
1255 if test x$mp_gmp = xtrue; then
1258 echo " Arithmetic library ............: $mp"
1261 if test x$has_threads = xtrue; then
1264 echo " Multi-threads support .........: $threads"
1265 echo " Debugging enabled .............: $summary_debug"
1266 echo " Stack-trace enabled ...........: $summary_stacktrace"
1268 if test "x$silc_dist" = "xsilc-client"; then
1269 echo "Compile the sources with 'make' or 'gmake' command (GNU make is required)."
1271 echo "Compile the sources with 'make' or 'gmake' command."