From: Arran Cudbard-Bell Date: Thu, 5 Sep 2024 01:05:18 +0000 (-0600) Subject: Revert "maybe pthread functions are in -lc?" X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=95d32f66831f1;p=thirdparty%2Ffreeradius-server.git Revert "maybe pthread functions are in -lc?" This reverts commit 54c3e38527e890588a98154ae2b23804008081e4. --- 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