summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2018-08-26 19:45:22 +0200
committerThomas Haller <thaller@redhat.com>2018-08-27 17:49:29 +0200
commit3b5f8c91fe0e5a3d04a5ba10a651fc6817119a19 (patch)
tree3a16a1bab8ac60adb5ec0a9d02a5829cd3043c26 /configure.ac
parent68691eb0097281972e5fa80088b2804d33e5a232 (diff)
downloadNetworkManager-3b5f8c91fe0e5a3d04a5ba10a651fc6817119a19.tar.gz
build: always define NM_MORE_LOGGING define and don't check with #ifdef
Using '#ifdef' is generally error prone. It's better to always define a define and check for it explicitly. This way, the compiler can issue a warning if the define does not exist. Also, note how meson would always define NM_MORE_LOGGING, possibly to "0". That means, for meson, we unintentionally always enabled more logging because the define was always present. Fix that.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac2
1 files changed, 2 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 0ed61a13f4..cc5d488454 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1111,6 +1111,8 @@ if test "${enable_more_logging}" = ""; then
fi
if test "${enable_more_logging}" = "yes"; then
AC_DEFINE(NM_MORE_LOGGING, [1], [Define if more debug logging is enabled])
+else
+ AC_DEFINE(NM_MORE_LOGGING, [0], [Define if more debug logging is enabled])
fi
NM_LTO