comparison urogue/configure.ac @ 288:b8919055c2fc

UltraRogue: compile out the built-in memory checking. Functions in memory.c tracked and instrumented memory allocation. This mechanism logged information to a text file and also added a 16KB guard area to every allocation. Neither of these are desirable in a multi- user environment, so the whole memory tracking subsystem has been disabled. The behavior can be enabled with a configure flag, but it would be a better idea to use Valgrind to deal with memory bugs.
author John "Elwin" Edwards
date Fri, 24 Nov 2017 13:22:26 -0500
parents 0b3d1b38998f
children fe6b7a1a6dfc
comparison
equal deleted inserted replaced
287:0b3d1b38998f 288:b8919055c2fc
156 else 156 else
157 AC_DEFINE([WIZARD], [], [Define to include wizard mode]) 157 AC_DEFINE([WIZARD], [], [Define to include wizard mode])
158 AC_MSG_RESULT([yes]) 158 AC_MSG_RESULT([yes])
159 fi 159 fi
160 160
161 AC_ARG_ENABLE([memdebug],[AC_HELP_STRING([--enable-memdebug], [enable built-in memory checking @<:@default=no@:>@])],[],[])
162 AC_MSG_CHECKING([if memory checking is enabled])
163 if test "x$enable_memdebug" = "xno" ; then
164 AC_MSG_RESULT([no])
165 elif test "x$enable_memdebug" = "x" ; then
166 AC_MSG_RESULT([no])
167 else
168 AC_DEFINE([MEM_DEBUG], [], [Define to enable built-in memory checking])
169 AC_MSG_RESULT([yes])
170 fi
171
161 AC_OUTPUT 172 AC_OUTPUT