Skip to content

Commit

Permalink
try checking for pthread_cancel AFTER pthreads is detected
Browse files Browse the repository at this point in the history
  • Loading branch information
craigcomstock committed Jul 26, 2024
1 parent 40c30a2 commit 60356f4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ fi

dnl ######################################################################
dnl Use pthreads if available
AC_CHECK_FUNCS([pthread_cancel])
dnl ######################################################################

AC_ARG_WITH([pthreads],
Expand All @@ -171,6 +170,11 @@ CC="$PTHREAD_CC"
CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
LIBS="$PTHREAD_LIBS $LIBS"

dnl ######################################################################
dnl libpromises/evalfunction.c isreadable() uses pthread_cancel if available and reverts to pthread_kill if not
dnl ######################################################################
AC_CHECK_FUNCS([pthread_cancel])

dnl ######################################################################
dnl Whether to build extensions as builtin extensions or a separate
dnl plugin. The default is plugin.
Expand Down

0 comments on commit 60356f4

Please sign in to comment.