fixed setting BUILD variable in any case (not only when DEBUG=auto)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51208 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Francesco Montorsi
2008-01-14 13:35:37 +00:00
parent f9f73163e1
commit 0edfe8f7e3

View File

@@ -937,13 +937,6 @@ AC_DEFUN([WX_DETECT_STANDARD_OPTION_VALUES],
dnl to their final values if they were set to 'auto'
if test "$DEBUG" = "auto"; then
DEBUG=$WX_DEBUG
dnl in case user wants a BUILD=debug/release var...
if test "$DEBUG" = "1"; then
BUILD="debug"
elif test "$DEBUG" = ""; then
BUILD="release"
fi
fi
if test "$UNICODE" = "auto"; then
UNICODE=$WX_UNICODE
@@ -955,6 +948,13 @@ AC_DEFUN([WX_DETECT_STANDARD_OPTION_VALUES],
TOOLKIT=$WX_PORT
fi
dnl in case the user needs a BUILD=debug/release var...
if test "$DEBUG" = "1"; then
BUILD="debug"
elif test "$DEBUG" = ""; then
BUILD="release"
fi
dnl respect the DEBUG variable adding the optimize/debug flags
dnl NOTE: the CXXFLAGS are merged together with the CPPFLAGS so we
dnl don't need to set them, too