From owner-freebsd-threads@FreeBSD.ORG Mon Feb 4 18:16:26 2008 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C454016A418 for ; Mon, 4 Feb 2008 18:16:26 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outY.internet-mail-service.net (outY.internet-mail-service.net [216.240.47.248]) by mx1.freebsd.org (Postfix) with ESMTP id AA12213C448 for ; Mon, 4 Feb 2008 18:16:26 +0000 (UTC) (envelope-from julian@elischer.org) Received: from mx0.idiom.com (HELO idiom.com) (216.240.32.160) by out.internet-mail-service.net (qpsmtpd/0.40) with ESMTP; Mon, 04 Feb 2008 10:16:26 -0800 Received: from julian-mac.elischer.org (localhost [127.0.0.1]) by idiom.com (Postfix) with ESMTP id 951DD1270BA; Mon, 4 Feb 2008 10:16:25 -0800 (PST) Message-ID: <47A7567A.4030800@elischer.org> Date: Mon, 04 Feb 2008 10:16:26 -0800 From: Julian Elischer User-Agent: Thunderbird 2.0.0.9 (Macintosh/20071031) MIME-Version: 1.0 To: "Karl H. Beckers" References: <5913.192.9.112.196.1202124683.squirrel@www.our-isp.org> In-Reply-To: <5913.192.9.112.196.1202124683.squirrel@www.our-isp.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-threads@freebsd.org Subject: Re: threading in FreeBSD (acx_pthreads) X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Feb 2008 18:16:26 -0000 Karl H. Beckers wrote: > Hi all, > > could you please include me directly in your replies ... I haven't > subscribed. > > I'm trying to move my configure.in from manual threading libs detection > to acx_pthreads. That, however, prefers -kthread over -pthread where I > previously did this: what are acx_pthreads? > > if ( test -x /sbin/sysctl ) ; then > ac_my_freebsd_release=`/sbin/sysctl -n > kern.osreldate` > else > ac_my_freebsd_release=`/usr/sbin/sysctl -n > kern.osreldate` > fi > if ( expr ${ac_my_freebsd_release} \< 500016 ) ; then > LIBS="${LIBS} -pthread" > else > LIBS="${LIBS} -lc_r" > fi > > Could anybody make a recommendation of the propert thing to do on > FreeBSD? Is the acx_pthread assumption OK, or should I patch that? > > TIA, > > Karl. > > > _______________________________________________ > freebsd-threads@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-threads > To unsubscribe, send any mail to "freebsd-threads-unsubscribe@freebsd.org"