Newsgroups: php.install,php.internals Path: news.php.net Xref: news.php.net php.install:19424 php.internals:40523 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 43383 invoked from network); 15 Sep 2008 20:53:23 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Sep 2008 20:53:23 -0000 Authentication-Results: pb1.pair.com header.from=chris#@codewarehouse.NET; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=chris#@codewarehouse.NET; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain codewarehouse.NET from 75.160.109.235 cause and error) X-PHP-List-Original-Sender: chris#@codewarehouse.NET X-Host-Fingerprint: 75.160.109.235 hitme.hitometer.net Received: from [75.160.109.235] ([75.160.109.235:52329] helo=hitme.hitOmeter.NET) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F5/18-00923-04BCEC84 for ; Mon, 15 Sep 2008 16:53:23 -0400 Received: from hitme.hitOmeter.NET (localhost.hitOmeter.NET [127.0.0.1]) by hitme.hitOmeter.NET (8.13.8/8.13.8/HitOmeter Messaging Service!) with ESMTP id m8FKr9bk036925; Mon, 15 Sep 2008 13:53:15 -0700 (PDT) (envelope-from chris#@codewarehouse.NET) Received: (from www@localhost) by hitme.hitOmeter.NET (8.13.8/8.13.8/HitOmeter Messaging Service!) id m8FKr4AZ036924; Mon, 15 Sep 2008 13:53:04 -0700 (PDT) (envelope-from chris#@codewarehouse.NET) To: "[php-install]" , "[php-internals]" MIME-Version: 1.0 Date: Mon, 15 Sep 2008 13:53:04 -0700 Message-ID: <1861fa2b3da35b01cd822a3910d66fad@hitOmeter.NET> X-Sender: chris#@codewarehouse.NET User-Agent: hitOmeter-mail/0.01 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Subject: macros/defines questions - am attempting to create parallel versions install From: chris#@codewarehouse.NET (chris#) Greetings, I've been looking at the source of php-5.2.6 with the goal of creating a port for the FreeBSD ports system that will enable the user/sysadmin to install php5 along side an already installed php 4 version. My intended course is to install the php5 cgi sapi and use a php5 directory in place of the default php directory eg; $PREFIX == /usr/local $PREFIX/bin $PREFIX/etc/php $PREFIX/include/php $PREFIX/lib/php becomes: $PREFIX == /usr/local $PREFIX/bin $PREFIX/etc/php5 $PREFIX/include/php5 $PREFIX/lib/php5 My main points of interest is if/where there are any already pre-defined macros that will assist me in changing the already defined php directory with a directory named php5 $PREFIX/etc/php && $PREFIX/include/php && $PREFIX/lib/php to $PREFIX/etc/php5 && $PREFIX/include/php5 && $PREFIX/lib/php5 I also hope to be able to re-name the following: $PREFIX/bin/php-cgi --> $PREFIX/bin/php5-cgi $PREFIX/bin/php-config --> $PREFIX/bin/php5-config $PREFIX/bin/phpize --> $PREFIX/bin/php5ize and $PREFIX/bin/etc/php.conf --> $PREFIX/bin/php5.conf In the last case I understand that the switch --with-config-file-scan-dir=${PREFIX}/etc/php exists that permits the definition of a directory to source for module/extension options. But is the macro $PHP_CONFIG_FILE_SCAN_DIR usable for this task? Can I use/define $PHP_SYSCONFDIR, or $PHP_CONFIG_FILE_SCAN_DIR to define the default name and location of the php.ini file? Any and all help /greatly/ appreciated, and thank you for all your time and consideration. --Chris ///////////////////////////////////////////////////// Service provided by hitOmeter.NET internet messaging! .