]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
Fix configure --enable-debug
authorJan Safranek <jsafrane@redhat.com>
Fri, 4 Mar 2011 11:22:31 +0000 (12:22 +0100)
committerJan Safranek <jsafrane@redhat.com>
Thu, 10 Mar 2011 15:00:13 +0000 (16:00 +0100)
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>
configure.in

index 226f1bba9ec72b68e59d905e7911e6705339311e..ba8e1b182c40ef3dee68f8f350f40eb08c36c8c3 100644 (file)
@@ -48,8 +48,12 @@ AM_CONDITIONAL([WITH_BINDINGS], [test x$with_bindings = xtrue])
 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],