[network-manager-applet/th/tmp: 3/5] build: add --with-more-asserts configure option for nm_assert() macro
- From: Thomas Haller <thaller src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-applet/th/tmp: 3/5] build: add --with-more-asserts configure option for nm_assert() macro
- Date: Tue, 16 Feb 2016 19:01:23 +0000 (UTC)
commit 2ee58dd27c8c32b995a346a2085adb9a44fece27
Author: Thomas Haller <thaller redhat com>
Date: Tue Feb 16 19:03:29 2016 +0100
build: add --with-more-asserts configure option for nm_assert() macro
configure.ac | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index c90989d..592fa36 100644
--- a/configure.ac
+++ b/configure.ac
@@ -150,6 +150,20 @@ dnl
NM_COMPILER_WARNINGS
+AC_ARG_WITH(more-asserts,
+ AS_HELP_STRING([--with-more-asserts=level], [Enable more assertions for debugging (default: 0)]),
+ [more_asserts=${with_more_asserts}],
+ [more_asserts=no])
+if test "${more_asserts}" = "no"; then
+ more_asserts=0
+else
+ if test "${more_asserts}" = "yes"; then
+ more_asserts=100
+ fi
+fi
+AC_DEFINE_UNQUOTED(NM_MORE_ASSERTS, $more_asserts, [Define if more asserts are enabled])
+
+
AC_CONFIG_FILES([
Makefile
src/Makefile
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]