configure: fix debug option NDEBUG definition
We currently define NDEBUG only if --<set>-debug is not specified at all. That is, --disable-debug currently has almost no effect. This fixes this bug and also corrects a wrong parenthesis. Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
This commit is contained in:
parent
319aae35c9
commit
b6550aed8b
@ -74,11 +74,14 @@ AM_CONDITIONAL([USE_PANGO], [test x$force_pango = xyes])
|
||||
|
||||
AC_MSG_CHECKING([whether to build with debugging on])
|
||||
AC_ARG_ENABLE([debug],
|
||||
[AS_HELP_STRING([--enable-debug], [whether to build with debugging on)])],
|
||||
[debug="$enableval"],
|
||||
[debug=no; AC_DEFINE([NDEBUG], [1], [No Debug])])
|
||||
[AS_HELP_STRING([--enable-debug], [whether to build with debugging on])],
|
||||
[debug="$enableval"], [debug=no])
|
||||
AM_CONDITIONAL([DEBUG], [test x$debug = xyes])
|
||||
AC_MSG_RESULT([$debug])
|
||||
|
||||
if test ! x$debug = xyes ; then
|
||||
AC_DEFINE([NDEBUG], [1], [No Debug])
|
||||
fi
|
||||
|
||||
AC_CONFIG_FILES([Makefile])
|
||||
AC_OUTPUT
|
||||
|
Loading…
x
Reference in New Issue
Block a user