Don't add -g to CFLAGS when --enable-debug is specified.

It's the job of the user to put that in CFLAGS.
This commit is contained in:
Lasse Collin 2008-01-18 17:21:24 +02:00
parent 61d1784d8f
commit 079c4f7fc2
1 changed files with 0 additions and 1 deletions

View File

@ -47,7 +47,6 @@ AC_MSG_CHECKING([if debugging code should be compiled])
AC_ARG_ENABLE(debug, AC_HELP_STRING([--enable-debug], [Enable debugging code.]), AC_ARG_ENABLE(debug, AC_HELP_STRING([--enable-debug], [Enable debugging code.]),
[], enable_debug=no) [], enable_debug=no)
if test "x$enable_debug" = xyes; then if test "x$enable_debug" = xyes; then
CFLAGS="-g $CFLAGS"
AC_MSG_RESULT([yes]) AC_MSG_RESULT([yes])
else else
AC_DEFINE(NDEBUG, 1, [Define to disable debugging code.]) AC_DEFINE(NDEBUG, 1, [Define to disable debugging code.])