Skip to content

Commit

Permalink
Apply patch for MAJOR_VERSION etc. by Joseph Tate
Browse files Browse the repository at this point in the history
  • Loading branch information
wez committed Apr 11, 2002
1 parent 25db882 commit ae37223
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion configure.in
Expand Up @@ -37,7 +37,12 @@ done
AC_CANONICAL_HOST
AC_CONFIG_HEADER(main/php_config.h)

VERSION="4.3.0-dev"
MAJOR_VERSION=4
MINOR_VERSION=3
RELEASE_VERSION=0
EXTRA_VERSION="-dev"
#VERSION="4.3.0-dev"
VERSION="$MAJOR_VERSION.$MINOR_VERSION.$RELEASE_VERSION$EXTRA_VERSION"

dnl Define where extension directories are located in the configure context
AC_DEFUN(PHP_EXT_BUILDDIR,[ext/$1])dnl
Expand All @@ -51,6 +56,10 @@ dnl -------------------------------------------------------------------------
PHP_VERSION=$VERSION
echo "/* automatically generated by configure */" > php_version.h.new
echo "/* edit configure.in to change version number */" >> php_version.h.new
echo "#define PHP_MAJOR_VERSION $MAJOR_VERSION" >> php_version.h.new
echo "#define PHP_MINOR_VERSION $MINOR_VERSION" >> php_version.h.new
echo "#define PHP_RELEASE_VERSION $RELEASE_VERSION" >> php_version.h.new
echo "#define PHP_EXTRA_VERSION \"$EXTRA_VERSION\"" >> php_version.h.new
echo "#define PHP_VERSION \"$PHP_VERSION\"" >> php_version.h.new
cmp php_version.h.new php_version.h >/dev/null 2>&1
if test $? -ne 0 ; then
Expand Down

0 comments on commit ae37223

Please sign in to comment.