Introduce a new configure switch (--enable-lowmem)

for reduced memory usage by removing extra functionality
This commit is contained in:
Karol Nowak 2006-08-04 12:18:34 +00:00
parent a6f178fcf0
commit afa27092fe

View file

@ -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@:>@]),