From 6fc2bffe9c7793cb3a4146b32ae38baccec4e7a4 Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Thu, 10 Mar 2016 15:41:59 +0100 Subject: [PATCH] Fix the DEBUG define So it gets defined even if debugging is not enabled --- configure.ac | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index efdfab6..342afe2 100644 --- a/configure.ac +++ b/configure.ac @@ -173,7 +173,7 @@ AC_ARG_ENABLE(debug, AM_CONDITIONAL([DEBUG], [test $debug = yes]) if test x"$debug" = x"$enableval"; then - AC_DEFINE([DEBUG], [1], [Define if debugging should be enabled]) + AC_DEFINE([DEBUG], [1], [Define as 1 if debugging should be enabled]) if test x"$cflags_set" != x"set"; then case " $CFLAGS " in @@ -181,6 +181,8 @@ if test x"$debug" = x"$enableval"; then *) CFLAGS="$CFLAGS -g" ;; esac fi +else + AC_DEFINE([DEBUG], [0], [Define as 1 if debugging should be enabled]) fi AC_SUBST([MATRIX_GLIB_MAJOR_VERSION], matrix_glib_major_version)