summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJani Taskinen <jani@php.net>2007-08-14 08:43:41 (GMT)
committerJani Taskinen <jani@php.net>2007-08-14 08:43:41 (GMT)
commite602885e549db16795b8d6928bcf8e5bbc2ba1bc (patch)
tree094e6cd09d0c5258eb067c5ba59d19d1e4caa179 /scripts
parentd32c991e442c5ef27b51d88f1c5aa1e4edb3bc12 (diff)
downloadphp-e602885e549db16795b8d6928bcf8e5bbc2ba1bc.tar.gz
MFH:- Fixed bug #42292 ($PHP_CONFIG not set for phpized builds)
Diffstat (limited to 'scripts')
-rw-r--r--scripts/phpize.m412
1 files changed, 7 insertions, 5 deletions
diff --git a/scripts/phpize.m4 b/scripts/phpize.m4
index 6e7a131..c8a8102 100644
--- a/scripts/phpize.m4
+++ b/scripts/phpize.m4
@@ -34,11 +34,13 @@ dnl Find php-config script
PHP_ARG_WITH(php-config,,
[ --with-php-config=PATH Path to php-config [php-config]], php-config, no)
-prefix=`$PHP_PHP_CONFIG --prefix 2>/dev/null`
-phpincludedir=`$PHP_PHP_CONFIG --include-dir 2>/dev/null`
-INCLUDES=`$PHP_PHP_CONFIG --includes 2>/dev/null`
-EXTENSION_DIR=`$PHP_PHP_CONFIG --extension-dir 2>/dev/null`
-PHP_EXECUTABLE=`$PHP_PHP_CONFIG --php-binary 2>/dev/null`
+dnl For BC
+PHP_CONFIG=$PHP_PHP_CONFIG
+prefix=`$PHP_CONFIG --prefix 2>/dev/null`
+phpincludedir=`$PHP_CONFIG --include-dir 2>/dev/null`
+INCLUDES=`$PHP_CONFIG --includes 2>/dev/null`
+EXTENSION_DIR=`$PHP_CONFIG --extension-dir 2>/dev/null`
+PHP_EXECUTABLE=`$PHP_CONFIG --php-binary 2>/dev/null`
if test -z "$prefix"; then
AC_MSG_ERROR([Cannot find php-config. Please use --with-php-config=PATH])