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:
parent
ef4f69ec32
commit
759b3c7e2f
36
configure.in
36
configure.in
@ -4016,22 +4016,26 @@ if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
|
|||||||
AC_DEFINE(HAVE_PTHREAD_CANCEL),
|
AC_DEFINE(HAVE_PTHREAD_CANCEL),
|
||||||
AC_MSG_WARN([wxThread::Kill() will not work properly]))
|
AC_MSG_WARN([wxThread::Kill() will not work properly]))
|
||||||
|
|
||||||
AC_CACHE_CHECK([for pthread_cleanup_push/pop], wx_cv_func_pthread_cleanup_push,
|
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
|
||||||
AC_TRY_COMPILE([#include <pthread.h>],
|
dnl should be removed in a couple of months (VZ in Sep 2003)
|
||||||
[
|
dnl
|
||||||
pthread_cleanup_push(NULL, NULL);
|
dnl AC_CACHE_CHECK([for pthread_cleanup_push/pop], wx_cv_func_pthread_cleanup_push,
|
||||||
pthread_cleanup_pop(0);
|
dnl [
|
||||||
], [
|
dnl AC_TRY_COMPILE([#include <pthread.h>],
|
||||||
wx_cv_func_pthread_cleanup_push=yes
|
dnl [
|
||||||
], [
|
dnl pthread_cleanup_push(NULL, NULL);
|
||||||
wx_cv_func_pthread_cleanup_push=no
|
dnl pthread_cleanup_pop(0);
|
||||||
])
|
dnl ], [
|
||||||
])
|
dnl wx_cv_func_pthread_cleanup_push=yes
|
||||||
|
dnl ], [
|
||||||
if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
|
dnl wx_cv_func_pthread_cleanup_push=no
|
||||||
AC_DEFINE(HAVE_THREAD_CLEANUP_FUNCTIONS)
|
dnl ])
|
||||||
fi
|
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 mutexattr_t initialization is done in quite different ways on different
|
||||||
dnl platforms, so check for a few things:
|
dnl platforms, so check for a few things:
|
||||||
|
Loading…
Reference in New Issue
Block a user