From 898beab1cd4ec24b9225563c98212a9e16d6ed4e Mon Sep 17 00:00:00 2001 From: David Elliott Date: Sun, 27 Mar 2005 04:06:37 +0000 Subject: [PATCH] Disable wxStackWalker on platforms other than Win32 or UNIX. For instance, Mac OS (PEF) doesn't have an implementation. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33083 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- configure | 7 +++++++ configure.in | 6 ++++++ 2 files changed, 13 insertions(+) diff --git a/configure b/configure index a604b02d96..c8be606074 100755 --- a/configure +++ b/configure @@ -31589,6 +31589,13 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi +if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then + { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5 +echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;} + wxUSE_STACKWALKER=no +fi + + for ac_func in mkstemp mktemp diff --git a/configure.in b/configure.in index 3f874aac45..137e2fa099 100644 --- a/configure.in +++ b/configure.in @@ -3885,6 +3885,12 @@ if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then AC_LANG_RESTORE fi +if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then + AC_MSG_WARN([wxStackWalker is only available on Win32 and UNIX... disabled]) + wxUSE_STACKWALKER=no +fi + + dnl check for the function for temp files creation AC_CHECK_FUNCS(mkstemp mktemp, break) -- 2.47.2