summaryrefslogtreecommitdiff
path: root/scripts/phpize.in
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2007-06-29 01:09:54 +0000
committerfoobar <sniper@php.net>2007-06-29 01:09:54 +0000
commit68724e2489d3702e74ce57c0f0df4327a60cc81c (patch)
tree7425d4e8f48ec06c612b37cdb6519565746d3d58 /scripts/phpize.in
parente9658dfc4d9e5164391e7e0984c87890ad90fabf (diff)
downloadphp-git-68724e2489d3702e74ce57c0f0df4327a60cc81c.tar.gz
- Improved php-config:
. Added --configure-options option to get configure line for current build . Added --php-sapis option which shows SAPIs available . Fixed problem with missing php binary when CLI is not build but CGI is. - Fixed broken sed issues in phpize script
Diffstat (limited to 'scripts/phpize.in')
-rw-r--r--scripts/phpize.in9
1 files changed, 5 insertions, 4 deletions
diff --git a/scripts/phpize.in b/scripts/phpize.in
index b336608a23..70c6ebdf70 100644
--- a/scripts/phpize.in
+++ b/scripts/phpize.in
@@ -6,6 +6,7 @@ exec_prefix="`eval echo @exec_prefix@`"
phpdir="`eval echo @libdir@`/build"
includedir="`eval echo @includedir@`/php"
builddir="`pwd`"
+SED="@SED@"
FILES_BUILD="mkdep.awk scan_makefile_in.awk shtool libtool.m4"
FILES="acinclude.m4 Makefile.global config.sub config.guess ltmain.sh run-tests*.php"
@@ -56,9 +57,9 @@ phpize_check_configm4()
phpize_get_api_numbers()
{
# extracting API NOs:
- PHP_API_VERSION=`grep '#define PHP_API_VERSION' $includedir/main/php.h|sed 's/#define PHP_API_VERSION//'`
- ZEND_MODULE_API_NO=`grep '#define ZEND_MODULE_API_NO' $includedir/Zend/zend_modules.h|sed 's/#define ZEND_MODULE_API_NO//'`
- ZEND_EXTENSION_API_NO=`grep '#define ZEND_EXTENSION_API_NO' $includedir/Zend/zend_extensions.h|sed 's/#define ZEND_EXTENSION_API_NO//'`
+ PHP_API_VERSION=`grep '#define PHP_API_VERSION' $includedir/main/php.h|$SED 's/#define PHP_API_VERSION//'`
+ ZEND_MODULE_API_NO=`grep '#define ZEND_MODULE_API_NO' $includedir/Zend/zend_modules.h|$SED 's/#define ZEND_MODULE_API_NO//'`
+ ZEND_EXTENSION_API_NO=`grep '#define ZEND_EXTENSION_API_NO' $includedir/Zend/zend_extensions.h|$SED 's/#define ZEND_EXTENSION_API_NO//'`
}
phpize_print_api_numbers()
@@ -131,7 +132,7 @@ phpize_copy_files()
phpize_replace_prefix()
{
- sed \
+ $SED \
-e "s#@prefix@#$prefix#" \
< "$phpdir/phpize.m4" > configure.in
}