Skip to content

Commit 419fa1f

Browse files
committed
build: define more typical HAVE_PTHREAD if pthreads library can be used
1 parent ec42cfa commit 419fa1f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

configure.ac

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1902,6 +1902,10 @@ LOC_CHECK_FUNC(pthread_create,POSIX threads functions,PTHREADLIB,,,,,[
19021902
LOC_CHECK_LIBS(pthread,pthread_create,POSIX threads,$PTHREADLIBPATH,PTHREADLIB,,,)
19031903
])
19041904

1905+
if test -n "$PTHREADLIB" ; then
1906+
AC_DEFINE(HAVE_PTHREAD, 1, [Define to 1 if POSIX threads are available.])
1907+
fi
1908+
19051909
fi # $USE_PTHREAD
19061910

19071911
AC_SUBST(PTHREADINCPATH)

0 commit comments

Comments
 (0)