653-package-version-warning.patch 1.3 KB

1234567891011121314151617181920212223242526272829303132
  1. From 2e46209809f751087ca27523283bd5c3e9071d31 Mon Sep 17 00:00:00 2001
  2. From: Bruno Haible <[email protected]>
  3. Date: Sun, 26 Jan 2025 13:26:35 +0100
  4. Subject: package-version: Avoid compiler warnings in config.log.
  5. * m4/init-package-version.m4 (gl_INIT_PACKAGE_VERSION): Undefine
  6. PACKAGE_VERSION and PACKAGE_STRING before redefining them.
  7. ---
  8. ChangeLog | 6 ++++++
  9. m4/init-package-version.m4 | 4 +++-
  10. 2 files changed, 9 insertions(+), 1 deletion(-)
  11. --- a/m4/init-package-version.m4
  12. +++ b/m4/init-package-version.m4
  13. @@ -1,5 +1,5 @@
  14. # init-package-version.m4
  15. -# serial 5
  16. +# serial 6
  17. dnl Copyright (C) 1992-2025 Free Software Foundation, Inc.
  18. dnl This file is free software, distributed under the terms of the GNU
  19. dnl General Public License. As a special exception to the GNU General
  20. @@ -102,8 +102,10 @@ AC_DEFUN([gl_INIT_PACKAGE_VERSION],
  21. dnl Set variables documented in Autoconf.
  22. AC_SUBST([PACKAGE_VERSION], ["$1"])
  23. AC_SUBST([PACKAGE_STRING], ["AC_PACKAGE_NAME $1"])
  24. + _AC_DEFINE([#undef PACKAGE_VERSION])
  25. AC_DEFINE_UNQUOTED([PACKAGE_VERSION], ["$1"],
  26. [Define to the version of this package.])
  27. + _AC_DEFINE([#undef PACKAGE_STRING])
  28. AC_DEFINE_UNQUOTED([PACKAGE_STRING], ["AC_PACKAGE_NAME $1"],
  29. [Define to the full name and version of this package.])
  30. ])