Lines Matching refs:pthread
59 dnl Checks for GCC shared/pthread inconsistency based on work by
69 # We used to check for pthread.h first, but this fails if pthread.h
99 # which indicates that we try without any flags at all, and "pthread-config"
102 …ags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -m…
110 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
111 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
112 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
113 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
120 # pthread: Linux, etcetera
122 # pthread-config: use pthread-config program (for GNU Pth library)
135 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
152 pthread-config)
153 AC_CHECK_PROG(acx_pthread_config, pthread-config, yes, no)
155 PTHREAD_CFLAGS="`pthread-config --cflags`"
156 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
170 # Check for various functions. We must include pthread.h,
176 # pthread_cleanup_push because it is one of the few pthread
179 AC_TRY_LINK([#include <pthread.h>],
206 AC_MSG_CHECKING([for joinable pthread attribute])
209 AC_TRY_LINK([#include <pthread.h>], [int attr=$attr; return attr;],
271 AC_MSG_CHECKING([whether to check for GCC pthread/shared inconsistencies])
282 AC_MSG_CHECKING([whether -pthread is sufficient with -shared])
283 AC_TRY_LINK([#include <pthread.h>],
303 AC_TRY_LINK([#include <pthread.h>],
322 AC_TRY_LINK([#include <pthread.h>],