From: Jim Meyering Date: Wed, 10 Dec 2008 14:06:42 +0000 (+0100) Subject: gl_ASSERT: don't say assertions are disabled when they're not X-Git-Tag: v0.1~6617 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=9192e0a95a9c59846610ebffbae971b3996cdcec;p=gnulib.git gl_ASSERT: don't say assertions are disabled when they're not * m4/assert.m4 (gl_ASSERT): Do not make configure report "checking whether to enable assertions... no", when they are in fact enabled. This is solely a bug in the output of configure. In spite of saying "no", NDEBUG was not defined in that case. --- diff --git a/ChangeLog b/ChangeLog index d0694454c..8677895ef 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2008-12-10 Jim Meyering + + gl_ASSERT: don't say assertions are disabled when they're not + * m4/assert.m4 (gl_ASSERT): Do not make configure report + "checking whether to enable assertions... no", when they are in + fact enabled. This is solely a bug in the output of configure. + In spite of saying "no", NDEBUG was not defined in that case. + Also, as noted by Eric Blake, leave assertions enabled upon + --enable-assert=INVALID. + 2008-12-10 Bruno Haible Change MODULES.html to refer to POSIX:2008 where possible. diff --git a/m4/assert.m4 b/m4/assert.m4 index cb61ce82b..fb90cb365 100644 --- a/m4/assert.m4 +++ b/m4/assert.m4 @@ -1,4 +1,4 @@ -#serial 6 +#serial 7 # Copyright (C) 1998, 1999, 2001, 2004, 2008 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation @@ -18,7 +18,7 @@ AC_DEFUN([gl_ASSERT], [Define to 1 if assertions should be disabled.])], [test "x$enableval" != xyes], [AC_MSG_WARN([invalid argument supplied to --enable-assert]) - enable_assert=no])], - [enable_assert=no]) + enable_assert=yes])], + [enable_assert=yes]) AC_MSG_RESULT([$enable_assert]) ])