Added configure option to enable debug builds. If not enabled then

asserts are disabled.
This commit is contained in:
crs 2004-05-12 19:12:28 +00:00
parent df4807950a
commit a59ad51ce2

View File

@ -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