reason of the disconnection and optional disconnection
message. Affected file lib/silcclient/silcclient.h.
+ * Made the compilation of lib/contrib/ stuff conditional.
+ Affected files configure.in.pre, lib/contrib/Makefile.am.
+
Sat Jun 22 12:49:21 EEST 2002 Pekka Riikonen <priikone@silcnet.org>
* All CMODE_CHANGE and CUMODE_CHANGE notifys are now sent back
TODO/bugs In SILC Libraries
===========================
- o Remove ../lib/contrib/ from includes and use relative path instead.
-
o WIN32 silc_net_create_connection_async does not work the same way
than on Unix. Do it with threads on WIN32. The function works but
is not actually async currently (Fix this to 0.9.x).
AC_CHECK_HEADERS(sys/types.h sys/stat.h sys/time.h stddef.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 utime.h iconv.h)
+AC_CHECK_HEADERS(ncurses.h signal.h ctype.h utime.h iconv.h)
AC_CHECK_HEADERS(arpa/inet.h sys/mman.h limits.h termios.h locale.h langinfo.h)
# Data type checking
fi
AC_CHECK_FUNCS(gethostname gethostbyaddr getservbyname getservbyport)
AC_CHECK_FUNCS(select listen bind shutdown close connect)
-AC_CHECK_FUNCS(fcntl setsockopt)
-AC_CHECK_FUNCS(getopt_long time)
+AC_CHECK_FUNCS(fcntl setsockopt time)
AC_CHECK_FUNCS(chmod stat fstat getenv putenv strerror ctime gettimeofday)
AC_CHECK_FUNCS(getpid getgid getsid getpgid getpgrp getuid)
AC_CHECK_FUNCS(setgroups initgroups)
AC_MSG_RESULT(no SIM support found)),
AC_MSG_RESULT(no SIM support found))
+#
+# lib/contrib conditionals
+#
+AC_CHECK_HEADER(regex.h, have_regex=1, have_regex=0)
+AM_CONDITIONAL(HAVE_REGEX, test x$have_regex = x1)
+AC_CHECK_FUNC(getopt_long, have_getopt_long=1, have_getopt_long=0)
+AM_CONDITIONAL(HAVE_GETOPT_LONG, test x$have_getopt_long = x1)
+
#
# Installation
#
noinst_LIBRARIES = libcontrib.a
+if HAVE_GETOPT_LONG
+GETOPT =
+else
+GETOPT = getopt.c getopt1.c
+endif
+
+if HAVE_REGEX
+REGEX =
+else
+REGEX = regex.c
+endif
+
if SILC_WIN32
libcontrib_a_SOURCES =
else
libcontrib_a_SOURCES = \
- getopt.c \
- getopt1.c \
- regex.c
+ $(GETOPT) \
+ $(REGEX)
+endif
+
+if SILC_DIST_TOOLKIT
+include_HEADERS = getopt.h regex.h
endif
-EXTRA_DIST = *.h
+EXTRA_DIST = *.c *.h
include $(top_srcdir)/Makefile.defines.in