From: Bruno Haible Date: Mon, 23 Jun 2003 10:38:12 +0000 (+0000) Subject: Better check for ssize_t. X-Git-Tag: v0.13~410 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=170943a4461faaa674bd1bac78c2885c7b2f3df5;p=thirdparty%2Fgettext.git Better check for ssize_t. --- diff --git a/gettext-tools/m4/ChangeLog b/gettext-tools/m4/ChangeLog index 4d145a2fe..c6831dcfc 100644 --- a/gettext-tools/m4/ChangeLog +++ b/gettext-tools/m4/ChangeLog @@ -1,3 +1,10 @@ +2003-06-22 Bruno Haible + + Portability to mingw32. + * m4/ssize.m4 (gt_TYPE_SSIZE_T): Test for unistd.h. + * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T. + Reported by Jeff Bonggren . + 2003-06-19 Bruno Haible * Makefile.am (aclocal_DATA): Add intmax.m4, longdouble.m4, diff --git a/gettext-tools/m4/ssize_t.m4 b/gettext-tools/m4/ssize_t.m4 index 5f33ae4a6..708126bf3 100644 --- a/gettext-tools/m4/ssize_t.m4 +++ b/gettext-tools/m4/ssize_t.m4 @@ -1,5 +1,5 @@ -# ssize_t.m4 serial 1 (gettext-0.11) -dnl Copyright (C) 2001-2002 Free Software Foundation, Inc. +# ssize_t.m4 serial 2 (gettext-0.12.2) +dnl Copyright (C) 2001-2003 Free Software Foundation, Inc. dnl This file is free software, distributed under the terms of the GNU dnl General Public License. As a special exception to the GNU General dnl Public License, this file may be distributed as part of a program @@ -8,10 +8,10 @@ dnl the same distribution terms as the rest of that program. dnl From Bruno Haible. dnl Test whether ssize_t is defined. -dnl Prerequisite: AC_CHECK_HEADERS(unistd.h) AC_DEFUN([gt_TYPE_SSIZE_T], [ + AC_CHECK_HEADERS_ONCE(unistd.h) AC_CACHE_CHECK([for ssize_t], gt_cv_ssize_t, [AC_TRY_COMPILE([ #include diff --git a/gettext-tools/m4/xreadlink.m4 b/gettext-tools/m4/xreadlink.m4 index cc9eeb430..0907317cc 100644 --- a/gettext-tools/m4/xreadlink.m4 +++ b/gettext-tools/m4/xreadlink.m4 @@ -1,5 +1,5 @@ -# xreadlink.m4 serial 1 (gettext-0.12) -dnl Copyright (C) 2002 Free Software Foundation, Inc. +# xreadlink.m4 serial 2 (gettext-0.12.2) +dnl Copyright (C) 2002-2003 Free Software Foundation, Inc. dnl This file is free software, distributed under the terms of the GNU dnl General Public License. As a special exception to the GNU General dnl Public License, this file may be distributed as part of a program @@ -9,5 +9,6 @@ dnl the same distribution terms as the rest of that program. AC_DEFUN([gl_XREADLINK], [ dnl Prerequisites of lib/xreadlink.c. + AC_REQUIRE([gt_TYPE_SSIZE_T]) AC_CHECK_HEADERS_ONCE(limits.h stdlib.h sys/types.h unistd.h) ])