+Sun Sep 2 17:17:24 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
+
+ * Fixed WIN32 configuration in the ./configure script.
+ Fixed to include xti.h on environments that has it.
+ Patches by Carsten Ilchmann and andrew.
+
Sat Sep 1 00:29:33 EEST 2001 Pekka Riikonen <priikone@silcnet.org>
* Changed the silc_id_create_client_id to be collision
# More header checking
AC_CHECK_HEADERS(unistd.h string.h getopt.h errno.h fcntl.h assert.h)
AC_CHECK_HEADERS(sys/types.h sys/stat.h sys/time.h)
-AC_CHECK_HEADERS(netinet/in.h netinet/tcp.h netdb.h)
+AC_CHECK_HEADERS(netinet/in.h netinet/tcp.h xti.h netdb.h)
AC_CHECK_HEADERS(pwd.h grp.h termcap.h paths.h)
AC_CHECK_HEADERS(ncurses.h signal.h ctype.h regex.h)
AC_CHECK_HEADERS(arpa/inet.h sys/mman.h limits.h)
AC_ARG_WITH(win32,
[ --with-win32 Compile native WIN32 code (-mno-cygwin)],
[ AC_DEFINE(SILC_WIN32)
- AM_CONDITIONAL(SILC_WIN32, test xtrue = xtrue)
+ win32-support = true
CFLAGS="-mno-cygwin $CFLAGS"
LIBS="$LIBS -lwsock32" ])
+AM_CONDITIONAL(SILC_WIN32, test x$win32-support = xtrue)
+
#
# Debug checking
#
#error netinet/in.h not found in the system
#endif
+#ifdef HAVE_XTI_H
+#include <xti.h>
+#else
#ifdef HAVE_NETINET_TCP_H
#include <netinet/tcp.h>
#else
-#error netinet/tcp.h not found in the system
+#error xti.h nor even netinet/tcp.h found in the system
+#endif
#endif
#ifdef HAVE_NETDB_H
libsilc.a:
find $(SILCLIB_DIRS) -type f -name *.o | xargs $(AR) cru libsilc.a
- ranlib libsilc.a
+ $(RANLIB) libsilc.a
libsilcclient.a:
find $(SILCCLIENTLIB_DIRS) -type f -name *.o | xargs $(AR) cru libsilcclient.a
- ranlib libsilcclient.a
+ $(RANLIB) libsilcclient.a