From ceeb3d007e65c9eca2e0725b927f44cddb5ccf07 Mon Sep 17 00:00:00 2001 From: toddouska Date: Mon, 13 Apr 2015 12:01:21 -0700 Subject: [PATCH] fix github issue #65, don't output (N)DEBUG to options.h --- configure.ac | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/configure.ac b/configure.ac index d6e803416..2a5c63911 100644 --- a/configure.ac +++ b/configure.ac @@ -2000,6 +2000,12 @@ for option in $OPTION_FLAGS; do if test "$defonly" != "$option" then noequalsign=`echo $defonly | sed 's/=/ /'` + if test "$noequalsign" = "NDEBUG" || test "$noequalsign" = "DEBUG" + then + echo "not outputing (N)DEBUG to $OPTION_FILE" + continue + fi + echo "#undef $noequalsign" >> $OPTION_FILE echo "#define $noequalsign" >> $OPTION_FILE echo "" >> $OPTION_FILE