I've noticed that the debugging info is compiled in even if --disable-debug
is provided. Following patch adds explicit check that --enable-debug or
--enable-debug=yes is provided to configure script.
Signed-off-by: Jan Safranek <jsafrane@redhat.com>
AC_ARG_ENABLE([debug],
[AC_HELP_STRING([--enable-debug],
[enable extra debugging output [default=no]])],
- [AC_DEFINE([CGROUP_DEBUG], [],
- [Define to enable extra debugging output.])],
+ [
+ if test "x$enableval" = xyes; then
+ AC_DEFINE([CGROUP_DEBUG], [],
+ [Define to enable extra debugging output.])
+ fi
+ ]
[])
AC_ARG_ENABLE([tools],