mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Add debugging option to autotools configuration
This commit is contained in:
parent
584debc7b6
commit
a35be20e6a
12
configure.ac
12
configure.ac
|
@ -34,6 +34,7 @@ BUILD_AV="yes"
|
|||
BUILD_TESTING="yes"
|
||||
|
||||
TOX_LOGGER="no"
|
||||
TOX_DEBUG="no"
|
||||
LOGGING_OUTNAM="libtoxcore.log"
|
||||
|
||||
NCURSES_FOUND="no"
|
||||
|
@ -95,6 +96,17 @@ AC_ARG_ENABLE([logging],
|
|||
]
|
||||
)
|
||||
|
||||
AC_ARG_ENABLE([debug],
|
||||
[AC_HELP_STRING([--enable-debug], [enable debugging (default: disabled)]) ],
|
||||
[
|
||||
if test "x$enableval" = "xyes"; then
|
||||
TOX_DEBUG="yes"
|
||||
|
||||
AC_DEFINE([TOX_DEBUG], [], [If debugging enabled])
|
||||
fi
|
||||
]
|
||||
)
|
||||
|
||||
AC_ARG_WITH(log-level,
|
||||
AC_HELP_STRING([--with-log-level=LEVEL],
|
||||
[Logger levels: TRACE; DEBUG; INFO; WARNING; ERROR ]),
|
||||
|
|
Loading…
Reference in New Issue
Block a user