mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-21 09:11:54 +00:00
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:
parent
e48dae3ed7
commit
6b5ab87581
@ -7,6 +7,7 @@ AC_INIT(conf/confbase.Y)
|
||||
AC_CONFIG_AUX_DIR(tools)
|
||||
|
||||
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(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)
|
||||
@ -145,9 +146,11 @@ BIRD_CHECK_STRUCT_IP_MREQN
|
||||
|
||||
if test "$enable_debug" = yes ; then
|
||||
AC_DEFINE(DEBUGGING)
|
||||
AC_CHECK_LIB(dmalloc, dmalloc_debug)
|
||||
if test $ac_cv_lib_dmalloc_dmalloc_debug != yes ; then
|
||||
AC_CHECK_LIB(efence, malloc)
|
||||
if test "$enable_memcheck" = yes ; then
|
||||
AC_CHECK_LIB(dmalloc, dmalloc_debug)
|
||||
if test $ac_cv_lib_dmalloc_dmalloc_debug != yes ; then
|
||||
AC_CHECK_LIB(efence, malloc)
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user