dnl -*- mode: Autoconf; -*- dnl ----------------------------------------------------------------------------------------- dnl option for memory failures dnl ----------------------------------------------------------------------------------------- AC_ARG_ENABLE(memfail, AS_HELP_STRING([--enable-memfail], [enables random memory allocation failures (default: no)]), tr_MEMFAIL="${enableval:-yes}", tr_MEMFAIL=no ) if test "x$tr_MEMFAIL" = xyes; then AC_DEFINE_UNQUOTED(TRI_ENABLE_MEMFAIL, 1, [true if random memory allocation failures are enabled]) fi AM_CONDITIONAL(ENABLE_MEMFAIL, test "x$tr_MEMFAIL" = xyes) dnl ----------------------------------------------------------------------------------------- dnl option for zone debug dnl ----------------------------------------------------------------------------------------- AC_ARG_ENABLE(zone-debug, AS_HELP_STRING([--enable-zone-debug], [enables memory zone debugging (default: no)]), tr_ZONE_DEBUG="${enableval:-yes}", tr_ZONE_DEBUG=no ) if test "x$tr_ZONE_DEBUG" = xyes; then AC_DEFINE_UNQUOTED(TRI_ENABLE_ZONE_DEBUG, 1, [true if memory zone debug is enabled]) fi AM_CONDITIONAL(ENABLE_ZONE_DEBUG, test "x$tr_ZONE_DEBUG" = xyes) dnl ----------------------------------------------------------------------------------------- dnl informational output dnl ----------------------------------------------------------------------------------------- if test "x$tr_MEMFAIL" = xyes; then BASIC_INFO="$BASIC_INFO|MEMFAIL: enabled" else BASIC_INFO="$BASIC_INFO|MEMFAIL: disabled" fi if test "x$tr_ZONE_DEBUG" = xyes; then BASIC_INFO="$BASIC_INFO|ZONE_DEBUG: enabled" else BASIC_INFO="$BASIC_INFO|ZONE_DEBUG: disabled" fi