From 349bc2dda26c32a4f39a795965b0aee347353d91 Mon Sep 17 00:00:00 2001 From: Christophe CURIS Date: Fri, 8 Nov 2013 23:08:20 +0100 Subject: [PATCH] configure: Do not keep assertion if debug was not enabled Signed-off-by: Christophe CURIS --- configure.ac | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configure.ac b/configure.ac index 0415bbc5..8f659790 100644 --- a/configure.ac +++ b/configure.ac @@ -95,6 +95,10 @@ AS_IF([test "x$debug" = "xyes"], dnl dnl Enable internal debug code CPPFLAGS="$CPPFLAGS -DDEBUG" +], [dnl + dnl When debug is not enabled, the user probably does not wants to keep + dnl assertions in the final program + CPPFLAGS="$CPPFLAGS -DNDEBUG" ])