Added configure option to enable debug builds. If not enabled then
asserts are disabled.
This commit is contained in:
parent
df4807950a
commit
a59ad51ce2
|
@ -64,6 +64,15 @@ AC_LANG_CPLUSPLUS
|
||||||
dnl our files end in .cpp not .C so tests should also end in .cpp
|
dnl our files end in .cpp not .C so tests should also end in .cpp
|
||||||
ac_ext=cpp
|
ac_ext=cpp
|
||||||
|
|
||||||
|
dnl enable debugging or disable asserts
|
||||||
|
AC_ARG_ENABLE([debug],
|
||||||
|
AC_HELP_STRING([--enable-debug], [enable debugging]))
|
||||||
|
if test "x$enable_debug" != xno; then
|
||||||
|
CXXFLAGS="$CXXFLAGS -g"
|
||||||
|
else
|
||||||
|
CXXFLAGS="$CXXFLAGS -DNDEBUG"
|
||||||
|
fi
|
||||||
|
|
||||||
dnl check compiler
|
dnl check compiler
|
||||||
ACX_CHECK_CXX
|
ACX_CHECK_CXX
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue