]> err.no Git - varnish/commitdiff
Check if our pthreads sports a pthread_set_name_np() function.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 11 Dec 2007 09:02:29 +0000 (09:02 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 11 Dec 2007 09:02:29 +0000 (09:02 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2292 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/configure.ac

index 70450ba69f86075b8edc7aeab9ce40abc7b2dc5a..647c128e5ed735d279bdd696ca5fe51b3a1d788c 100644 (file)
@@ -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