EXTRALIBS_GNOMEVFS
EXTRALIBS_HILDON
UNICODE
-BUILD
DEBUG_INFO
DEBUG_FLAG
TOOLKIT_LOWERCASE
COND_BUILD_release_DEBUG_INFO_default
COND_BUILD_release_UNICODE_0
COND_BUILD_release_UNICODE_1
+COND_DEBUG_FLAG_0
COND_DEBUG_FLAG_1
COND_DEBUG_INFO_0
COND_DEBUG_INFO_1
WX_VERSION
WX_SUBVERSION
WX_CHARTYPE
-WX_DEBUGTYPE
WXCONFIG_CPPFLAGS
WXCONFIG_CFLAGS
WXCONFIG_CXXFLAGS
--enable-nanox use NanoX
--disable-gtk2 use GTK+ 1.2 instead of 2.0
--enable-gpe use GNOME PDA Environment features if possible
+ --enable-debug build library for debugging
+ --disable-debug_flag disable all debugging support
+ --enable-debug_info generate debug information
+ --enable-debug_gdb create code with extra GDB debugging information
+ --enable-debug_cntxt obsolete, don't use: use wxDebugContext
+ --enable-mem_tracing obsolete, don't use: create code with memory tracing
--disable-shared create static library instead of shared
- --enable-debug same as debug_flag and debug_info
--enable-stl use STL for containers
--enable-std_iostreams use standard C++ stream classes
--enable-std_string use standard C++ string classes
--enable-utf8only only support UTF-8 locales in UTF-8 build (Unix only)
--enable-extended_rtti use extended RTTI (XTI)
--enable-omf use OMF object format
- --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
- --enable-debug_info create code with debugging information
--disable-optimise compile without optimisations
- --enable-debug_gdb create code with extra GDB debugging information
- --enable-debug_cntxt use wxDebugContext
- --enable-mem_tracing create code with memory tracing
--enable-profile create code with profiling information
--enable-no_rtti create code without RTTI information
--enable-no_exceptions create code without C++ exceptions handling
echo "${ECHO_T}$wxUSE_MACOSX_VERSION_MIN" >&6; }
+{ echo "$as_me:$LINENO: checking for --enable-debug" >&5
+echo $ECHO_N "checking for --enable-debug... $ECHO_C" >&6; }
+# Check whether --enable-debug was given.
+if test "${enable_debug+set}" = set; then
+ enableval=$enable_debug;
+ if test "$enableval" = yes; then
+ wxUSE_DEBUG=yes
+ elif test "$enableval" = no; then
+ wxUSE_DEBUG=no
+ elif test "$enableval" = max; then
+ wxUSE_DEBUG=yes
+ WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -DwxDEBUG_LEVEL=2"
+ else
+ { { echo "$as_me:$LINENO: error: Invalid --enable-debug value, must be yes, no or max" >&5
+echo "$as_me: error: Invalid --enable-debug value, must be yes, no or max" >&2;}
+ { (exit 1); exit 1; }; }
+ fi
- enablestring=disable
- defaultval=
- if test -z "$defaultval"; then
- if test x"$enablestring" = xdisable; then
- defaultval=yes
- else
- defaultval=no
- fi
- fi
-
- { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
-echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6; }
- # Check whether --enable-shared was given.
-if test "${enable_shared+set}" = set; then
- enableval=$enable_shared;
- if test "$enableval" = yes; then
- wx_cv_use_shared='wxUSE_SHARED=yes'
- else
- wx_cv_use_shared='wxUSE_SHARED=no'
- fi
else
-
- wx_cv_use_shared='wxUSE_SHARED=${'DEFAULT_wxUSE_SHARED":-$defaultval}"
+ wxUSE_DEBUG=default
fi
- eval "$wx_cv_use_shared"
+case "$wxUSE_DEBUG" in
+ yes)
+ DEFAULT_wxUSE_DEBUG_FLAG=yes
+ DEFAULT_wxUSE_DEBUG_INFO=yes
- if test x"$enablestring" = xdisable; then
- if test $wxUSE_SHARED = no; then
- result=yes
- else
- result=no
- fi
- else
- result=$wxUSE_SHARED
- fi
+ DEFAULT_wxUSE_OPTIMISE=no
+ ;;
- { echo "$as_me:$LINENO: result: $result" >&5
-echo "${ECHO_T}$result" >&6; }
+ no)
+ DEFAULT_wxUSE_DEBUG_FLAG=no
+ DEFAULT_wxUSE_DEBUG_INFO=no
+ ;;
+ default)
+ DEFAULT_wxUSE_DEBUG_FLAG=yes
+ DEFAULT_wxUSE_DEBUG_INFO=no
+ ;;
+esac
- enablestring=
+
+ enablestring=disable
defaultval=
if test -z "$defaultval"; then
if test x"$enablestring" = xdisable; then
fi
fi
- { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
-echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6; }
- # Check whether --enable-debug was given.
-if test "${enable_debug+set}" = set; then
- enableval=$enable_debug;
+ { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
+echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6; }
+ # Check whether --enable-debug_flag was given.
+if test "${enable_debug_flag+set}" = set; then
+ enableval=$enable_debug_flag;
if test "$enableval" = yes; then
- wx_cv_use_debug='wxUSE_DEBUG=yes'
+ wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
else
- wx_cv_use_debug='wxUSE_DEBUG=no'
+ wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
fi
else
- wx_cv_use_debug='wxUSE_DEBUG=${'DEFAULT_wxUSE_DEBUG":-$defaultval}"
+ wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=${'DEFAULT_wxUSE_DEBUG_FLAG":-$defaultval}"
fi
- eval "$wx_cv_use_debug"
+ eval "$wx_cv_use_debug_flag"
if test x"$enablestring" = xdisable; then
- if test $wxUSE_DEBUG = no; then
+ if test $wxUSE_DEBUG_FLAG = no; then
result=yes
else
result=no
fi
else
- result=$wxUSE_DEBUG
+ result=$wxUSE_DEBUG_FLAG
fi
{ echo "$as_me:$LINENO: result: $result" >&5
fi
fi
- { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
-echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6; }
- # Check whether --enable-stl was given.
-if test "${enable_stl+set}" = set; then
- enableval=$enable_stl;
+ { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
+echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6; }
+ # Check whether --enable-debug_info was given.
+if test "${enable_debug_info+set}" = set; then
+ enableval=$enable_debug_info;
if test "$enableval" = yes; then
- wx_cv_use_stl='wxUSE_STL=yes'
+ wx_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
else
- wx_cv_use_stl='wxUSE_STL=no'
+ wx_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
fi
else
- wx_cv_use_stl='wxUSE_STL=${'DEFAULT_wxUSE_STL":-$defaultval}"
+ wx_cv_use_debug_info='wxUSE_DEBUG_INFO=${'DEFAULT_wxUSE_DEBUG_INFO":-$defaultval}"
fi
- eval "$wx_cv_use_stl"
+ eval "$wx_cv_use_debug_info"
if test x"$enablestring" = xdisable; then
- if test $wxUSE_STL = no; then
+ if test $wxUSE_DEBUG_INFO = no; then
result=yes
else
result=no
fi
else
- result=$wxUSE_STL
+ result=$wxUSE_DEBUG_INFO
fi
{ echo "$as_me:$LINENO: result: $result" >&5
echo "${ECHO_T}$result" >&6; }
+
+
enablestring=
defaultval=
if test -z "$defaultval"; then
fi
fi
- { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
-echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6; }
- # Check whether --enable-std_iostreams was given.
-if test "${enable_std_iostreams+set}" = set; then
- enableval=$enable_std_iostreams;
+ { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
+echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6; }
+ # Check whether --enable-debug_gdb was given.
+if test "${enable_debug_gdb+set}" = set; then
+ enableval=$enable_debug_gdb;
if test "$enableval" = yes; then
- wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
+ wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
else
- wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
+ wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
fi
else
- wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=${'DEFAULT_wxUSE_STD_IOSTREAM":-$defaultval}"
+ wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=${'DEFAULT_wxUSE_DEBUG_GDB":-$defaultval}"
fi
- eval "$wx_cv_use_std_iostreams"
+ eval "$wx_cv_use_debug_gdb"
if test x"$enablestring" = xdisable; then
- if test $wxUSE_STD_IOSTREAM = no; then
+ if test $wxUSE_DEBUG_GDB = no; then
result=yes
else
result=no
fi
else
- result=$wxUSE_STD_IOSTREAM
+ result=$wxUSE_DEBUG_GDB
fi
{ echo "$as_me:$LINENO: result: $result" >&5
fi
fi
- { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
-echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6; }
- # Check whether --enable-std_string was given.
-if test "${enable_std_string+set}" = set; then
- enableval=$enable_std_string;
+ { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
+echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6; }
+ # Check whether --enable-debug_cntxt was given.
+if test "${enable_debug_cntxt+set}" = set; then
+ enableval=$enable_debug_cntxt;
if test "$enableval" = yes; then
- wx_cv_use_std_string='wxUSE_STD_STRING=yes'
+ wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
else
- wx_cv_use_std_string='wxUSE_STD_STRING=no'
+ wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
fi
else
- wx_cv_use_std_string='wxUSE_STD_STRING=${'DEFAULT_wxUSE_STD_STRING":-$defaultval}"
+ wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=${'DEFAULT_wxUSE_DEBUG_CONTEXT":-$defaultval}"
fi
- eval "$wx_cv_use_std_string"
+ eval "$wx_cv_use_debug_cntxt"
if test x"$enablestring" = xdisable; then
- if test $wxUSE_STD_STRING = no; then
+ if test $wxUSE_DEBUG_CONTEXT = no; then
result=yes
else
result=no
fi
else
- result=$wxUSE_STD_STRING
+ result=$wxUSE_DEBUG_CONTEXT
fi
{ echo "$as_me:$LINENO: result: $result" >&5
echo "${ECHO_T}$result" >&6; }
- enablestring=disable
+ enablestring=
defaultval=
if test -z "$defaultval"; then
if test x"$enablestring" = xdisable; then
fi
fi
- { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
-echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6; }
- # Check whether --enable-unicode was given.
-if test "${enable_unicode+set}" = set; then
- enableval=$enable_unicode;
+ { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
+echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6; }
+ # Check whether --enable-mem_tracing was given.
+if test "${enable_mem_tracing+set}" = set; then
+ enableval=$enable_mem_tracing;
if test "$enableval" = yes; then
- wx_cv_use_unicode='wxUSE_UNICODE=yes'
+ wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
else
- wx_cv_use_unicode='wxUSE_UNICODE=no'
+ wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
fi
else
- wx_cv_use_unicode='wxUSE_UNICODE=${'DEFAULT_wxUSE_UNICODE":-$defaultval}"
+ wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=${'DEFAULT_wxUSE_MEM_TRACING":-$defaultval}"
fi
- eval "$wx_cv_use_unicode"
+ eval "$wx_cv_use_mem_tracing"
if test x"$enablestring" = xdisable; then
- if test $wxUSE_UNICODE = no; then
+ if test $wxUSE_MEM_TRACING = no; then
result=yes
else
result=no
fi
else
- result=$wxUSE_UNICODE
+ result=$wxUSE_MEM_TRACING
fi
{ echo "$as_me:$LINENO: result: $result" >&5
echo "${ECHO_T}$result" >&6; }
- enablestring=
+
+
+ enablestring=disable
defaultval=
if test -z "$defaultval"; then
if test x"$enablestring" = xdisable; then
fi
fi
- { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
-echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6; }
- # Check whether --enable-mslu was given.
-if test "${enable_mslu+set}" = set; then
- enableval=$enable_mslu;
+ { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
+echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6; }
+ # Check whether --enable-shared was given.
+if test "${enable_shared+set}" = set; then
+ enableval=$enable_shared;
if test "$enableval" = yes; then
- wx_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
+ wx_cv_use_shared='wxUSE_SHARED=yes'
else
- wx_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
+ wx_cv_use_shared='wxUSE_SHARED=no'
fi
else
- wx_cv_use_mslu='wxUSE_UNICODE_MSLU=${'DEFAULT_wxUSE_UNICODE_MSLU":-$defaultval}"
+ wx_cv_use_shared='wxUSE_SHARED=${'DEFAULT_wxUSE_SHARED":-$defaultval}"
fi
- eval "$wx_cv_use_mslu"
+ eval "$wx_cv_use_shared"
if test x"$enablestring" = xdisable; then
- if test $wxUSE_UNICODE_MSLU = no; then
+ if test $wxUSE_SHARED = no; then
result=yes
else
result=no
fi
else
- result=$wxUSE_UNICODE_MSLU
+ result=$wxUSE_SHARED
fi
{ echo "$as_me:$LINENO: result: $result" >&5
echo "${ECHO_T}$result" >&6; }
- enablestring=
- { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8" >&5
-echo $ECHO_N "checking for --${enablestring:-enable}-utf8... $ECHO_C" >&6; }
- # Check whether --enable-utf8 was given.
-if test "${enable_utf8+set}" = set; then
- enableval=$enable_utf8;
- wx_cv_use_utf8="wxUSE_UNICODE_UTF8='$enableval'"
-
-else
-
- wx_cv_use_utf8='wxUSE_UNICODE_UTF8='$DEFAULT_wxUSE_UNICODE_UTF8
-
-fi
-
-
- eval "$wx_cv_use_utf8"
-
- { echo "$as_me:$LINENO: result: $wxUSE_UNICODE_UTF8" >&5
-echo "${ECHO_T}$wxUSE_UNICODE_UTF8" >&6; }
-
-
enablestring=
defaultval=
if test -z "$defaultval"; then
fi
fi
- { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8only" >&5
-echo $ECHO_N "checking for --${enablestring:-enable}-utf8only... $ECHO_C" >&6; }
- # Check whether --enable-utf8only was given.
-if test "${enable_utf8only+set}" = set; then
- enableval=$enable_utf8only;
+ { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
+echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6; }
+ # Check whether --enable-stl was given.
+if test "${enable_stl+set}" = set; then
+ enableval=$enable_stl;
if test "$enableval" = yes; then
- wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=yes'
+ wx_cv_use_stl='wxUSE_STL=yes'
else
- wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=no'
+ wx_cv_use_stl='wxUSE_STL=no'
fi
else
- wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=${'DEFAULT_wxUSE_UNICODE_UTF8_LOCALE":-$defaultval}"
+ wx_cv_use_stl='wxUSE_STL=${'DEFAULT_wxUSE_STL":-$defaultval}"
fi
- eval "$wx_cv_use_utf8only"
+ eval "$wx_cv_use_stl"
if test x"$enablestring" = xdisable; then
- if test $wxUSE_UNICODE_UTF8_LOCALE = no; then
+ if test $wxUSE_STL = no; then
result=yes
else
result=no
fi
else
- result=$wxUSE_UNICODE_UTF8_LOCALE
+ result=$wxUSE_STL
fi
{ echo "$as_me:$LINENO: result: $result" >&5
fi
fi
- { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-extended_rtti" >&5
-echo $ECHO_N "checking for --${enablestring:-enable}-extended_rtti... $ECHO_C" >&6; }
- # Check whether --enable-extended_rtti was given.
-if test "${enable_extended_rtti+set}" = set; then
- enableval=$enable_extended_rtti;
+ { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
+echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6; }
+ # Check whether --enable-std_iostreams was given.
+if test "${enable_std_iostreams+set}" = set; then
+ enableval=$enable_std_iostreams;
if test "$enableval" = yes; then
- wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=yes'
+ wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
else
- wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=no'
+ wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
fi
else
- wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=${'DEFAULT_wxUSE_EXTENDED_RTTI":-$defaultval}"
+ wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=${'DEFAULT_wxUSE_STD_IOSTREAM":-$defaultval}"
fi
- eval "$wx_cv_use_extended_rtti"
+ eval "$wx_cv_use_std_iostreams"
if test x"$enablestring" = xdisable; then
- if test $wxUSE_EXTENDED_RTTI = no; then
+ if test $wxUSE_STD_IOSTREAM = no; then
result=yes
else
result=no
fi
else
- result=$wxUSE_EXTENDED_RTTI
+ result=$wxUSE_STD_IOSTREAM
fi
{ echo "$as_me:$LINENO: result: $result" >&5
echo "${ECHO_T}$result" >&6; }
-if test "$USE_OS2" = 1; then
- DEFAULT_wxUSE_OMF=no
enablestring=
defaultval=
fi
fi
- { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
-echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6; }
- # Check whether --enable-omf was given.
-if test "${enable_omf+set}" = set; then
- enableval=$enable_omf;
+ { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
+echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6; }
+ # Check whether --enable-std_string was given.
+if test "${enable_std_string+set}" = set; then
+ enableval=$enable_std_string;
if test "$enableval" = yes; then
- wx_cv_use_omf='wxUSE_OMF=yes'
+ wx_cv_use_std_string='wxUSE_STD_STRING=yes'
else
- wx_cv_use_omf='wxUSE_OMF=no'
+ wx_cv_use_std_string='wxUSE_STD_STRING=no'
fi
else
- wx_cv_use_omf='wxUSE_OMF=${'DEFAULT_wxUSE_OMF":-$defaultval}"
+ wx_cv_use_std_string='wxUSE_STD_STRING=${'DEFAULT_wxUSE_STD_STRING":-$defaultval}"
fi
- eval "$wx_cv_use_omf"
+ eval "$wx_cv_use_std_string"
if test x"$enablestring" = xdisable; then
- if test $wxUSE_OMF = no; then
+ if test $wxUSE_STD_STRING = no; then
result=yes
else
result=no
fi
else
- result=$wxUSE_OMF
+ result=$wxUSE_STD_STRING
fi
{ echo "$as_me:$LINENO: result: $result" >&5
echo "${ECHO_T}$result" >&6; }
-fi
-
-if test "$wxUSE_DEBUG" = "yes"; then
- DEFAULT_wxUSE_DEBUG_FLAG=yes
- DEFAULT_wxUSE_DEBUG_INFO=yes
- BUILD=debug
-elif test "$wxUSE_DEBUG" = "no"; then
- DEFAULT_wxUSE_DEBUG_FLAG=no
- DEFAULT_wxUSE_DEBUG_INFO=no
- BUILD=release
-fi
-
- enablestring=
+ enablestring=disable
defaultval=
if test -z "$defaultval"; then
if test x"$enablestring" = xdisable; then
fi
fi
- { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
-echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6; }
- # Check whether --enable-debug_flag was given.
-if test "${enable_debug_flag+set}" = set; then
- enableval=$enable_debug_flag;
+ { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
+echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6; }
+ # Check whether --enable-unicode was given.
+if test "${enable_unicode+set}" = set; then
+ enableval=$enable_unicode;
if test "$enableval" = yes; then
- wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
+ wx_cv_use_unicode='wxUSE_UNICODE=yes'
else
- wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
+ wx_cv_use_unicode='wxUSE_UNICODE=no'
fi
else
- wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=${'DEFAULT_wxUSE_DEBUG_FLAG":-$defaultval}"
+ wx_cv_use_unicode='wxUSE_UNICODE=${'DEFAULT_wxUSE_UNICODE":-$defaultval}"
fi
- eval "$wx_cv_use_debug_flag"
+ eval "$wx_cv_use_unicode"
if test x"$enablestring" = xdisable; then
- if test $wxUSE_DEBUG_FLAG = no; then
+ if test $wxUSE_UNICODE = no; then
result=yes
else
result=no
fi
else
- result=$wxUSE_DEBUG_FLAG
+ result=$wxUSE_UNICODE
fi
{ echo "$as_me:$LINENO: result: $result" >&5
fi
fi
- { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
-echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6; }
- # Check whether --enable-debug_info was given.
-if test "${enable_debug_info+set}" = set; then
- enableval=$enable_debug_info;
+ { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
+echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6; }
+ # Check whether --enable-mslu was given.
+if test "${enable_mslu+set}" = set; then
+ enableval=$enable_mslu;
if test "$enableval" = yes; then
- wx_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
+ wx_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
else
- wx_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
+ wx_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
fi
else
- wx_cv_use_debug_info='wxUSE_DEBUG_INFO=${'DEFAULT_wxUSE_DEBUG_INFO":-$defaultval}"
+ wx_cv_use_mslu='wxUSE_UNICODE_MSLU=${'DEFAULT_wxUSE_UNICODE_MSLU":-$defaultval}"
fi
- eval "$wx_cv_use_debug_info"
+ eval "$wx_cv_use_mslu"
if test x"$enablestring" = xdisable; then
- if test $wxUSE_DEBUG_INFO = no; then
+ if test $wxUSE_UNICODE_MSLU = no; then
result=yes
else
result=no
fi
else
- result=$wxUSE_DEBUG_INFO
+ result=$wxUSE_UNICODE_MSLU
fi
{ echo "$as_me:$LINENO: result: $result" >&5
echo "${ECHO_T}$result" >&6; }
-if test "$wxUSE_DEBUG_FLAG" = "yes" -a "$wxUSE_DEBUG_INFO" = "yes"; then
- wxUSE_DEBUG=yes
- BUILD=debug
-fi
+ enablestring=
+ { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8" >&5
+echo $ECHO_N "checking for --${enablestring:-enable}-utf8... $ECHO_C" >&6; }
+ # Check whether --enable-utf8 was given.
+if test "${enable_utf8+set}" = set; then
+ enableval=$enable_utf8;
+ wx_cv_use_utf8="wxUSE_UNICODE_UTF8='$enableval'"
+
+else
+
+ wx_cv_use_utf8='wxUSE_UNICODE_UTF8='$DEFAULT_wxUSE_UNICODE_UTF8
-if test "$wxUSE_DEBUG" = "yes"; then
- DEFAULT_wxUSE_OPTIMISE=no
fi
- enablestring=disable
+ eval "$wx_cv_use_utf8"
+
+ { echo "$as_me:$LINENO: result: $wxUSE_UNICODE_UTF8" >&5
+echo "${ECHO_T}$wxUSE_UNICODE_UTF8" >&6; }
+
+
+ enablestring=
defaultval=
if test -z "$defaultval"; then
if test x"$enablestring" = xdisable; then
fi
fi
- { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
-echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6; }
- # Check whether --enable-optimise was given.
-if test "${enable_optimise+set}" = set; then
- enableval=$enable_optimise;
+ { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8only" >&5
+echo $ECHO_N "checking for --${enablestring:-enable}-utf8only... $ECHO_C" >&6; }
+ # Check whether --enable-utf8only was given.
+if test "${enable_utf8only+set}" = set; then
+ enableval=$enable_utf8only;
if test "$enableval" = yes; then
- wx_cv_use_optimise='wxUSE_OPTIMISE=yes'
+ wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=yes'
else
- wx_cv_use_optimise='wxUSE_OPTIMISE=no'
+ wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=no'
fi
else
- wx_cv_use_optimise='wxUSE_OPTIMISE=${'DEFAULT_wxUSE_OPTIMISE":-$defaultval}"
+ wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=${'DEFAULT_wxUSE_UNICODE_UTF8_LOCALE":-$defaultval}"
fi
- eval "$wx_cv_use_optimise"
+ eval "$wx_cv_use_utf8only"
if test x"$enablestring" = xdisable; then
- if test $wxUSE_OPTIMISE = no; then
+ if test $wxUSE_UNICODE_UTF8_LOCALE = no; then
result=yes
else
result=no
fi
else
- result=$wxUSE_OPTIMISE
+ result=$wxUSE_UNICODE_UTF8_LOCALE
fi
{ echo "$as_me:$LINENO: result: $result" >&5
echo "${ECHO_T}$result" >&6; }
-
enablestring=
defaultval=
if test -z "$defaultval"; then
fi
fi
- { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
-echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6; }
- # Check whether --enable-debug_gdb was given.
-if test "${enable_debug_gdb+set}" = set; then
- enableval=$enable_debug_gdb;
+ { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-extended_rtti" >&5
+echo $ECHO_N "checking for --${enablestring:-enable}-extended_rtti... $ECHO_C" >&6; }
+ # Check whether --enable-extended_rtti was given.
+if test "${enable_extended_rtti+set}" = set; then
+ enableval=$enable_extended_rtti;
if test "$enableval" = yes; then
- wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
+ wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=yes'
else
- wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
+ wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=no'
fi
else
- wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=${'DEFAULT_wxUSE_DEBUG_GDB":-$defaultval}"
+ wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=${'DEFAULT_wxUSE_EXTENDED_RTTI":-$defaultval}"
fi
- eval "$wx_cv_use_debug_gdb"
+ eval "$wx_cv_use_extended_rtti"
if test x"$enablestring" = xdisable; then
- if test $wxUSE_DEBUG_GDB = no; then
+ if test $wxUSE_EXTENDED_RTTI = no; then
result=yes
else
result=no
fi
else
- result=$wxUSE_DEBUG_GDB
+ result=$wxUSE_EXTENDED_RTTI
fi
{ echo "$as_me:$LINENO: result: $result" >&5
echo "${ECHO_T}$result" >&6; }
+if test "$USE_OS2" = 1; then
+ DEFAULT_wxUSE_OMF=no
enablestring=
defaultval=
fi
fi
- { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
-echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6; }
- # Check whether --enable-debug_cntxt was given.
-if test "${enable_debug_cntxt+set}" = set; then
- enableval=$enable_debug_cntxt;
+ { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
+echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6; }
+ # Check whether --enable-omf was given.
+if test "${enable_omf+set}" = set; then
+ enableval=$enable_omf;
if test "$enableval" = yes; then
- wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
+ wx_cv_use_omf='wxUSE_OMF=yes'
else
- wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
+ wx_cv_use_omf='wxUSE_OMF=no'
fi
else
- wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=${'DEFAULT_wxUSE_DEBUG_CONTEXT":-$defaultval}"
+ wx_cv_use_omf='wxUSE_OMF=${'DEFAULT_wxUSE_OMF":-$defaultval}"
fi
- eval "$wx_cv_use_debug_cntxt"
+ eval "$wx_cv_use_omf"
if test x"$enablestring" = xdisable; then
- if test $wxUSE_DEBUG_CONTEXT = no; then
+ if test $wxUSE_OMF = no; then
result=yes
else
result=no
fi
else
- result=$wxUSE_DEBUG_CONTEXT
+ result=$wxUSE_OMF
fi
{ echo "$as_me:$LINENO: result: $result" >&5
echo "${ECHO_T}$result" >&6; }
+fi
- enablestring=
+
+ enablestring=disable
defaultval=
if test -z "$defaultval"; then
if test x"$enablestring" = xdisable; then
fi
fi
- { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
-echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6; }
- # Check whether --enable-mem_tracing was given.
-if test "${enable_mem_tracing+set}" = set; then
- enableval=$enable_mem_tracing;
+ { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
+echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6; }
+ # Check whether --enable-optimise was given.
+if test "${enable_optimise+set}" = set; then
+ enableval=$enable_optimise;
if test "$enableval" = yes; then
- wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
+ wx_cv_use_optimise='wxUSE_OPTIMISE=yes'
else
- wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
+ wx_cv_use_optimise='wxUSE_OPTIMISE=no'
fi
else
- wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=${'DEFAULT_wxUSE_MEM_TRACING":-$defaultval}"
+ wx_cv_use_optimise='wxUSE_OPTIMISE=${'DEFAULT_wxUSE_OPTIMISE":-$defaultval}"
fi
- eval "$wx_cv_use_mem_tracing"
+ eval "$wx_cv_use_optimise"
if test x"$enablestring" = xdisable; then
- if test $wxUSE_MEM_TRACING = no; then
+ if test $wxUSE_OPTIMISE = no; then
result=yes
else
result=no
fi
else
- result=$wxUSE_MEM_TRACING
+ result=$wxUSE_OPTIMISE
fi
{ echo "$as_me:$LINENO: result: $result" >&5
echo "${ECHO_T}$result" >&6; }
+
enablestring=
defaultval=
if test -z "$defaultval"; then
UNICODE=1
fi
-lib_debug_suffix=
-WX_DEBUGTYPE="release"
-DEBUG_FLAG=0
-if test "$wxUSE_DEBUG_FLAG" = "yes"; then
- lib_debug_suffix=d
- WX_DEBUGTYPE="debug"
- DEBUG_FLAG=1
-fi
-
WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
DEBUG_INFO=1
fi
-WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr '[a-z]' '[A-Z]'`
+WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr '[a-z]' '[A-Z]'`
-TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
+TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
-TOOLCHAIN_FULLNAME="${HOST_PREFIX}${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
+TOOLCHAIN_FULLNAME="${HOST_PREFIX}${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
if test "$wxUSE_OSX_CARBON" = 1 -o "$wxUSE_OSX_COCOA" = 1 -o "$wxUSE_COCOA" = 1; then
- WX_LIBRARY_BASENAME_NOGUI="wx_base${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
+ WX_LIBRARY_BASENAME_NOGUI="wx_base${lib_unicode_suffix}${WX_LIB_FLAVOUR}"
else
- WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
+ WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${WX_LIB_FLAVOUR}"
fi
if test "${TOOLKIT_DIR}" = "os2"; then
- WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
+ WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${WX_LIB_FLAVOUR}"
else
- WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
+ WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${WX_LIB_FLAVOUR}"
fi
fi
fi
-if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
- cat >>confdefs.h <<\_ACEOF
-#define WXDEBUG 1
-_ACEOF
-
- WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
-else
+if test "$wxUSE_DEBUG_FLAG" = "no" ; then
if test "$wxUSE_GTK" = 1 ; then
if test "x$wxGTK_VERSION" = "x1" ; then
CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
EXTRALIBS_XML="$EXPAT_LINK"
EXTRALIBS_HTML="$MSPACK_LINK"
EXTRALIBS_MEDIA="$GST_LIBS"
-EXTRALIBS_STC="-lwxscintilla${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
+EXTRALIBS_STC="-lwxscintilla${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
if test "$wxUSE_GUI" = "yes"; then
EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
fi
fi
for i in $wxconfig_3rdparty ; do
- WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
+ WXCONFIG_LIBS="-lwx${i}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
done
-
TOOLKIT_LOWERCASE=xxx
COND_BUILD_release_UNICODE_1=""
fi
+ COND_DEBUG_FLAG_0="#"
+ if test "x$DEBUG_FLAG" = "x0" ; then
+ COND_DEBUG_FLAG_0=""
+ fi
+
COND_DEBUG_FLAG_1="#"
if test "x$DEBUG_FLAG" = "x1" ; then
COND_DEBUG_FLAG_1=""
-
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
EXTRALIBS_GNOMEVFS!$EXTRALIBS_GNOMEVFS$ac_delim
EXTRALIBS_HILDON!$EXTRALIBS_HILDON$ac_delim
UNICODE!$UNICODE$ac_delim
-BUILD!$BUILD$ac_delim
DEBUG_INFO!$DEBUG_INFO$ac_delim
DEBUG_FLAG!$DEBUG_FLAG$ac_delim
TOOLKIT_LOWERCASE!$TOOLKIT_LOWERCASE$ac_delim
OBJCXXFLAGS!$OBJCXXFLAGS$ac_delim
GCC_PCH!$GCC_PCH$ac_delim
ICC_PCH!$ICC_PCH$ac_delim
+ICC_PCH_CREATE_SWITCH!$ICC_PCH_CREATE_SWITCH$ac_delim
_ACEOF
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
ac_delim='%!_!# '
for ac_last_try in false false false false false :; do
cat >conf$$subs.sed <<_ACEOF
-ICC_PCH_CREATE_SWITCH!$ICC_PCH_CREATE_SWITCH$ac_delim
ICC_PCH_USE_SWITCH!$ICC_PCH_USE_SWITCH$ac_delim
BK_MAKE_PCH!$BK_MAKE_PCH$ac_delim
COND_BUILD_DEBUG!$COND_BUILD_DEBUG$ac_delim
COND_BUILD_release_DEBUG_INFO_default!$COND_BUILD_release_DEBUG_INFO_default$ac_delim
COND_BUILD_release_UNICODE_0!$COND_BUILD_release_UNICODE_0$ac_delim
COND_BUILD_release_UNICODE_1!$COND_BUILD_release_UNICODE_1$ac_delim
+COND_DEBUG_FLAG_0!$COND_DEBUG_FLAG_0$ac_delim
COND_DEBUG_FLAG_1!$COND_DEBUG_FLAG_1$ac_delim
COND_DEBUG_INFO_0!$COND_DEBUG_INFO_0$ac_delim
COND_DEBUG_INFO_1!$COND_DEBUG_INFO_1$ac_delim
WX_VERSION!$WX_VERSION$ac_delim
WX_SUBVERSION!$WX_SUBVERSION$ac_delim
WX_CHARTYPE!$WX_CHARTYPE$ac_delim
-WX_DEBUGTYPE!$WX_DEBUGTYPE$ac_delim
WXCONFIG_CPPFLAGS!$WXCONFIG_CPPFLAGS$ac_delim
WXCONFIG_CFLAGS!$WXCONFIG_CFLAGS$ac_delim
WXCONFIG_CXXFLAGS!$WXCONFIG_CXXFLAGS$ac_delim
LTLIBOBJS!$LTLIBOBJS$ac_delim
_ACEOF
- if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 36; then
+ if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 35; then
break
elif $ac_last_try; then
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
echo ""
echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_DESC}"
echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
-
-echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
echo $ECHO_N " Should wxWidgets support Unicode? ${wxUSE_UNICODE:-no}$ECHO_C"
if test "$wxUSE_UNICODE" = "yes"; then
])
AC_MSG_RESULT([$wxUSE_MACOSX_VERSION_MIN])
+dnl ---------------------------------------------------------------------------
+dnl debugging options
+dnl ---------------------------------------------------------------------------
+
+dnl don't use WX_ARG_ENABLE as it just gets in the way instead of helping with
+dnl this rather unusual option
+AC_MSG_CHECKING([for --enable-debug])
+AC_ARG_ENABLE(debug, [ --enable-debug build library for debugging],
+ [
+ if test "$enableval" = yes; then
+ wxUSE_DEBUG=yes
+ elif test "$enableval" = no; then
+ wxUSE_DEBUG=no
+ elif test "$enableval" = max; then
+ wxUSE_DEBUG=yes
+ WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -DwxDEBUG_LEVEL=2"
+ else
+ AC_MSG_ERROR([Invalid --enable-debug value, must be yes, no or max])
+ fi
+ ],
+ wxUSE_DEBUG=default
+)
+
+case "$wxUSE_DEBUG" in
+ yes)
+ dnl build the library for debugging: enable debugging code and generate
+ dnl the debug information for the library itself
+ DEFAULT_wxUSE_DEBUG_FLAG=yes
+ DEFAULT_wxUSE_DEBUG_INFO=yes
+
+ dnl also disable optimizations by default if --enable-debug was used
+ dnl (this can still be overridden by an explicit --enable-optimise)
+ DEFAULT_wxUSE_OPTIMISE=no
+ ;;
+
+ no)
+ dnl --disable-debug is equivalent to both --disable-debug_flag and
+ dnl --disable-debug_info
+ DEFAULT_wxUSE_DEBUG_FLAG=no
+ DEFAULT_wxUSE_DEBUG_INFO=no
+ ;;
+
+ default)
+ dnl the library is built with debugging support by default but without
+ dnl debug information as this requires much, much more disk space
+ DEFAULT_wxUSE_DEBUG_FLAG=yes
+ DEFAULT_wxUSE_DEBUG_INFO=no
+ ;;
+esac
+
+WX_ARG_DISABLE(debug_flag, [ --disable-debug_flag disable all debugging support], wxUSE_DEBUG_FLAG)
+WX_ARG_ENABLE(debug_info, [ --enable-debug_info generate debug information], wxUSE_DEBUG_INFO)
+
+dnl enabled if just --enable-debug_{flag,info} was
+dnl
+dnl in any case, only set the default value and allow overriding it with an
+
+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 obsolete, don't use: use wxDebugContext], wxUSE_DEBUG_CONTEXT)
+WX_ARG_ENABLE(mem_tracing, [ --enable-mem_tracing obsolete, don't use: create code with memory tracing], wxUSE_MEM_TRACING)
+
dnl ---------------------------------------------------------------------------
dnl global compile options
dnl ---------------------------------------------------------------------------
WX_ARG_DISABLE(shared, [ --disable-shared create static library instead of shared], wxUSE_SHARED)
-WX_ARG_ENABLE(debug, [ --enable-debug same as debug_flag and debug_info], wxUSE_DEBUG)
WX_ARG_ENABLE(stl, [ --enable-stl use STL for containers], wxUSE_STL)
WX_ARG_ENABLE(std_iostreams, [ --enable-std_iostreams use standard C++ stream classes], wxUSE_STD_IOSTREAM)
WX_ARG_ENABLE(std_string, [ --enable-std_string use standard C++ string classes], wxUSE_STD_STRING)
WX_ARG_ENABLE(omf, [ --enable-omf use OMF object format], wxUSE_OMF)
fi
-dnl --enable-debug is equivalent to both --enable-debug_flag and
-dnl --enable-debug_info
-if test "$wxUSE_DEBUG" = "yes"; then
- DEFAULT_wxUSE_DEBUG_FLAG=yes
- DEFAULT_wxUSE_DEBUG_INFO=yes
- BUILD=debug
-elif test "$wxUSE_DEBUG" = "no"; then
- DEFAULT_wxUSE_DEBUG_FLAG=no
- DEFAULT_wxUSE_DEBUG_INFO=no
- BUILD=release
-fi
-
-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)
-
-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
-
-dnl disable optimizations by default if --enable-debug was used but leave them
-dnl enabled if just --enable-debug_{flag,info} was
-dnl
-dnl in any case, only set the default value and allow overriding it with an
-dnl explicit --enable-optimise
-if test "$wxUSE_DEBUG" = "yes"; then
- DEFAULT_wxUSE_OPTIMISE=no
-fi
-
WX_ARG_DISABLE(optimise, [ --disable-optimise compile without optimisations], wxUSE_OPTIMISE)
-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(mem_tracing, [ --enable-mem_tracing create code with memory tracing], wxUSE_MEM_TRACING)
WX_ARG_ENABLE(profile, [ --enable-profile create code with profiling information], wxUSE_PROFILE)
WX_ARG_ENABLE(no_rtti, [ --enable-no_rtti create code without RTTI information], wxUSE_NO_RTTI)
WX_ARG_ENABLE(no_exceptions, [ --enable-no_exceptions create code without C++ exceptions handling], wxUSE_NO_EXCEPTIONS)
UNICODE=1
fi
-lib_debug_suffix=
-WX_DEBUGTYPE="release"
-DEBUG_FLAG=0
-if test "$wxUSE_DEBUG_FLAG" = "yes"; then
- lib_debug_suffix=d
- WX_DEBUGTYPE="debug"
- DEBUG_FLAG=1
-fi
-
WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
DEBUG_INFO=1
fi
-WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr '[[a-z]]' '[[A-Z]]'`
+WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr '[[a-z]]' '[[A-Z]]'`
-TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
+TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
-TOOLCHAIN_FULLNAME="${HOST_PREFIX}${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
+TOOLCHAIN_FULLNAME="${HOST_PREFIX}${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
dnl library link name
-dnl These just save us from exporting lib_{unicode,debug,flavour}_suffix.
+dnl These just save us from exporting lib_{unicode,flavour}_suffix.
dnl If we ever need to do that, we won't need to keep these.
if test "$wxUSE_OSX_CARBON" = 1 -o "$wxUSE_OSX_COCOA" = 1 -o "$wxUSE_COCOA" = 1; then
- WX_LIBRARY_BASENAME_NOGUI="wx_base${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
+ WX_LIBRARY_BASENAME_NOGUI="wx_base${lib_unicode_suffix}${WX_LIB_FLAVOUR}"
else
- WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
+ WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${WX_LIB_FLAVOUR}"
fi
if test "${TOOLKIT_DIR}" = "os2"; then
- WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
+ WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${WX_LIB_FLAVOUR}"
else
- WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
+ WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${WX_LIB_FLAVOUR}"
fi
fi
fi
-if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
- AC_DEFINE(WXDEBUG)
- WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
-else
+if test "$wxUSE_DEBUG_FLAG" = "no" ; then
if test "$wxUSE_GTK" = 1 ; then
if test "x$wxGTK_VERSION" = "x1" ; then
CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
EXTRALIBS_XML="$EXPAT_LINK"
EXTRALIBS_HTML="$MSPACK_LINK"
EXTRALIBS_MEDIA="$GST_LIBS"
-EXTRALIBS_STC="-lwxscintilla${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
+EXTRALIBS_STC="-lwxscintilla${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
if test "$wxUSE_GUI" = "yes"; then
EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
fi
fi
for i in $wxconfig_3rdparty ; do
- WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
+ WXCONFIG_LIBS="-lwx${i}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
done
AC_SUBST(EXTRALIBS_GNOMEVFS)
AC_SUBST(EXTRALIBS_HILDON)
AC_SUBST(UNICODE)
-AC_SUBST(BUILD)
AC_SUBST(DEBUG_INFO)
AC_SUBST(DEBUG_FLAG)
TOOLKIT_LOWERCASE=xxx
AC_SUBST(WX_VERSION)
AC_SUBST(WX_SUBVERSION)
AC_SUBST(WX_CHARTYPE)
-AC_SUBST(WX_DEBUGTYPE)
dnl note that in addition to the usual CPP/C/CXXFLAGS which are used for
dnl building the library itself, we also have WXCONFIG_-prefixed variants which
echo ""
echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_DESC}"
echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
-
-echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
echo $ECHO_N " Should wxWidgets support Unicode? ${wxUSE_UNICODE:-no}$ECHO_C"
if test "$wxUSE_UNICODE" = "yes"; then