Added `--disable-memcheck' switch which avoids linking of efence/dmalloc,

so that we can run in debugging mode with large routing tables.
This commit is contained in:
Martin Mares 2000-05-08 14:51:57 +00:00
parent e48dae3ed7
commit 6b5ab87581

View file

@ -7,6 +7,7 @@ AC_INIT(conf/confbase.Y)
AC_CONFIG_AUX_DIR(tools) AC_CONFIG_AUX_DIR(tools)
AC_ARG_ENABLE(debug,[ --enable-debug enable internal debugging routines (default: disabled)],,enable_debug=no) AC_ARG_ENABLE(debug,[ --enable-debug enable internal debugging routines (default: disabled)],,enable_debug=no)
AC_ARG_ENABLE(memcheck,[ --enable-memcheck check memory allocations when debugging (default: enabled)],,enable_memcheck=yes)
AC_ARG_ENABLE(warnings,[ --enable-warnings enable extra warnings (default: disabled)],,enable_warnings=no) AC_ARG_ENABLE(warnings,[ --enable-warnings enable extra warnings (default: disabled)],,enable_warnings=no)
AC_ARG_ENABLE(client,[ --enable-client enable building of BIRD client (default: enabled)],,enable_client=yes) AC_ARG_ENABLE(client,[ --enable-client enable building of BIRD client (default: enabled)],,enable_client=yes)
AC_ARG_ENABLE(ipv6,[ --enable-ipv6 enable building of IPv6 version (default: disabled)],,enable_ipv6=no) AC_ARG_ENABLE(ipv6,[ --enable-ipv6 enable building of IPv6 version (default: disabled)],,enable_ipv6=no)
@ -145,9 +146,11 @@ BIRD_CHECK_STRUCT_IP_MREQN
if test "$enable_debug" = yes ; then if test "$enable_debug" = yes ; then
AC_DEFINE(DEBUGGING) AC_DEFINE(DEBUGGING)
AC_CHECK_LIB(dmalloc, dmalloc_debug) if test "$enable_memcheck" = yes ; then
if test $ac_cv_lib_dmalloc_dmalloc_debug != yes ; then AC_CHECK_LIB(dmalloc, dmalloc_debug)
AC_CHECK_LIB(efence, malloc) if test $ac_cv_lib_dmalloc_dmalloc_debug != yes ; then
AC_CHECK_LIB(efence, malloc)
fi
fi fi
fi fi