From: Joerg dot Dieter dot Friedrich at uni-konstanz dot de
Operating system: irrelevant
PHP version: Irrelevant
PHP Bug Type: Feature/Change Request
Bug description: When INSTALL_ROOT don't use apxs with Option '-a'
Description:
------------
It would be really great if apxs would not be called with '-a' when
INSTALL_ROOT is set.
This would make package building easier.
this is a patch to sapi/apache/config.m4 which I think it must fix it. But
please proove-read it.
--- sapi/apache/config.m4.orig Tue Jun 29 15:44:21 2004
+++ sapi/apache/config.m4 Tue Jun 29 15:48:26 2004
@@ -70,9 +70,16 @@
# Test whether apxs support -S option
$APXS -q -S CFLAGS="$APXS_CFLAGS" CFLAGS >/dev/null 2>&1
+
+ # Test whether INSTALL_ROOT is set
+ ifeq ($(strip $(INSTALL_ROOT)),)
+ APXS_ACTIVATE="-a"
+ else
+ APXS_ACTIVATE="-a"
+ endif
if test "$?" != "0"; then
- APACHE_INSTALL="$APXS -i -a -n php4 $SAPI_SHARED" # Old apxs does not
have -S option
+ APACHE_INSTALL="$APXS -i $APXS_ACTIVATE -n php4 $SAPI_SHARED" # Old
apxs does not have -S option
else
APXS_LIBEXECDIR='$(INSTALL_ROOT)'`$APXS -q LIBEXECDIR`
if test -z `$APXS -q SYSCONFDIR`; then
@@ -85,7 +92,7 @@
\$(mkinstalldirs) '$APXS_SYSCONFDIR' && \
$APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \
-S SYSCONFDIR='$APXS_SYSCONFDIR' \
- -i -a -n php4 $SAPI_SHARED"
+ -i $APXS_ACTIVATE -n php4 $SAPI_SHARED"
fi
fi
--
Edit bug report at http://bugs.php.net/?id=28960&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28960&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28960&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=28960&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=28960&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=28960&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=28960&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=28960&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=28960&r=support
Expected behavior: http://bugs.php.net/fix.php?id=28960&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=28960&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=28960&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=28960&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28960&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=28960&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=28960&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=28960&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28960&r=float