diff options
-rw-r--r-- | m4/assert.m4 | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/m4/assert.m4 b/m4/assert.m4 new file mode 100644 index 000000000..00e45ab4d --- /dev/null +++ b/m4/assert.m4 @@ -0,0 +1,13 @@ +#serial 1 +dnl based on code from Eleftherios Gkioulekas + +AC_DEFUN(jm_ASSERT, +[ + AC_MSG_CHECKING(whether to enable assertions) + AC_ARG_ENABLE(assert, + [ --disable-assert turn off assertions], + [ AC_MSG_RESULT(no) + AC_DEFINE(NDEBUG) ], + [ AC_MSG_RESULT(yes) ] + ) +]) |