Skip to content

Commit

Permalink
build: use modern ax_pthread macro
Browse files Browse the repository at this point in the history
acx_pthread became ax_pthread in 2009 and the macro has seen lots of updates
since then. This change switches to using the latest version.
  • Loading branch information
fanquake committed Dec 1, 2021
1 parent d076d2d commit 9aa4eb0
Show file tree
Hide file tree
Showing 3 changed files with 527 additions and 288 deletions.
14 changes: 5 additions & 9 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -687,16 +687,12 @@ AC_COMPILE_IFELSE(
dnl check if we can compile with pthreads
have_pthreads=no
if test "$bwin32" != "true" && test "$enable_thread_support" != "no"; then
ACX_PTHREAD([
AC_DEFINE(HAVE_PTHREADS, 1,
[Define if we have pthreads on this system])
have_pthreads=yes])
AX_PTHREAD([
AC_DEFINE([HAVE_PTHREADS], [1], [Define if we have pthreads on this system])
have_pthreads=yes
])
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
AC_CHECK_SIZEOF(pthread_t, ,
[AC_INCLUDES_DEFAULT()
#include <pthread.h> ]
)

AC_CHECK_SIZEOF([pthread_t], [], [AC_INCLUDES_DEFAULT() #include <pthread.h> ])
AC_CHECK_FUNCS([pthread_mutexattr_setprotocol])
fi
AM_CONDITIONAL(THREADS, [test "$enable_thread_support" != "no"])
Expand Down
279 changes: 0 additions & 279 deletions m4/acx_pthread.m4

This file was deleted.

Loading

0 comments on commit 9aa4eb0

Please sign in to comment.