From 50b48daa9b01aa198857aaef624d185d7d8690f6 Mon Sep 17 00:00:00 2001 From: Love Hornquist Astrand Date: Thu, 17 Dec 2009 09:26:28 +0100 Subject: [PATCH] use PTHREADS_LIBADD for freebsd6 and newer --- cf/pthreads.m4 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/cf/pthreads.m4 b/cf/pthreads.m4 index b86b0e34b..2df7b8ce5 100644 --- a/cf/pthreads.m4 +++ b/cf/pthreads.m4 @@ -29,9 +29,13 @@ case "$host" in dnl heim_threads.h knows this PTHREADS_LIBS="-lpthread" ;; -*-*-freebsd[[56789]]*) +*-*-freebsd[[56]]*) native_pthread_support=yes ;; +*-*-freebsd[[789]]*) + native_pthread_support=yes + PTHREADS_LIBADD="-lthr" + ;; *-*-openbsd*) native_pthread_support=yes PTHREADS_CFLAGS=-pthread @@ -81,10 +85,12 @@ if test "$enable_pthread_support" != no; then else PTHREADS_CFLAGS="" PTHREADS_LIBS="" + PTHREADS_LIBADD="" fi AC_SUBST(PTHREADS_CFLAGS) AC_SUBST(PTHREADS_LIBS) +AC_SUBST(PTHREADS_LIBADD) AC_MSG_RESULT($enable_pthread_support) ])