Fix --enable-debug / --disable-debug configure option (disable did not work)

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8344 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Stefan Knoblich 2008-05-10 00:35:34 +00:00
parent 628e1b4c4c
commit a4a5262018
1 changed files with 3 additions and 3 deletions

View File

@ -64,8 +64,6 @@ if test "${enable_optimizer}" = "yes" ; then
fi
AM_CONDITIONAL([WANT_DEBUG],[test "${enable_debug}" = "yes"])
# Optional Features
AC_ARG_ENABLE(resample,
@ -144,7 +142,7 @@ fi
# Enable debugging
AC_ARG_ENABLE(debug,
[AC_HELP_STRING([--enable-debug],[build with debug information])],[enable_debug="$enable_debug"],[enable_debug="yes"])
[AC_HELP_STRING([--enable-debug],[build with debug information])],[enable_debug="$enableval"],[enable_debug="yes"])
if test "${enable_debug}" = "yes"; then
AC_DEFINE([DEBUG],[],[Enable extra debugging.])
@ -157,6 +155,8 @@ if test "${enable_debug}" = "yes"; then
fi
AM_CONDITIONAL([WANT_DEBUG],[test "${enable_debug}" = "yes"])
# tweak platform specific flags
case "$host" in