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