From e76b2f5c4d27aa97e327d5750804918443525787 Mon Sep 17 00:00:00 2001 From: Pauli Nieminen Date: Sun, 11 May 2008 21:16:54 +0000 Subject: [PATCH] added switch to enable per fight stats in autotools --- configure.ac | 6 ++++++ src/Makefile.am | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/configure.ac b/configure.ac index ffee1946bb4..bbd765d71f7 100644 --- a/configure.ac +++ b/configure.ac @@ -274,6 +274,11 @@ AC_ARG_ENABLE([raw-sockets], [raw_sockets=$enableval], [raw_sockets=no]) +AC_ARG_ENABLE([mabul_stats], + AS_HELP_STRING([--enable-maboul-stats], [replace excepted battle result calcualtions per fight version]), + [maboul_stats=$enableval], + [maboul_stats=no]) + if test "x$raw_sockets" = "xyes" then CPPFLAGS="$CPPFLAGS -DNETWORK_USE_RAW_SOCKETS" @@ -291,6 +296,7 @@ AM_CONDITIONAL([GCC], [test x$GXX = xyes]) AM_CONDITIONAL([INCLUDEDINTL], [test x$nls_cv_use_gnu_gettext = xyes]) AM_CONDITIONAL([INSTALLDATA], [test x$game = xyes || x$editor = xyes]) AM_CONDITIONAL([DUMMYLOCALES], [test x$dummylocales = xyes]) +AM_CONDITIONAL([MABOUL_STATS], [test x$maboul_stats = xyes]) if test x$dummylocales = xyes; then AC_DEFINE([USE_DUMMYLOCALES],,[Define if the game should not use system locales]) diff --git a/src/Makefile.am b/src/Makefile.am index f7ded5b9b3f..63807020d96 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -376,6 +376,10 @@ else CXXFLAGS += -DWESNOTH_BOOST_TEST_MAIN endif +if MABOUL_STATS + CXXFLAGS += -DMABOUL_STATS +endif + CXXLD = $(LDPREFIX) $(CXX) CXXFLAGS += $(BOOST_CPPFLAGS)