mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
9a39e35dc3
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
22 lines
463 B
Plaintext
22 lines
463 B
Plaintext
dnl
|
|
dnl Check whether to enable/disable assertions.
|
|
dnl
|
|
|
|
AC_DEFUN([mc_ASSERT],
|
|
[
|
|
AC_ARG_ENABLE([assert],
|
|
AS_HELP_STRING([--enable-assert], [turn on assertions [yes]]),
|
|
[
|
|
if test "x$enableval" = xno; then
|
|
enable_assert=no
|
|
else
|
|
enable_assert=yes
|
|
fi
|
|
],
|
|
[enable_assert=yes])
|
|
|
|
if test "x$enable_assert" = xno; then
|
|
AC_DEFINE(G_DISABLE_ASSERT, 1, [Define to disable assertions])
|
|
fi
|
|
])
|