[Privoxy-commits] [privoxy] 04/46: configure: Add --with-assertions option and only enable assertions when it is used

User Git git at git.privoxy.org
Sun Feb 21 15:10:26 UTC 2021


This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository privoxy.

commit 3e8a243bab529b12e538a4b2792097d917e38c8b
Author: Fabian Keil <fk at fabiankeil.de>
AuthorDate: Thu Feb 4 13:54:07 2021 +0100

    configure: Add --with-assertions option and only enable assertions when it is used
---
 configure.in | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/configure.in b/configure.in
index 8aba8a79..8718a8de 100644
--- a/configure.in
+++ b/configure.in
@@ -157,6 +157,11 @@ AC_ARG_WITH(debug,
         ]
 )
 
+AC_ARG_WITH(assertions, [  --with-assertions       Enable assertions])
+if test "x$with_assertions" != "xyes"; then
+    CFLAGS="$CFLAGS -DNDEBUG"
+fi
+
 dnl =================================================================
 dnl Check for user and group validity
 dnl =================================================================

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Privoxy-commits mailing list