Derive ATI_VERSION_{MAJOR,MINOR,PATCH} from package version in order to

hopefully confuse bug triagers a little less.
This commit is contained in:
Michel Daenzer
2006-05-21 14:33:34 +00:00
parent 25ba85cab8
commit f9db5595fe
3 changed files with 16 additions and 7 deletions

View File

@@ -1,3 +1,10 @@
2006-05-21 Michel Dänzer <michel@tungstengraphics.com>
* configure.ac:
* src/ativersion.h:
Derive ATI_VERSION_{MAJOR,MINOR,PATCH} from package version in order to
hopefully confuse bug triagers a little less.
2006-05-09 Alex Deucher <agd5f@yahoo.com>
* man/radeon.man:

View File

@@ -25,6 +25,15 @@ AC_INIT([xf86-video-ati],
6.6.0,
[https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],
xf86-video-ati)
AC_DEFINE_UNQUOTED([ATI_VERSION_MAJOR],
[$(echo $PACKAGE_VERSION | sed -e 's/^\([[0-9]]\)\.[[0-9]]\.[[0-9]]/\1/')],
[Major version])
AC_DEFINE_UNQUOTED([ATI_VERSION_MINOR],
[$(echo $PACKAGE_VERSION | sed -e 's/^[[0-9]]\.\([[0-9]]\)\.[[0-9]]/\1/')],
[Minor version])
AC_DEFINE_UNQUOTED([ATI_VERSION_PATCH],
[$(echo $PACKAGE_VERSION | sed -e 's/^[[0-9]]\.[[0-9]]\.\([[0-9]]\)/\1/')],
[Patch version])
AC_CONFIG_SRCDIR([Makefile.am])
AM_CONFIG_HEADER([config.h])

View File

@@ -26,9 +26,6 @@
#undef ATI_NAME
#undef ATI_DRIVER_NAME
#undef ATI_VERSION_MAJOR
#undef ATI_VERSION_MINOR
#undef ATI_VERSION_PATCH
#undef ATI_VERSION_CURRENT
#undef ATI_VERSION_EVALUATE
#undef ATI_VERSION_STRINGIFY
@@ -37,10 +34,6 @@
#define ATI_NAME "ATI"
#define ATI_DRIVER_NAME "ati"
#define ATI_VERSION_MAJOR 6
#define ATI_VERSION_MINOR 5
#define ATI_VERSION_PATCH 7
#ifndef ATI_VERSION_EXTRA
#define ATI_VERSION_EXTRA ""
#endif