Permalink
Browse files

Provide configure flags for various features

  • Loading branch information...
1 parent 3c4bd70 commit 5260fc74068d4925e5321d6164d5196d9f75a313 @jonm committed Nov 17, 2015
Showing with 41 additions and 0 deletions.
  1. +41 −0 configure.ac
View
@@ -27,6 +27,47 @@ AC_CHECK_LIB(criterion,extmatch,[
AC_MSG_WARN(See https://github.com/Snaipe/Criterion/)
])
+AH_TEMPLATE([IMPL_SECURITY],
+ [Define as 1 to restrict each level 58+ god to one site or set of
+ sites])
+AC_ARG_ENABLE([impl-security],
+ [AS_HELP_STRING([--disable-impl-security],
+ [turn off site-locking for gods])],
+ [],
+ [AC_DEFINE([IMPL_SECURITY])])
+
+AH_TEMPLATE([NEW_RENT],
+ [Define as 1 to use newer (more expensive) rent])
+AC_ARG_ENABLE([new-rent],
+ [AS_HELP_STRING([--disable-new-rent],
+ [turn off newer (more expensive) rent])],
+ [],
+ [AC_DEFINE([NEW_RENT])])
+
+AH_TEMPLATE([LEVEL_LOSS],
+ [Define as 1 to enable loss of level at low experience levels])
+AC_ARG_ENABLE([level-loss],
+ [AS_HELP_STRING([--disable-level-loss],
+ [turn off loss of level for low experience])],
+ [],
+ [AC_DEFINE([LEVEL_LOSS])])
+
+AH_TEMPLATE([NEWEXP],
+ [Define as 1 to allow lower exp loss for lower levels])
+AC_ARG_ENABLE([new-exp],
+ [AS_HELP_STRING([--disable-new-exp],
+ [turn off lower exp loss for low level chars])],
+ [],
+ [AC_DEFINE([NEWEXP])])
+
+AH_TEMPLATE([GROUP_NAMES],
+ [Define as 1 to allow for named groups])
+AC_ARG_ENABLE([group-names],
+ [AS_HELP_STRING([--disable-group-names],
+ [turn off group names])],
+ [],
+ [AC_DEFINE([GROUP_NAMES])])
+
AC_CONFIG_FILES([
Makefile
src/Makefile

0 comments on commit 5260fc7

Please sign in to comment.