Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 1332 invoked from network); 20 Jun 2006 10:39:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 20 Jun 2006 10:39:39 -0000 Received: (qmail 70028 invoked by uid 500); 20 Jun 2006 10:39:37 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 69988 invoked by uid 500); 20 Jun 2006 10:39:36 -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 69977 invoked by uid 99); 20 Jun 2006 10:39:36 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Jun 2006 03:39:36 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of jorton@redhat.com designates 66.187.233.31 as permitted sender) Received: from [66.187.233.31] (HELO mx1.redhat.com) (66.187.233.31) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Jun 2006 03:39:35 -0700 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k5KAdDrE023763 for ; Tue, 20 Jun 2006 06:39:13 -0400 Received: from turnip.cambridge.redhat.com (turnip.cambridge.redhat.com [172.16.18.137]) by int-mx1.corp.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k5KAd8JW029762 for ; Tue, 20 Jun 2006 06:39:08 -0400 Received: from turnip.cambridge.redhat.com (localhost.localdomain [127.0.0.1]) by turnip.cambridge.redhat.com (8.13.6/8.13.5) with ESMTP id k5KAd7jb019530 for ; Tue, 20 Jun 2006 11:39:07 +0100 Received: (from jorton@localhost) by turnip.cambridge.redhat.com (8.13.6/8.13.6/Submit) id k5KAd6VL019529 for dev@apr.apache.org; Tue, 20 Jun 2006 11:39:06 +0100 X-Authentication-Warning: turnip.cambridge.redhat.com: jorton set sender to jorton@redhat.com using -f Date: Tue, 20 Jun 2006 11:39:06 +0100 From: Joe Orton To: dev@apr.apache.org Subject: Re: svn commit: r415591 - in /apr/apr-util/trunk: build/ssl.m4 configure.in Message-ID: <20060620103906.GA19328@redhat.com> Mail-Followup-To: dev@apr.apache.org References: <20060620095044.D36541A983A@eris.apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20060620095044.D36541A983A@eris.apache.org> User-Agent: Mutt/1.4.2.1i X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi David, On Tue, Jun 20, 2006 at 09:50:44AM -0000, David Reid wrote: > Author: dreid > Date: Tue Jun 20 02:50:43 2006 > New Revision: 415591 > > URL: http://svn.apache.org/viewvc?rev=415591&view=rev > Log: > This is the start of allowing SSL usage within apr-util. This is essentially > the configure glue from my patch of a while ago. I'm adding it now so that > any issues can be flagged up before the code starts to land. Presently > this will detect and set appropriate defines but won't do much more :-) ... > + if test "$withval" = "yes"; then > + old_cppflags="$CPPFLAGS" > + old_ldflags="$LDFLAGS" > + > + openssl_CPPFLAGS="-I$withval/include" = "-Iyes/include"... looks like this was derived from an older copy of dbd.m4? Bojan went through fixing similar stuff there recently. ... > + dnl Add the libraries we will need now that we have set apu_have_openssl correctly > + if test "$apu_have_openssl" = "1"; then > + AC_DEFINE([APU_HAVE_OPENSSL], 1, [Define that we have OpenSSL available]) > + APR_ADDTO(APRUTIL_EXPORT_LIBS,[-lcrypto -lssl]) > + APR_ADDTO(APRUTIL_LIBS,[-lcrypto -lssl]) Always use "-lssl -lcrypto" because libssl uses symbols defined in libcrypto and not the other way round (breaks with static libs otherwise). Should use pkg-config where available to determine CPPFLAGS/LDFLAGS as necessary. (at least do this in the $withval = yes case; it's a little more subtle for the $withval != yes case, see httpd's acinclude.m4 for the PKG_CONFIG_PATH munging) Regards, joe