Lines Matching refs:pthread
92 # We used to check for pthread.h first, but this fails if pthread.h
122 # which indicates that we try without any flags at all, and "pthread-config"
125 …ags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -m…
133 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
134 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
135 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
136 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
143 # pthread: Linux, etcetera
145 # pthread-config: use pthread-config program (for GNU Pth library)
158 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
175 pthread-config)
176 AC_CHECK_PROG(acx_pthread_config, pthread-config, yes, no)
178 PTHREAD_CFLAGS="`pthread-config --cflags`"
179 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
193 # Check for various functions. We must include pthread.h,
199 # pthread_cleanup_push because it is one of the few pthread
202 AC_TRY_LINK([#include <pthread.h>],
229 AC_MSG_CHECKING([for joinable pthread attribute])
232 AC_TRY_LINK([#include <pthread.h>], [int attr=$attr; return attr;],