From 0edd3615919bbf744bdb56a59cf736f36a020b9b Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 14 Sep 2008 04:09:01 +0200 Subject: [PATCH] Remove module EOVERFLOW. --- m4/eoverflow.m4 | 70 ----------------------------------------- modules/EOVERFLOW | 22 ------------- modules/EOVERFLOW-tests | 10 ------ tests/test-EOVERFLOW.c | 32 ------------------- 4 files changed, 134 deletions(-) delete mode 100644 m4/eoverflow.m4 delete mode 100644 modules/EOVERFLOW delete mode 100644 modules/EOVERFLOW-tests delete mode 100644 tests/test-EOVERFLOW.c diff --git a/m4/eoverflow.m4 b/m4/eoverflow.m4 deleted file mode 100644 index 3bffd10ed1..0000000000 --- a/m4/eoverflow.m4 +++ /dev/null @@ -1,70 +0,0 @@ -# eoverflow.m4 serial 2 -dnl Copyright (C) 2004, 2006 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl From Bruno Haible. - -# The EOVERFLOW errno value ought to be defined in , according to -# POSIX. But some systems (like AIX 3) don't define it, and some systems -# (like OSF/1) define it when _XOPEN_SOURCE_EXTENDED is defined. - -# Define EOVERFLOW as a C macro and as a substituted macro in such a way that -# 1. on all systems, after inclusion of , EOVERFLOW is usable, -# 2. on systems where EOVERFLOW is defined elsewhere, we use the same numeric -# value. - -AC_DEFUN([gl_EOVERFLOW], -[ - AC_REQUIRE([AC_PROG_CC])dnl - - AC_CACHE_CHECK([for EOVERFLOW], ac_cv_decl_EOVERFLOW, [ - AC_EGREP_CPP(yes,[ -#include -#ifdef EOVERFLOW -yes -#endif - ], have_eoverflow=1) - if test -n "$have_eoverflow"; then - dnl EOVERFLOW exists in . Don't need to define EOVERFLOW ourselves. - ac_cv_decl_EOVERFLOW=yes - else - AC_EGREP_CPP(yes,[ -#define _XOPEN_SOURCE_EXTENDED 1 -#include -#ifdef EOVERFLOW -yes -#endif - ], have_eoverflow=1) - if test -n "$have_eoverflow"; then - dnl EOVERFLOW exists but is hidden. - dnl Define it to the same value. - AC_COMPUTE_INT([ac_cv_decl_EOVERFLOW], [EOVERFLOW], [ -#define _XOPEN_SOURCE_EXTENDED 1 -#include -/* The following two lines are a workaround against an autoconf-2.52 bug. */ -#include -#include -]) - else - dnl EOVERFLOW isn't defined by the system. Define EOVERFLOW ourselves, but - dnl don't define it as EINVAL, because snprintf() callers want to - dnl distinguish EINVAL and EOVERFLOW. - ac_cv_decl_EOVERFLOW=E2BIG - fi - fi - ]) - if test "$ac_cv_decl_EOVERFLOW" != yes; then - AC_DEFINE_UNQUOTED([EOVERFLOW], [$ac_cv_decl_EOVERFLOW], - [Define as good substitute value for EOVERFLOW.]) - EOVERFLOW="$ac_cv_decl_EOVERFLOW" - AC_SUBST(EOVERFLOW) - fi -]) - -dnl Autoconf >= 2.61 has AC_COMPUTE_INT built-in. -dnl Remove this when we can assume autoconf >= 2.61. -m4_ifdef([AC_COMPUTE_INT], [], [ - AC_DEFUN([AC_COMPUTE_INT], [_AC_COMPUTE_INT([$2],[$1],[$3],[$4])]) -]) diff --git a/modules/EOVERFLOW b/modules/EOVERFLOW deleted file mode 100644 index eb3f2191cf..0000000000 --- a/modules/EOVERFLOW +++ /dev/null @@ -1,22 +0,0 @@ -Description: -EOVERFLOW macro - -Files: -m4/eoverflow.m4 - -Depends-on: - -configure.ac: -gl_EOVERFLOW - -Makefile.am: - -Include: - - -License: -LGPLv2+ - -Maintainer: -Bruno Haible - diff --git a/modules/EOVERFLOW-tests b/modules/EOVERFLOW-tests deleted file mode 100644 index 528757746a..0000000000 --- a/modules/EOVERFLOW-tests +++ /dev/null @@ -1,10 +0,0 @@ -Files: -tests/test-EOVERFLOW.c - -Depends-on: - -configure.ac: - -Makefile.am: -TESTS += test-EOVERFLOW -check_PROGRAMS += test-EOVERFLOW diff --git a/tests/test-EOVERFLOW.c b/tests/test-EOVERFLOW.c deleted file mode 100644 index 0e5cc09c91..0000000000 --- a/tests/test-EOVERFLOW.c +++ /dev/null @@ -1,32 +0,0 @@ -/* Test of EOVERFLOW macro. - Copyright (C) 2008 Free Software Foundation, Inc. - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . */ - -#include - -#include - -/* Check that it can be used as an initializer outside of a function. */ -static int err = EOVERFLOW; - -int -main () -{ - /* snprintf() callers want to distinguish EINVAL and EOVERFLOW. */ - if (err == EINVAL) - return 1; - - return 0; -} -- 2.30.2