Skip to content

Commit

Permalink
Provide configure flags for various features
Browse files Browse the repository at this point in the history
  • Loading branch information
jonm committed Nov 19, 2015
1 parent 3c4bd70 commit 5260fc7
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5260fc7

Please sign in to comment.