From: phk Date: Tue, 11 Dec 2007 09:02:29 +0000 (+0000) Subject: Check if our pthreads sports a pthread_set_name_np() function. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4b8950b276f7762110692ae0085f9589845f3441;p=varnish Check if our pthreads sports a pthread_set_name_np() function. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2292 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/configure.ac b/varnish-cache/configure.ac index 70450ba6..647c128e 100644 --- a/varnish-cache/configure.ac +++ b/varnish-cache/configure.ac @@ -47,6 +47,8 @@ save_LIBS="${LIBS}" LIBS="" AC_SEARCH_LIBS(pthread_create, [thr pthread c_r]) PTHREAD_LIBS="${LIBS}" +# Check for thread naming function +AC_CHECK_FUNCS([pthread_set_name_np]) LIBS="${save_LIBS}" AC_SUBST(PTHREAD_LIBS) @@ -74,6 +76,7 @@ AC_CHECK_HEADERS([stddef.h]) AC_CHECK_HEADERS([stdlib.h]) AC_CHECK_HEADERS([unistd.h]) AC_CHECK_HEADERS([vis.h]) +AC_CHECK_HEADERS([pthread_np.h]) # Checks for typedefs, structures, and compiler characteristics. AC_C_CONST