diff options
Diffstat (limited to 'aclocal.m4')
-rw-r--r-- | aclocal.m4 | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/aclocal.m4 b/aclocal.m4 index 45c94f784b..e823f34fcc 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -1532,8 +1532,22 @@ AC_SUBST([ProjectPatchLevel2]) ProjectPatchLevel=`echo $ProjectPatchLevel | sed 's/\.//'` AC_SUBST([ProjectPatchLevel]) -])# FP_SETUP_PROJECT_VERSION +# The version of the GHC package changes every day, since the +# patchlevel is the current date. We don't want to force +# recompilation of the entire compiler when this happens, so for +# GHC HEAD we omit the patchlevel from the package version number. +# +# The ProjectPatchLevel1 > 20000000 iff GHC HEAD. If it's for a stable +# release like 7.10.1 or for a release candidate such as 7.10.1.20141224 +# then we don't omit the patchlevel components. + +ProjectVersionMunged="$ProjectVersion" +if test "$ProjectPatchLevel1" -gt 20000000; then + ProjectVersionMunged="${VERSION_MAJOR}.${VERSION_MINOR}" +fi +AC_SUBST([ProjectVersionMunged]) +])# FP_SETUP_PROJECT_VERSION # Check for a working timer_create(). We need a pretty detailed check # here, because there exist partially-working implementations of |