Lines Matching refs:pthread
36 # Also HAVE_PTHREAD_PRIO_INHERIT is defined if pthread is found and the
93 # We used to check for pthread.h first, but this fails if pthread.h
123 # which indicates that we try without any flags at all, and "pthread-config"
126 …ags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -m…
134 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
135 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
136 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
137 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
144 # pthread: Linux, etcetera
146 # pthread-config: use pthread-config program (for GNU Pth library)
159 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
163 ax_pthread_flags="-pthread $ax_pthread_flags"
199 pthread-config)
200 AC_CHECK_PROG([ax_pthread_config], [pthread-config], [yes], [no])
202 PTHREAD_CFLAGS="`pthread-config --cflags`"
203 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
217 # Check for various functions. We must include pthread.h,
223 # pthread_cleanup_push because it is one of the few pthread
226 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <pthread.h>
259 AC_MSG_CHECKING([for joinable pthread attribute])
262 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <pthread.h>],
295 AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <pthread.h>]],