From: Peter van Dijk Date: Wed, 6 Jan 2021 12:05:56 +0000 (+0100) Subject: autoconf: correctly detect pthread symbols X-Git-Tag: rec-4.5.0-alpha1~36^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=391fbabe0482e5c209a3d202964d9070937f23e1;p=thirdparty%2Fpdns.git autoconf: correctly detect pthread symbols --- diff --git a/m4/pdns_check_pthread_np.m4 b/m4/pdns_check_pthread_np.m4 index 7bbad93512..93bd249fbb 100644 --- a/m4/pdns_check_pthread_np.m4 +++ b/m4/pdns_check_pthread_np.m4 @@ -1,3 +1,6 @@ AC_DEFUN([PDNS_CHECK_PTHREAD_NP],[ AC_SEARCH_LIBS([pthread_setaffinity_np], [pthread], [AC_DEFINE(HAVE_PTHREAD_SETAFFINITY_NP, [1], [Define to 1 if you have pthread_setaffinity_np])]) + AC_SEARCH_LIBS([pthread_getattr_np], [pthread], [AC_DEFINE(HAVE_PTHREAD_GETATTR_NP, [1], [Define to 1 if you have pthread_getattr_np])]) + AC_SEARCH_LIBS([pthread_get_stackaddr_np], [pthread], [AC_DEFINE(HAVE_PTHREAD_GET_STACKADDR_NP, [1], [Define to 1 if you have pthread_get_stackaddr_np])]) + AC_SEARCH_LIBS([pthread_get_stacksize_np], [pthread], [AC_DEFINE(HAVE_PTHREAD_GET_STACKSIZE_NP, [1], [Define to 1 if you have pthread_get_stacksize_np])]) ]) diff --git a/pdns/recursordist/configure.ac b/pdns/recursordist/configure.ac index 86af389ef1..950b3d48d5 100644 --- a/pdns/recursordist/configure.ac +++ b/pdns/recursordist/configure.ac @@ -93,7 +93,7 @@ PDNS_CHECK_CURL dnl the *_r functions are in posix so we can use them unconditionally, but the ext/yahttp code is dnl using the defines. -AC_CHECK_FUNCS_ONCE([localtime_r gmtime_r strcasestr getrandom arc4random pthread_getattr_np pthread_get_stackaddr_np pthread_get_stacksize_np]) +AC_CHECK_FUNCS_ONCE([localtime_r gmtime_r strcasestr getrandom arc4random]) PDNS_CHECK_PTHREAD_NP