From 759b3c7e2fb5fcb555c382b00d5a6b938a474057 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 19 Sep 2003 00:46:44 +0000 Subject: [PATCH] don't ever define HAVE_THREAD_CLEANUP_FUNCTIONS, the code in threadpsx.cpp doesn't work in this case anyhow git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23702 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- configure.in | 36 ++++++++++++++++++++---------------- 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/configure.in b/configure.in index 47f159cbb9..a8b6fc907b 100644 --- a/configure.in +++ b/configure.in @@ -4016,22 +4016,26 @@ if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then AC_DEFINE(HAVE_PTHREAD_CANCEL), AC_MSG_WARN([wxThread::Kill() will not work properly])) - AC_CACHE_CHECK([for pthread_cleanup_push/pop], wx_cv_func_pthread_cleanup_push, - [ - AC_TRY_COMPILE([#include ], - [ - pthread_cleanup_push(NULL, NULL); - pthread_cleanup_pop(0); - ], [ - wx_cv_func_pthread_cleanup_push=yes - ], [ - wx_cv_func_pthread_cleanup_push=no - ]) - ]) - - if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then - AC_DEFINE(HAVE_THREAD_CLEANUP_FUNCTIONS) - fi + dnl we don't use pthread_cleanup_push/pop() any more in the code, but I + dnl the code here for now in case we need it again soon; otherwise it + dnl should be removed in a couple of months (VZ in Sep 2003) + dnl + dnl AC_CACHE_CHECK([for pthread_cleanup_push/pop], wx_cv_func_pthread_cleanup_push, + dnl [ + dnl AC_TRY_COMPILE([#include ], + dnl [ + dnl pthread_cleanup_push(NULL, NULL); + dnl pthread_cleanup_pop(0); + dnl ], [ + dnl wx_cv_func_pthread_cleanup_push=yes + dnl ], [ + dnl wx_cv_func_pthread_cleanup_push=no + dnl ]) + dnl ]) + dnl + dnl if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then + dnl AC_DEFINE(HAVE_THREAD_CLEANUP_FUNCTIONS) + dnl fi dnl mutexattr_t initialization is done in quite different ways on different dnl platforms, so check for a few things: