groff-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[groff] 54/63: Drop Autoconf checks for EBCDIC and OS/390.


From: G. Branden Robinson
Subject: [groff] 54/63: Drop Autoconf checks for EBCDIC and OS/390.
Date: Mon, 19 Aug 2024 20:06:42 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit 2291582732011844b4ff65dce9e99400dcc1a031
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Mon Aug 19 17:17:04 2024 -0500

    Drop Autoconf checks for EBCDIC and OS/390.
    
    * m4/groff.m4 (GROFF_EBCDIC, GROFF_OS390): Drop macros.
    * configure.ac: Stop using them.
    
    Continues fixing <https://savannah.gnu.org/bugs/?65724>.
---
 ChangeLog    |  7 +++++++
 Makefile.am  |  1 -
 configure.ac |  2 --
 m4/groff.m4  | 45 ---------------------------------------------
 4 files changed, 7 insertions(+), 48 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 7ca88be20..c110c29f9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2024-08-19  G. Branden Robinson <g.branden.robinson@gmail.com>
+
+       * m4/groff.m4 (GROFF_EBCDIC, GROFF_OS390): Drop macros.
+       * configure.ac: Stop using them.
+
+       Continues fixing <https://savannah.gnu.org/bugs/?65724>.
+
 2024-08-19  G. Branden Robinson <g.branden.robinson@gmail.com>
 
        [grops, grotty, libgroff, pic]: Drop EBCDIC support.
diff --git a/Makefile.am b/Makefile.am
index ec2986786..ea5a5bab4 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -312,7 +312,6 @@ man7dir=$(manroot)/man$(man7ext)
 # config.h might set the following defines:
 #
 # WORDS_BIGENDIAN              if your target platform is big-endian
-# IS_EBCDIC_HOST               if the host's encoding is EBCDIC
 #
 # HAVE_DIRECT_H                if you have <direct.h>
 # HAVE_DIRENT_H                if you have <dirent.h>
diff --git a/configure.ac b/configure.ac
index 2493fcebf..3f86138d5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -51,8 +51,6 @@ AC_PROG_CXX
 gl_EARLY
 gl_INIT
 GROFF_CXX_CHECK
-GROFF_EBCDIC
-GROFF_OS390
 GROFF_CMD_FILES
 GROFF_X11
 GROFF_APPDEFDIR_OPTION
diff --git a/m4/groff.m4 b/m4/groff.m4
index 69b00b3bb..2fc9fbad8 100644
--- a/m4/groff.m4
+++ b/m4/groff.m4
@@ -1429,51 +1429,6 @@ AC_DEFUN([GROFF_LIBC],
    AC_SUBST([LIBC])])
 
 
-# Check for EBCDIC -- stolen from the OS390 Unix LYNX port
-
-AC_DEFUN([GROFF_EBCDIC],
-  [AC_MSG_CHECKING([whether character set is EBCDIC])
-   AC_COMPILE_IFELSE([
-       AC_LANG_PROGRAM([[
-
-/* Treat any failure as ASCII for compatibility with existing art.
-   Use compile-time rather than run-time tests for cross-compiler
-   tolerance. */
-#if '0' != 240
-make an error "Character set is not EBCDIC"
-#endif
-
-       ]])
-     ],
-     [groff_cv_ebcdic="yes"
-      TTYDEVDIRS="font/devcp1047"
-      AC_MSG_RESULT([yes])
-      AC_DEFINE(IS_EBCDIC_HOST, 1,
-       [Define if the host's encoding is EBCDIC.])],
-     [groff_cv_ebcdic="no"
-     TTYDEVDIRS="font/devascii font/devlatin1"
-     OTHERDEVDIRS="font/devlj4 font/devlbp"
-     AC_MSG_RESULT([no])])
-   AC_SUBST([TTYDEVDIRS])
-   AC_SUBST([OTHERDEVDIRS])])
-
-
-# Check for OS/390 Unix.  We test for EBCDIC also -- the Linux port (with
-# gcc) to OS/390 uses ASCII internally.
-
-AC_DEFUN([GROFF_OS390],
-  [if test "$groff_cv_ebcdic" = "yes"; then
-     AC_MSG_CHECKING([for OS/390 Unix])
-     case `uname` in
-     OS/390)
-       CFLAGS="$CFLAGS -D_ALL_SOURCE"
-       AC_MSG_RESULT([yes]) ;;
-     *)
-       AC_MSG_RESULT([no]) ;;
-     esac
-   fi])
-
-
 # Check whether Windows scripts like 'afmtodit.cmd' should be installed.
 
 AC_DEFUN([GROFF_CMD_FILES],



reply via email to

[Prev in Thread] Current Thread [Next in Thread]