From d73af9d8e436f36b612869422291caeb3239c758 Mon Sep 17 00:00:00 2001 From: Dennis Camera Date: Thu, 25 Aug 2022 22:03:49 +0200 Subject: [configure.ac] Simplify DEBUG macro definition --- configure.ac | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index d673e2d..650fc91 100644 --- a/configure.ac +++ b/configure.ac @@ -133,10 +133,10 @@ AC_ARG_ENABLE( (*) AC_MSG_ERROR([bad value ${enableval} for --enable-debug]) ;; esac], [debug=false]) -AM_CONDITIONAL(DEBUG, [test "x${debug}" = xtrue]) +AM_CONDITIONAL(DEBUG, [${debug}]) AM_COND_IF(DEBUG, - AC_DEFINE(DEBUG, 1, [Define to 0 if this is a release build]), - AC_DEFINE(DEBUG, 0, [Define to 1 or higher if this is a debug build])) + AC_DEFINE([DEBUG], [1], [Define to 1 if this is a debug build]), + AC_DEFINE([DEBUG], [0], [Define to 1 if this is a debug build])) # Defines AC_DEFINE(DIRSEP, [/], [The directory separator in a file system path]) -- cgit v1.2.3