From 3e8a243bab529b12e538a4b2792097d917e38c8b Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Thu, 4 Feb 2021 13:54:07 +0100 Subject: [PATCH] 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 ================================================================= -- 2.39.2