From owner-freebsd-emulation@FreeBSD.ORG Fri Aug 26 01:38:23 2011 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1AA4D106566B for ; Fri, 26 Aug 2011 01:38:23 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id CD0938FC0C for ; Fri, 26 Aug 2011 01:38:22 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.5/8.14.5) with ESMTP id p7Q16g06007157; Thu, 25 Aug 2011 19:06:42 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.5/8.14.5/Submit) with ESMTP id p7Q16fuL007154; Thu, 25 Aug 2011 19:06:42 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Thu, 25 Aug 2011 19:06:41 -0600 (MDT) From: Warren Block To: Rusty Nejdl In-Reply-To: Message-ID: References: <201108252055.p7PKtI3J001414@mail.wynn.com> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (wonkity.com [127.0.0.1]); Thu, 25 Aug 2011 19:06:42 -0600 (MDT) Cc: freebsd-emulation@freebsd.org Subject: Re: virtualbox on FreeBSD 8.2 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Aug 2011 01:38:23 -0000 On Thu, 25 Aug 2011, Rusty Nejdl wrote: > I was building a port that depended on threaded perl and used code like this: > > .if exists(${PERL}) > PERL_THREADS!= ${PERL} -V::usethreads > .if ${PERL_THREADS}!="'define';" > IGNORE= needs a threaded Perl, build with WITH_THREADS=yes flag and > try again > .endif > .else > IGNORE= needs an existing installation of Perl built with > WITH_THREADS=yes > .endif > > Perhaps you could use something similar? Some searching found security/clamav/Makefile: .if (defined(WITH_LLVM) || defined(WITH_LLVM_PORTS)) && defined(WITH_TESTS) pre-configure: @if ! ${PYTHON_CMD} -c "import thread" >/dev/null 2>&1; then \ ${ECHO_MSG} ""; \ ${ECHO_MSG} "========================================================================= ${ECHO_MSG} "= Unit tests REQUIRES python built with thread support, and yours is not. ${ECHO_MSG} "= It will not be called during this build ${ECHO_MSG} "========================================================================= ${ECHO_MSG} ""; \ ${TOUCH} ${PY_NO_THREAD}; \ fi .endif