--- libaitrpc/configure.in 2015/05/18 15:09:59 1.34 +++ libaitrpc/configure.in 2015/07/02 22:20:47 1.34.2.3 @@ -1,8 +1,8 @@ # # $Author: misho $ -# $Id: configure.in,v 1.34 2015/05/18 15:09:59 misho Exp $ +# $Id: configure.in,v 1.34.2.3 2015/07/02 22:20:47 misho Exp $ # -AC_INIT(libaitrpc, 9.0, misho@elwix.org) +AC_INIT(libaitrpc, 9.1, misho@elwix.org) AC_CONFIG_SRCDIR([src/aitrpc.c]) AC_CONFIG_HEADERS([inc/config.h]) @@ -68,6 +68,19 @@ AC_ARG_ENABLE(debug, esac ],) AC_MSG_RESULT($DEBUG) +ONLY_CLI=no +AC_MSG_CHECKING(Build only RPC client) +AC_ARG_ENABLE(server, + [ --disable-server Disable RPC server ], + [ if [[ "$enableval" = "no" ]]; then + ONLY_CLI="yes" + AC_DEFINE(ONLY_CLI, 1, [ Disable RPC server ]) + else + AC_DEFINE(ONLY_CLI, 0, [ Disable RPC server ]) + fi ], AC_DEFINE(ONLY_CLI, 0, [ Disable RPC server ])) +AC_MSG_RESULT($ONLY_CLI) +AC_SUBST(ONLY_CLI) + CLI_RES_ZC=no AC_MSG_CHECKING(Client zero-copy return variables) AC_ARG_ENABLE(cli-res-zcpy, @@ -101,10 +114,18 @@ 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], + [ --with-timeout_period=s Build library with RPC timeout period ], [ DEF_RPC_TIMEOUT=$withval ],) -AC_DEFINE_UNQUOTED(DEF_RPC_TIMEOUT, $DEF_RPC_TIMEOUT, [Build library with TCP timeout period]) +AC_DEFINE_UNQUOTED(DEF_RPC_TIMEOUT, $DEF_RPC_TIMEOUT, [Build library with RPC timeout period]) AC_MSG_RESULT($DEF_RPC_TIMEOUT) + +DEF_RPC_BLOB_TIMEOUT=60 +AC_MSG_CHECKING(RPC BLOB server timeout period) +AC_ARG_WITH(blob_timeout, + [ --with-blob_timeout=sec Build library with BLOB timeout period ], + [ DEF_RPC_BLOB_TIMEOUT=$withval ],) +AC_DEFINE_UNQUOTED(DEF_RPC_BLOB_TIMEOUT, $DEF_RPC_BLOB_TIMEOUT, [Build library with BLOB timeout period]) +AC_MSG_RESULT($DEF_RPC_BLOB_TIMEOUT) AC_CONFIG_FILES([Makefile