Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
149df5a6
Commit
149df5a6
authored
Oct 18, 2012
by
Mukund Sivaraman
Browse files
[2236] Add status whether debugging is enabled in configure output
This also fixes a bug where the AM_CONDITIONAL was not set properly.
parent
2a6f0764
Changes
1
Hide whitespace changes
Inline
Side-by-side
configure.ac
View file @
149df5a6
...
...
@@ -17,11 +17,11 @@ AC_ARG_ENABLE([debug],
AS_HELP_STRING([--enable-debug],
[enable debugging (default is no)]),
[case "${enableval}" in
yes) debug_enabled=
true
;;
no) debug_enabled=
false
;;
yes) debug_enabled=
yes
;;
no) debug_enabled=
no
;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-debug]) ;;
esac],[debug_enabled=
false
])
AM_CONDITIONAL([DEBUG_ENABLED], [test x$debug
= xtrue
])
esac],[debug_enabled=
no
])
AM_CONDITIONAL([DEBUG_ENABLED], [test x$debug
_enabled = xyes
])
AM_COND_IF([DEBUG_ENABLED], [AC_DEFINE([ENABLE_DEBUG], [1], [Enable debugging facilities?])])
# Libtool configuration
...
...
@@ -1433,6 +1433,7 @@ Features:
$enable_features
Developer:
Enable Debugging: $debug_enabled
Google Tests: $enable_gtest
Valgrind: $found_valgrind
C++ Code Coverage: $USE_LCOV
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment