Paul Eggert [Fri, 17 Mar 2006 07:26:42 +0000 (07:26 +0000)]
* lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
Typedef to long int, not to off_, as POSIX will likely change
in that direction.
* m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
no longer needs it. Instead, check that regoff_t is as least
as wide as ptrdiff_t.
Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
so that our regex.h stays compatible with the installed regex.
This is helpful for installers who configure --without-included-regex.
Problem reported by Emanuele Giaquinta.
Paul Eggert [Sun, 12 Mar 2006 07:58:12 +0000 (07:58 +0000)]
* time_r.h (asctime_r, ctime_r): Remove. These functions can
overrun buffers and shouldn't be used (much as gets shouldn't be
used).
* time_r.c (asctime_r, ctime_r): Likewise.
Simon Josefsson [Tue, 7 Mar 2006 13:20:11 +0000 (13:20 +0000)]
* readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
test to be side-effect free by storing the result in the cache
variable gl_cv_lib_readline, and moving the assignment of
LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
Paul Eggert [Sat, 4 Mar 2006 06:34:54 +0000 (06:34 +0000)]
(gl_FUNC_POLL): If we deem poll(2) unacceptable, use
our replacement poll.h in any case, to avoid a differing
declaration from a system header. Seen on AIX.
Simon Josefsson [Thu, 16 Feb 2006 09:48:07 +0000 (09:48 +0000)]
* sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
'present but cannot compile' warnings on cygwin.
* socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET. Don't
use ws2tcpip.h if sys/socket.h works.
* getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
(gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
Paul Eggert [Tue, 14 Feb 2006 23:00:23 +0000 (23:00 +0000)]
Sync from coreutils.
* modules/lstat (Depends-on): Don't depend on xalloc.
(License): Change from GPL to LGPL, since this is now simply a
replacement for a libc function.
Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
failure on deficient systems, and simplify gnulib lgpl dependencies.
* lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
xmalloc/lstat combination. Based on a patch from Bruno Haible.
* lib/xalloc-die.c: Remove unused definition of N_.
* m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke AC_CHECK_FUNCS(getmntent)
unconditionally so that tests of $ac_cv_func_getmntent (e.g., in
gl_LIST_MOUNTED_FILE_SYSTEMS) need not double-quote uses of that
variable, to accommodate the rare case in which getmntent is
available in none of the libraries checked. This happens at
least on FreeBSD 5.0.
Simon Josefsson [Tue, 14 Feb 2006 12:52:55 +0000 (12:52 +0000)]
* build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
and (the local) Makefile.cfg to maint-cfg.mk.
* build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
to the latter.
Simon Josefsson [Tue, 14 Feb 2006 11:25:31 +0000 (11:25 +0000)]
* modules/maintainer-makefile: New module.
* build-aux/Makefile.maint: New file, from GNU CoreUtils, although
severaly stripped to make it possible to build it up from scratch
with reliable tests.
* build-aux/GNUmakefile: New file, from GNU CoreUtils with some
fixes to permit overriding the default actions when configure and
makefile are not available.
Paul Eggert [Mon, 6 Feb 2006 05:22:04 +0000 (05:22 +0000)]
* extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
__EXTENSIONS__ if this causes compilation to fail. Problem
reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
Paul Eggert [Fri, 27 Jan 2006 18:40:27 +0000 (18:40 +0000)]
* fnmatch.c (L_): Renamed from L, to work around a bug in
Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
<http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
All uses changed.