Return-Path: X-Original-To: apmail-apr-dev-archive@www.apache.org Delivered-To: apmail-apr-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 560BA47A5 for ; Fri, 17 Jun 2011 11:02:45 +0000 (UTC) Received: (qmail 60333 invoked by uid 500); 17 Jun 2011 11:02:43 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 60207 invoked by uid 500); 17 Jun 2011 11:02:43 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Id: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 60199 invoked by uid 99); 17 Jun 2011 11:02:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Jun 2011 11:02:43 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of trawick@gmail.com designates 209.85.214.50 as permitted sender) Received: from [209.85.214.50] (HELO mail-bw0-f50.google.com) (209.85.214.50) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Jun 2011 11:02:38 +0000 Received: by bwz2 with SMTP id 2so2670758bwz.37 for ; Fri, 17 Jun 2011 04:02:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type:content-transfer-encoding; bh=u/tyTNNGXZHktTw1dPVS3mTNQLpMHvIHR7X4FcgRn3Y=; b=iljyqrriDzzAgzZ84DMm8FKELudA/7FnrKkf4YULl+1rpKPI2sZjpKMtazon91izS6 XkEXzzmpOPjTWpxhOn0RtUKDD8pxH+yE29W89+DgiDdV/xOmmNDmwZQJh4cq/k3J6QeK BYZW6w+J5dKXfPTrWPzY1KmLBTHOjtD6wpstY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=pJ/zmaplrTbIA/Kw5iBE6ZjM2NFc6o5yR7t/NB8mADqnAKK1w8FEU+qbNgSIE4u1QZ S3rtv/W4/uoZ2pK16P+HSi2H10w20V33lTjdcZrBmYSsLZjyXBbEI0nLey15LxGrKN3j 5oDuKeMr6Qlp55zy4hWnLi6cRRhb79h284uYA= MIME-Version: 1.0 Received: by 10.205.33.130 with SMTP id so2mr212461bkb.206.1308308536709; Fri, 17 Jun 2011 04:02:16 -0700 (PDT) Received: by 10.204.41.207 with HTTP; Fri, 17 Jun 2011 04:02:16 -0700 (PDT) In-Reply-To: References: Date: Fri, 17 Jun 2011 07:02:16 -0400 Message-ID: Subject: Re: Compiling on cygwin From: Jeff Trawick To: dev@apr.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Fri, Jun 17, 2011 at 5:24 AM, Antonio Vieiro wrote: > Hi all, > > I am trying to compile apr-1.4.5 on cygwin 5.1 [1] with thread support > (pthreads) so I'm doing a > > =A0 =A0./configure --enable-threads=3Dpthread > > But configure says that apr will be non threaded: > > =A0 =A0checking for main in -ltruerand... no > =A0 =A0checking for library containing modf... none required > > =A0 =A0Checking for Threads... > =A0 =A0APR will be non-threaded =A0<--- D'oh! > =A0 =A0checking for sigsuspend... yes > > My question is: is it possible to build apr with thread support on > cygwin. If so, how? > > If this is not possible, should I try with mingw? I don't know about APR capabilities when built with Cygwin. Building with MinGW uses APR's thread implementation for Windows, so yes threads will be supported. Whether to build APR with Cygwin or MinGW should follow the general Cygwin/MinGW choice: * Unix-y code in your application that requires emulation? Cygwin * No Unix-y code in your application? MinGW Note that you can't build APR as a shared library with 1.4.5, but that will hopefully be resolved in the next release. (That's already supported in trunk.)