aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rwxr-xr-xconfigure1
-rw-r--r--configure.ac1
3 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 3c8a72f3..1c686d0c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2012-08-08 Arnold D. Robbins <arnold@skeeve.com>
+
+ * configure.ac: Add -DNDEBUG to remove asserts if not developing.
+
2012-08-01 Arnold D. Robbins <arnold@skeeve.com>
* io.c (iop_finish): New function.
diff --git a/configure b/configure
index c45d0cd0..56409961 100755
--- a/configure
+++ b/configure
@@ -5553,6 +5553,7 @@ $as_echo "yes" >&6; }
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
+ CFLAGS="$CFLAGS -DNDEBUG" # turn off assertions
fi
diff --git a/configure.ac b/configure.ac
index f3cf6777..bb81f800 100644
--- a/configure.ac
+++ b/configure.ac
@@ -95,6 +95,7 @@ then
AC_MSG_RESULT([yes])
else
AC_MSG_RESULT([no])
+ CFLAGS="$CFLAGS -DNDEBUG" # turn off assertions
fi
AC_SUBST(CFLAGS)