Return-Path: Delivered-To: apmail-apr-commits-archive@www.apache.org Received: (qmail 13810 invoked from network); 20 Jun 2006 11:15:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 20 Jun 2006 11:15:40 -0000 Received: (qmail 15827 invoked by uid 500); 20 Jun 2006 11:15:39 -0000 Delivered-To: apmail-apr-commits-archive@apr.apache.org Received: (qmail 15796 invoked by uid 500); 20 Jun 2006 11:15:39 -0000 Mailing-List: contact commits-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: Reply-To: dev@apr.apache.org List-Id: Delivered-To: mailing list commits@apr.apache.org Received: (qmail 15785 invoked by uid 99); 20 Jun 2006 11:15:39 -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 04:15:39 -0700 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME,UPPERCASE_25_50 X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [140.211.166.113] (HELO eris.apache.org) (140.211.166.113) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Jun 2006 04:15:38 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id 88D1E1A983A; Tue, 20 Jun 2006 04:15:18 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r415611 - /apr/apr-util/trunk/build/ssl.m4 Date: Tue, 20 Jun 2006 11:15:18 -0000 To: commits@apr.apache.org From: dreid@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20060620111518.88D1E1A983A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: dreid Date: Tue Jun 20 04:15:17 2006 New Revision: 415611 URL: http://svn.apache.org/viewvc?rev=415611&view=rev Log: Address the problems of earlier patch and add new flag, --with-ssl which can be used to enable/disable all ssl detection routines. I've defaulted this to be 'ON' so we get reports of problems. No use of package foo logic yet, but I'll look into that next following Joe's comments. Modified: apr/apr-util/trunk/build/ssl.m4 Modified: apr/apr-util/trunk/build/ssl.m4 URL: http://svn.apache.org/viewvc/apr/apr-util/trunk/build/ssl.m4?rev=415611&r1=415610&r2=415611&view=diff ============================================================================== --- apr/apr-util/trunk/build/ssl.m4 (original) +++ apr/apr-util/trunk/build/ssl.m4 Tue Jun 20 04:15:17 2006 @@ -24,9 +24,19 @@ AC_DEFUN([APU_FIND_SSL], [ apu_have_ssl=0 - APU_CHECK_OPENSSL - dnl add checks for other varieties of ssl here - + AC_ARG_WITH([ssl], [ + --with-ssl + ], [ + if test "$withval" = "no"; then + ap_have_ssl=0 + else + APU_CHECK_OPENSSL + dnl add checks for other varieties of ssl here + fi + ], [ + APU_CHECK_OPENSSL + dnl add checks for other varieties of ssl here + ]) if test "$apu_have_ssl" = "1"; then AC_DEFINE([APU_HAVE_SSL], 1, [Define that we have SSL capability]) @@ -44,26 +54,11 @@ --with-openssl=DIR ], [ if test "$withval" = "yes"; then - old_cppflags="$CPPFLAGS" - old_ldflags="$LDFLAGS" - - openssl_CPPFLAGS="-I$withval/include" - openssl_LDFLAGS="-L$withval/lib " - - APR_ADDTO(CPPFLAGS, [$openssl_CPPFLAGS]) - APR_ADDTO(LDFLAGS, [$openssl_LDFLAGS]) - - AC_MSG_NOTICE(checking for openssl in $withval) AC_CHECK_HEADERS(openssl/x509.h, [openssl_have_headers=1]) AC_CHECK_LIB(crypto, BN_init, AC_CHECK_LIB(ssl, SSL_accept, [openssl_have_libs=1])) if test "$openssl_have_headers" != "0" && test "$openssl_have_libs" != "0"; then apu_have_openssl=1 - APR_ADDTO(APRUTIL_LDFLAGS, [-L$withval/lib]) - APR_ADDTO(APRUTIL_INCLUDES, [-I$withval/include]) fi - - CPPFLAGS="$old_cppflags" - LDFLAGS="$old_ldflags" elif test "$withval" = "no"; then apu_have_openssl=0 else @@ -99,19 +94,11 @@ LDFLAGS="$old_ldflags" fi ], [ - old_cppflags="$CPPFLAGS" - old_ldflags="$LDFLAGS" - AC_CHECK_HEADERS(openssl/x509.h, [openssl_have_headers=1]) AC_CHECK_LIB(crypto, BN_init, AC_CHECK_LIB(ssl, SSL_accept, [openssl_have_libs=1])) if test "$openssl_have_headers" != "0" && test "$openssl_have_libs" != "0"; then apu_have_openssl=1 - APR_ADDTO(APRUTIL_LDFLAGS, [-L$withval/lib]) - APR_ADDTO(APRUTIL_INCLUDES, [-I$withval/include]) fi - - CPPFLAGS="$old_cppflags" - LDFLAGS="$old_ldflags" ]) @@ -120,8 +107,8 @@ 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]) + APR_ADDTO(APRUTIL_EXPORT_LIBS,[-lssl -lcrypto]) + APR_ADDTO(APRUTIL_LIBS,[-lssl -lcrypto]) apu_have_ssl=1 fi ])