gbranden pushed a commit to branch master
in repository groff.
commit d79346025bc81472e705fb85bf94ae3121921253
Author: G. Branden Robinson <[email protected]>
AuthorDate: Thu Sep 3 01:05:25 2026 -0500
configure.ac: Defeat C23/C++23 presumption.
* configure.ac: We want to be able to build with ISO C99/C++98
compilers, but also arrange for Gnulib to supply its own C23/C++23-ish
`static_assert` implementation. groff doesn't use single-argument
`static_assert`, but Gnulib itself does.
See:
<https://cgit.git.savannah.gnu.org/cgit/gnulib.git/commit/\
?id=a4aa733b3651ed437d37fe51f14b8f5986e7ef8e>.
---
ChangeLog | 9 +++++++++
configure.ac | 7 +++++++
2 files changed, 16 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 6cf4801bf..eca04354f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2026-09-03 G. Branden Robinson <[email protected]>
+
+ * configure.ac: Defeat C23/C++23 presumption. We want to be
+ able to build with ISO C99/C++98 compilers, but also invite
+ Gnulib to supply its own C11/C++11-ish `static_assert()`
+ implementation.
+ See: <https://cgit.git.savannah.gnu.org/cgit/gnulib.git/commit/\
+ ?id=a4aa733b3651ed437d37fe51f14b8f5986e7ef8e>.
+
2026-09-02 G. Branden Robinson <[email protected]>
* gnulib: Update stable/2026-07 branch to pick up bug fixes.
diff --git a/configure.ac b/configure.ac
index be211fcba..e8c4318c6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -44,9 +44,16 @@ AM_SILENT_RULES([yes])
# checks for programs
# Autoconf [2.70,2.72] tries to cram C11 and C++11 down our throats. We
# don't (yet) want them.
+#
+# And we also need to defeat a presumption of C23 and C++23 availability
+# so that we can layer Gnulib's `static_assert` on top of our C99/C++98
+# source base. groff doesn't use single-argument `static_assert`, but
+# Gnulib itself does.
ac_cv_prog_cc_c11=no
+ac_cv_prog_cc_c23=no
AC_PROG_CC
ac_cv_prog_cxx_cxx11=no
+ac_cv_prog_cxx_cxx23=no
AC_PROG_CXX
gl_EARLY
gl_INIT
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit