Fiddle version.h magic back, so all the computation is in configure.
authorRoland McGrath <roland@redhat.com>
Sun, 19 Apr 2009 23:07:45 +0000 (16:07 -0700)
committerRoland McGrath <roland@redhat.com>
Sun, 19 Apr 2009 23:07:45 +0000 (16:07 -0700)
ChangeLog
config/ChangeLog
config/version.h.in
configure.ac

index c0e71bd..7b8c443 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-04-19  Roland McGrath  <roland@redhat.com>
+
+       * configure.ac (eu_version): Round down here, not in version.h macros.
+
 2009-04-17  Roland McGrath  <roland@redhat.com>
 
        * configure.ac (eu_version): Compute number 1000 times larger,
index 327e5c1..798a2f9 100644 (file)
@@ -1,3 +1,7 @@
+2009-04-19  Roland McGrath  <roland@redhat.com>
+
+       * version.h.in: Revert last change.
+
 2009-04-17  Roland McGrath  <roland@redhat.com>
 
        * version.h.in (_ELFUTILS_PREREQ): Multiple major by 1000000 and minor
index f678c69..82c846e 100644 (file)
@@ -1,5 +1,5 @@
 /* Version information about elfutils development libraries.
-   Copyright (C) 2008-2009 Red Hat, Inc.
+   Copyright (C) 2008 Red Hat, Inc.
    This file is part of Red Hat elfutils.
 
    Red Hat elfutils is free software; you can redistribute it and/or modify
@@ -53,6 +53,6 @@
 #define _ELFUTILS_VERSION      @eu_version@
 
 #define _ELFUTILS_PREREQ(major, minor) \
-  ((_ELFUTILS_VERSION + 999) / 1000 >= ((major) * 1000 + (minor)))
+  (_ELFUTILS_VERSION >= ((major) * 1000 + (minor)))
 
 #endif /* elfutils/version.h */
index c074e97..aeb40d1 100644 (file)
@@ -290,4 +290,7 @@ case "$eu_version" in
 *) AC_MSG_ERROR([confused by version number '$PACKAGE_VERSION']) ;;
 esac
 
+# Round up to the next release API (x.y) version.
+[eu_version=$[($eu_version + 999) / 1000]]
+
 AC_OUTPUT