You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
772 B

23 years ago
23 years ago
  1. #!/bin/sh
  2. # $Id$
  3. eval `grep '^PHP_EXTRA_VERSION=' configure.in`
  4. case "$PHP_EXTRA_VERSION" in
  5. *-dev)
  6. dev=1
  7. ;;
  8. *)
  9. dev=0
  10. ;;
  11. esac
  12. devok=0
  13. debug=no
  14. while test $# -gt 0; do
  15. if test "$1" = "--force"; then
  16. devok=1
  17. echo "Forcing buildconf"
  18. fi
  19. if test "$1" = "--debug"; then
  20. debug=yes
  21. fi
  22. shift
  23. done
  24. if test "$dev" = "0" -a "$devok" = "0"; then
  25. echo "You should not run buildconf in a release package."
  26. echo "use buildconf --force to override this check."
  27. exit 1
  28. fi
  29. if test "$devok" = "1"; then
  30. echo "Removing configure caches"
  31. rm -rf autom4te.cache config.cache
  32. fi
  33. rm -f generated_lists
  34. if test "$debug" = "yes"; then
  35. ${MAKE:-make} -s -f build/build.mk SUPPRESS_WARNINGS=""
  36. else
  37. ${MAKE:-make} -s -f build/build.mk
  38. fi