Permalink
Browse files

Never ignore assertions

  • Loading branch information...
1 parent c91e447 commit ad639900c9b894fbaf486f251d4f5948c6834026 @jedisct1 committed Sep 24, 2012
Showing with 7 additions and 2 deletions.
  1. +7 −2 configure.ac
View
@@ -99,8 +99,6 @@ AC_TYPE_UINT32_T
AC_CHECK_TYPES([ptrdiff_t])
# Switches
-AC_HEADER_ASSERT
-
AC_ARG_ENABLE(debug,
[AS_HELP_STRING(--enable-debug,For maintainers only - please do not use)],
[ if test "x$enableval" = "xyes" ; then
@@ -125,6 +123,13 @@ LEVENTDIR="levent2"
AC_CONFIG_SUBDIRS([src/levent2])
CPPFLAGS="-I$LEVENTDIR -I$LEVENTDIR/include $CPPFLAGS"
+dnl Output
+
+AH_VERBATIM([NDEBUG], [/* Never ever ignore assertions */
+#ifdef NDEBUG
+#/**/undef/**/ NDEBUG
+#endif])
+
AC_CONFIG_FILES([Makefile
src/Makefile
src/ext/Makefile

0 comments on commit ad63990

Please sign in to comment.