--- libaitrpc/configure.in 2013/03/07 23:10:49 1.16 +++ libaitrpc/configure.in 2013/12/15 23:01:02 1.28 @@ -1,11 +1,14 @@ # # $Author: misho $ -# $Id: configure.in,v 1.16 2013/03/07 23:10:49 misho Exp $ +# $Id: configure.in,v 1.28 2013/12/15 23:01:02 misho Exp $ # -AC_INIT(libaitrpc, 5.0, misho@elwix.org) +AC_INIT(libaitrpc, 6.7, misho@elwix.org) AC_CONFIG_SRCDIR([src/aitrpc.c]) AC_CONFIG_HEADERS([inc/config.h]) +ac_cv_func_malloc_0_nonnull="yes" +ac_cv_func_realloc_0_nonnull="yes" + # Checks for programs. AC_PROG_CC AC_PROG_INSTALL @@ -79,6 +82,30 @@ AC_ARG_ENABLE(cli-res-zcpy, ;; esac ],) AC_MSG_RESULT($CLI_RES_ZC) + +TCP_SESSION_TIMEOUT=no +AC_MSG_CHECKING(RPC server can to do expiring for TCP sessions) +AC_ARG_ENABLE(tcp_sess_exp, + [ --enable-tcp_sess_exp Build library with TCP session expiration], + [ TCP_SESSION_TIMEOUT=$enableval + case "$enableval" in + yes) + AC_DEFINE(TCP_SESSION_TIMEOUT,, + [Build library with TCP session expiration]) + ;; + *) + ;; + esac ],) +AC_MSG_RESULT($TCP_SESSION_TIMEOUT) + +DEF_RPC_TIMEOUT=60 +AC_MSG_CHECKING(RPC server timeout period) +AC_ARG_WITH(timeout_period, + [ --with-timeout_period Build library with TCP timeout period], + [ DEF_RPC_TIMEOUT=$withval ],) +AC_DEFINE_UNQUOTED(DEF_RPC_TIMEOUT, $DEF_RPC_TIMEOUT, [Build library with TCP timeout period]) +AC_MSG_RESULT($DEF_RPC_TIMEOUT) + AC_CONFIG_FILES([Makefile inc/Makefile