debug options

SVN revision: 38132
This commit is contained in:
Andreas Volz 2008-12-13 21:19:49 +00:00
parent 1ea5601bd9
commit 9c8eb8c04b
1 changed files with 15 additions and 0 deletions

View File

@ -18,6 +18,21 @@ AC_PROG_CXX
AC_HEADER_STDC
AC_PROG_LIBTOOL
dnl Check for option to enable debug
AC_MSG_CHECKING(whether to enable debugging)
AC_ARG_ENABLE(debug,
[ --enable-debug=[no/yes] enables debug build (default=no)],,
enable_debug=no)
dnl Checks for libraries
if [ ! test "x$enable_debug" != "xyes"]; then
AC_DEFINE(DEBUG, 1, [Define to enable debug build])
CXXFLAGS="-ggdb -O0"
AC_MSG_RESULT(yes)
else
AC_MSG_RESULT(no)
fi
dnl Check for option to enable esmart
AC_MSG_CHECKING(whether to enable esmart)
AC_ARG_ENABLE(emotion,