aboutsummaryrefslogtreecommitdiff
path: root/configure.seed
diff options
context:
space:
mode:
authorVitaly Lavrov <vel21ripn@gmail.com>2018-02-07 16:05:51 +0300
committerVitaly Lavrov <vel21ripn@gmail.com>2018-02-07 16:31:35 +0300
commit0624afd422b7fbdd2b481a299ac9bf62fa9ec706 (patch)
treeee08225837108d2d5f34f73cbbb1ca971ee73fe9 /configure.seed
parentea74d87fd8b386228cd222b7f880b3c96d9b5a67 (diff)
Added option --enable-debug-messages.
The configurator option "--enable-debug-messages" is added to enable debug information output (define NDPI_ENABLE_DEBUG_MESSAGES=1). Mandatory inclusion of the file ndpi_config.h in all the compiled files.
Diffstat (limited to 'configure.seed')
-rw-r--r--configure.seed4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.seed b/configure.seed
index b6c53cf43..a8ef98f71 100644
--- a/configure.seed
+++ b/configure.seed
@@ -109,6 +109,10 @@ AS_IF([test "x$enable_json_c" != "xno"], [
])
])
+AC_ARG_ENABLE([debug-messages],
+ AS_HELP_STRING([--enable-debug-messages], [Define NDPI_ENABLE_DEBUG_MESSAGES=1]), [
+ AC_DEFINE(NDPI_ENABLE_DEBUG_MESSAGES, 1, [Enable ndpi_debug_messages]) ])
+
AC_CHECK_LIB(pthread, pthread_setaffinity_np, AC_DEFINE_UNQUOTED(HAVE_PTHREAD_SETAFFINITY_NP, 1, [libc has pthread_setaffinity_np]))
AC_CONFIG_FILES([Makefile src/lib/Makefile example/Makefile tests/Makefile libndpi.pc src/include/ndpi_define.h])