Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:16152 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 86027 invoked by uid 1010); 29 Apr 2005 22:30:02 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 85797 invoked from network); 29 Apr 2005 22:29:59 -0000 Received: from unknown (HELO pb1.pair.com) (127.0.0.1) by localhost with SMTP; 29 Apr 2005 22:29:59 -0000 X-Host-Fingerprint: 67.78.11.230 relay.daleenterprise.com FreeBSD 4.7-5.2 (or MacOS X 10.2-10.3) (1) Received: from ([67.78.11.230:52839] helo=daleenterprise.com) by pb1.pair.com (ecelerity 1.2.12rc1 r(5476:5477)) with SMTP id D4/15-20173-565B2724 for ; Fri, 29 Apr 2005 18:29:58 -0400 Received: from mail.daleenterprise.com (localhost [127.0.0.1]) by daleenterprise.com (Postfix) with ESMTP id 5FAE67871B6; Fri, 29 Apr 2005 18:29:42 -0400 (EDT) Received: from daleenterprise.com ([127.0.0.1]) by mail.daleenterprise.com (daleenterprise.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28193-01; Fri, 29 Apr 2005 18:29:41 -0400 (EDT) Received: from [10.1.100.21] (relay.mustangrestomods.com [67.78.11.226]) by daleenterprise.com (Postfix) with ESMTP id 2C4407871A7; Fri, 29 Apr 2005 18:29:41 -0400 (EDT) In-Reply-To: <4dd5df36676db6f44bdd07a50a079bca@firehawksystems.com> References: <4dd5df36676db6f44bdd07a50a079bca@firehawksystems.com> Mime-Version: 1.0 (Apple Message framework v622) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-ID: <3c406bbba888affea8bc123a5e034359@daleenterprise.com> Content-Transfer-Encoding: 7bit Cc: Brian J.France Date: Fri, 29 Apr 2005 18:29:40 -0400 To: PHPdev List X-Mailer: Apple Mail (2.622) MTA-Interface: amavisd-new-2.2.1 (2004-12-22) at daleenterprise.com X-Spam-Scanned: using SpamAssassin 3.0.2 (2004-12-16) at daleenterprise.com X-Virus-Scanned: using Clamav 0.83 (2005--2-14) at daleenterprise.com Subject: Re: [PHP-DEV] imap shared with a different openssl path From: info@daleenterprise.com (D . Walsh) On Apr 29, 2005, at 17:48, Brian J. France wrote: > I am trying to build imap as a shared extension (phpize method) with > different path for openssl. This seems easy, right? > > phpize; ./configure --with-imap-ssl= > > But that doesn't work. It seems that line 1688 in acinclude.m4 is the > problem: > > 1687 dnl Fallbacks for different configure options > 1688 if test "$PHP_OPENSSL" != "no"; then > 1689 PHP_OPENSSL_DIR=$PHP_OPENSSL > 1690 elif test "$PHP_IMAP_SSL" != "no"; then > 1691 PHP_OPENSSL_DIR=$PHP_IMAP_SSL > 1692 fi > > The problem is $PHP_OPENSSL is blank and hits the first case setting > $PHP_OPENSSL_DIR to blank and things blow up in a few test down. > Something like this fixes it: > > if test "$PHP_OPENSSL" != "no" && test "$PHP_OPENSSL" != ""; then > > I don't know if this would break anything or not, thoughts? > > Brian I tried changing configure but being on a Mac it complained about my autoconf/automake versions so I took a different approach. I have two openssl's installed, the original in /usr and an newer version in /usr/local. I moved the openssl files from /usr to a safe place, built PHP with imap shared using /usr/local openssl files and copied the shared module to a safe place. Moved the openssl stuff back, rebuilt PHP with imap as shared, installed it and then copied my saved shared module into the extensions folder. Originally I made PHP without the imap imap extensionm, then I realized I didn't need to do any make installs since all I wanted was the shared module I could have copied it from the extension folder after the make command saving me time of building PHP a couple of time. I now have a "Makefile" file just outside of the PHP source source that I use to process the PHP source that builds it in /tmp in whatever configuration I need without ever affecting my true install so It has distinct build advantages. -- Dale