• Home
  • Raw
  • Download

Lines Matching refs:pthread

40 #   Also HAVE_PTHREAD_PRIO_INHERIT is defined if pthread is found and the
100 # We used to check for pthread.h first, but this fails if pthread.h
136 # any flags at all, and "pthread-config" which is a program returning
139 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pth…
147 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
148 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
157 # pthread: Linux, etcetera
159 # pthread-config: use pthread-config program (for GNU Pth library)
165 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
166 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
176 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
205 ax_pthread_flags="-mt,-lpthread pthread $ax_pthread_flags"
228 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
230 # Note that for GCC and Clang -pthread generally implies -lpthread,
232 # This is problematic using libtool to build C++ shared libraries with pthread:
236 # To solve this, first try -pthread together with -lpthread for GCC
239 [ax_pthread_flags="-pthread,-lpthread -pthread -pthreads $ax_pthread_flags"])
241 # Clang takes -pthread (never supported any other flag), but we'll try with -lpthread first
244 [ax_pthread_flags="-pthread,-lpthread -pthread"])
288 pthread-config)
289 AC_CHECK_PROG([ax_pthread_config], [pthread-config], [yes], [no])
291 PTHREAD_CFLAGS="`pthread-config --cflags`"
292 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
306 # Check for various functions. We must include pthread.h,
312 # pthread_cleanup_push because it is one of the few pthread
316 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <pthread.h>
349 # Clang needs special handling, because older versions handle the -pthread
354 # Clang takes -pthread; it has never supported any other flag
360 # (Note 2: On some systems, notably Darwin, -pthread is not needed
363 # -pthread does define _REENTRANT, and while the Darwin headers
368 # taking place, the -pthread option has no effect ("argument unused
369 # during compilation"). They expect -pthread to be passed in only
380 # Even though use of the -pthread flag in linking would only print
385 …E_CHECK([whether Clang needs flag to prevent "argument unused" warning when linking with -pthread],
399 … CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
430 AC_CACHE_CHECK([for joinable pthread attribute],
434 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <pthread.h>],
466 [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <pthread.h>]],