Commit 54ccb911 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Check if our pthreads sports a pthread_set_name_np() function.


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2292 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 28854c3d
...@@ -47,6 +47,8 @@ save_LIBS="${LIBS}" ...@@ -47,6 +47,8 @@ save_LIBS="${LIBS}"
LIBS="" LIBS=""
AC_SEARCH_LIBS(pthread_create, [thr pthread c_r]) AC_SEARCH_LIBS(pthread_create, [thr pthread c_r])
PTHREAD_LIBS="${LIBS}" PTHREAD_LIBS="${LIBS}"
# Check for thread naming function
AC_CHECK_FUNCS([pthread_set_name_np])
LIBS="${save_LIBS}" LIBS="${save_LIBS}"
AC_SUBST(PTHREAD_LIBS) AC_SUBST(PTHREAD_LIBS)
...@@ -74,6 +76,7 @@ AC_CHECK_HEADERS([stddef.h]) ...@@ -74,6 +76,7 @@ AC_CHECK_HEADERS([stddef.h])
AC_CHECK_HEADERS([stdlib.h]) AC_CHECK_HEADERS([stdlib.h])
AC_CHECK_HEADERS([unistd.h]) AC_CHECK_HEADERS([unistd.h])
AC_CHECK_HEADERS([vis.h]) AC_CHECK_HEADERS([vis.h])
AC_CHECK_HEADERS([pthread_np.h])
# Checks for typedefs, structures, and compiler characteristics. # Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST AC_C_CONST
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment