1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

MFB buildconf sanity check

This commit is contained in:
Wez Furlong
2003-05-19 11:47:13 +00:00
parent 92dfadb1e0
commit 0eb791969b

View File

@@ -1,6 +1,18 @@
#!/bin/sh
# $Id$
eval `grep '^EXTRA_VERSION=' configure.in`
case "$EXTRA_VERSION" in
*-dev)
dev=1
;;
*)
dev=0
;;
esac
devok=0
while test $# -gt 0; do
if test "$1" = "--copy"; then
automake_flags=--copy
@@ -11,9 +23,20 @@ while test $# -gt 0; do
echo "Using Zend Engine 2 code"
fi
if test "$1" = "--force"; then
devok=1
echo "Forcing buildconf"
fi
shift
done
if test "$dev" = "0" -a "$devok" = "0"; then
echo "You should not run buildconf in a release package."
echo "use buildconf --force to override this check."
exit 1
fi
if test -z "$ZENDDIR"; then
ZENDDIR=Zend
echo "using default Zend directory"