summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1998-04-26 20:48:00 +0000
committerJim Meyering <jim@meyering.net>1998-04-26 20:48:00 +0000
commit44fa09dc5ecdceae1ee4d3cbf81a0a3ad4a5fdad (patch)
treee15d139ead8d547a645febb816640a26b7d27e21
parent808b93884064cf99883bfcf876d500dbdb11c37f (diff)
downloadcoreutils-44fa09dc5ecdceae1ee4d3cbf81a0a3ad4a5fdad.tar.xz
.
-rw-r--r--m4/assert.m413
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) ]
+ )
+])