]> git.saurik.com Git - wxWidgets.git/commitdiff
added wxUSE_DEBUGREPORT
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 11 Mar 2005 00:19:17 +0000 (00:19 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 11 Mar 2005 00:19:17 +0000 (00:19 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32739 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

configure
configure.in
include/wx/mac/setup0.h
include/wx/msw/setup0.h
include/wx/msw/wince/setup.h
setup.h.in

index c2bf0ebf3f4c4b50a268c26b27732d7f1a66934b..2f6712c011b722e651a61d1231a4ab7a584ba5ac 100755 (executable)
--- a/configure
+++ b/configure
@@ -904,10 +904,11 @@ Optional Features:
   --enable-ipc            use interprocess communication (wxSocket etc.)
   --enable-apple_ieee     use the Apple IEEE codec
   --enable-arcstream      use wxArchive streams
-  --enable-catch_segvs    catch signals in wxApp::OnFatalException (Unix only)
   --enable-backtrace      use wxStackWalker class for getting backtraces
+  --enable-catch_segvs    catch signals in wxApp::OnFatalException (Unix only)
   --enable-cmdline        use wxCmdLineParser class
   --enable-datetime       use wxDateTime class
+  --enable-debugreport    use wxDebugReport class
   --enable-dialupman      use dialup network classes
   --enable-dynlib         use wxLibrary class for DLL loading
   --enable-dynamicloader  use (new) wxDynamicLibrary class
@@ -2070,6 +2071,7 @@ if test $DEBUG_CONFIGURE = 1; then
 
   DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
   DEFAULT_wxUSE_STACKWALKER=no
+  DEFAULT_wxUSE_DEBUGREPORT=no
   DEFAULT_wxUSE_SNGLINST_CHECKER=no
   DEFAULT_wxUSE_STD_IOSTREAM=no
   DEFAULT_wxUSE_CMDLINE_PARSER=no
@@ -2264,6 +2266,7 @@ else
 
   DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
   DEFAULT_wxUSE_STACKWALKER=yes
+  DEFAULT_wxUSE_DEBUGREPORT=yes
   DEFAULT_wxUSE_SNGLINST_CHECKER=yes
   DEFAULT_wxUSE_STD_IOSTREAM=no
   DEFAULT_wxUSE_CMDLINE_PARSER=yes
@@ -4713,38 +4716,38 @@ echo "${ECHO_T}no" >&6
 
 
          enablestring=
-          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
-echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
+          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
+echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
           no_cache=0
-          # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
-if test "${enable_catch_segvs+set}" = set; then
-  enableval="$enable_catch_segvs"
+          # Check whether --enable-backtrace or --disable-backtrace was given.
+if test "${enable_backtrace+set}" = set; then
+  enableval="$enable_backtrace"
 
                           if test "$enableval" = yes; then
-                            ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
+                            ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
                           else
-                            ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
+                            ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
                           fi
 
 else
 
-                          LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
+                          LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
                           if test "x$LINE" != x ; then
                             eval "DEFAULT_$LINE"
                           else
                             no_cache=1
                           fi
 
-                          ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
+                          ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
 
 fi;
 
-          eval "$ac_cv_use_catch_segvs"
+          eval "$ac_cv_use_backtrace"
           if test "$no_cache" != 1; then
-            echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
+            echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
           fi
 
-          if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
+          if test "$wxUSE_STACKWALKER" = yes; then
             echo "$as_me:$LINENO: result: yes" >&5
 echo "${ECHO_T}yes" >&6
           else
@@ -4754,38 +4757,38 @@ echo "${ECHO_T}no" >&6
 
 
          enablestring=
-          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
-echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
+          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
+echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
           no_cache=0
-          # Check whether --enable-backtrace or --disable-backtrace was given.
-if test "${enable_backtrace+set}" = set; then
-  enableval="$enable_backtrace"
+          # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
+if test "${enable_catch_segvs+set}" = set; then
+  enableval="$enable_catch_segvs"
 
                           if test "$enableval" = yes; then
-                            ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
+                            ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
                           else
-                            ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
+                            ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
                           fi
 
 else
 
-                          LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
+                          LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
                           if test "x$LINE" != x ; then
                             eval "DEFAULT_$LINE"
                           else
                             no_cache=1
                           fi
 
-                          ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
+                          ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
 
 fi;
 
-          eval "$ac_cv_use_backtrace"
+          eval "$ac_cv_use_catch_segvs"
           if test "$no_cache" != 1; then
-            echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
+            echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
           fi
 
-          if test "$wxUSE_STACKWALKER" = yes; then
+          if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
             echo "$as_me:$LINENO: result: yes" >&5
 echo "${ECHO_T}yes" >&6
           else
@@ -4876,6 +4879,47 @@ echo "${ECHO_T}no" >&6
           fi
 
 
+         enablestring=
+          echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
+echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
+          no_cache=0
+          # Check whether --enable-debugreport or --disable-debugreport was given.
+if test "${enable_debugreport+set}" = set; then
+  enableval="$enable_debugreport"
+
+                          if test "$enableval" = yes; then
+                            ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
+                          else
+                            ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
+                          fi
+
+else
+
+                          LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
+                          if test "x$LINE" != x ; then
+                            eval "DEFAULT_$LINE"
+                          else
+                            no_cache=1
+                          fi
+
+                          ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
+
+fi;
+
+          eval "$ac_cv_use_debugreport"
+          if test "$no_cache" != 1; then
+            echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
+          fi
+
+          if test "$wxUSE_DEBUGREPORT" = yes; then
+            echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6
+          else
+            echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+          fi
+
+
          enablestring=
           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
 echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
@@ -21049,7 +21093,6 @@ _ACEOF
 
 fi
 
-AC_CXX_DYNAMIC_CAST
 
 if test "$wxUSE_STL" = "yes"; then
     ac_ext=cc
@@ -36293,6 +36336,13 @@ _ACEOF
 
 fi
 
+if test "$wxUSE_DEBUGREPORT" = "yes"; then
+    cat >>confdefs.h <<\_ACEOF
+#define wxUSE_DEBUGREPORT 1
+_ACEOF
+
+fi
+
 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
   cat >>confdefs.h <<\_ACEOF
 #define wxUSE_SNGLINST_CHECKER 1
index 2314570a8c4f7d94462ef929215e6ee60bbac67c..5f45c48f8710b6658108315ecddac2f2779c66af 100644 (file)
@@ -417,6 +417,7 @@ if test $DEBUG_CONFIGURE = 1; then
 
   DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
   DEFAULT_wxUSE_STACKWALKER=no
+  DEFAULT_wxUSE_DEBUGREPORT=no
   DEFAULT_wxUSE_SNGLINST_CHECKER=no
   DEFAULT_wxUSE_STD_IOSTREAM=no
   DEFAULT_wxUSE_CMDLINE_PARSER=no
@@ -611,6 +612,7 @@ else
 
   DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
   DEFAULT_wxUSE_STACKWALKER=yes
+  DEFAULT_wxUSE_DEBUGREPORT=yes
   DEFAULT_wxUSE_SNGLINST_CHECKER=yes
   DEFAULT_wxUSE_STD_IOSTREAM=no
   DEFAULT_wxUSE_CMDLINE_PARSER=yes
@@ -888,10 +890,11 @@ WX_ARG_ENABLE(ipc,           [  --enable-ipc            use interprocess communi
 dnl please keep the settings below in alphabetical order
 WX_ARG_ENABLE(apple_ieee,    [  --enable-apple_ieee     use the Apple IEEE codec], wxUSE_APPLE_IEEE)
 WX_ARG_ENABLE(arcstream,     [  --enable-arcstream      use wxArchive streams], wxUSE_ARCHIVE_STREAMS)
-WX_ARG_ENABLE(catch_segvs,   [  --enable-catch_segvs    catch signals in wxApp::OnFatalException (Unix only)], wxUSE_ON_FATAL_EXCEPTION)
 WX_ARG_ENABLE(backtrace,     [  --enable-backtrace      use wxStackWalker class for getting backtraces], wxUSE_STACKWALKER)
+WX_ARG_ENABLE(catch_segvs,   [  --enable-catch_segvs    catch signals in wxApp::OnFatalException (Unix only)], wxUSE_ON_FATAL_EXCEPTION)
 WX_ARG_ENABLE(cmdline,       [  --enable-cmdline        use wxCmdLineParser class], wxUSE_CMDLINE_PARSER)
 WX_ARG_ENABLE(datetime,      [  --enable-datetime       use wxDateTime class], wxUSE_DATETIME)
+WX_ARG_ENABLE(debugreport,   [  --enable-debugreport    use wxDebugReport class], wxUSE_DEBUGREPORT)
 WX_ARG_ENABLE(dialupman,     [  --enable-dialupman      use dialup network classes], wxUSE_DIALUP_MANAGER)
 WX_ARG_ENABLE(dynlib,        [  --enable-dynlib         use wxLibrary class for DLL loading], wxUSE_DYNLIB_CLASS)
 WX_ARG_ENABLE(dynamicloader, [  --enable-dynamicloader  use (new) wxDynamicLibrary class], wxUSE_DYNAMIC_LOADER)
@@ -4840,6 +4843,10 @@ if test "$wxUSE_STACKWALKER" = "yes"; then
     AC_DEFINE(wxUSE_STACKWALKER)
 fi
 
+if test "$wxUSE_DEBUGREPORT" = "yes"; then
+    AC_DEFINE(wxUSE_DEBUGREPORT)
+fi
+
 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
   AC_DEFINE(wxUSE_SNGLINST_CHECKER)
 fi
index 7d868578b9127e5a3790a1cf5c32e4c4b63a03bb..77aa53d073ac6dde3ae12ee116c5c58f555d2c72 100644 (file)
 // Recommended setting: 1, set to 0 if your programs never crash
 #define wxUSE_STACKWALKER 1
 
+// Set this to 1 to compile in wxDebugReport class which allows you to create
+// and optionally upload to your web site a debug report consisting of back
+// trace of the crash (if wxUSE_STACKWALKER == 1) and other information.
+//
+// Default is 1 if supported by the compiler.
+//
+// Recommended setting: 1 under Win32, it is not especially useful elsewhere
+//                      currently
+#define wxUSE_DEBUGREPORT 1
+
 // ----------------------------------------------------------------------------
 // Unicode support
 // ----------------------------------------------------------------------------
index bcfbb6457a5c9d744b5e0753969bed737838a37c..66048611520989aa918c0eace24846f9b7d330de 100644 (file)
 // Recommended setting: 1, set to 0 if your programs never crash
 #define wxUSE_STACKWALKER 1
 
+// Set this to 1 to compile in wxDebugReport class which allows you to create
+// and optionally upload to your web site a debug report consisting of back
+// trace of the crash (if wxUSE_STACKWALKER == 1) and other information.
+//
+// Default is 1 if supported by the compiler.
+//
+// Recommended setting: 1 under Win32, it is not especially useful elsewhere
+//                      currently
+#define wxUSE_DEBUGREPORT 1
+
 // ----------------------------------------------------------------------------
 // Unicode support
 // ----------------------------------------------------------------------------
index 7407cc9b83bcdb5e664a01ff287ee5d84adbe167..4bc5654394b86f5734950a24173007d643e261a4 100644 (file)
 // Recommended setting: 1, set to 0 if your programs never crash
 #define wxUSE_STACKWALKER 1
 
+// Set this to 1 to compile in wxDebugReport class which allows you to create
+// and optionally upload to your web site a debug report consisting of back
+// trace of the crash (if wxUSE_STACKWALKER == 1) and other information.
+//
+// Default is 1 if supported by the compiler.
+//
+// Recommended setting: 1 under Win32, it is not especially useful elsewhere
+//                      currently
+#define wxUSE_DEBUGREPORT 1
+
 // ----------------------------------------------------------------------------
 // Unicode support
 // ----------------------------------------------------------------------------
index 7d19f19ac60ee285500b973162d774bdd5a68457..377dc3c1411a504fa8d22f7ccf72c17b776d19e9 100644 (file)
 
 #define wxUSE_STACKWALKER 0
 
+#define wxUSE_DEBUGREPORT 0
+
 
 #ifndef wxUSE_UNICODE
     #define wxUSE_UNICODE 0