mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2026-02-18 22:05:17 -05:00
Change assert condition in error message handler
Activating assert() in the default error message handler isn't always good for producitve systems. Make this optional and enable only when a special configure option is given (i.e. for explicit debugging).
This commit is contained in:
parent
d6093c58f3
commit
631f7cde82
3 changed files with 23 additions and 3 deletions
14
configure.in
14
configure.in
|
|
@ -169,6 +169,20 @@ else
|
|||
AC_MSG_RESULT(no)
|
||||
fi
|
||||
|
||||
if test "$debug" = "yes"; then
|
||||
AC_MSG_CHECKING(for debug assert)
|
||||
AC_ARG_ENABLE(debug-assert,
|
||||
AS_HELP_STRING([--enable-debug],
|
||||
[enable assert call at the default error message handler]),
|
||||
debug_assert="$enableval", debug_assert="no")
|
||||
if test "$debug_assert" = "yes"; then
|
||||
AC_MSG_RESULT(yes)
|
||||
AC_DEFINE(ALSA_DEBUG_ASSERT,,[Enable assert at error message handler])
|
||||
else
|
||||
AC_MSG_RESULT(no)
|
||||
fi
|
||||
fi
|
||||
|
||||
dnl Temporary directory
|
||||
AC_MSG_CHECKING(for tmpdir)
|
||||
AC_ARG_WITH(tmpdir,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue