Busybox: Upgrade to 1.21.1 (stable). lsof active.
[tomato.git] / release / src / router / php / buildconf
blob9344b074ea7d80050a81c007ab933b521e9cba57
1 #!/bin/sh
2 # $Id$
4 eval `grep '^PHP_EXTRA_VERSION=' configure.in`
5 case "$PHP_EXTRA_VERSION" in
6 *-dev)
7 dev=1
8 ;;
9 *)
10 dev=0
12 esac
14 devok=0
15 debug=no
17 while test $# -gt 0; do
18 if test "$1" = "--force"; then
19 devok=1
20 echo "Forcing buildconf"
23 if test "$1" = "--debug"; then
24 debug=yes
27 shift
28 done
30 if test "$dev" = "0" -a "$devok" = "0"; then
31 echo "You should not run buildconf in a release package."
32 echo "use buildconf --force to override this check."
33 exit 1
36 if test "$devok" = "1"; then
37 echo "Removing configure caches"
38 rm -rf autom4te.cache config.cache
41 rm -f generated_lists
43 if test "$debug" = "yes"; then
44 ${MAKE:-make} -s -f build/build.mk SUPPRESS_WARNINGS=""
45 else
46 ${MAKE:-make} -s -f build/build.mk