From: des Date: Sun, 3 Feb 2008 22:27:15 +0000 (+0000) Subject: Clean up checks for non-portable pthread extensions, and add a check for X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=caeff7fb8c8c0c2304a532e58a23026b3df51375;p=varnish Clean up checks for non-portable pthread extensions, and add a check for pthread_mutex_islocked_np() (not present on any platform I know of, but I am testing a FreeBSD patch) git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2419 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/configure.ac b/varnish-cache/configure.ac index 53263c70..6f0415a6 100644 --- a/varnish-cache/configure.ac +++ b/varnish-cache/configure.ac @@ -52,8 +52,6 @@ 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) @@ -77,11 +75,11 @@ AC_CHECK_HEADERS([sys/mount.h]) AC_CHECK_HEADERS([sys/statvfs.h]) AC_CHECK_HEADERS([sys/vfs.h]) AC_CHECK_HEADERS([netinet/in.h]) +AC_CHECK_HEADERS([pthread_np.h]) 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 @@ -103,6 +101,12 @@ AC_CHECK_FUNCS([strptime]) AC_CHECK_FUNCS([fmtcheck]) AC_CHECK_FUNCS([getdtablesize]) +save_LIBS="${LIBS}" +LIBS="${PTHREAD_LIBS}" +AC_CHECK_FUNCS([pthread_set_name_np]) +AC_CHECK_FUNCS([pthread_mutex_islocked_np]) +LIBS="${save_LIBS}" + ## This one is tricky, there are multiple versions case $host in *-*-freebsd*)