mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
more work for buildconf. forces a cvsclean if using a bad am. more ZE/zE2 tests.
This commit is contained in:
parent
aef27e37e1
commit
dd16444849
1 changed files with 32 additions and 1 deletions
33
buildconf
33
buildconf
|
@ -1,6 +1,18 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# $Id$
|
# $Id$
|
||||||
|
|
||||||
|
amv=`automake --version | grep GNU |cut -d ' ' -f 4`
|
||||||
|
|
||||||
|
if expr $amv '>=' 2.5; then
|
||||||
|
echo "cleaning checkout to force rebuild, due to bad AutoMake"
|
||||||
|
./cvsclean
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
if test -d "Zend"; then
|
||||||
|
ZENDVER=`cat Zend/zend.h | grep ZEND_VERSION | cut -d ' ' -f 3 | sed -e 's/"//' | cut -d . -f 1`
|
||||||
|
fi
|
||||||
|
|
||||||
while test $# -gt 0; do
|
while test $# -gt 0; do
|
||||||
if test "$1" = "--copy"; then
|
if test "$1" = "--copy"; then
|
||||||
automake_flags=--copy
|
automake_flags=--copy
|
||||||
|
@ -8,9 +20,28 @@ while test $# -gt 0; do
|
||||||
|
|
||||||
if test "$1" = "--ZendEngine2"; then
|
if test "$1" = "--ZendEngine2"; then
|
||||||
ZENDDIR=ZendEngine2
|
ZENDDIR=ZendEngine2
|
||||||
|
|
||||||
|
if test $ZENDVER != 2; then
|
||||||
|
mv Zend Zend_old
|
||||||
|
|
||||||
|
if test -d "ZendEngine2"; then
|
||||||
|
mv ZendEngine2 Zend
|
||||||
|
fi
|
||||||
|
fi
|
||||||
echo "Using Zend Engine 2 code"
|
echo "Using Zend Engine 2 code"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if test "$1" = "--Zend"; then
|
||||||
|
ZENDDIR=Zend
|
||||||
|
|
||||||
|
if test $ZENDVER != 1; then
|
||||||
|
echo "The default Zend directory exists, but it doesn't seem to be Zend Engine 1"
|
||||||
|
exit
|
||||||
|
else
|
||||||
|
echo "Using default Zend directory"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
|
|
||||||
|
@ -34,4 +65,4 @@ fi
|
||||||
|
|
||||||
rm -f generated_lists
|
rm -f generated_lists
|
||||||
|
|
||||||
${MAKE:-make} -s -f build/build.mk AMFLAGS="$automake_flags" ZENDDIR="$ZENDDIR"
|
${MAKE:-make} -s -f build/build.mk AMFLAGS="$automake_flags"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue