summaryrefslogtreecommitdiff
path: root/lib/libICE/aclocal.m4
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2006-12-16 21:34:04 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2006-12-16 21:34:04 +0000
commita2442a8ce0c02d213c26ff6c61633908f0eadaa7 (patch)
tree56e7f475c9c9df680d5b38ddf87da3997db96501 /lib/libICE/aclocal.m4
parentdeead6820da8997e7398e7381e2a40d1c6a5bea5 (diff)
regen
Diffstat (limited to 'lib/libICE/aclocal.m4')
-rw-r--r--lib/libICE/aclocal.m420
1 files changed, 19 insertions, 1 deletions
diff --git a/lib/libICE/aclocal.m4 b/lib/libICE/aclocal.m4
index 8a51bd3aa..a9e7b3a3c 100644
--- a/lib/libICE/aclocal.m4
+++ b/lib/libICE/aclocal.m4
@@ -7427,7 +7427,8 @@ dnl
# --------------------
# Adds --with/without-release-string and changes the PACKAGE and
# PACKAGE_TARNAME to use "$PACKAGE{_TARNAME}-$RELEASE_VERSION". If
-# no option is given, PACKAGE and PACKAGE_TARNAME are unchanged.
+# no option is given, PACKAGE and PACKAGE_TARNAME are unchanged. Also
+# defines PACKAGE_VERSION_{MAJOR,MINOR,PATCHLEVEL} for modules to use.
AC_DEFUN([XORG_RELEASE_VERSION],[
AC_ARG_WITH(release-version,
@@ -7440,6 +7441,23 @@ AC_DEFUN([XORG_RELEASE_VERSION],[
PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
AC_MSG_NOTICE([Building with package name set to $PACKAGE])
fi
+ AC_DEFINE_UNQUOTED([PACKAGE_VERSION_MAJOR],
+ [`echo $PACKAGE_VERSION | cut -d . -f 1`],
+ [Major version of this package])
+ PVM=`echo $PACKAGE_VERSION | cut -d . -f 2`
+ if test "x$PVM" = "x"; then
+ PVM="0"
+ fi
+ AC_DEFINE_UNQUOTED([PACKAGE_VERSION_MINOR],
+ [$PVM],
+ [Minor version of this package])
+ PVP=`echo $PACKAGE_VERSION | cut -d . -f 3`
+ if test "x$PVP" = "x"; then
+ PVP="0"
+ fi
+ AC_DEFINE_UNQUOTED([PACKAGE_VERSION_PATCHLEVEL],
+ [$PVP],
+ [Patch version of this package])
])
dnl $XdotOrg: lib/xtrans/xtrans.m4,v 1.6 2005/07/26 18:59:11 alanc Exp $