From: Daniel Salzman Date: Tue, 9 Apr 2019 09:26:10 +0000 (+0200) Subject: configure: fix detection of pthread_setaffinity_np X-Git-Tag: v2.9.0~292 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3bb49ae111f236bc31c655a5a259c2488ed9d0dc;p=thirdparty%2Fknot-dns.git configure: fix detection of pthread_setaffinity_np --- diff --git a/configure.ac b/configure.ac index c76dea1a47..a8b993f1a7 100644 --- a/configure.ac +++ b/configure.ac @@ -594,9 +594,12 @@ LIBS="$save_LIBS" AC_HEADER_RESOLV AC_CHECK_HEADERS_ONCE([pthread_np.h sys/uio.h]) +save_LIBS="$LIBS" +LIBS="$LIBS $pthread_LIBS" # Checks for optional library functions. AC_CHECK_FUNCS([accept4 clock_gettime fgetln getline initgroups malloc_trim \ pthread_setaffinity_np setgroups strlcat strlcpy sysctlbyname]) +LIBS="$save_LIBS" # Check for mandatory library functions. AC_CHECK_FUNC([vasprintf], [], [