From 2291582732011844b4ff65dce9e99400dcc1a031 Mon Sep 17 00:00:00 2001 From: "G. Branden Robinson" Date: Mon, 19 Aug 2024 17:17:04 -0500 Subject: [PATCH] Drop Autoconf checks for EBCDIC and OS/390. * m4/groff.m4 (GROFF_EBCDIC, GROFF_OS390): Drop macros. * configure.ac: Stop using them. Continues fixing . --- 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 + + * m4/groff.m4 (GROFF_EBCDIC, GROFF_OS390): Drop macros. + * configure.ac: Stop using them. + + Continues fixing . + 2024-08-19 G. Branden Robinson [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 # HAVE_DIRENT_H if you have 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],