Introduce a new configure switch (--enable-lowmem)
for reduced memory usage by removing extra functionality
This commit is contained in:
parent
a6f178fcf0
commit
afa27092fe
1 changed files with 13 additions and 0 deletions
13
configure.ac
13
configure.ac
|
@ -89,8 +89,21 @@ if test "x$tinygui" = "xyes"
|
|||
then
|
||||
CPPFLAGS="$CPPFLAGS -DUSE_TINY_GUI"
|
||||
fi
|
||||
|
||||
AM_CONDITIONAL([TINYGUI], [test "x$tinygui" = "xyes"])
|
||||
|
||||
AC_ARG_ENABLE([lowmem],
|
||||
AS_HELP_STRING([--enable-lowmem], [reduce memory usage by removing extra functionality]),
|
||||
[lowmem=$enableval],
|
||||
[lowmem=no])
|
||||
|
||||
if test "x$lowmem" = "xyes"
|
||||
then
|
||||
CPPFLAGS="$CPPFLAGS -DLOW_MEM"
|
||||
fi
|
||||
|
||||
AM_CONDITIONAL([LOWMEM], [test "x$lowmem" = "xyes"])
|
||||
|
||||
DATADIR=$PACKAGE
|
||||
AC_ARG_WITH([datadir-name],
|
||||
AS_HELP_STRING([--with-datadir-name@<:@=DIR@:>@], [change name of data directory @<:@wesnoth@:>@]),
|
||||
|
|
Loading…
Add table
Reference in a new issue