From 07e0490120bd16fda02e28b2833ef9d338b03a71 Mon Sep 17 00:00:00 2001 From: Ron Pedde Date: Mon, 24 Jan 2005 01:03:43 +0000 Subject: [PATCH] Fix for freebsd pthreads --- configure.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configure.in b/configure.in index b7985f9b..b2457bdc 100644 --- a/configure.in +++ b/configure.in @@ -19,7 +19,9 @@ rend_posix=true STATIC_LIBS=no CPPFLAGS="${CPPFLAGS} -g" -AC_CHECK_LIB(pthread,pthread_create,LDFLAGS="$LDFLAGS -lpthread") +dnl fix freebsd's broken (?) libpthread +AC_CHECK_LIB(c_r,pthread_creat,LDFLAGS="${LDFLAGS} -lc_r", [ + AC_CHECK_LIB(pthread,pthread_create,LDFLAGS="${LDFLAGS} -lpthread") ]) AC_ARG_ENABLE(debug,[ --enable-debug Enable debugging features], CPPFLAGS="${CPPFLAGS} -Wall")