From 954ceb91ddd94985594996d6d3c50be7b5652626 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 1 Feb 2011 20:58:10 +0200 Subject: Add ability to enable/disable manaserv with embedded enet. Set manaserv disabled in automake and cmake by default but enabled in build scripts. --- configure.ac | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index bb1085f77..7315832c5 100755 --- a/configure.ac +++ b/configure.ac @@ -134,6 +134,17 @@ AC_MSG_ERROR([ *** Unable to find SDL_net library])) AC_CHECK_LIB(rt, shm_open, , AC_MSG_ERROR([ *** Unable to find librt library])) +# Enable manaserv +AC_ARG_ENABLE(manaserv, +[ --enable-manaserv Turn on manaserv], +[case "${enableval}" in + yes) with_manaserv=true ;; + no) with_manaserv=false ;; + *) AC_MSG_ERROR(bad value ${enableval} for --enable-manaserv) ;; +esac],[with_manaserv=false]) + +AM_CONDITIONAL(ENABLE_MANASERV, test x$with_manaserv = xtrue) + AC_CONFIG_FILES([ Makefile src/Makefile -- cgit v1.2.3-60-g2f50