Lines Matching refs:pthread
36 # Also HAVE_PTHREAD_PRIO_INHERIT is defined if pthread is found and the
95 # We used to check for pthread.h first, but this fails if pthread.h
128 # which indicates that we try without any flags at all, and "pthread-config"
131 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pth…
139 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
140 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
149 # pthread: Linux, etcetera
151 # pthread-config: use pthread-config program (for GNU Pth library)
157 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
158 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
168 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
197 ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
201 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
204 [ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"])
247 # Clang needs special handling, because older versions handle the -pthread
252 # Clang takes -pthread; it has never supported any other flag
258 # (Note 2: On some systems, notably Darwin, -pthread is not needed
261 # -pthread does define _REENTRANT, and while the Darwin headers
264 PTHREAD_CFLAGS="-pthread"
271 # taking place, the -pthread option has no effect ("argument unused
272 # during compilation"). They expect -pthread to be passed in only
283 # Even though use of the -pthread flag in linking would only print
288 …E_CHECK([whether Clang needs flag to prevent "argument unused" warning when linking with -pthread],
302 … CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
331 -mt,pthread)
342 pthread-config)
343 AC_CHECK_PROG([ax_pthread_config], [pthread-config], [yes], [no])
345 PTHREAD_CFLAGS="`pthread-config --cflags`"
346 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
360 # Check for various functions. We must include pthread.h,
366 # pthread_cleanup_push because it is one of the few pthread
370 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <pthread.h>
404 AC_CACHE_CHECK([for joinable pthread attribute],
408 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <pthread.h>],
440 [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <pthread.h>]],