+2008-12-08 William Pursell <bill.pursell@gmail.com> (tiny change)
+ and Eric Blake <ebb9@byu.net>
+
+ Fix AC_HEADER_ASSERT w.r.t. --enable-assert.
+ * lib/autoconf/headers.m4 (AC_HEADER_ASSERT): Honor --enable-assert,
+ rather than treating it as a synonym for --disable-assert.
+ * NEWS: Document the fix.
+
2008-12-06 William Pursell <bill.pursell@gmail.com> (tiny change)
Fix AC_HEADER_ASSERT to honor --enable-assert, rather than
** AC_LANG_ERLANG works once again (regression introduced in 2.61a).
+** AC_HEADER_ASSERT is fixed so that './configure --enable-assert' no
+ longer mistakenly disables assertions.
+
** Autotest testsuites accept an option --jobs[=N] for parallel testing.
** Autotest testsuites do not attempt to write startup error messages
AC_MSG_CHECKING([whether to enable assertions])
AC_ARG_ENABLE([assert],
[AS_HELP_STRING([--disable-assert], [turn off assertions])],
- [AS_IF([test "x$enableval" = xno],
- [AC_DEFINE([NDEBUG], [1], [Define to 1 if assertions should be disabled.]),
+ [ac_enable_assert=$enableval
+ AS_IF([test "x$enableval" = xno],
+ [AC_DEFINE([NDEBUG], [1],
+ [Define to 1 if assertions should be disabled.])],
[test "x$enableval" != xyes],
- AC_MSG_WARN([invalid argument supplied to --enable-assert.])
- [enable_assert=no]
- ])])
- AC_MSG_RESULT([$enable_assert])
+ [AC_MSG_WARN([invalid argument supplied to --enable-assert])
+ ac_enable_assert=no])],
+ [ac_enable_assert=no])
+ AC_MSG_RESULT([$ac_enable_assert])
])