+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,
-# 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
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>
-# 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
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)
])