AC_CHECK_LIB(pthread,pthread_create,,
[AC_MSG_ERROR([[Cannot find pthreads, no way (try --enable-context=ucontext if you haven't already tried).]])])
AC_DEFINE([USE_PTHREADS],1,[Define if we USE pthreads or not])
AC_CHECK_LIB(pthread,pthread_create,,
[AC_MSG_ERROR([[Cannot find pthreads, no way (try --enable-context=ucontext if you haven't already tried).]])])
AC_DEFINE([USE_PTHREADS],1,[Define if we USE pthreads or not])