build: make NM_MORE_ASSERTS define numeric for different levels of more-asserts
authorThomas Haller <thaller@redhat.com>
Mon, 5 Oct 2015 11:48:01 +0000 (13:48 +0200)
committerThomas Haller <thaller@redhat.com>
Mon, 5 Oct 2015 13:25:54 +0000 (15:25 +0200)
commit6395c829bb143301275b9bb449780d46a381553c
treeac4546ae08473a0f2532456bcc805c4be19fa214
parent0907f3c21eee831deb338e6c91a79f0c92e7dd66
build: make NM_MORE_ASSERTS define numeric for different levels of more-asserts

Allows to enable more-asserts more granularly.

Unfortunately, the old check was "${enable_more_asserts} == "yes", thus
we cannot extend "--enable-more-assert=level" because that would mean
that the same build script cannot set the option on both old and new
NetworkManager.
Thus, add a new option --with-more-asserts=level. If you put the
following in your build script, it will work as expected whether
you build a new or an old version of NetworkManager.
  ./configure --enable-more-asserts --with-more-asserts=5
configure.ac
include/nm-macros-internal.h
src/nm-bus-manager.c
src/nm-route-manager.c
src/platform/nmp-object.c