summaryrefslogtreecommitdiff
path: root/scripts/phpize.m4
diff options
context:
space:
mode:
authorJani Taskinen <jani@php.net>2007-08-14 08:43:13 +0000
committerJani Taskinen <jani@php.net>2007-08-14 08:43:13 +0000
commit731671e76782e63d3ad063afef89d4aab34c2e53 (patch)
tree6fe49f15afa88d65592b3bd1c159fac26c16e7f5 /scripts/phpize.m4
parent687007bbdc07efa831694a0d3c6a09301f399e92 (diff)
downloadphp-git-731671e76782e63d3ad063afef89d4aab34c2e53.tar.gz
- Fix bug #42292 ($PHP_CONFIG not set)
Diffstat (limited to 'scripts/phpize.m4')
-rw-r--r--scripts/phpize.m412
1 files changed, 7 insertions, 5 deletions
diff --git a/scripts/phpize.m4 b/scripts/phpize.m4
index a46dc8bc85..9b7d9e598b 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])