Index: configure.in =================================================================== RCS file: /repository/php4/configure.in,v retrieving revision 1.336 diff -u -u -r1.336 configure.in --- configure.in 10 Apr 2002 01:13:18 -0000 1.336 +++ configure.in 10 Apr 2002 16:02:27 -0000 @@ -37,7 +37,12 @@ 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 @@ -51,6 +56,10 @@ 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 Index: main/php_version.h =================================================================== RCS file: /repository/php4/main/php_version.h,v retrieving revision 1.59 diff -u -u -r1.59 php_version.h --- main/php_version.h 21 Mar 2002 20:55:55 -0000 1.59 +++ main/php_version.h 10 Apr 2002 16:02:27 -0000 @@ -1,3 +1,7 @@ /* automatically generated by configure */ /* edit configure.in to change version number */ +#define PHP_MAJOR_VERSION 4 +#define PHP_MINOR_VERSION 3 +#define PHP_RELEASE_VERSION 0 +#define PHP_EXTRA_VERSION "-dev" #define PHP_VERSION "4.3.0-dev"