From 95d32f66831f11517b4cbc6a9ffcfd095e186134 Mon Sep 17 00:00:00 2001 From: Arran Cudbard-Bell Date: Wed, 4 Sep 2024 19:05:18 -0600 Subject: [PATCH] Revert "maybe pthread functions are in -lc?" This reverts commit 54c3e38527e890588a98154ae2b23804008081e4. --- configure.ac | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/configure.ac b/configure.ac index b42a68edb0..34c831ee1e 100644 --- a/configure.ac +++ b/configure.ac @@ -888,31 +888,6 @@ AC_CHECK_HEADERS(pthread.h, [], fail=[pthread.h] ]) -if test "x$HAVE_THREADS" != "xno"; then - dnl # - dnl # pthread stuff is usually in -lpthread - dnl # or in -lc_r, on *BSD - dnl # - dnl # On Some systems, we need extra pre-processor flags, to get them to - dnl # to do the threading properly. - dnl # - AC_CHECK_LIB(c, pthread_create, - [ - HAVE_THREADS="yes" - CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS" - - dnl # - dnl # -pthread should add all required CPP definitions and linker - dnl # arguments. But not all compilers support it, or some compilers - dnl # only support it on certain platforms. - dnl # - AX_CC_PTHREAD_FLAG - if test "x$ax_cv_cc_pthread_flag" = 'xyes'; then - CFLAGS="$CFLAGS -pthread" - fi - ] - ) -fi if test "x$HAVE_THREADS" != "xno"; then dnl # dnl # pthread stuff is usually in -lpthread -- 2.47.2