diff options
author | foobar <sniper@php.net> | 2003-01-28 10:59:12 +0000 |
---|---|---|
committer | foobar <sniper@php.net> | 2003-01-28 10:59:12 +0000 |
commit | 20c43285f78f745f88faf70062b04ed26a8c3c11 (patch) | |
tree | 6572fbdd36b5ba7202debca5cc7dfd1ef67d2901 /scripts/phpize.in | |
parent | 41d6e9af8daadf1ce16dcbbbe085452e38d17618 (diff) | |
download | php-git-20c43285f78f745f88faf70062b04ed26a8c3c11.tar.gz |
- Fixed bug: #13561 (--without-pear prevents install of phpize, php-config)
Diffstat (limited to 'scripts/phpize.in')
-rw-r--r-- | scripts/phpize.in | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/scripts/phpize.in b/scripts/phpize.in new file mode 100644 index 0000000000..66ba42068a --- /dev/null +++ b/scripts/phpize.in @@ -0,0 +1,56 @@ +#! /bin/sh + +prefix='@prefix@' +phpdir="$prefix/lib/php/build" +includedir="$prefix/include/php" +builddir="`pwd`" + +FILES_BUILD="mkdep.awk shtool" +FILES="acinclude.m4 Makefile.global scan_makefile_in.awk" +CLEAN_FILES="$FILES *.lo *.la *.o .deps .libs/ build/ include/ modules/ install-sh \ + mkinstalldirs missing config.nice config.sub config.guess configure configure.in \ + aclocal.m4 config.h config.h.in conftest* ltmain.sh libtool config.cache \ + config.log config.status Makefile Makefile.fragments Makefile.objects" + +if test ! -r config.m4; then + echo "Cannot find config.m4. " + echo "Make sure that you run $0 in the top level source directory of the module" + exit 1 +fi + +# Cleanup +if test "$1" = "--clean"; then + echo "Cleaning.." + for i in $CLEAN_FILES; do + test -e && rm -rf $i + done + exit 0 +fi + +test -d build || mkdir build + +(cd $phpdir && cp $FILES_BUILD "$builddir"/build) +(cd $phpdir && cp $FILES "$builddir") + +sed \ +-e "s#@prefix@#$prefix#" \ +< $phpdir/phpize.m4 > configure.in + +touch install-sh mkinstalldirs missing + +aclocal +autoconf +autoheader +libtoolize -f -c + +# dumping API NOs: +PHP_API_VERSION=`grep -E '#define PHP_API_VERSION' $includedir/main/php.h|sed 's/#define PHP_API_VERSION//'` +ZEND_MODULE_API_NO=`grep -E '#define ZEND_MODULE_API_NO' $includedir/Zend/zend_modules.h|sed 's/#define ZEND_MODULE_API_NO//'` +ZEND_EXTENSION_API_NO=`grep -E '#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 + +exit 0 |