set wxUSE_DEBUG if both wxUSE_DEBUG_FLAG and wxUSE_DEBUG_INFO were set to fix the debug line in the configure summary
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50675 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
10
configure
vendored
10
configure
vendored
@@ -1,5 +1,5 @@
|
|||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# From configure.in Id: configure.in 50303 2007-11-28 06:46:25Z PC .
|
# From configure.in Id: configure.in 50595 2007-12-09 12:40:58Z RR .
|
||||||
# Guess values for system-dependent variables and create Makefiles.
|
# Guess values for system-dependent variables and create Makefiles.
|
||||||
# Generated by GNU Autoconf 2.61 for wxWidgets 2.9.0.
|
# Generated by GNU Autoconf 2.61 for wxWidgets 2.9.0.
|
||||||
#
|
#
|
||||||
@@ -4775,6 +4775,12 @@ fi
|
|||||||
echo "${ECHO_T}$result" >&6; }
|
echo "${ECHO_T}$result" >&6; }
|
||||||
|
|
||||||
|
|
||||||
|
if test "$wxUSE_DEBUG_FLAG" = "yes" -a "$wxUSE_DEBUG_INFO" = "yes"; then
|
||||||
|
wxUSE_DEBUG=yes
|
||||||
|
BUILD=debug
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
enablestring=
|
enablestring=
|
||||||
defaultval=
|
defaultval=
|
||||||
if test -z "$defaultval"; then
|
if test -z "$defaultval"; then
|
||||||
@@ -45344,7 +45350,7 @@ echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled wit
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if test "$wxUSE_POPUPWIN" = "yes"; then
|
if test "$wxUSE_POPUPWIN" = "yes"; then
|
||||||
if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
|
if test "$wxUSE_COCOA" = 1 ; then
|
||||||
{ echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
|
{ echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
|
||||||
echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
|
echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
|
||||||
else
|
else
|
||||||
|
10
configure.in
10
configure.in
@@ -527,6 +527,8 @@ if test "$USE_OS2" = 1; then
|
|||||||
WX_ARG_ENABLE(omf, [ --enable-omf use OMF object format], wxUSE_OMF)
|
WX_ARG_ENABLE(omf, [ --enable-omf use OMF object format], wxUSE_OMF)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
dnl --enablle-debug is equivalent to both --enable-debug_flag and
|
||||||
|
dnl --enable-debug_info
|
||||||
if test "$wxUSE_DEBUG" = "yes"; then
|
if test "$wxUSE_DEBUG" = "yes"; then
|
||||||
DEFAULT_wxUSE_DEBUG_FLAG=yes
|
DEFAULT_wxUSE_DEBUG_FLAG=yes
|
||||||
DEFAULT_wxUSE_DEBUG_INFO=yes
|
DEFAULT_wxUSE_DEBUG_INFO=yes
|
||||||
@@ -539,6 +541,14 @@ fi
|
|||||||
|
|
||||||
WX_ARG_ENABLE(debug_flag, [ --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)], wxUSE_DEBUG_FLAG)
|
WX_ARG_ENABLE(debug_flag, [ --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)], wxUSE_DEBUG_FLAG)
|
||||||
WX_ARG_ENABLE(debug_info, [ --enable-debug_info create code with debugging information], wxUSE_DEBUG_INFO)
|
WX_ARG_ENABLE(debug_info, [ --enable-debug_info create code with debugging information], wxUSE_DEBUG_INFO)
|
||||||
|
|
||||||
|
dnl it's important to also do it in the other direction to get the correct
|
||||||
|
dnl output in the configure summary (which uses wxUSE_DEBUG)
|
||||||
|
if test "$wxUSE_DEBUG_FLAG" = "yes" -a "$wxUSE_DEBUG_INFO" = "yes"; then
|
||||||
|
wxUSE_DEBUG=yes
|
||||||
|
BUILD=debug
|
||||||
|
fi
|
||||||
|
|
||||||
WX_ARG_ENABLE(debug_gdb, [ --enable-debug_gdb create code with extra GDB debugging information], wxUSE_DEBUG_GDB)
|
WX_ARG_ENABLE(debug_gdb, [ --enable-debug_gdb create code with extra GDB debugging information], wxUSE_DEBUG_GDB)
|
||||||
WX_ARG_ENABLE(debug_cntxt, [ --enable-debug_cntxt use wxDebugContext], wxUSE_DEBUG_CONTEXT)
|
WX_ARG_ENABLE(debug_cntxt, [ --enable-debug_cntxt use wxDebugContext], wxUSE_DEBUG_CONTEXT)
|
||||||
WX_ARG_ENABLE(mem_tracing, [ --enable-mem_tracing create code with memory tracing], wxUSE_MEM_TRACING)
|
WX_ARG_ENABLE(mem_tracing, [ --enable-mem_tracing create code with memory tracing], wxUSE_MEM_TRACING)
|
||||||
|
Reference in New Issue
Block a user