--- libaitrpc/configure.in 2015/07/02 17:52:51 1.34.2.2 +++ libaitrpc/configure.in 2015/07/02 22:20:47 1.34.2.3 @@ -1,6 +1,6 @@ # # $Author: misho $ -# $Id: configure.in,v 1.34.2.2 2015/07/02 17:52:51 misho Exp $ +# $Id: configure.in,v 1.34.2.3 2015/07/02 22:20:47 misho Exp $ # AC_INIT(libaitrpc, 9.1, misho@elwix.org) AC_CONFIG_SRCDIR([src/aitrpc.c]) @@ -72,7 +72,12 @@ 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"; fi ],) + [ 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)