summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/phpize.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/phpize.in b/scripts/phpize.in
index 57c09555d2..ccb9357574 100644
--- a/scripts/phpize.in
+++ b/scripts/phpize.in
@@ -160,6 +160,10 @@ phpize_autotools()
{
$PHP_AUTOCONF || exit 1
$PHP_AUTOHEADER || exit 1
+
+ # Disable PACKAGE_* symbols in config.h.in
+ $SED -e 's/^#undef PACKAGE_[^ ]*/\/\* & \*\//g' < config.h.in > config.h.in.tmp
+ mv config.h.in.tmp config.h.in
}
# Main script