[network-manager-openvpn/th/ovpn-import-bgo761285] 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-openvpn/th/ovpn-import-bgo761285] build: add --with-more-asserts configure option for nm_assert() macro
- Date: Wed, 3 Feb 2016 11:16:52 +0000 (UTC)
commit 62b5a8862a810a41b06229d166e89b2c245dfbfd
Author: Thomas Haller <thaller redhat com>
Date: Wed Feb 3 11:59:02 2016 +0100
build: add --with-more-asserts configure option for nm_assert() macro
configure.ac | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index faaf481..86e0f94 100644
--- a/configure.ac
+++ b/configure.ac
@@ -116,6 +116,19 @@ if ! test x"$ac_distver" = x""; then
AC_DEFINE_UNQUOTED(DIST_VERSION, "$ac_distver", [Define the distribution version string])
fi
+AC_ARG_WITH(more-asserts,
+ AS_HELP_STRING([--with-more-asserts=level], [Enable more assertions for debugging (default: 0)]),
+ [more_asserts=${with_more_asserts}],
+ [])
+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]