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
This commit is contained in:
Vadim Zeitlin 2003-09-19 00:46:44 +00:00
parent ef4f69ec32
commit 759b3c7e2f

View File

@ -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.h>],
[
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 <pthread.h>],
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: