]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Better check for ssize_t.
authorBruno Haible <bruno@clisp.org>
Mon, 23 Jun 2003 10:38:12 +0000 (10:38 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:10:44 +0000 (12:10 +0200)
gettext-tools/m4/ChangeLog
gettext-tools/m4/ssize_t.m4
gettext-tools/m4/xreadlink.m4

index 4d145a2fef2105804d34ba3ee72d170beb261a4b..c6831dcfc9f27574f2f82a9f47baf3c4fdec531d 100644 (file)
@@ -1,3 +1,10 @@
+2003-06-22  Bruno Haible  <bruno@clisp.org>
+
+       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 <jbon@cfl.rr.com>.
+
 2003-06-19  Bruno Haible  <bruno@clisp.org>
 
        * Makefile.am (aclocal_DATA): Add intmax.m4, longdouble.m4,
index 5f33ae4a6662eff0646655ccd48bd618332a1942..708126bf3c71b6f7d82a720e26e0fc6596e1319d 100644 (file)
@@ -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 <sys/types.h>
index cc9eeb4306fe8b5f8a0094f716e64070babf8b4d..0907317ccaddd444aa873b8548744267721963b2 100644 (file)
@@ -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)
 ])