diff options
author | Jfreegman <jfreegman@gmail.com> | 2016-09-07 17:21:12 -0400 |
---|---|---|
committer | Jfreegman <jfreegman@gmail.com> | 2016-09-07 17:25:48 -0400 |
commit | a35be20e6a0d720b2c7f57d45b0f1092497cddb1 (patch) | |
tree | 1b8b0ddb5000353eed443914aea58b81b47b3ead /configure.ac | |
parent | 584debc7b6440e520f1e28ecfa9749660ac765d4 (diff) |
Add debugging option to autotools configuration
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 14a723c6..64eb4b5e 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -34,6 +34,7 @@ BUILD_AV="yes" | |||
34 | BUILD_TESTING="yes" | 34 | BUILD_TESTING="yes" |
35 | 35 | ||
36 | TOX_LOGGER="no" | 36 | TOX_LOGGER="no" |
37 | TOX_DEBUG="no" | ||
37 | LOGGING_OUTNAM="libtoxcore.log" | 38 | LOGGING_OUTNAM="libtoxcore.log" |
38 | 39 | ||
39 | NCURSES_FOUND="no" | 40 | NCURSES_FOUND="no" |
@@ -95,6 +96,17 @@ AC_ARG_ENABLE([logging], | |||
95 | ] | 96 | ] |
96 | ) | 97 | ) |
97 | 98 | ||
99 | AC_ARG_ENABLE([debug], | ||
100 | [AC_HELP_STRING([--enable-debug], [enable debugging (default: disabled)]) ], | ||
101 | [ | ||
102 | if test "x$enableval" = "xyes"; then | ||
103 | TOX_DEBUG="yes" | ||
104 | |||
105 | AC_DEFINE([TOX_DEBUG], [], [If debugging enabled]) | ||
106 | fi | ||
107 | ] | ||
108 | ) | ||
109 | |||
98 | AC_ARG_WITH(log-level, | 110 | AC_ARG_WITH(log-level, |
99 | AC_HELP_STRING([--with-log-level=LEVEL], | 111 | AC_HELP_STRING([--with-log-level=LEVEL], |
100 | [Logger levels: TRACE; DEBUG; INFO; WARNING; ERROR ]), | 112 | [Logger levels: TRACE; DEBUG; INFO; WARNING; ERROR ]), |