summaryrefslogtreecommitdiff
path: root/pear/scripts/phpize.in
diff options
context:
space:
mode:
authorDerick Rethans <derick@php.net>2002-05-09 12:11:57 +0000
committerDerick Rethans <derick@php.net>2002-05-09 12:11:57 +0000
commitf0d18c63be8366d36a7171c683ef60698365718d (patch)
tree9381609c22305c38438e8d60ece97111674c61e8 /pear/scripts/phpize.in
parent1d4753755d179c7e0c6556e3e5ae3356f6358406 (diff)
downloadphp-git-f0d18c63be8366d36a7171c683ef60698365718d.tar.gz
- Dump API NOs
Diffstat (limited to 'pear/scripts/phpize.in')
-rw-r--r--pear/scripts/phpize.in10
1 files changed, 10 insertions, 0 deletions
diff --git a/pear/scripts/phpize.in b/pear/scripts/phpize.in
index 537431ffad..fc6dec1b86 100644
--- a/pear/scripts/phpize.in
+++ b/pear/scripts/phpize.in
@@ -27,3 +27,13 @@ aclocal
autoconf
autoheader
libtoolize -f -c
+
+# dumping API NOs:
+PHP_API_VERSION=`egrep '#define PHP_API_VERSION' $includedir/main/php.h|sed 's/#define PHP_API_VERSION//'`
+ZEND_MODULE_API_NO=`egrep '#define ZEND_MODULE_API_NO' $includedir/Zend/zend_modules.h|sed 's/#define ZEND_MODULE_API_NO//'`
+ZEND_EXTENSION_API_NO=`egrep '#define ZEND_EXTENSION_API_NO' $includedir/Zend/zend_extensions.h|sed 's/#define ZEND_EXTENSION_API_NO//'`
+
+echo "Configuring for:"
+echo " PHP Api Version: "$PHP_API_VERSION
+echo " Zend Module Api No: "$ZEND_MODULE_API_NO
+echo " Zend Extension Api No: "$ZEND_EXTENSION_API_NO