gbranden pushed a commit to branch master
in repository groff.
commit 4e6c98f3df065743e5598c158d71af7fc8f63a25
Author: G. Branden Robinson <[email protected]>
AuthorDate: Thu Apr 9 00:59:58 2026 -0500
[build]: Drop obsolescent configuration code.
Drop no longer needed check for `struct exception`. It was used only by
the now-deleted "src/libs/libgroff/matherr.c".
* m4/groff.m4 (GROFF_STRUCT_EXCEPTION): Delete.
* configure.ac: Drop interpolation of `GROFF_STRUCT_EXCEPTION`.
* Makefile.am: Stop advertising availability of `HAVE_STRUCT_EXCEPTION`
preprocessor symbol.
---
ChangeLog | 10 ++++++++++
Makefile.am | 1 -
configure.ac | 1 -
m4/groff.m4 | 19 -------------------
4 files changed, 10 insertions(+), 21 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 9a2dc2616..1a3a3de0e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2026-04-09 G. Branden Robinson <[email protected]>
+
+ [build]: Drop no longer needed check for `struct exception`. It
+ was used only by the now-deleted "src/libs/libgroff/matherr.c".
+
+ * m4/groff.m4 (GROFF_STRUCT_EXCEPTION): Delete.
+ * configure.ac: Drop interpolation of `GROFF_STRUCT_EXCEPTION`.
+ * Makefile.am: Stop advertising availability of
+ `HAVE_STRUCT_EXCEPTION` preprocessor symbol.
+
2026-04-09 G. Branden Robinson <[email protected]>
[libgroff]: Drop "matherr.c" file, declaring (under the
diff --git a/Makefile.am b/Makefile.am
index 7ae89f651..4d475d4e3 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -327,7 +327,6 @@ man7dir=$(manroot)/man$(man7ext)
# HAVE_DECL_GETC_UNLOCKED if you have getc_unlocked()
# HAVE_DECL_SYS_SIGLIST if you have sys_siglist[]
#
-# HAVE_STRUCT_EXCEPTION if <math.h> defines struct exception
# HAVE_SYS_NERR if you have sysnerr in <errno.h> or
<stdio.h>
# HAVE_SYS_ERRLIST if you have sys_errlist in <errno.h> or
# <stdio.h>
diff --git a/configure.ac b/configure.ac
index 46e1cdd94..db113f81c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -104,7 +104,6 @@ GROFF_UNSIGNED_LONG_LONG
GROFF_UINTMAX_T
GROFF_TIME_T
GROFF_TYPE_SIGNAL
-GROFF_STRUCT_EXCEPTION
# check endianness
AC_C_BIGENDIAN
diff --git a/m4/groff.m4 b/m4/groff.m4
index fbe3d07f3..e502524c2 100644
--- a/m4/groff.m4
+++ b/m4/groff.m4
@@ -802,25 +802,6 @@ struct tm *p = localtime(&t);
[Define if localtime() takes a long * not a time_t *.])])
AC_LANG_POP([C++])])
-AC_DEFUN([GROFF_STRUCT_EXCEPTION],
- [AC_MSG_CHECKING([struct exception])
- AC_COMPILE_IFELSE([
- AC_LANG_PROGRAM([[
-
-#include <math.h>
-
- ]],
- [[
-
-struct exception e;
-
- ]])
- ],
- [AC_MSG_RESULT([yes])
- AC_DEFINE([HAVE_STRUCT_EXCEPTION], [1],
- [Define if <math.h> defines struct exception.])],
- [AC_MSG_RESULT([no])])])
-
AC_DEFUN([GROFF_ARRAY_DELETE],
[AC_LANG_PUSH([C++])
AC_MSG_CHECKING([whether ISO C++98 array deletion syntax is supported])
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit