summaryrefslogtreecommitdiff
blob: ce8f0bb773fdf7e36bfe4e857d73eb8c17933d2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From: Romain Perier <mrpouet@gentoo.org>
Date: Mon, 26 Oct 2009 11:12:22 +0100
Subject: [PATCH] Fix the forced debugging mode even if --disable-debug is given on the command line

---
 configure.in |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/configure.in b/configure.in
index 5f4c4bc..611faaa 100644
--- a/configure.in
+++ b/configure.in
@@ -80,7 +80,9 @@ AM_CFLAGS="$AM_CFLAGS $WARN_CFLAGS"
 dnl Enable debugging mode
 AC_ARG_ENABLE(debug,
   AC_HELP_STRING([--enable-debug],[Enable debug messages]),
-  AM_CFLAGS="$AM_CFLAGS -DDEBUG")
+  [if test "x$enableval" = "xyes"; then
+      AM_CFLAGS="$AM_CFLAGS -DDEBUG"
+   fi])
 AC_SUBST(AM_CFLAGS)
 
 ANJUTA_LDFLAGS="-no-undefined"
-- 
1.6.5.1