* socklen.m4: Look in ws2tcpip.h too, for mingw32.
[pspp] / m4 / ChangeLog
1 2006-01-19  Simon Josefsson  <jas@extundo.com>
2
3         * socklen.m4: Look in ws2tcpip.h too, for mingw32.
4
5 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
6
7         * lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
8         it's not portable and it doesn't work with cross-compiles.
9         Problem reported by Bruno Haible.  Fix missing-$ typo in
10         'test "gl_cv_ignore_unused_libraries" ...' that prevented
11         -zignore from being used with Sun's C compiler.
12
13 2006-01-12  Bruno Haible  <bruno@clisp.org>
14
15         * ldd.m4: New file.
16
17 2006-01-08  Bruno Haible  <bruno@clisp.org>
18
19         Ensure automatic ordering between gl_LOCK and gl_ARGP.
20         * lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
21         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
22
23 2006-01-10  Jim Meyering  <jim@meyering.net>
24
25         * fpending.m4: Also include <stdio.h>, for Dragonfly.
26         Patch by Joerg Sonnenberger.
27
28 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
29
30         * memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
31         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
32         People who are still concerned with buggy memcmp implementations
33         can invoke gl_FUNC_MEMCMP themselves.
34
35 2006-01-10  Simon Josefsson  <jas@extundo.com>
36
37         * sys_socket_h.m4: New file.
38
39 2006-01-10  Bruno Haible  <bruno@clisp.org>
40
41         * localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
42         Reported by Werner Lemberg <wl@gnu.org>.
43
44 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
45
46         Sync from coreutils.
47         * lib-ignore.m4: New file.
48         * lchmod.m4: New file.
49
50 2006-01-09  Jim Meyering  <jim@meyering.net>
51
52         Sync from coreutils.
53         * chdir-safer.m4: New file.
54         * openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
55         Require openat-priv.h.
56
57 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
58
59         Sync from coreutils.
60         * acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
61
62 2005-10-16  Bruno Haible  <bruno@clisp.org>
63
64         * stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
65
66 2005-12-16  Jim Meyering  <jim@meyering.net>
67
68         * fprintftime.m4: New file.
69
70 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
71
72         * argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
73         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
74
75 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76
77         * argp.m4:  Check if program_invocation_name and
78         program_invocation_short_name are declared and define appropriate
79         macros if they are not.
80
81 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
82
83         * stat-time.m4 (gl_STAT_TIME): Add check for
84         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
85         porting problem reported by Georg Schwarz in
86         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
87
88 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
89
90         * socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
91         Use implementation from Albert Chin, with some
92         comments/corrections by Stepan Kasal and myself.
93
94 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
95
96         * regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
97         statement, to work around an HP-UX 10.20 compiler bug reported by
98         Peter O'Gorman.
99
100 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
101
102         * gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
103         or gettimeofday; no longer needed.
104
105 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
106
107         * chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
108         variables to suggest the intended function of the PATH_MAX check.
109
110 2005-10-30  Kean Johnston  <jkj@sco.com>
111
112         Trivial changes to support SCO systems.
113         * chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
114         as PATH_MAX.
115         * fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
116         where __ptr is null when no I/O is pending.
117
118 2005-10-28  Simon Josefsson  <jas@extundo.com>
119
120         * inet_ntop.m4: More tests.
121
122         * gc-md2.m4, md2.m4: New file.
123
124 2005-10-22  Simon Josefsson  <jas@extundo.com>
125
126         * gc.m4: Don't be fooled by --disable-*random-device parameters,
127         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
128
129 2005-10-21  Simon Josefsson  <jas@extundo.com>
130
131         * gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
132         Bruno Haible <bruno@clisp.org>.
133
134         * gc-des.m4: New file.
135
136 2005-10-21  Simon Josefsson  <jas@extundo.com>
137
138         * arctwo.m4: New file.
139
140         * gc-arctwo.m4: New file.
141
142 2005-10-19  Simon Josefsson  <jas@extundo.com>
143
144         * gc-arcfour.m4: New file.
145
146         * gc-rijndael.m4: New file.
147
148 2005-10-19  Simon Josefsson  <jas@extundo.com>
149
150         * m4/gc-hmac-md5.m4, m4/gc-hmac-sha1.m4, m4/gc-md4.m4,
151         m4/gc-md5.m4, m4/gc-sha1.m4: Fix typo, suggested by Stepan Kasal
152         <kasal@ucw.cz>.
153
154 2005-10-19  Simon Josefsson  <jas@extundo.com>
155
156         * gc-md4.m4: New file.
157
158 2005-10-18  Simon Josefsson  <jas@extundo.com>
159
160         * md4.m4: New file.
161
162 2005-10-17  Bruno Haible  <bruno@clisp.org>
163
164         * stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so that
165         it can also be used in a test.
166
167 2005-10-11  Simon Josefsson  <jas@extundo.com>
168
169         * md5.m4: Remove call to uint32_t.m4.
170
171 2005-10-15  Simon Josefsson  <jas@extundo.com>
172
173         * rijndael.m4: New file.
174
175 2005-10-14  Simon Josefsson  <jas@extundo.com>
176
177         * arcfour.m4: New file.
178
179 2005-10-12  Bruno Haible  <bruno@clisp.org>
180
181         * stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
182         Reported by Stepan Kasal <kasal@ucw.cz>.
183
184 2005-10-12  Simon Josefsson  <jas@extundo.com>
185
186         * gc-pbkdf2-sha1.m4: New file.
187
188         * gc-hmac-sha1.m4: New file.
189
190         * gc-sha1: New file.
191
192         * hmac-sha1.m4: New file.
193
194 2005-10-12  Simon Josefsson  <jas@extundo.com>
195
196         * gc-md5.m4, gc-hmac-md5: New files.
197
198         * gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
199
200 2005-10-11  Simon Josefsson  <jas@extundo.com>
201
202         * crc.m4: New file.
203
204 2005-10-07  Simon Josefsson  <jas@extundo.com>
205
206         * memxor.m4: Remove gl_C_RESTRICT call.
207
208 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
209
210         * stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
211         promotes to int, not unsigned int, to catch the AIX 5.3
212         compiler bug.
213
214 2005-10-06  Simon Josefsson  <jas@extundo.com>
215
216         * hmac-md5.m4: New file.
217
218         * memxor.m4: Require gl_C_RESTRICT.
219
220 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
221
222         * getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
223         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
224         needed, since the source code now assumes these .h files.
225
226 2005-10-05  Simon Josefsson  <jas@extundo.com>
227
228         * memxor.m4: New file.
229
230 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
231
232         Sync from coreutils.
233         * openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
234         * ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
235         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
236         ULLONG_MAX doesn't work with 2.7.2.1.
237
238 2005-10-02  Jim Meyering  <jim@meyering.net>
239
240         Sync from coreutils.
241         * utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
242         from glibc-2.2.5 that fails for read-only files.
243
244 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
245
246         Sync from coreutils.
247         * chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
248         against `yes', rather than just testing for nonempty.
249
250 2005-10-01  Simon Josefsson  <jas@extundo.com>
251
252         * getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
253         and Darwin.
254
255         * getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
256         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
257         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
258         freeaddrinfo and gai_strerror are declared by the POSIX headers.
259         Check if struct addrinfo is declared.
260
261 2005-10-01  Jim Meyering  <jim@meyering.net>
262
263         Sync from coreutils.
264
265         * getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
266         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
267         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
268         * getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
269         in the inet and nsl libraries.  Required on Solaris 5.7.
270
271 2005-09-24  Jim Meyering  <jim@meyering.net>
272
273         Sync from coreutils.
274         * getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
275         in the inet and nsl libraries.  Required on Solaris 5.7.
276
277 2005-09-26  Bruno Haible  <bruno@clisp.org>
278
279         * mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't compile
280         mbchar.c if they are not both present.
281         * mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
282         * mbiter.m4 (gl_MBITER): Likewise.
283         * strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
284         * strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
285         * strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
286
287 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
288
289         * regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
290         and similarly for the other external symbols.  Problem reported
291         by James Gallager.
292
293         * fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
294         bug reported by Jim Meyering.
295
296         * utimens.m4 (gl_UTIMENS): Check for futimesat.
297         * getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
298         not needed, since socklen is a prerequisite module.
299
300 2005-09-23  Jim Meyering  <jim@meyering.net>
301
302         Sync from coreutils.
303         Correct build failure (socklen_t not defined) on at least
304         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
305         * getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
306
307 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
308
309         Sync from coreutils.
310         * getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
311
312 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
313
314         Sync from coreutils.
315
316         * backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
317         * fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
318         * getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
319         * mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
320         * physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
321         * save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
322         * userspec.m4, xgetcwd.m4, xreadlink.m4:
323         Don't bother checking for string.h, stdlib.h, unistd.h.
324         * fts.m4 (gl_FUNC_FTS_CORE): Don't require
325         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
326         module's job.
327         * jm-macros.m4 (gl_MACROS): Likewise.
328         * prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
329
330         * getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
331         (gl_GETDATE): Use it.
332
333         * mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
334
335 2005-09-22  Jim Meyering  <jim@meyering.net>
336
337         Sync from coreutils.
338
339         * lstat.m4 (gl_FUNC_LSTAT):
340         Use AC_LIBSOURCES to require lstat.c and lstat.h.
341         Remove obsolete comment.
342         * xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
343         * xstrtod.m4: Likewise.
344
345         * openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
346
347 2005-09-19  Simon Josefsson  <jas@extundo.com>
348
349         * socklen.m4: Fix typo.
350
351 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
352
353         * st_mtim.m4: Remove.  Superseded by...
354         * stat-time.m4: New file.
355         * timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
356         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
357
358 2005-09-15  Derek Price  <derek@ximbiot.com>
359
360         * strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
361
362 2005-09-12  Derek Price  <derek@ximbiot.com>
363
364         Make canon-host require getaddrinfo.
365         * canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
366         AC_LIBSOURCE canon-host.h.  Call...
367         (gl_PREREQ_CANON_HOST): ...this new function, which requires
368         gl_GETADDRINFO.
369         * getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
370
371 2005-09-12  Derek Price  <derek@ximbiot.com>
372             Paul Eggert  <eggert@cs.ucla.edu>
373
374         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
375         glob_.h, glob-libc.h.
376         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
377
378 2005-08-31  Simon Josefsson  <jas@extundo.com>
379
380         * socklen.m4: New file.
381
382 2005-09-03  Derek Price  <derek@ximbiot.com>
383
384         * getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
385         From Larry Jones <lawrence.jones@ugs.com>.
386
387 2005-08-27  Bruno Haible  <bruno@clisp.org>
388
389         Support for lib vs. lib64 distinction on biarch platforms.
390         * lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
391         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
392         * lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
393
394 2005-09-01  Jim Meyering  <jim@meyering.net>
395
396         * lchown.m4: Require gl_FUNC_CHOWN, for the definition of
397         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
398         Require gl_STAT_MACROS, too.
399
400 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
401
402         * regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
403         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
404         and large-file glibc and in 32-bit large-file Solaris.
405
406 2005-08-28  Bruno Haible  <bruno@clisp.org>
407
408         * gnulib-tool.m4: New file.
409
410 2005-08-27  Jim Meyering  <jim@meyering.net>
411
412         * stdlib-safer.m4: New file.  From coreutils.
413         * stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
414         * fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
415         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
416         * unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
417         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
418
419 2005-08-24  Simon Josefsson  <jas@extundo.com>
420
421         * getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
422         __fsetlocking.
423
424 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
425
426         * regex.m4: Add AC_PREREQ(2.50).
427         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
428
429 2005-08-25  Bruno Haible  <bruno@clisp.org>
430
431         * minmax.m4: Require autoconf 2.52.
432         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
433         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
434         alternatives of translit over the alphabet.
435         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
436
437 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
438
439         * regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
440         for GNU regex features.
441
442 2005-08-24  Jim Meyering  <jim@meyering.net>
443
444         Sync from coreutils.
445         * fcntl-safer.m4: New file.
446
447         * xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
448         and object files for this module.
449
450 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
451
452         * regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
453         All contents moved to gl_REGEX.
454         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
455         assume that it does.
456
457 2005-08-20  Bruno Haible  <bruno@clisp.org>
458
459         * regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
460
461 2005-08-17  Bruno Haible  <bruno@clisp.org>
462
463         * strcasestr.m4: New file.
464
465 2005-08-17  Bruno Haible  <bruno@clisp.org>
466
467         * strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
468         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
469
470 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
471
472         * getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
473         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
474         and gl_GETOPT are both invoked via different paths (as happens
475         with GNU tar CVS because it uses both argp and getopt), the former
476         wins.
477
478 2005-08-16  Bruno Haible  <bruno@clisp.org>
479
480         * strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function always.
481         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
482
483 2005-08-16  Bruno Haible  <bruno@clisp.org>
484
485         * mbfile.m4: New file.
486
487 2005-08-16  Bruno Haible  <bruno@clisp.org>
488
489         * mbiter.m4: New file.
490
491 2005-08-16  Bruno Haible  <bruno@clisp.org>
492
493         * mbchar.m4: New file.
494
495 2005-08-16  Bruno Haible  <bruno@clisp.org>
496
497         * tls.m4: New file, from GNU gettext.
498
499 2005-08-12  Bruno Haible  <bruno@clisp.org>
500
501         * readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
502
503 2005-08-12  Simon Josefsson  <jas@extundo.com>
504
505         * readline.m4: Look for termcap, curses or ncurses if required.
506
507 2005-08-11  Simon Josefsson  <jas@extundo.com>
508
509         * readline.m4: New file.
510
511 2005-08-10  Simon Josefsson  <jas@extundo.com>
512
513         * strnlen.m4: New file.
514
515         * strndup.m4: Don't check for strnlen declaration, done in
516         strnlen.m4.
517
518 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
519
520         * onceonly_2_57.m4: Really require Autoconf 2.57.
521
522 2005-08-02  Simon Josefsson  <jas@extundo.com>
523
524         * getline.m4: Separate out getdelim stuff into separate module.
525
526         * getdelim.m4: New file.
527
528 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
529
530         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
531         normal way.
532         * getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
533         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
534         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
535         (gl_GETOPT): Use the new macros.  Most of the implementation
536         is moved to the new macros.  This is for programs like Emacs
537         that don't want all the functionality of gl_GETOPT.
538
539 2005-07-26  Bruno Haible  <bruno@clisp.org>
540
541         * lock.m4: Update from GNU gettext.
542
543 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
544
545         * regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
546         obsolescent AC_TRY_RUN.  Include the default includes files, for 'exit'.
547
548 2005-07-24  Bruno Haible  <bruno@clisp.org>
549
550         * visibility.m4: New file.
551
552 2005-07-18  Bruno Haible  <bruno@clisp.org>
553
554         * lock.m4: New file, from GNU gettext.
555
556 2005-06-01  Bruno Haible  <bruno@clisp.org>
557
558         * poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
559         When using lib/poll.c, define poll as rpl_poll.
560
561 2005-07-14  Bruno Haible  <bruno@clisp.org>
562
563         * argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
564         Instead, test for *_unlocked function declarations directly.
565
566 2005-07-14  Derek Price  <derek@ximbiot.com>
567
568         * glob.m4 (gl_GLOB): Cache glob interface check result.  Add check for
569         glob symlink bug.
570
571 2005-07-10  Bruno Haible  <bruno@clisp.org>
572
573         * size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
574         Needed when size_t is smaller than 'unsigned int'.
575         Reported by Paul Eggert.
576
577 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
578
579         * backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on pathconf.
580         * same.m4 (gl_SAME): Likewise.
581         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
582
583         * regex.m4: Adjust to new libc regex implementation.
584         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
585         all the .c and .h parts of (the new) regex.
586         Quote the m4 stuff better.
587         Check for RE_ICASE bug of old gnulib.
588         Check for REG_STARTEND of recent libc.
589         Rename local variables from jm_* to gl_*.
590         Quote operand of "test -f".
591         Say "recent enough" version of libc, not "version 2".
592         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
593         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
594         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
595         Remove check for btowc, isascii.
596         Require AM_LANGINFO_CODESET.
597
598 2005-07-05  Bruno Haible  <bruno@clisp.org>
599
600         * mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
601         autoconf CVS. Needed for mingw.
602
603 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
604
605         Remove the dependency of the strftime module on the tzset module.
606         * strftime.m4 (gl_FUNC_STRFTIME): Don't require gl_FUNC_TZSET_CLOBBER.
607
608 2005-07-02  Jim Meyering  <jim@meyering.net>
609
610         * chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
611         * getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
612         * pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
613         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
614
615 2005-06-28  Simon Josefsson  <jas@extundo.com>
616
617         * check-version.m4: New file, suggested by Jim Meyering
618         <jim@meyering.net>.
619
620 2005-06-24  Derek Price  <derek@ximbiot.com>
621         and Bruno Haible  <bruno@clisp.org>
622
623         Remove stat module & update lstat.
624         * lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
625         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
626         * stat.m4: Remove this file.
627
628 2005-06-20  Derek Price  <derek@ximbiot.com>
629
630         * bison.m4: Note that precious decls of YACC & YFLAGS will be
631         unnecessary for Autoconfs > 2.59c.
632
633 2005-06-16  Derek Price  <derek@ximbiot.com>
634
635         * bison.m4: Declare YACC & YFLAGS precious.
636
637 2005-06-08  Bruno Haible  <bruno@clisp.org>
638
639         * csharpcomp.m4: New file, from GNU gettext.
640
641 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
642
643         Sync from coreutils.
644         * mkdir-p.m4: Renamed from makepath.m4.
645         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
646         Rename files from makepath.c to mkdir-p.c, and from
647         makepath.h to mkdir-p.h.
648         * filenamecat.m4: Renamed from path-concat.m4.
649         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
650         Rename files from path-concat.c to filenamecat.c,
651         and from path-concat.h to filenamecat.h.
652         * getcwd-path-max.m4: Don't use "path" or "filename" to mean
653         "file name" in local variables or comments.
654         * rename.m4: Likewise.
655
656 2005-06-01  Bruno Haible  <bruno@clisp.org>
657
658         * csharp.m4: New file, from GNU gettext.
659         * csharpexec.m4: New file, from GNU gettext.
660
661 2005-05-31  Derek Price  <derek@ximbiot.com>
662             Paul Eggert  <eggert@cs.ucla.edu>
663
664         Sync from cvs.
665         * glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
666
667 2005-05-29  Derek Price  <derek@ximbiot.com>
668             Paul Eggert  <eggert@cs.ucla.edu>
669
670         * glob.m4: New file.
671
672 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
673
674         * fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
675         and don't require gt_INTTYPES_PRI.
676
677 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
678
679         * extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
680         _POSIX_PTHREAD_SEMANTICS for Solaris.
681
682 2005-05-25  Derek Price  <derek@ximbiot.com>
683             Paul Eggert  <eggert@cs.ucla.edu>
684
685         * getlogin_r.m4: New files.
686
687 2005-05-22  Bruno Haible  <bruno@clisp.org>
688
689         * minmax.m4: New file.
690         Based on a patch by Derek Price <derek@ximbiot.com>.
691
692 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
693
694         * fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
695         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
696
697 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
698
699         * chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
700         of -1.
701
702 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
703
704         * canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
705         Don't check for stddef.h.
706         * fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
707         don't use its results.
708         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
709         since we include them unconditionally.  Don't require
710         AM_STDBOOL_H, since stdbool is a prerequisite.
711         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
712         since we assume C89 or better.
713         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
714         as we don't use their results.
715         Don't check for fchdir, memmove, memset, strrchr, as we use
716         them unconditionally.
717         * gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
718         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
719
720 2005-05-18  Jim Meyering  <jim@meyering.net>
721
722         * fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
723         Reported by Yoann Vandoorselaere.
724
725 2005-05-17  Jim Meyering  <jim@meyering.net>
726
727         * fts.m4: New file, from coreutils.
728
729 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
730
731         Sync from coreutils.
732         * unlinkdir.m4: New file.
733
734 2005-05-10  Derek Price  <derek@ximbiot.com>
735
736         * getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
737         possible.
738
739 2005-05-10  Simon Josefsson  <jas@extundo.com>
740
741         * getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
742         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
743
744 2005-05-09  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
745             Bruno Haible  <bruno@clisp.org>
746
747         * inet_ntop.m4: New file.
748
749 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
750
751         * getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
752         needless checks.
753
754 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
755
756         * euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require AC_HEADER_STAT.
757         * lchown.m4 (gl_FUNC_CHOWN): Likewise.
758         (gl_PREREQ_CHOWN): Remove.
759         * lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
760         it.  Don't require AC_HEADER_STAT.
761         (gl_PREREQ_LSTAT): Remove.
762         * mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
763         Don't require AC_HEADER_STAT.
764         * rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
765         (gl_PREREQ_RMDIR): Remove.
766         * canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
767         mention stat-macros.h or AC_HEADER_STAT, since we'll make
768         the stat-macros module a prerequisite.
769         * file-type.m4 (gl_FILE_TYPE): Likewise.
770         * filemode.m4 (gl_FILEMODE): Likewise.
771         * makepath.m4 (gl_MAKEPATH): Likewise.
772         * modechange.m4 (gl_MODECHANGE): Likewise.
773         * clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
774         variable names.
775         * rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
776         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
777         variable prefixes.
778         * fcntl-safer.m4: Remove.
779         * stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
780         * unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
781         Invoke gl_PREREQ_FD_SAFER.
782         (gl_PREREQ_FD_SAFER): New macro.
783         * nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
784         * readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
785         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
786         Remove duplicate call to AC_LIBOBJ(readutmp).
787         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
788
789         * mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
790         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
791
792 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
793
794         * byteswap.m4: New file.
795
796 2005-04-25  karl
797
798         * gettext.m4: Update from GNU gettext 0.14.4.
799
800 2005-04-15  Simon Josefsson  <jas@extundo.com>
801
802         * getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
803
804 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
805
806         * getcwd-path-max.m4: Return success on systems such as Cygwin
807         where no absolute path name can be longer than PATH_MAX.
808
809 2005-03-22  Jim Meyering  <jim@meyering.net>
810
811         * stat-macros.m4 (gl_STAT_MACROS): New file/macro.
812
813 2005-03-21  Jim Meyering  <jim@meyering.net>
814         and  Paul Eggert  <eggert@cs.ucla.edu>
815
816         * acl.m4, backupfile.m4, c-strtod.m4, canon-host.m4, canonicalize.m4,
817         cloexec.m4, closeout.m4, dirfd.m4, dirname.m4, exclude.m4,
818         exitfail.m4, file-type.m4, filemode.m4, fpending.m4, fsusage.m4,
819         getcwd.m4, getdate.m4, getline.m4, getpagesize.m4, getpass.m4,
820         getugroups.m4, group-member.m4, hard-locale.m4, hash.m4, human.m4,
821         idcache.m4, inttostr.m4, long-options.m4, makepath.m4, md5.m4,
822         memcasecmp.m4, memcoll.m4, modechange.m4, mountlist.m4, nanosleep.m4,
823         path-concat.m4, pathmax.m4, physmem.m4, posixtm.m4, posixver.m4,
824         quote.m4, quotearg.m4, readtokens.m4, readutmp.m4, safe-read.m4,
825         safe-write.m4, same.m4, savedir.m4, settime.m4, sha1.m4, sig2str.m4,
826         strdup.m4, strftime.m4, strndup.m4, strverscmp.m4, timespec.m4,
827         unlocked-io.m4, userspec.m4, utimecmp.m4, utimens.m4, xalloc.m4,
828         xnanosleep.m4, xstrtol.m4, yesno.m4:
829         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
830         for these modules.
831
832 2005-03-21  Jim Meyering  <jim@meyering.net>
833
834         * chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
835         * memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
836
837 2005-03-16  Bruno Haible  <bruno@clisp.org>
838
839         * stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
840         HAVE_LONGLONG_64BIT.
841
842 2005-03-14  Bruno Haible  <bruno@clisp.org>
843
844         * lib-link.m4, gettext.m4, nls.m4, po.m4:
845         Update from GNU gettext 0.14.3.
846
847 2005-03-10  Jim Meyering  <jim@meyering.net>
848
849         * save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
850
851 2005-03-07  Bruno Haible  <bruno@clisp.org>
852
853         * mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
854
855 2005-03-03  Bruno Haible  <bruno@clisp.org>
856
857         * inttypes.m4, isc-posix.m4, once-only.m4:
858         Use an all-permissive copyright notice, recommended by RMS.
859
860 2005-03-03  Derek R. Price  <derek@ximbiot.com>
861
862         * mmap-anon.m4: New file.
863         * pagealign_alloc.m4: New file.
864
865 2005-01-28  Bruno Haible  <bruno@clisp.org>
866
867         * stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because of
868         AIX, the replacement has to be done only after <string.h> is included,
869         therefore not in config.h. stpncpy.h does the replacement, and
870         stpncpy.c uses it.
871
872 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
873
874         * xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
875         to detect nanosleep bug.
876
877 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
878
879         * gethrxtime.m4, xnanosleep.m4: New files.
880         * gettime.m4 (gl_GETTIME): Check for nanotime.
881
882 2005-02-24  Bruno Haible  <bruno@clisp.org>
883
884         * gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
885         * lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
886         * progtest.m4:
887         Update from GNU gettext 0.14.2.
888         * glibc2.m4: New file, from GNU gettext 0.14.2.
889
890 2005-02-22  Simon Josefsson  <jas@extundo.com>
891
892         * iconvme.m4: New file.
893
894 2005-02-23  Jim Meyering  <jim@meyering.net>
895
896         * extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's change.
897         Thanks to Bruno Haible for catching it.
898
899 2005-02-22  Jim Meyering  <jim@meyering.net>
900
901         * extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo: s/ifndef/ifdef/.
902
903 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
904
905         * memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
906
907 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
908
909         Sync from coreutils.
910         * getloadavg.m4, glibc.m4, search-libs.m4: Remove.
911
912         Remove files that are specific to coreutils.
913         * check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
914
915 2005-01-28  Bruno Haible  <bruno@clisp.org>
916
917         * javacomp.m4: New file, from GNU gettext.
918
919 2005-01-26  Bruno Haible  <bruno@clisp.org>
920
921         * javaexec.m4: New file, from GNU gettext.
922
923 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
924
925         * sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
926         must be defined if the header file was not found, in order
927         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
928
929 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
930
931         * acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
932         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
933         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
934         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
935         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
936         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
937         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
938         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
939         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
940         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
941         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
942         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
943         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
944         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
945         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
946         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
947         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
948         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
949         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
950         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
951         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
952         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
953         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
954         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
955         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
956         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
957         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
958         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
959         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
960         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
961         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
962         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
963         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
964         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
965         xstrtol.m4, xstrtoumax.m4, yesno.m4:
966         Use an all-permissive copyright notice, recommended by RMS.
967
968 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
969
970         * save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume it.
971
972 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
973
974         Merge from coreutils.
975         * ullong_max.m4: New file.
976         * jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
977         (gl_MACROS): Assume localeconv exists.
978
979 2005-01-18  Jim Meyering  <jim@meyering.net>
980
981         Merge from coreutils.
982         * chdir-long.m4, openat.m4: New files.
983         * save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
984         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
985         * chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
986         is sane and DOES follow symlinks.  Besides, testing 20 different
987         systems found no broken chown implementations.
988         Prompted by a change in rsync's copy of this macro.
989         * jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
990
991         * lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
992
993         * utimes.m4: Work around tests/touch/empty-file failure on a system
994         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
995         NULL-means-set-to-current-time semantics.
996         Remove temporary file immediately, rather than waiting
997         for configure's at-exit trap code to do it.
998
999 2005-01-18  Bruno Haible  <bruno@clisp.org>
1000
1001         * allocsa.m4, codeset.m4, copy-file.m4, eaccess.m4, eealloc.m4:
1002         * eoverflow.m4, execute.m4, fatal-signal.m4, findprog.m4, glibc21.m4:
1003         * iconv.m4, intmax_t.m4, inttypes_h.m4, lib-ld.m4, lib-link.m4:
1004         * lib-prefix.m4, linebreak.m4, localcharset.m4, longdouble.m4:
1005         * longlong.m4, mbrtowc.m4, mbstate_t.m4, mbswidth.m4, mkdtemp.m4:
1006         * pipe.m4, readlink.m4, safe-read.m4, safe-write.m4, setenv.m4:
1007         * sig_atomic_t.m4, signalblocking.m4, signed.m4, size_max.m4:
1008         * ssize_t.m4, stdbool.m4, stdint_h.m4, stpcpy.m4, stpncpy.m4:
1009         * strcase.m4, strcspn.m4, strpbrk.m4, strstr.m4, ucs4-utf.m4:
1010         * uintmax_t.m4, ulonglong.m4, unicodeio.m4, utf-ucs4.m4, vasnprintf.m4:
1011         * vasprintf.m4, wait-process.m4, wchar_t.m4, wint_t.m4, xsize.m4:
1012         Use an all-permissive copyright notice, recommended by RMS.
1013
1014 2005-01-06  Bruno Haible  <bruno@clisp.org>
1015
1016         * stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
1017
1018 2005-01-04  Jim Meyering  <jim@meyering.net>
1019
1020         Changes imported from coreutils.
1021         * mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
1022         as the mkstemp template, use a temporary directory and an
1023         8.3-friendly template to avoid trouble on systems like DJGPP.
1024         Reported by Juan M. Guerrero via Stepan Kasal.
1025         * (gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of close.
1026         Remove the temporary directory right away, rather than waiting
1027         for configure's at-exit trap code to do it.
1028         Suggestion from Stepan Kasal.
1029
1030 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
1031
1032         * c-strtod.m4 (gl_C99_STRTOLD): New macro.
1033         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
1034
1035 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
1036
1037         * getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
1038
1039 2004-12-18  Bruno Haible  <bruno@clisp.org>
1040
1041         * fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
1042
1043 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
1044
1045         * ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
1046         spurious "-l"s.  Problem reported by Stepan Kasal.
1047
1048 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
1049
1050         * ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
1051         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
1052
1053 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
1054
1055         Changes imported from coreutils.
1056         * hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
1057         exist.
1058         * human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
1059
1060 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
1061
1062         * getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
1063         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
1064
1065         * readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
1066
1067 2004-11-30  Simon Josefsson  <jas@extundo.com>
1068
1069         * base64.m4: New file.
1070
1071 2004-11-30  Simon Josefsson  <jas@extundo.com>
1072
1073         * restrict.m4: Add copyright and copying conditions.
1074
1075 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
1076
1077         * getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
1078         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
1079         Use the _ONCE methods, for efficiency.
1080         Check for fcntl.h.  In test program, include <errno.h>
1081         and <fcntl.h> if available.  Remove old K&R cruft from
1082         test program.  Check for common errors in GNU/Linux,
1083         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
1084         don't do AC_LIBOBJ, as that's getcwd.m4's job.
1085         * getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
1086         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
1087         name accordingly.
1088         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
1089         accommodate new getcwd.c.
1090         * jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
1091         * prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
1092         * xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
1093         that's all we need now.
1094
1095 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
1096
1097         * utimens.m4 (gl_UTIMENS): Check for futimes function.
1098
1099 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
1100
1101         * argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
1102         argp-parse.c depends on getopt internals, that means we should
1103         always use our getopt, to be on the safe side.
1104         * getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
1105         order not to spoil the result of an eventual previous invocation
1106         of gl_GETOPT_SUBSTITUTE.
1107
1108 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
1109
1110         * calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc implementations
1111         that mishandle size_t overflow.
1112
1113 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
1114
1115         * canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
1116
1117 2004-11-13  Jim Meyering  <jim@meyering.net>
1118
1119         * jm-macros.m4: Do require gl_FUNC_FPENDING.
1120
1121 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
1122
1123         * getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
1124         of replacing opterr, getopt, etc.  This should handle the
1125         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
1126
1127 2004-11-11  Simon Josefsson  <jas@extundo.com>
1128
1129         * strtok_r.m4: New file.
1130
1131         * getopt.m4: Replace opterr.
1132
1133 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
1134
1135         * prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
1136
1137 2004-11-10  Jim Meyering  <jim@meyering.net>
1138
1139         * jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
1140
1141 2004-11-08  Simon Josefsson  <jas@extundo.com>
1142
1143         * getaddrinfo.m4: New file.
1144
1145 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
1146
1147         * strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
1148         gl_FUNC_STRFTIME.
1149         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
1150         and AC_REQUIRE when possible, to avoid duplicate checks.
1151         Check for <wchar.h>.
1152
1153 2004-11-09  Bruno Haible  <bruno@clisp.org>
1154
1155         * sockpfaf.m4: New file.
1156
1157 2004-11-03  Albert Chin <china@thewrittenword.com>
1158             Paul Eggert  <eggert@cs.ucla.edu>
1159
1160         * uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
1161         equivalent, substitute $ac_type for equivalent type rather than
1162         blindly using uint32_t *always* which won't work if uint32_t is not
1163         available.  Define _UINT32_T to work around typedef of uint32_t if
1164         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
1165         2.5.1.
1166
1167 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
1168
1169         * jm-macros.m4: Sync from coreutils.
1170         (gl_MACROS): Check for mbrlen, for pathchk.
1171         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
1172
1173 2004-11-02  Bruno Haible  <bruno@clisp.org>
1174
1175         * setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
1176         returns void.
1177
1178 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
1179
1180         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
1181         fflush_unlocked, flockfile, funlockfile, funlockfile,
1182         fputs_unlocked, putc_unlocked.
1183
1184 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
1185
1186         * getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
1187
1188 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
1189
1190         * getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
1191         implementation of getopt_long.  Problem reported by Alexander Taler in:
1192         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
1193
1194 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
1195
1196         * vsnprintf.m4: New file.
1197
1198 2004-10-05  Bruno Haible  <bruno@clisp.org>
1199
1200         * strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
1201         for the declaration of strsep.
1202
1203 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
1204
1205         * xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
1206
1207         * unlocked-io.m4: Add copyright notice.
1208         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
1209
1210 2004-10-04  Simon Josefsson  <jas@extundo.com>
1211
1212         * memmem.m4: New file.
1213
1214 2004-10-01  Yoann Vandoorselaere <yoann@prelude-ids.org>
1215
1216         * strsep.m4: New file.
1217
1218 2004-09-30  Simon Josefsson  <jas@extundo.com>
1219
1220         * snprintf.m4: New file.
1221
1222 2004-09-09  Bruno Haible  <bruno@clisp.org>
1223
1224         * eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
1225         modifications.
1226         * vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
1227
1228 2004-09-08  Bruno Haible  <bruno@clisp.org>
1229
1230         * stdint.m4: New file, taken from GNU clisp with modifications.
1231
1232 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
1233
1234         * userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
1235
1236 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
1237
1238         * argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
1239         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
1240         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
1241         Check for program_invocation_name, program_invocation_short_name,
1242         flockfile, funlockfile, features.h, _getopt_long_only_r.
1243
1244 2004-08-12  Simon Josefsson  <jas@extundo.com>
1245
1246         * getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
1247         as discussed with Paul Eggert in threads rooted at
1248         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
1249         and
1250         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
1251         Before, the test was empty, and relied on ELIDE_CODE in source
1252         code.)
1253         (gl_PREREQ_GETOPT): New macro.
1254         (gl_GETOPT): Use them.
1255
1256 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
1257
1258         Merge from coreutils.
1259
1260         * fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
1261
1262         * obstack.m4 (gl_PREREQ_OBSTACK): Require
1263         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
1264
1265 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
1266
1267         * uint32_t.m4, uintptr_t.m4: New files.
1268         * sha1.m4: Renamed from sha.m4.
1269         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
1270
1271 2004-08-08  Simon Josefsson  <jas@extundo.com>
1272
1273         * getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
1274         Check getpass declaration.
1275
1276 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
1277
1278         More merge from coreutils.
1279
1280         * utimens.m4, utimecmp.m4: New files.
1281         * backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
1282         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
1283         prereq.m4, sha.m4: Import changes from coreutils.
1284
1285 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
1286
1287         Merge from coreutils.
1288
1289         * c-strtod.m4, canonicalize.m4, fcntl-safer.m4, getcwd-path-max.m4:
1290         New files.
1291
1292         * dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
1293         FILESYSTEM_PREFIX_LEN ->
1294         FILE_SYSTEM_PREFIX_LEN.
1295         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
1296         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
1297         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
1298         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
1299
1300         * path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
1301         prerequisite modules now handle the DOS stuff.
1302         Don't check for unistd.h.
1303
1304 2004-08-03  Simon Josefsson  <jas@extundo.com>
1305
1306         * strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
1307
1308 2004-08-02  Simon Josefsson  <jas@extundo.com>
1309
1310         * getsubopt.m4: New file.
1311
1312 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
1313
1314         * fatal.m4: Remove, as the "fatal" module wasn't used or working.
1315
1316 2004-07-13  Robert Millan  <robertmh@gnu.org>
1317
1318         * host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
1319
1320 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
1321
1322         * argz.m4: New file, which is autoupdated from libtool.
1323
1324 2004-06-01  Jim Meyering  <jim@meyering.net>
1325
1326         * calloc.m4: New file.
1327
1328 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
1329
1330         Merge from coreutils CVS.
1331
1332         * backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
1333         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
1334         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
1335         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
1336         xstrtol.m4: Fix copyright date and/or serial number.
1337
1338         * chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
1339         See if we need an fchown replacement.
1340         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
1341         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
1342         and use the replacement function if we detect either defect.
1343
1344         * prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
1345         gl_UTIMECMP.
1346
1347 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
1348
1349         * stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
1350         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
1351         Also, fix a typo in a diagnostic.
1352
1353 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
1354
1355         * xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
1356         or AC_FUNC_REALLOC.
1357
1358 2004-05-20  Andreas Schwab  <schwab@suse.de>
1359
1360         * free.m4: Replace free if it not known to work, not the other
1361         way round.
1362
1363 2004-05-17  Derek R. Price  <derek@ximbiot.com>
1364             Paul Eggert  <eggert@cs.ucla.edu>
1365
1366         * argp: Depend on alloca.
1367
1368 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
1369
1370         * alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
1371         for backward compatibility with older code.  We need our own
1372         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
1373         it under some other name, and our alloca.h will define it.
1374
1375 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
1376
1377         * gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
1378         Check for gettimeofday.
1379         * settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
1380         Check for settimeofday, stime.
1381
1382 2004-04-20  Paul Eggert  <eggert@twinsun.com>
1383
1384         * host-os.m4: Add a copyright notice.
1385
1386 2004-04-20  Jim Meyering  <jim@meyering.net>
1387
1388         Change UTILS_ to gl_ in AC_DEFINE'd names.
1389         Change utils_- and jm_-prefixed variables, too.
1390         * mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
1391         UTILS_FUNC_MKDIR_TRAILING_SLASH.
1392         * mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
1393
1394         * dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
1395         Don't emit trailing blanks.
1396         Also rename jm_-prefixed variables to have gl_ prefix.
1397
1398         * host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
1399         Also rename jm_-prefixed variables to have gl_ prefix.
1400
1401         * jm-macros.m4: Reflect the renamings.
1402         * prereq.m4: Likewise.
1403
1404 2004-04-19  Jim Meyering  <jim@meyering.net>
1405
1406         * readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
1407         now that readutmp.c may call `free (0)'.
1408
1409 2004-04-19  Bruno Haible  <bruno@clisp.org>
1410
1411         * mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
1412         * inttypes_h.m4: Likewise.
1413         * stdint_h.m4: Likewise.
1414         * intmax_t.m4: Likewise.
1415         * uintmax_t.m4: Likewise.
1416
1417 2004-04-18  Jim Meyering  <jim@meyering.net>
1418
1419         * prereq.m4: Don't forbid jm_ prefix.
1420
1421         * afs.m4, allocsa.m4, assert.m4, backupfile.m4, bison.m4:
1422         * check-decl.m4, chown.m4, d-ino.m4, d-type.m4, dirname.m4, dos.m4:
1423         * error.m4, fpending.m4, fstypename.m4, fsusage.m4, ftruncate.m4:
1424         * getdate.m4, getgroups.m4, gettext.m4, glibc21.m4, group-member.m4:
1425         * human.m4, intmax.m4, intmax_t.m4, inttostr.m4, inttypes.m4:
1426         * inttypes_h.m4, jm-macros.m4, jm-winsz1.m4, jm-winsz2.m4, lchown.m4:
1427         * lib-check.m4, link-follow.m4, localcharset.m4, longlong.m4:
1428         * ls-mntd-fs.m4, lstat.m4, makepath.m4, mbrtowc.m4, mbswidth.m4:
1429         * memchr.m4, memcmp.m4, mkdtemp.m4, mkstemp.m4, mountlist.m4:
1430         * nanosleep.m4, path-concat.m4, perl.m4, prereq.m4, putenv.m4:
1431         * quotearg.m4, regex.m4, stat.m4, stdint_h.m4, strftime.m4:
1432         * strtoimax.m4, strtoll.m4, strtoull.m4, strtoumax.m4, timespec.m4:
1433         * uintmax_t.m4, ulonglong.m4, unlink-busy.m4, unlocked-io.m4:
1434         * uptime.m4, utimbuf.m4, utime.m4, utimes-null.m4, vasnprintf.m4:
1435         * xstrtoimax.m4, xstrtol.m4, xstrtoumax.m4:
1436         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
1437
1438 2004-04-16  Jim Meyering  <jim@meyering.net>
1439
1440         * prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
1441         coreutils' stat program.
1442         (gl_PREREQ): Don't require jm_PREREQ_STAT.
1443
1444 2004-03-31  Jim Meyering  <jim@meyering.net>
1445
1446         * prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
1447         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
1448         * xalloc.m4: Likewise.
1449
1450 2004-03-30  Jim Meyering  <jim@meyering.net>
1451
1452         * realloc.m4: Remove file, since now it does no more than
1453         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
1454         the `configure.ac' section of module/realloc.
1455         * malloc.m4: Likewise, but for AC_FUNC_MALLOC.
1456
1457 2004-03-30  Paul Eggert  <eggert@twinsun.com>
1458
1459         Merge from coreutils.
1460
1461         * inttostr.m4: New file.
1462         * getdate.m4 (gl_GETDATE): Remove time-related stuff.
1463         Require AM_STDBOOL_H and gl_TIMESPEC instead.
1464         Require gl_CLOCK_TIME.
1465         * clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
1466
1467 2004-03-30  Jim Meyering  <jim@meyering.net>
1468
1469         Merge from coreutils.
1470
1471         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
1472         * ls-mntd-fs.m4: Test for sys/ucred.h separately, since
1473         on some systems one must include <grp.h> before it.
1474         Reported by Christian Krackowizer.
1475
1476 2004-03-29  Paul Eggert  <eggert@twinsun.com>
1477
1478         * cloexec.m4: New file.
1479
1480 2004-03-18  Paul Eggert  <eggert@twinsun.com>
1481             Bruno Haible  <bruno@clisp.org>
1482
1483         * mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
1484         mbswidth.
1485
1486 2004-03-07  Paul Eggert  <eggert@twinsun.com>
1487
1488         * c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
1489         All uses changed.  Check for sa_sigaction member; this fixes
1490         a bug first reported by Jason Andrade in
1491         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
1492
1493 2004-01-18  Simon Josefsson  <jas@extundo.com>
1494
1495         * strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
1496
1497 2004-02-18  Bruno Haible  <bruno@clisp.org>
1498
1499         * xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
1500         Reported by Derek Robert Price <derek@ximbiot.com>.
1501
1502 2004-02-06  Karl Berry  <karl@gnu.org>
1503
1504         * po.m4: update from gettext 0.14.1.
1505
1506 2004-02-03  Bruno Haible  <bruno@clisp.org>
1507
1508         * pipe.m4: New file, from GNU gettext.
1509
1510 2004-01-27  Bruno Haible  <bruno@clisp.org>
1511
1512         * execute.m4: New file, from GNU gettext.
1513
1514 2003-11-24  Bruno Haible  <bruno@clisp.org>
1515
1516         * allocsa.m4: New file, from GNU gettext.
1517
1518 2003-11-24  Bruno Haible  <bruno@clisp.org>
1519
1520         * eealloc.m4: New file, from GNU gettext.
1521
1522 2004-01-15  Paul Eggert  <eggert@twinsun.com>
1523
1524         Merge from coreutils.
1525
1526         * jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
1527         * posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
1528         (gl_DEFAULT_POSIX2_VERSION): Move
1529         the documentation from 'configure' into 'config.hin',
1530         so that 'configure --help' isn't burdened by it and
1531         we don't have to worry about its formatting there.
1532         Reword the documentation so that it's more succinct
1533         and can be run together into a single paragraph.
1534         * same.m4 (gl_SAME): Check for pathconf.
1535
1536 2004-01-15  Jim Meyering  <jim@meyering.net>
1537
1538         Merge from coreutils.
1539
1540         * clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
1541         if no library is required.
1542         * jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
1543         * jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
1544         * jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
1545         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
1546         * jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
1547         * lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
1548         value, $ac_cv_search_crypt, if it's "none required".
1549         * posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
1550         * prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
1551         not gl_FUNC_GETLOADAVG.
1552         * prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
1553         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
1554
1555 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
1556
1557         Merge from coreutils.
1558
1559         * nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
1560         value, $ac_cv_search_nanosleep, if it's "none required".
1561
1562 2003-12-03  Bruno Haible  <bruno@clisp.org>
1563
1564         * gettext.m4: Upgrade from gettext-0.13.
1565         * po.m4: Upgrade from gettext-0.13.
1566         * size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
1567         * intmax.m4: New file, from gettext-0.13.
1568         * printf-posix.m4: New file, from gettext-0.13.
1569
1570 2003-11-25  Bruno Haible  <bruno@clisp.org>
1571
1572         * vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
1573         gt_TYPE_SSIZE_T.
1574
1575 2003-11-17  Bruno Haible  <bruno@clisp.org>
1576
1577         * vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
1578
1579 2003-11-12  Paul Eggert  <eggert@twinsun.com>
1580
1581         * xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
1582         gl_PTRDIFF_MAX.
1583
1584 2003-11-11  Bruno Haible  <bruno@clisp.org>
1585
1586         * size_max.m4: New file.
1587         * ptrdiff_max.m4: New file.
1588         * xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
1589         * xalloc.m4 (gl_PREREQ_XALLOC): New macro.
1590         (gl_XALLOC): Invoke it.
1591
1592 2003-11-04  Bruno Haible  <bruno@clisp.org>
1593
1594         * xsize.m4: New file.
1595
1596 2003-11-03  Bruno Haible  <bruno@clisp.org>
1597
1598         * wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
1599
1600 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
1601
1602         * host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
1603         netbsd*-gnu*.  Suggested by Robert Millan.
1604
1605 2003-10-29  Paul Eggert  <eggert@twinsun.com>
1606
1607         * xalloc.m4 (gl_XALLOC): Undo previous change.
1608
1609 2003-10-29  Paul Eggert  <eggert@twinsun.com>
1610
1611         * host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
1612         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
1613         after the 'gnu' in these cases.  This fixes some bugs in the
1614         previous change, and is based on suggestions by Robert Millan.
1615
1616 2003-10-28  Paul Eggert  <eggert@twinsun.com>
1617
1618         * host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
1619         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
1620         NetBSD kernels.  Requested by Richard Stallman.
1621
1622 2003-10-26  Paul Eggert  <eggert@twinsun.com>
1623
1624         * xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
1625         now uses inline.
1626
1627 2003-10-23  Paul Eggert  <eggert@twinsun.com>
1628
1629         * getline.m4 (AM_FUNC_GETLINE):
1630         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
1631         hosts.  Problem reported by Derek Robert Price in
1632         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
1633         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
1634         * getndelim2.m4 (gl_GETNDELIM2): Likewise.
1635
1636 2003-10-20  Bruno Haible  <bruno@clisp.org>
1637
1638         * wait-process.m4: New file.
1639
1640 2003-10-14  Bruno Haible  <bruno@clisp.org>
1641
1642         * sig_atomic_t: New file, from GNU gettext.
1643         * fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
1644
1645 2003-10-12  Paul Eggert  <eggert@twinsun.com>
1646
1647         * xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
1648
1649 2003-10-10  Simon Josefsson  <jas@extundo.com>
1650
1651         * argp.m4: Add AC_C_INLINE.
1652
1653 2003-10-08  Paul Eggert  <eggert@twinsun.com>
1654
1655         * getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
1656
1657 2003-10-06  Bruno Haible  <bruno@clisp.org>
1658
1659         * fatal-signal.m4: New file.
1660         * signalblocking.m4: New file, from GNU gettext.
1661
1662 2003-09-27  Paul Eggert  <eggert@twinsun.com>
1663
1664         * free.m4: New file.
1665
1666 2003-09-26  Bruno Haible  <bruno@clisp.org>
1667
1668         * stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX stpncpy().
1669         Don't define stpncpy through config.h; it's now done through stpncpy.h.
1670
1671 2003-09-25  Simon Josefsson  <jas@extundo.com>
1672             Bruno Haible  <bruno@clisp.org>
1673
1674         * getdomainname.m4: New file.
1675
1676 2003-09-17  Paul Eggert  <eggert@twinsun.com>
1677
1678         * extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
1679         to avoid spurious warnings like "AC_RUN_IFELSE was called before
1680         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
1681
1682 2003-09-12  Paul Eggert  <eggert@twinsun.com>
1683
1684         * error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
1685
1686         * extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
1687         and AC_MINIX, too, so that their extensions are available.
1688
1689         * prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
1690         This macro has been superseded by gl_BACKUPFILE.
1691
1692         More patches to assume C89 or better.
1693
1694         * error.m4 (gl_ERROR): Don't check for vprintf.
1695
1696         * check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
1697         unconditionally.
1698         * closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
1699         * gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
1700         Include <string.h>, <stdlib.h> unconditionally.
1701         * lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
1702         * readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
1703         * readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C headers
1704         or for string.h.
1705         * strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
1706         or strtoul.
1707
1708         * mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C headers.
1709         * strdup.m4 (gl_PREREQ_STRDUP): Likewise.
1710         * userspec.m4 (gl_USERSPEC): Likewise.
1711         * xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
1712         * xstrtod.m4 (gl_XSTRTOD): Likewise.
1713         * xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
1714         * strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
1715         memcpy, memset.
1716         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
1717         * strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
1718         * strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h, strtol.
1719         * strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
1720         * userspec.m4 (gl_USERSPEC): Do not check for string.h.
1721         * xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
1722         strtoul.
1723
1724 2003-09-11  Paul Eggert  <eggert@twinsun.com>
1725
1726         More patches to assume C89 or better.
1727         * strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
1728         * strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
1729         string.h, memchr, STDC_HEADERS.
1730
1731 2003-09-10  Bruno Haible  <bruno@clisp.org>
1732
1733         * strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
1734         * strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
1735         * strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
1736         * unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
1737         * setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
1738         <stdlib.h> and <string.h> checks.
1739         * xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
1740         * yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
1741
1742 2003-09-09  Paul Eggert  <eggert@twinsun.com>
1743
1744         More patches to assume C89 or better.
1745         * getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
1746         * getopt.m4 (gl_GETOPT): Don't check for string.h.
1747         * getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
1748         or for string.h.
1749         * getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for stdlib.h.
1750         * group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard C
1751         headers.
1752         * hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
1753         string.h.
1754         * hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
1755         * human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
1756         * idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
1757         or for string.h.
1758         * long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
1759         * makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
1760         C headers.
1761         * md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
1762         memcpy.
1763         * sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
1764         * memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
1765         * memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
1766         * memcoll.m4 (gl_MEMCOLL): Likewise.
1767         * memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
1768         * mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
1769         string.h, free.
1770         * mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
1771         * modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
1772         * mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
1773         C headers, or for string.h.
1774         * obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
1775         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
1776         * path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
1777         headers, memory.h, stdlib.h, string.h, strings.h.
1778         * posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
1779         * posixver.m4 (gl_POSIXVER): Don't check for getenv.
1780         * putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
1781         strchr.
1782         * readtokens.m4 (gl_READTOKENS): Don't check for standard C
1783         headers, memory.h, string.h.
1784         * regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
1785         * rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
1786         free.
1787         * rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C headers.
1788         * same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
1789         * save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
1790         * savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
1791         * strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
1792         * xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
1793
1794 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
1795
1796         * getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
1797         C89 spec.
1798
1799 2003-09-08  Paul Eggert  <eggert@twinsun.com>
1800
1801         Assume C89 or better; remove K&R cruft.
1802         * alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
1803         * backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
1804         string.h, getenv, malloc.
1805         * dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
1806         headers.
1807         * canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
1808         * error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
1809         do not check for strerror.
1810         * exclude.m4: Do not check for stdlib.h, string.h, strings.h.
1811         * exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
1812         * fatal.m4 (gl_FATAL): Do not require STDC headers, and
1813         do not check for doprnt or vprintf.
1814         * fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
1815         * getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
1816
1817 2003-09-06  Paul Eggert  <eggert@twinsun.com>
1818
1819         * time_r.m4: New file.
1820         * mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
1821         * timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime is.
1822         Check for timegm declaration.
1823         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
1824         Do not check for gmtime_r.
1825         Replace mktime if __mktime_internal does not exist and if mktime
1826         hasn't been replaced already.
1827
1828 2003-08-31  Simon Josefsson  <jas@extundo.com>
1829
1830         * timegm.m4: New file.
1831
1832 2003-08-26  Bruno Haible  <bruno@clisp.org>
1833
1834         * fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
1835         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
1836         followed by '#define fnmatch fnmatch_posix' gives an error.
1837
1838 2003-08-27  Jim Meyering  <jim@meyering.net>
1839
1840         * mkstemp.m4: Require that the system mkstemp be able to create
1841         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
1842         would fail after 32.  Reported by Danny Levinson.  Details here:
1843         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
1844
1845 2003-08-20  Karl Berry  <karl@gnu.org>
1846
1847         * lib-ld.m4: serial 1003 from gettext, no changes besides serial.
1848
1849 2003-08-19  Jim Meyering  <jim@meyering.net>
1850
1851         * lib-ld.m4: Revert yesterday's change, per Bruno's request here:
1852         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
1853
1854 2003-08-19  Bruno Haible  <bruno@clisp.org>
1855
1856         * xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any more.
1857
1858 2003-08-18  Jim Meyering  <jim@meyering.net>
1859
1860         * getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
1861         * lib-ld.m4: Likewise.
1862
1863 2003-08-17  Simon Josefsson  <jas@extundo.com>
1864
1865         * argp.m4: New file.
1866
1867 2003-08-17  Simon Josefsson  <jas@extundo.com>
1868
1869         * xstrndup.m4: New file.
1870
1871 2003-08-16  Jim Meyering  <jim@meyering.net>
1872
1873         * utimes.m4 (gl_FUNC_UTIMES): New file.
1874         * utimes.m4: Removed.
1875         * utimes-null.m4: Renamed from utimes.m4.
1876
1877         * c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
1878         to 1MB, so as not to render systems with no stack size limit (e.g.,
1879         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
1880         Include <unistd.h>.  On some systems,
1881         it is required for the definition of _SC_PAGESIZE.
1882
1883 2003-08-16  Paul Eggert  <eggert@twinsun.com>
1884
1885         Merges from coreutils, etc.
1886         * rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
1887         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
1888         * readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
1889         fixing a typo.
1890         * host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
1891         * hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
1892
1893 2003-08-16  Jim Meyering  <jim@meyering.net>
1894         and Paul Eggert  <eggert@cs.ucla.edu>
1895
1896         Merges from coreutils, etc.
1897
1898         * jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
1899         using the latest version from cvs.  This avoids problems with #line
1900         directives using a vendor (Sun) compiler.
1901         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
1902         Don't set GETGROUPS_LIB here; now it's
1903         done via getgroups.m4's wrapper function.
1904         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
1905         rather than just in sh-util/configure.in, so that the
1906         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
1907         same.
1908         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
1909         AC_FUNC_GETLOADAVG where to find getloadavg.c.
1910         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
1911         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
1912         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
1913         Remove code that is now done by the newly-required macros.
1914         Append $(EXEEXT) to DF_PROG.
1915         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
1916         Do not invoke or require the following here,
1917         since prereq.m4 or some gnulib .m4 now does this for us:
1918         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
1919         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
1920         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
1921         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
1922         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
1923         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
1924         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
1925         AC_FUNC_OBSTACK.
1926         Do not replace the following functions, as this is now the job
1927         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
1928         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
1929         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
1930         atexit getpass, strdup, getpagesize.
1931         Replace 'raise'.
1932         Do not check for the following functions, as this is now the job
1933         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
1934         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
1935         setregid.
1936         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
1937         Check for sys/sysctl.h.
1938         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
1939         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
1940         of checking for ssize_t ourselves.
1941
1942         * prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
1943         Require every macro that gnulib/modules/* suggests for us.
1944         (jm_PREREQ_ADDEXT): New macro.
1945         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
1946         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
1947
1948         * physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
1949         (gl_PHYSMEM): Use it.
1950         Also check for `table' function.
1951         Check for new headers and functions.
1952         Add check for sys/sysmp.h.
1953         With suggestions from Kaveh Ghazi.
1954         Ignore headers that are present but cannot be compiled.  This
1955         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
1956         C 5.4.
1957
1958 2003-08-16  Jim Meyering  <jim@meyering.net>
1959
1960         Merges from coreutils.
1961         * readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
1962         prefix.  Adjust cache variables similarly.  Create 500 rather than
1963         just 300 files, to exercise bug on Darwin6.5, too.
1964         * perl.m4 (jm_PERL): Use $am_missing_run, not undefined $missing_dir.
1965         * jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not AM_SYS_POSIX_TERMIOS.
1966         Reported by mkc@mathdogs.com.
1967         Also change use of $am_cv_sys_posix_termios
1968         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
1969         * getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
1970         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
1971         * fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point in
1972         /proc/mounts until it finds one with matching device number.  This is
1973         unnecessary when the FILE argument *is* a mount point.  No stat call
1974         is necessary in that case.  So, disable the statvfs-testing code on
1975         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
1976         as RedHat bug# 84846.
1977         * c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
1978         to 1MB, so as not to render systems with no stack size limit (e.g.,
1979         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
1980         Include <unistd.h>.  On some systems,
1981         it is required for the definition of _SC_PAGESIZE.
1982
1983 2003-08-15  Jim Meyering  <jim@meyering.net>
1984         and Paul Eggert  <eggert@cs.ucla.edu>
1985
1986         Merges from coreutils, etc.
1987         * strftime.m4 (_jm_STRFTIME_PREREQS):
1988         Require gl_FUNC_TZSET_CLOBBER.
1989         * readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit, ut_exit.e_exit,
1990         ut_exit.ut_termination, and ut_exit.e_termination members.
1991
1992 2003-08-14  Paul Eggert  <eggert@twinsun.com>
1993
1994         Help the merge from coreutils.
1995         * gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
1996         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
1997         * tzset.m4: Use it too.
1998
1999 2003-08-14  Jim Meyering  <jim@meyering.net>
2000
2001         Merge from coreutils.
2002         * tzset.m4: New file.
2003         * ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the MOUNTED_VMOUNT
2004         test to precede the MOUNTED_GETMNTENT1 tests, since otherwise, AIX 5.1
2005         systems would end up using the latter.  MOUNTED_GETMNTENT1 support
2006         is inadequate on such systems: 1) detecting whether a file system
2007         is remote doesn't work  2) the MOUNTED_VMOUNT code reports the
2008         HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1 code reports
2009         merely /MOUNT_POINT.  Reported by Mike Jetzer.
2010
2011 2003-08-13  Paul Eggert  <eggert@twinsun.com>
2012
2013         * exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
2014         Check for isascii.
2015
2016         * gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
2017         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
2018         Undo previous (whitespace-only) change.
2019
2020 2003-08-12  Paul Eggert  <eggert@twinsun.com>
2021
2022         * gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
2023         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
2024         Normalize leading white space and remove trailing white space.
2025
2026         Merge from coreutils
2027         * euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
2028
2029         * lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
2030         0.12.1.  These files are now being upgraded automatically by
2031         ../config/srclist-update.
2032
2033 2003-08-11  Bruno Haible  <bruno@clisp.org>
2034
2035         * vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
2036
2037 2003-08-09  Paul Eggert  <eggert@twinsun.com>
2038
2039         * regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
2040         apparently Emacs's Unicode mode got confused before my 2003-08-05
2041         checkin.
2042
2043 2003-08-08  Paul Eggert  <eggert@twinsun.com>
2044
2045         * extensions.m4: New file.
2046         * timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
2047         Require gl_USE_SYSTEM_EXTENSIONS.
2048         * unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
2049         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
2050
2051 2003-08-07  Paul Eggert  <eggert@twinsun.com>
2052
2053         * restrict.m4: New file.
2054         * regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
2055
2056 2003-08-07  Bruno Haible  <bruno@clisp.org>
2057
2058         * getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This makes
2059         the module 'getndelim2' compatible with the module 'getline'.
2060
2061 2003-08-05  Paul Eggert  <eggert@twinsun.com>
2062
2063         * regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
2064         byte with "\201" to avoid glitches when editing that source file
2065         with multi-gnome-terminal.
2066
2067 2003-07-31  Bruno Haible  <bruno@clisp.org>
2068
2069         * getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
2070
2071 2003-07-18  Bruno Haible  <bruno@clisp.org>
2072
2073         * getndelim2.m4: New file.
2074         * getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
2075         invoke gl_PREREQ_GETNDELIM2.
2076         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
2077         gl_PREREQ_GETNDELIM2.
2078         * getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
2079         gl_GETNDELIM2.
2080
2081 2003-07-17  Bruno Haible  <bruno@clisp.org>
2082
2083         * Makefile.am.in: Remove file.
2084         * Makefile.am: Remove file.
2085         * Makefile.in: Remove file.
2086
2087 2003-07-17  Bruno Haible  <bruno@clisp.org>
2088
2089         * getnline.m4: New file.
2090
2091 2003-07-14  Simon Josefsson  <jas@extundo.com>
2092
2093         * mempcpy.m4: New file.
2094
2095 2003-07-10  Jim Meyering  <jim@meyering.net>
2096
2097         * clock_time.m4: Remove trailing blank.
2098         * intmax_t.m4: Likewise.
2099
2100 2003-07-01  Paul Eggert  <eggert@twinsun.com>
2101
2102         * xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
2103         xreadlink.c now includes it unconditionally.
2104
2105 2003-07-01  Bruno Haible  <bruno@clisp.org>
2106
2107         * ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>. <sys/types.h>
2108         should be sufficient.
2109         Reported by Paul Eggert.
2110
2111 2003-06-25  Bruno Haible  <bruno@clisp.org>
2112
2113         * readlink.m4: New file.
2114
2115 2003-06-22  Bruno Haible  <bruno@clisp.org>
2116
2117         Portability to mingw32.
2118         * ssize_t.m4: New file, from GNU gettext.
2119         * safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
2120         * xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
2121
2122 2003-06-11  Bruno Haible  <bruno@clisp.org>
2123
2124         * sysexits.m4: New file.
2125
2126 2003-06-10  Simon Josefsson  <jas@extundo.com>
2127
2128         * strchrnul.m4: New file.
2129
2130 2003-06-07  Bruno Haible  <bruno@clisp.org>
2131
2132         * fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
2133         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
2134         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
2135         directory.
2136         * poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
2137         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
2138         directory.
2139
2140 2003-06-04  Paul Eggert  <eggert@twinsun.com>
2141
2142         * human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
2143         locale.h, localeconv.  This merges changes from coreutils.
2144
2145         * mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
2146         It can be removed after the next Autoconf is released.
2147         * exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
2148         needed.
2149
2150 2003-05-30  Bruno Haible  <bruno@clisp.org>
2151
2152         * gettext.m4: Upgrade to gettext-0.12.1.
2153         * nls.m4: New file, from gettext-0.12.1.
2154         * po.m4: New file, from gettext-0.12.1.
2155         * progtest.m4: Upgrade to gettext-0.12.1.
2156
2157 2003-05-28  Paul Eggert  <eggert@twinsun.com>
2158
2159         Assume the headers required for C89 freestanding compilers.
2160         * backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
2161         * fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
2162         * human.m4 (gl_HUMAN): Likewise.
2163         * pathmax.m4 (gl_PATHMAX): Likewise.
2164         * rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
2165         * userspec.m4 (gl_USERSPEC): Likewise.
2166         * xreadlink.m4 (gl_XREADLINK): Likewise.
2167         * xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
2168         * quote.m4 (gl_QUOTE): Don't check for stddef.h.
2169
2170 2003-05-26  Jim Meyering  <jim@meyering.net>
2171
2172         Merge in a change from coreutils:
2173         * dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
2174         that is guaranteed to be `no'.  Use `no_such_member' to indicate
2175         that condition, rather than `-1' which is slightly misleading.
2176         Change the name of the cache variable to have the gl_ prefix.
2177         Prompted by a patch from Richard Dawe for DJGPP.
2178
2179 2003-05-17  Bruno Haible  <bruno@clisp.org>
2180
2181         * dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an invalid
2182         expansion for AC_EGREP_CPP.
2183         * strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
2184         * strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
2185         Suggested by Akim Demaille <akim@epita.fr> in
2186         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
2187
2188 2003-04-21  Paul Eggert  <eggert@twinsun.com>
2189
2190         * error.m4 (gl_ERROR): Do not put under dynamic conditions some
2191         code which expansion is under static control.  Patch imported from
2192         Akim Demaille's patch to Bison; see
2193         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
2194
2195 2003-04-14  Bruno Haible  <bruno@clisp.org>
2196
2197         * error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
2198
2199 2003-04-10  Bruno Haible  <bruno@clisp.org>
2200
2201         * findprog.m4: New file.
2202         * eaccess.m4: New file.
2203
2204 2003-04-04  Bruno Haible  <bruno@clisp.org>
2205
2206         * linebreak.m4: New file.
2207
2208 2003-04-03  Bruno Haible  <bruno@clisp.org>
2209
2210         * utf-ucs4.m4: New file.
2211         * ucs4-utf.m4: New file.
2212
2213 2003-03-30  Bruno Haible  <bruno@clisp.org>
2214
2215         * copy-file.m4 (gl_COPY_FILE): Add check for chown().
2216
2217 2003-03-28  Bruno Haible  <bruno@clisp.org>
2218
2219         * copy-file.m4: New file.
2220
2221 2003-03-18  Bruno Haible  <bruno@clisp.org>
2222
2223         * onceonly.m4: Use m4_defn instead of defn, for better error checking.
2224         * onceonly_2_57.m4: Likewise.
2225
2226 2003-03-17  Bruno Haible  <bruno@clisp.org>
2227
2228         * onceonly.m4: Require autoconf 2.54 or newer.
2229         (m4_quote): Remove macro.
2230         * onceonly_2_57.m4: Require autoconf 2.54 or newer.
2231
2232 2003-03-14  Bruno Haible  <bruno@clisp.org>
2233
2234         * onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
2235         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
2236
2237 2003-03-13  Paul Eggert  <eggert@twinsun.com>
2238
2239         * onceonly.m4 (m4_quote): New macro.
2240         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
2241         Quote AC_FOREACH variable-expansions properly.
2242
2243 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
2244
2245         * poll.m4: New file.
2246
2247 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
2248
2249         * mathl.m4: New file.
2250
2251 2003-02-17  Bruno Haible  <bruno@clisp.org>
2252
2253         * mkdtemp.m4: New file, from GNU gettext with modifications.
2254
2255 2003-02-02  Jim Meyering  <jim@meyering.net>
2256
2257         * regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
2258         e.g. glibc-2.2.93.
2259
2260 2003-01-31  Bruno Haible  <bruno@clisp.org>
2261
2262         * rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
2263         'rpl_rename'.
2264         * strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
2265         'rpl_strnlen'.
2266         * strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
2267         'rpl_strtod'.
2268         * utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
2269         'rpl_utime'.
2270
2271 2003-01-30  Bruno Haible  <bruno@clisp.org>
2272
2273         * signed.m4: New file, from GNU gettext.
2274         * longdouble.m4: New file, from GNU gettext.
2275         * wchar_t.m4: New file, from GNU gettext.
2276         * wint_t.m4: New file, from GNU gettext.
2277         * vasnprintf.m4: New file.
2278         * vasprintf.m4: New file.
2279
2280 2003-01-29  Bruno Haible  <bruno@clisp.org>
2281
2282         * stpncpy.m4: New file.
2283
2284 2003-01-23  Jim Meyering  <jim@meyering.net>
2285
2286         * dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
2287         from working on systems without dirfd (at least Irix and OSF1/Tru64).
2288
2289 2003-01-16  Jim Meyering  <jim@meyering.net>
2290
2291         * regex.m4: The `regex' struct is both input and output.
2292         Initialize it before each use.  Patch by Tim Waugh.
2293
2294 2003-01-11  Bruno Haible  <bruno@clisp.org>
2295
2296         * longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
2297         * ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
2298         suffix.
2299
2300 2003-01-11  Bruno Haible  <bruno@clisp.org>
2301
2302         * md5.m4 (gl_MD5): Require AC_C_INLINE.
2303
2304 2003-01-11  Bruno Haible  <bruno@clisp.org>
2305
2306         * alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
2307
2308 2003-01-12  Paul Eggert  <eggert@twinsun.com>
2309
2310         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
2311         to avoid collisions with libcurses and libreadline.
2312
2313         * getstr.m4: Remove.
2314         * getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
2315
2316 2003-01-10  Bruno Haible  <bruno@clisp.org>
2317
2318         * alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
2319
2320 2003-01-09  Bruno Haible  <bruno@clisp.org>
2321
2322         * stdbool.m4 (AM_STDBOOL_H): New macro.
2323
2324 2002-12-31  Paul Eggert  <eggert@twinsun.com>
2325
2326         * memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
2327
2328 2002-12-24  Bruno Haible  <bruno@clisp.org>
2329
2330         General infrasructure.
2331         * README: Rewritten.
2332         * onceonly.m4: New file.
2333         * onceonly_2_57.m4: New file.
2334
2335         Module atexit.
2336         * atexit.m4: New file.
2337
2338         Module strtod.
2339         * strtod.m4: New file.
2340
2341         Module strtol.
2342         * strtol.m4: New file.
2343
2344         Module strtoul.
2345         * strtoul.m4: New file.
2346
2347         Module memchr.
2348         * memchr.m4: New file.
2349
2350         Module memcmp.
2351         * memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
2352         (jm_FUNC_MEMCMP): Invoke it.
2353
2354         Module memcpy.
2355         * memcpy.m4: New file.
2356
2357         Module memmove.
2358         * memmove.m4: New file.
2359
2360         Module memset.
2361         * memset.m4: New file.
2362
2363         Module strcspn.
2364         * strcspn.m4: New file.
2365
2366         Module strpbrk.
2367         * strpbrk.m4: New file.
2368
2369         Module strstr.
2370         * strstr.m4: New file.
2371
2372         Module strerror.
2373         * strerror.m4: New file.
2374
2375         Module mktime.
2376         * mktime.m4: Renamed from jm-mktime.m4.
2377         (gl_PREREQ_MKTIME): New macro.
2378         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
2379
2380         Module malloc.
2381         * malloc.m4 (gl_PREREQ_MALLOC): New macro.
2382         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
2383         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
2384
2385         Module realloc.
2386         * realloc.m4 (gl_PREREQ_REALLOC): New macro.
2387         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
2388         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
2389
2390         Module strftime.
2391         * tm_gmtoff.m4: New file, extracted from strftime.m4.
2392         * strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
2393         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
2394         gl_TM_GMTOFF.
2395         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
2396
2397         Module xalloc.
2398         * xalloc.m4: New file.
2399
2400         Module alloca.
2401         * alloca.m4: New file.
2402
2403         Module putenv.
2404         * putenv.m4 (gl_PREREQ_PUTENV): New macro.
2405         (jm_FUNC_PUTENV): Invoke it.
2406
2407         Module setenv.
2408         * setenv.m4 (gt_FUNC_SETENV): New macro.
2409         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
2410         when invoked twice.
2411         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
2412         gt_FUNC_SETENV.
2413
2414         Module memrchr.
2415         * memrchr.m4: New file.
2416
2417         Module stpcpy.
2418         * stpcpy.m4: New file.
2419
2420         Module strcase.
2421         * strcase.m4: New file.
2422
2423         Module strdup.
2424         * strdup.m4: New file.
2425
2426         Module strnlen.
2427         * strnlen.m4: New file.
2428
2429         Module strndup.
2430         * strndup.m4: New file.
2431
2432         Module xstrtod.
2433         * xstrtod.m4: New file.
2434
2435         Module xstrtol.
2436         * xstrtol.m4: New file.
2437
2438         Module getdate.
2439         * getdate.m4: New file.
2440
2441         Module unlocked-io.
2442         * unlocked-io.m4: Renamed from jm-glibc-io.m4.
2443         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
2444         * jm-glibc-io.m4n: Remove file.
2445
2446         Module long-options.
2447         * long-options.m4: New file.
2448
2449         Module md5.
2450         * md5.m4: New file.
2451
2452         Module sha.
2453         * sha.m4: New file.
2454
2455         Module getstr.
2456         * getstr.m4: New file.
2457
2458         Module getline.
2459         * getline.m4 (gl_PREREQ_GETLINE): New macro.
2460         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
2461         <sys/types.h>, for size_t. Use the function name gnu_getline, not
2462         simply getline. Infoke gl_PREREQ_GETLINE.
2463
2464         Module obstack.
2465         * obstack.m4: New file.
2466
2467         Module hash.
2468         * hash.m4: New file.
2469
2470         Module readtokens.
2471         * readtokens.m4: New file.
2472
2473         Module strverscmp.
2474         * strverscmp.m4: New file.
2475
2476         Module stdbool.
2477         * stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for OSF/1.
2478
2479         Module strtoll.
2480         * strtoll.m4: New file.
2481
2482         Module strtoull.
2483         * strtoull.m4: New file.
2484
2485         Module strtoimax.
2486         * strtoimax.m4: New file.
2487
2488         Module strtoumax.
2489         * strtoumax.m4: New file.
2490
2491         Module xstrtoimax.
2492         * xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from jm_AC_PREREQ_XSTRTOIMAX.
2493         Moved the strtol prerequisites to strtol.m4.
2494         Moved the strtoll prerequisites to strtoll.m4.
2495         Moved the strtoimax prerequisites to strtoimax.m4.
2496
2497         Module xstrtoumax.
2498         * xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from jm_AC_PREREQ_XSTRTOUMAX.
2499         Moved the strtoul prerequisites to strtoul.m4.
2500         Moved the strtoull prerequisites to strtoull.m4.
2501         Moved the strtoumax prerequisites to strtoumax.m4.
2502
2503         Module chown.
2504         * chown.m4 (gl_PREREQ_CHOWN): New macro.
2505         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
2506
2507         Module dup2.
2508         * dup2.m4: New file.
2509
2510         Module ftruncate.
2511         * ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
2512         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
2513
2514         Module getgroups.
2515         * getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
2516         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
2517
2518         Module gettimeofday.
2519         * gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
2520         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
2521         gl_PREREQ_GETTIMEOFDAY.
2522
2523         Module mkdir.
2524         * mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
2525         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
2526
2527         Module mkstemp.
2528         * mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
2529         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
2530         jm_AC_TYPE_UINTMAX_T.
2531         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
2532
2533         Module stat.
2534         * stat.m4 (gl_PREREQ_STAT): New macro.
2535         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
2536
2537         Module lstat.
2538         * lstat.m4 (gl_PREREQ_LSTAT): New macro.
2539         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
2540
2541         Module timespec.
2542         * timespec.m4 (gl_TIMESPEC): New macro.
2543         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
2544         * st_mtim.m4: Indentation.
2545
2546         Module nanosleep.
2547         * nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
2548         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
2549         gl_PREREQ_NANOSLEEP.
2550
2551         Module regex.
2552         * regex.m4 (jm_PREREQ_REGEX): New macro.
2553         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
2554         (gl_REGEX): New macro.
2555
2556         Module rename.
2557         * rename.m4 (gl_PREREQ_RENAME): New macro.
2558         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
2559
2560         Module rmdir.
2561         * rmdir.m4: New file.
2562
2563         Module utime.
2564         * utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
2565         * utime.m4 (gl_PREREQ_UTIME): New macro.
2566         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
2567
2568         Module dirname.
2569         * dirname.m4: New file.
2570
2571         Module getopt.
2572         * getopt.m4: New file.
2573
2574         Module unistd-safer.
2575         * unistd-safer.m4: New file.
2576
2577         Module fnmatch.
2578         * fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
2579         declaration.
2580         (gl_PREREQ_FNMATCH_EXTRA): New macro.
2581         (gl_FUNC_FNMATCH_POSIX): New macro.
2582         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
2583         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
2584         simply fnmatch.
2585
2586         Module exclude.
2587         * exclude.m4: New file.
2588
2589         Module human.
2590         * human.m4: New file.
2591
2592         Module acl.
2593         * acl.m4: Nop.
2594
2595         Module backupfile.
2596         * backupfile.m4: New file.
2597         * d-ino.m4: Indentation.
2598
2599         Module fsusage.
2600         * fsusage.m4 (gl_FSUSAGE): New macro.
2601         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
2602         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
2603
2604         Module dirfd.
2605         * dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP requirements.
2606
2607         Module euidaccess.
2608         * euidaccess.m4: New file.
2609
2610         Module file-type.
2611         * file-type.m4: New file.
2612
2613         Module fileblocks.
2614         * fileblocks.m4: New file.
2615
2616         Module filemode.
2617         * filemode.m4: New file.
2618
2619         Module isdir.
2620         * isdir.m4: New file.
2621
2622         Module lchown.
2623         * lchown.m4 (gl_PREREQ_LCHOWN): New macro.
2624         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
2625
2626         Module makepath.
2627         * makepath.m4: New file.
2628
2629         Module modechange.
2630         * modechange.m4: New file.
2631
2632         Module mountlist.
2633         * mountlist.m4: New file.
2634         * ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
2635         Indentation.
2636
2637         Module path-concat.
2638         * path-concat.m4: New file.
2639
2640         Module pathmax.
2641         * pathmax.m4: New file.
2642
2643         Module same.
2644         * same.m4: New file.
2645
2646         Module save-cwd.
2647         * save-cwd.m4: New file.
2648
2649         Module savedir.
2650         * savedir.m4: New file.
2651
2652         Module xgetcwd.
2653         * xgetcwd.m4: New file.
2654         * getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
2655
2656         Module xreadlink.
2657         * xreadlink.m4: New file.
2658
2659         Module safe-read.
2660         * safe-read.m4: New file.
2661
2662         Module safe-write.
2663         * safe-write.m4: New file.
2664
2665         Module closeout.
2666         * closeout.m4: New file.
2667
2668         Module stdio-safer.
2669         * stdio-safer.m4: New file.
2670
2671         Module getpass.
2672         * getpass.m4: New file.
2673
2674         Module getugroups.
2675         * getugroups.m4: New file.
2676
2677         Module group-member.
2678         * group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
2679         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
2680
2681         Module idcache.
2682         * idcache.m4: New file.
2683
2684         Module userspec.
2685         * userspec.m4: New file.
2686
2687         Module gettime.
2688         * clock_time.m4: New file.
2689         * gettime.m4: New file.
2690
2691         Module settime.
2692         * settime.m4: New file.
2693
2694         Module posixtm.
2695         * posixtm.m4: New file.
2696
2697         Module gethostname.
2698         * gethostname.m4: New file.
2699
2700         Module canon-host.
2701         * canon-host.m4: New file.
2702
2703         Module gettext.
2704         * codeset.m4: New file, from gettext-0.11.5.
2705         * gettext.m4: New file, from gettext-0.11.5.
2706         * glibc21.m4: New file, from gettext-0.11.5.
2707         * iconv.m4: New file, from gettext-0.11.5.
2708         * intdiv0.m4: New file, from gettext-0.11.5.
2709         * inttypes-pri.m4: New file, from gettext-0.11.5.
2710         * inttypes.m4: New file, from gettext-0.11.5.
2711         * inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
2712         * isc-posix.m4: New file, from gettext-0.11.5.
2713         * lcmessage.m4: New file, from gettext-0.11.5.
2714         * lib-ld.m4: New file, from gettext-0.11.5.
2715         * lib-link.m4: New file, from gettext-0.11.5.
2716         * lib-prefix.m4: New file, from gettext-0.11.5.
2717         * progtest.m4: New file, from gettext-0.11.5.
2718         * stdint_h.m4: New file, from gettext-0.11.5 with modifications.
2719         * uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
2720         * ulonglong.m4: New file, from gettext-0.11.5 with modifications.
2721
2722         Module localcharset.
2723         * localcharset.m4: New file.
2724
2725         Module hard-locale.
2726         * hard-locale.m4: New file.
2727
2728         Module mbswidth.
2729         * mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
2730         onceonly macros.
2731         * mbrtowc.m4: Add comment.
2732
2733         Module memcasecmp.
2734         * memcasecmp.m4: New file.
2735
2736         Module memcoll.
2737         * memcoll.m4: New file.
2738
2739         Module unicodeio.
2740         * unicodeio.m4: New file.
2741
2742         Module rpmatch.
2743         * rpmatch.m4: New file.
2744
2745         Module yesno.
2746         * yesno.m4: New file.
2747
2748         Module exitfail.
2749         * exitfail.m4: New file.
2750
2751         Module c-stack.
2752         * c-stack.m4 (gl_C_STACK): New macro.
2753         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
2754
2755         Module error.
2756         * error.m4 (gl_ERROR): New macro.
2757         (jm_PREREQ_ERROR): Use onceonly macros.
2758
2759         Module fatal.
2760         * fatal.m4: New file.
2761
2762         Module getloadavg.
2763         * getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
2764         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
2765
2766         Module getpagesize.
2767         * getpagesize.m4: New file.
2768
2769         Module getusershell.
2770         * getusershell.m4: New file.
2771
2772         Module physmem.
2773         * physmem.m4: New file.
2774
2775         Module posixver.
2776         * posixver.m4: New file.
2777
2778         Module quotearg.
2779         * quotearg.m4: New file.
2780
2781         Module quote.
2782         * quote.m4: New file.
2783
2784         Module readutmp.
2785         * readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
2786
2787         Module sig2str.
2788         * sig2str.m4: New file.
2789
2790         Other.
2791         * longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
2792         ulonglong.m4.
2793         * intmax_t.m4: New file.
2794         * d-type.m4: Indentation.
2795         * jm-macros.m4: Update.
2796         * prereq.m4 (jm_PREREQ): Update.
2797         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
2798         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
2799         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
2800         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
2801         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
2802         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
2803         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
2804         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
2805         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
2806         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
2807         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
2808         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
2809         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
2810         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
2811         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
2812         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
2813         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
2814         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
2815         * readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
2816
2817 2002-12-18  Bruno Haible  <bruno@clisp.org>
2818
2819         * strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
2820         * jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
2821
2822 2002-12-17  Bruno Haible  <bruno@clisp.org>
2823
2824         * mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
2825         stdlib.h, string.h.
2826
2827 2002-12-11  Bruno Haible  <bruno@clisp.org>
2828
2829         * setenv.m4: New file, from gettext-0.11.5.
2830
2831 2002-12-06  Paul Eggert  <eggert@twinsun.com>
2832
2833         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
2834         a pain in practice to deal with generated m4 files.  This change
2835         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
2836
2837         * Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
2838         and jm-glibc-io.m4, as they are no longer a special case.
2839         * jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
2840         kludge and the auto-generation stuff.  Check only whether the
2841         functions are declared, not whether they exist, since older hosts
2842         that don't declare the functions can't use the optimization anyway.
2843
2844 2002-07-06  Jim Meyering  <meyering@lucent.com>
2845
2846         * README: Don't mention Makefile.am.in.
2847         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
2848
2849 2002-06-11  Paul Eggert  <eggert@twinsun.com>
2850
2851         * fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
2852
2853 2002-06-22  Jim Meyering  <meyering@lucent.com>
2854
2855         * c-stack.m4: New file, from diffutils-2.8.2.
2856         * prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
2857
2858         * jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
2859         now that configure.ac uses AC_GNU_SOURCE.
2860         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
2861         * prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
2862
2863         Update to latest tools.  Suggestions from Paul Eggert.
2864         * stdbool.m4: New file, from diffutils-2.8.2.
2865         * gnu-source.m4: Update from diffutils-2.8.2.
2866         * fnmatch.m4: Likewise.
2867         * prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
2868         to AC_HEADER_STDBOOL
2869
2870 2002-06-21  Jim Meyering  <meyering@lucent.com>
2871
2872         * c-bs-a.m4: Add comment, from diffutils-2.8.2.
2873         * mbrtowc.m4: Likewise.
2874
2875         * mbstate_t.m4: Update from diffutils-2.8.2.
2876         * mbswidth.m4: Reflect name change:
2877         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
2878         * prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
2879
2880         * lib-link.m4: Update from gettext-0.11.2.
2881         * gettext.m4: Likewise.
2882
2883         * jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
2884         From Alfred M. Szmidt.
2885
2886 2002-05-19  Paul Eggert  <eggert@twinsun.com>
2887
2888         * jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
2889
2890 2002-06-07  Jim Meyering  <meyering@lucent.com>
2891
2892         * prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
2893         They're needed at least for NetBSD 1.5.2.
2894         ($statxfs_includes): Include those same headers.
2895         ($statxfs_includes): Include sys/vfs.h if available.
2896         ($statxfs_includes): Likewise for sys/statvfs.h.
2897         Check for the following members in both structs statfs and statvfs:
2898         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
2899
2900 2002-06-01  Jim Meyering  <meyering@lucent.com>
2901
2902         * d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
2903         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
2904
2905 2002-05-28  Jim Meyering  <meyering@lucent.com>
2906
2907         * readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
2908         Reported by Volker Borchert.
2909
2910 2002-05-27  Jim Meyering  <meyering@lucent.com>
2911
2912         * gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
2913         localtime.
2914
2915         * readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
2916         use the replacement function; it wouldn't resolve at link time.
2917         Reported by Volker Borchert.
2918
2919 2002-04-30  Jim Meyering  <meyering@lucent.com>
2920
2921         * prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
2922
2923 2002-04-29  Paul Eggert  <eggert@twinsun.com>
2924
2925         * prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
2926         Do not check for alloca.h (no longer used) or stdbool.h (was never
2927         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
2928
2929 2002-04-28  Paul Eggert  <eggert@twinsun.com>
2930
2931         * prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
2932
2933 2002-04-29  Jim Meyering  <meyering@lucent.com>
2934
2935         * jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
2936         * prereq.m4: Add jm_PREREQ_STRNLEN.
2937         Use AC_FUNC_STRNLEN here instead.
2938
2939         * jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
2940         With autoconf-2.53a, it's part of AC_PROG_CC.
2941
2942 2002-04-28  Paul Eggert  <eggert@twinsun.com>
2943
2944         * jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
2945         * prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
2946
2947 2002-04-24  Jim Meyering  <meyering@lucent.com>
2948
2949         * prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
2950         (jm_PREREQ): Use it.
2951
2952         * getloadavg.m4: Check for these headers: locale.h unistd.h
2953         mach/mach.h fcntl.h.
2954         Check for this function: setlocale.
2955
2956 2002-04-16  Jim Meyering  <meyering@lucent.com>
2957
2958         * prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
2959         ut_pid, ut_id, ut_exit.
2960
2961 2002-04-12  Jim Meyering  <meyering@lucent.com>
2962
2963         * ls-mntd-fs.m4 (checking for getmntinfo function...): Remove now-bogus
2964         check for f_type in sys/mount.h.  Instead, just test for the existence
2965         of the getmntinfo function.  Needed for Darwin 5.3.
2966
2967         * dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
2968         This is necessary at least on Darwin 5.3.
2969
2970         * jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
2971         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of strnlen.o
2972         in the library, and that makes some versions of ranlib object.
2973
2974 2002-04-09  Jim Meyering  <meyering@lucent.com>
2975
2976         * malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
2977         to be more precise.  Rather than saying we're checking whether the
2978         function `works', say what we're testing.
2979         * realloc.m4 (jm_FUNC_REALLOC): Likewise.
2980         Reported by Bruno Haible.
2981
2982 2002-02-27  Paul Eggert  <eggert@twinsun.com>
2983
2984         * jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
2985         Check for clock_settime.
2986
2987 2002-02-25  Paul Eggert  <eggert@twinsun.com>
2988
2989         * acl.m4: New file.
2990         * jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
2991         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
2992
2993 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
2994
2995         * codeset.m4: Upgrade to gettext-0.11.
2996         * gettext.m4: Upgrade to gettext-0.11.
2997         * glibc21.m4: Upgrade to gettext-0.11.
2998         * iconv.m4: Upgrade to gettext-0.11.
2999         * isc-posix.m4: Upgrade to gettext-0.11.
3000         * lcmessage.m4: Upgrade to gettext-0.11.
3001         * lib-ld.m4: New file, from gettext-0.11.
3002         * lib-link.m4: New file, from gettext-0.11.
3003         * lib-prefix.m4: New file, from gettext-0.11.
3004         * progtest.m4: Upgrade to gettext-0.11.
3005
3006 2002-02-15  Paul Eggert  <eggert@twinsun.com>
3007
3008         * prereq.m4 (jm_PREREQ_POSIXVER): New macro.
3009         (jm_PREREQ): Use it.
3010
3011 2002-01-26  Jim Meyering  <meyering@lucent.com>
3012
3013         * jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
3014         * strnlen.m4: Remove file, now that it's part of autoconf.
3015
3016 2002-01-22  Paul Eggert  <eggert@twinsun.com>
3017
3018         * jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
3019
3020 2002-01-19  Jim Meyering  <meyering@lucent.com>
3021
3022         * jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
3023         Remove useless quotes: DF_PROG="df".
3024         * strnlen.m4: New file.
3025
3026 2001-12-14  Jim Meyering  <meyering@lucent.com>
3027
3028         * jm-macros.m4 (jm_MACROS): Check for iswspace.
3029         Suggestion from Bruno Haible.
3030
3031 2001-11-20  Jim Meyering  <meyering@lucent.com>
3032
3033         * mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
3034         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
3035
3036 2001-11-19  Jim Meyering  <meyering@lucent.com>
3037
3038         * mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
3039         directory.  Use "conftestXXXXXX" as the template.
3040         Suggestion from Paul Eggert.
3041
3042         * mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor immediately,
3043         so the test doesn't mistakenly hit the max-open-files limit.
3044
3045 2001-11-18  Jim Meyering  <meyering@lucent.com>
3046
3047         * prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
3048
3049 2001-11-17  Jim Meyering  <meyering@lucent.com>
3050
3051         * mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
3052         Prompted by a report from Bob Proulx.
3053
3054         * jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
3055         Instead, require UTILS_FUNC_MKSTEMP.
3056
3057 2001-11-11  Jim Meyering  <meyering@lucent.com>
3058
3059         * jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
3060         Now, that's done as part of AC_FUNC_STRTOD.
3061
3062 2001-10-22  Paul Eggert  <eggert@twinsun.com>
3063
3064         * jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
3065         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
3066
3067 2001-11-10  Jim Meyering  <meyering@lucent.com>
3068
3069         * prereq.m4 (jm_PREREQ_PHYSMEM): New function.
3070         (jm_PREREQ): Use it.
3071
3072 2001-11-09  Jim Meyering  <meyering@lucent.com>
3073
3074         * jm-macros.m4: Require autoconf-2.52f.
3075         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
3076         Use these AC_-prefixed names, not the AM_-prefixed ones.
3077
3078         * afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
3079
3080 2001-11-04  Jim Meyering  <meyering@lucent.com>
3081
3082         * fpending.m4: Remove unused cruft that saved, set, and restored $DEFS.
3083
3084 2001-11-03  Jim Meyering  <meyering@lucent.com>
3085
3086         * jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
3087         of AC_DEFUN.
3088
3089         * dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
3090         know the name of the variable in the macro definition.
3091
3092 2001-11-01  Jim Meyering  <meyering@lucent.com>
3093
3094         * dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
3095         * jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
3096
3097 2001-10-20  Paul Eggert  <eggert@twinsun.com>
3098
3099         * error.m4 (jm_PREREQ_ERROR):
3100         Do not invoke AC_CHECK_FUNCS with strerror_r, as
3101         AC_FUNC_STRERROR_R does that.
3102         Check for strerror declaration.
3103
3104         * strerror_r.m4: Add copyright notice, as nontrivial m4 files
3105         are supposed to have them these days.
3106         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
3107         Merge changes from latest Autoconf CVS.
3108         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
3109         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
3110         POSIX decided to standardize on the int flavor of strerror_r.
3111
3112 2001-09-30  Jim Meyering  <meyering@lucent.com>
3113
3114         * ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
3115         `struct fsstat' has the `f_fstypename' member.
3116         Use that to define FS_TYPE, which is now used to make
3117         the getfsstat link test tighter.
3118
3119 2001-09-29  Jim Meyering  <meyering@lucent.com>
3120
3121         * ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
3122         [one-argument getmntent function]): Include stdio.h before mntent.h.
3123         SunOS 4.1.x needs it for the declaration of `FILE'.
3124         Patch by Volker Borchert.
3125
3126         * ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
3127         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
3128         sys/fs_types.h, and make the link-test for getfsstat guard #include
3129         directives with appropriate #if HAVE_*_H tests so that we can
3130         detect getfsstat on Apple Darwin1.3.7 systems.
3131         Reported by Nelson Beebe.
3132         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
3133
3134 2001-09-28  Paul Eggert  <eggert@twinsun.com>
3135
3136         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
3137         #defines strtoimax.  Also treat the other strto* functions
3138         like strtoimax.
3139
3140         * xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
3141         Check for strtoul and strtoumax,
3142         as those declarations are made even in the signed case.
3143         * xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
3144         Likewise, for strtol and strtoimax.
3145
3146 2001-09-24  Jim Meyering  <meyering@lucent.com>
3147
3148         * gettext.m4: Use the version from gettext-0.10.40, not CVS.
3149
3150 2001-09-23  Jim Meyering  <meyering@lucent.com>
3151
3152         * ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
3153         instead of the mere test for existence of mntent.h.  The latter
3154         would get a false-positive on AIX 3.4 systems.
3155         In the outer getmntent if-block, don't die if neither of the getmntent
3156         tests succeeds.  Instead, just fall through and continue with the
3157         remaining tests.
3158
3159 2001-09-22  Jim Meyering  <meyering@lucent.com>
3160
3161         * gettext.m4: New file.  From gettext.
3162         * lcmessage.m4: Sync with gettext -- this changes only comments.
3163         * progtest.m4: Likewise
3164         * isc-posix.m4: Decrement serial number to sync with gettext.
3165         * glibc21.m4: Likewise.
3166
3167         * libintl.m4: Remove.  No longer used.
3168
3169 2001-09-20  Jim Meyering  <meyering@lucent.com>
3170
3171         * xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
3172         strtoimax.
3173         * xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
3174         strtoumax.
3175
3176 2001-09-17  Jim Meyering  <meyering@lucent.com>
3177
3178         * chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
3179         * jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
3180         * nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
3181         * st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
3182         * utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
3183         whenever the right hand side need not be expanded by the shell.
3184
3185 2001-09-16  Paul Eggert  <eggert@twinsun.com>
3186
3187         * fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
3188         library.  It's not correct, as some older glibcs are buggy.
3189         fnmatch wasn't fixed until glibc 2.2.
3190
3191         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
3192         special shell magic here.
3193
3194 2001-09-16  Jim Meyering  <meyering@lucent.com>
3195
3196         * mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
3197         * jm-macros.m4: Require it.
3198
3199 2001-09-15  Jim Meyering  <meyering@lucent.com>
3200
3201         * jm-macros.m4: Check for help2man.
3202
3203 2001-09-11  Jim Meyering  <meyering@lucent.com>
3204
3205         * host-os.m4 (UTILS_HOST_OS): New file/macro.
3206         The body, by Paul Eggert, was moved here from configure.in.
3207         * jm-macros.m4: Require UTILS_HOST_OS.
3208
3209 2001-09-04  Paul Eggert  <eggert@twinsun.com>
3210
3211         * prereq.m4 (jm_PREREQ_XREADLINK): New macro.
3212         (jm_PREREQ): Use it.
3213
3214 2001-09-03  Paul Eggert  <eggert@twinsun.com>
3215
3216         * prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
3217         sys/param.h, as pathmax.h includes them.
3218
3219 2001-09-03  Paul Eggert  <eggert@twinsun.com>
3220
3221         * prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
3222         (jm_PREREQ_XGETCWD): New macro.
3223
3224         * getcwd.m4: New file.
3225
3226 2001-09-01  Jim Meyering  <meyering@lucent.com>
3227
3228         * jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
3229         Used by df.
3230
3231 2001-08-30  Paul Eggert  <eggert@twinsun.com>
3232
3233         Simplify code, partly by assuming autoconf 2.52 semantics.
3234
3235         * Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
3236
3237         * inttypes.m4 (AC_PREREQ): Bump to 2.52.
3238         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
3239         All uses removed.
3240         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
3241         Move AC_REQUIRE to next-to-top level, to avoid confusion.
3242         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
3243         * prereq.m4 (jm_PREREQ_HUMAN): Don't require jm_AC_HEADER_INTTYPES_H.
3244         * jm-macros.m4 (jm_MACROS): Likewise.
3245
3246         * uintmax_t.m4: Remove, as it duplicates inttypes.m4.
3247
3248         * xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
3249         Quote first arg of AC_DEFUN.
3250         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
3251         since they are needed to parse the include file even if we need
3252         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
3253         * xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
3254         but with opposite signedness.
3255
3256 2001-08-30  Paul Eggert  <eggert@twinsun.com>
3257
3258         * prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
3259         (jm_PREREQ_EXCLUDE): New macro.
3260
3261 2001-08-26  Jim Meyering  <meyering@lucent.com>
3262
3263         * jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
3264
3265         * xstrtoimax.m4: New file.
3266         * xstrtoumax.m4: Add comments explaining why we
3267         AC_REPLACE_FUNCS(strtol).
3268
3269 2001-06-20  Paul Eggert  <eggert@twinsun.com>
3270
3271         * inttypes.m4: Add AC_PREREQ(2.13).
3272         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
3273         (jm_AC_TYPE_INTMAX_T): New macro.
3274         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
3275
3276         * longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
3277
3278         * longlong.m4: Renamed from ulonglong.m4.
3279         * inttypes.m4: Renamed from inttypes_h.m4.
3280         * uintmax_t.m4: Removed.
3281
3282 2001-08-12  Jim Meyering  <meyering@lucent.com>
3283
3284         * afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
3285         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
3286         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
3287         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
3288         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
3289         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
3290         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
3291         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
3292         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
3293         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
3294         utime.m4, utimes.m4, xstrtoumax.m4:
3295         Quote the first argument in each use of AC_DEFUN.
3296
3297 2001-08-05  Jim Meyering  <meyering@lucent.com>
3298
3299         * jm-macros.m4: Require autoconf-2.52.
3300
3301 2001-08-03  Paul Eggert  <eggert@twinsun.com>
3302
3303         The following changes are from gettext 0.10.39 as maintained by
3304         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
3305
3306         * codeset.m4: Upgrade to serial AM1.
3307         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
3308         all uses changed.  Quote first arg of AC_DEFUN.
3309         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
3310
3311         * iconv.m4: Upgrade to serial AM2.
3312         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
3313         Add --with-libconv-prefix.
3314         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
3315         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
3316         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
3317         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
3318         * jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
3319
3320         * c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
3321         * getline.m4 (AM_FUNC_GETLINE): Likewise.
3322         * glibc21.m4 (jm_GLIBC21): Likewise.
3323         * inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
3324         * isc-posix.m4 (AC_ISC_POSIX): Likewise.
3325         * lcmessage.m4 (AM_LC_MESSAGES): Likewise.
3326         * progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
3327         * uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
3328         * ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
3329
3330         * getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
3331         string.h any more.
3332
3333         * progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
3334         not the default value.
3335
3336         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
3337         * mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
3338         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
3339         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
3340         Also check for iswcntrl, used for wcwidth fallback.
3341         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
3342         to Autoconf 2.13.
3343
3344 2001-08-03  Jim Meyering  <meyering@lucent.com>
3345
3346         * mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
3347         as it was in the original.  Reported by Paul Eggert.
3348
3349 2001-07-16  Jim Meyering  <meyering@lucent.com>
3350
3351         * gettimeofday.m4: New file.
3352         Prompted by a report from Bernhard Baehr.
3353
3354 2001-07-15  Jim Meyering  <meyering@lucent.com>
3355
3356         * Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h stuff.
3357         Now it's in ../Makefile.cfg.
3358
3359 2001-07-04  Jim Meyering  <meyering@lucent.com>
3360
3361         * Makefile.am.in (glibc-io.struct): New target.  Rework the code
3362         that generates jm-glibc-io.m4 so that it doesn't trigger any make
3363         distcheck failure.
3364
3365 2001-07-02  Jim Meyering  <meyering@lucent.com>
3366
3367         The following changes were prompted by suggestions from Bruno Haible.
3368
3369         * jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
3370         is now generated.
3371         * Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
3372         definition of EXTRA_DIST.
3373         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
3374         ensure that the generated file is created/updated whenever the list
3375         of $(unlocked_functions) is changed.
3376         (jm-glibc-io.m4): New rule.
3377         (unlocked-io.h): New rule -- currently unused.
3378
3379 2001-06-24  Jim Meyering  <meyering@lucent.com>
3380
3381         * regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
3382         unmatched right bracket, rather than kludging it with an extra,
3383         falsely-matching quote in a comment.  Patch by Akim Demaille.
3384
3385 2001-05-27  Jim Meyering  <meyering@lucent.com>
3386
3387         * prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
3388         Check for ut_type in struct utmp.
3389
3390 2001-05-22  Jim Meyering  <meyering@lucent.com>
3391
3392         * strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
3393         now that we use the package-supplied version unconditionally.
3394         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
3395
3396 2001-05-21  Jim Meyering  <meyering@lucent.com>
3397
3398         * regex.m4: Change a couple backticks to single quotes to avoid shell
3399         syntax errors.
3400
3401 2001-05-19  Alexandre Duret-Lutz  <duret_g@epita.fr>
3402
3403         * dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
3404
3405 2001-05-11  Paul Eggert  <eggert@twinsun.com>
3406
3407         * strftime.m4 (jm_FUNC_GNU_STRFTIME):
3408         Don't bother to check library strftime, since
3409         we'll be using our own my_strftime function anyway.
3410         Define my_strftime instead of strftime.
3411
3412 2001-05-15  Jim Meyering  <meyering@lucent.com>
3413
3414         * regex.m4: Use proper quoting so brackets appear in the test program.
3415         Reported by, and with help from, Bruno Haible.
3416
3417 2001-05-13  Jim Meyering  <meyering@lucent.com>
3418
3419         * jm-macros.m4 (major_t, minor_t): Define to unsigned int if undefined.
3420
3421 2000-11-26  Paul Eggert  <eggert@twinsun.com>
3422
3423         * jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
3424
3425 2001-04-21  Jim Meyering  <meyering@lucent.com>
3426
3427         * rmdir-errno.m4: Write to a new file, so that a restrictive umask
3428         doesn't interfere.
3429
3430 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
3431
3432         * ftruncate.m4: Check for chsize.
3433         Link with ftruncate.o unconditionally if ftruncate is missing.
3434         This was required when cross-compiling to i586-mingw32msvc.
3435
3436 2001-03-24  Jim Meyering  <meyering@lucent.com>
3437
3438         * jm-macros.m4: Require autoconf-2.49d.
3439
3440 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
3441
3442         * iconv.m4 (jm_ICONV): Recommend GNU libiconv.
3443
3444 2001-03-17  Jim Meyering  <meyering@lucent.com>
3445
3446         * memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
3447         now that the version in autoconf is equivalent.
3448         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
3449
3450         * error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
3451         Suggestion from Akim Demaille.
3452
3453         * prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
3454         (jm_PREREQ_TEMPNAME): New function.
3455
3456 2001-02-25  Paul Eggert  <eggert@twinsun.com>
3457
3458         * jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
3459         lacks mkstemp.  Compile our own tempname.c if we compile our own
3460         mkstemp.c, as mkstemp relies on tempname.
3461
3462 2001-03-01  Jim Meyering  <meyering@lucent.com>
3463
3464         * dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
3465         AH_VERBATIM really does output its argument verbatim.
3466
3467 2001-02-18  Paul Eggert  <eggert@twinsun.com>
3468
3469         * jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
3470
3471 2001-02-17  Jim Meyering  <meyering@lucent.com>
3472
3473         * ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
3474         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
3475         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
3476         UnixWare 7.1.1.
3477
3478         * mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
3479         rather than AC_CACHE_VAL.
3480
3481 2001-02-17  Paul Eggert  <eggert@twinsun.com>
3482
3483         * mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
3484         * mbswidth.m4 (jm_PREREQ_MBSWIDTH):
3485         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
3486         * prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
3487
3488 2001-02-07  Jim Meyering  <meyering@lucent.com>
3489
3490         * regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
3491
3492 2001-02-05  Jim Meyering  <meyering@lucent.com>
3493
3494         * jm-macros.m4: Require autoconf-2.14d (not yet released), because
3495         it includes the patch required for `large file' support with at least
3496         HP-UX's 10.20 /bin/cc.
3497
3498 2001-02-03  Jim Meyering  <meyering@lucent.com>
3499
3500         * ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
3501         AS_IF, now that it works once again (mysteriously).
3502         * fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
3503
3504 2001-01-30  Jim Meyering  <meyering@lucent.com>
3505
3506         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
3507         * chown.m4: Rename conftestchown to conftest.chown.
3508         * rename.m4: s/conftestdir/conftest.d1/ and s/conftestdir2/conftest.d2/.
3509         * utimes.m4: s/conftestdata/conftest.data/
3510         Inspired by Pavel Roskin's change in autoconf.
3511
3512 2001-01-27  Jim Meyering  <meyering@lucent.com>
3513
3514         * ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
3515         a use of AS_IF.
3516         * fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
3517
3518 2001-01-26  Jim Meyering  <meyering@lucent.com>
3519
3520         * prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
3521         quotearg.c includes it.
3522
3523 2001-01-15  Bruno Haible  <haible@clisp.cons.org>
3524
3525         * iconv.m4 (jm_ICONV): Also check whether the iconv declaration
3526         has const.
3527
3528 2001-01-20  Jim Meyering  <meyering@lucent.com>
3529
3530         Be sure that headers are checked before used in code compiled
3531         for the type checks.
3532         * jm-macros.m4 (jm_MACROS): Remove all header checks.
3533         In place of that, invoke jm_CHECK_ALL_TYPES.
3534         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
3535         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
3536         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
3537         The check for ssize_t was mistakenly run before the test for unistd.h.
3538
3539         The configure-time check for stdbool.h was missing.
3540         * prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
3541         (jm_PREREQ_HASH): New function.
3542
3543 2001-01-17  Jim Meyering  <meyering@lucent.com>
3544
3545         * fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
3546         for autoconf-2.49c.
3547         * ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
3548
3549 2001-01-14  Jim Meyering  <meyering@lucent.com>
3550
3551         * rename.m4: Use temporary directories named conftestdir{,2}, not
3552         foo and bar.  Create conftestdir/ in the script, not in the C code.
3553         Remove directories in the script, not in the C code.
3554         Remove conftestdir{,2} before trying to create the directory.
3555         Make the entire configure script fail if the mkdir fails.
3556
3557 2001-01-02  Volker Borchert  <bt@teknon.de>
3558
3559         * rename.m4: New file.
3560         * jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
3561
3562 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
3563
3564         * libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
3565         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
3566         so `make install' also works in VPATH builds.
3567
3568 2001-01-01  Jim Meyering  <meyering@lucent.com>
3569
3570         * prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available), even
3571         on systems with utmpx.h.  It's necessary for the declaration of utmp's
3572         ut_user member.  Reported by Andreas Jaeger.
3573
3574         * check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if available.
3575         They are required for the declarations of getgrgid and getpwuid resp.
3576         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
3577         Reported by Andreas Jaeger.
3578
3579 2000-12-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
3580
3581         * libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
3582         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
3583         can be used in subdirectories.
3584
3585 2000-12-26  Jim Meyering  <meyering@lucent.com>
3586
3587         * dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work better
3588         with autoheader.
3589
3590 2000-12-17  Jim Meyering  <meyering@lucent.com>
3591
3592         * dos.m4 (jm_AC_DOS): New file and macro.
3593         * jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
3594
3595 2000-12-06  Paul Eggert  <eggert@twinsun.com>
3596
3597         * off_t-format.m4: Remove this file.
3598         * jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
3599
3600 2000-12-06  Jim Meyering  <meyering@lucent.com>
3601
3602         * xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the replacement
3603         strtoull, we may well need the replacement strtoul, too.
3604         Check for declarations of strtoul and strtoull.
3605         Check for strtol.  Mainly as a cue to cause automake to include
3606         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
3607         Check for limits.h -- strtol.c needs it.
3608
3609 2000-12-02  Jim Meyering  <meyering@lucent.com>
3610
3611         * off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
3612         * jm-macros.m4 (jm_MACROS): require it.
3613
3614 2000-11-30  Jim Meyering  <meyering@lucent.com>
3615
3616         * jm-macros.m4 (jm_MACROS): Check for stdint.h.
3617
3618 2000-11-30  Jim Meyering  <meyering@lucent.com>
3619
3620         * getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
3621
3622 2000-11-03  Bruno Haible  <haible@clisp.cons.org>
3623
3624         * jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
3625
3626 2000-11-04  Jim Meyering  <meyering@lucent.com>
3627
3628         * regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
3629
3630 2000-10-29  Jim Meyering  <meyering@lucent.com>
3631
3632         * fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf renaming.
3633         * ls-mntd-fs.m4: Likewise
3634
3635 2000-10-28  Jim Meyering  <meyering@lucent.com>
3636
3637         * prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
3638         (jm_PREREQ_MEMCHR): New function.
3639
3640 2000-10-21  Jim Meyering  <meyering@lucent.com>
3641
3642         * check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
3643         * prereq.m4 (jm_PREREQ_DIRNAME): New macro.
3644         * jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
3645
3646 2000-09-18  Jim Meyering  <meyering@lucent.com>
3647
3648         * getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of LIBS.
3649         Otherwise, everyone ends up linking with -lelf for some configurations.
3650         Reported by Mike Stone.
3651
3652 2000-08-26  Jim Meyering  <meyering@lucent.com>
3653
3654         * jm-macros.m4: Use jm_FUNC_FPENDING.
3655         * fpending.m4: New file.
3656
3657 2000-08-20  Jim Meyering  <meyering@lucent.com>
3658
3659         * check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
3660         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
3661         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
3662
3663 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
3664
3665         Improve fileutils installation on systems where running
3666         programs (like install) can't be unlinked.
3667         * unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
3668         * jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
3669
3670 2000-08-06  Paul Eggert  <eggert@twinsun.com>
3671
3672         * mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
3673         not char, for compatibility with glibc 2.1.3 strftime.c.
3674
3675 2000-07-23  Paul Eggert  <eggert@twinsun.com>
3676
3677         * mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
3678
3679 2000-07-23  Jim Meyering  <meyering@lucent.com>
3680
3681         * check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these, too:
3682         getgrgid, getpwuid, getuid.
3683
3684 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
3685
3686         * mbswidth.m4: New file.
3687         * prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
3688
3689 2000-07-14  Jim Meyering  <meyering@lucent.com>
3690
3691         * xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require jm_AC_TYPE_UINTMAX_T.
3692
3693 2000-07-10  Paul Eggert  <eggert@twinsun.com>
3694
3695         From a suggestion by Bruno Haible.
3696         * mbstate_t.m4 (AC_MBSTATE_T):
3697         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
3698         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
3699         and mbstate_t, to a single-part test that simply defines mbstate_t.
3700         * prereq.m4 (jm_PREREQ_QUOTEARG): s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
3701
3702 2000-07-10  Jim Meyering  <meyering@lucent.com>
3703
3704         * strerror_r.m4: Mirror the correction made in autoconf.
3705
3706         * gnu-source.m4: Output to confdefs.h directly.
3707         Suggestion from Akim Demaille.
3708
3709 2000-07-09  Jim Meyering  <meyering@lucent.com>
3710
3711         * jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
3712         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
3713
3714         * gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
3715         * jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
3716
3717 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
3718
3719         * strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
3720         to strerror_r.
3721         Include <ctype.h> for use of isalpha.
3722
3723 2000-07-05  Paul Eggert  <eggert@twinsun.com>
3724         and Bruno Haible  <haible@clisp.cons.org>
3725
3726         * mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
3727         only if the test for an object-type mbstate_t fails.  This
3728         prevents us from mistakenly reporting that mbstate_t is a
3729         system object type after we "#define mbstate_t int" to work
3730         around its lack.
3731
3732 2000-07-04  Jim Meyering  <meyering@lucent.com>
3733
3734         * fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
3735         of the deprecated AC_CHECKING.
3736
3737 2000-07-03  Jim Meyering  <meyering@lucent.com>
3738
3739         * check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
3740
3741 2000-07-03  Paul Eggert  <eggert@twinsun.com>
3742
3743         * mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
3744         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
3745
3746 2000-07-02  Jim Meyering  <meyering@lucent.com>
3747
3748         * mbstate_t.m4: Also define mbstate_t, if necessary.
3749
3750         * chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
3751         AC_LIBOBJ(function_name).
3752         * chown.m4: Likewise.
3753         * fnmatch.m4: Likewise.
3754         * ftruncate.m4: Likewise.
3755         * getgroups.m4: Likewise.
3756         * getline.m4: Likewise.
3757         * group-member.m4: Likewise.
3758         * jm-macros.m4: Likewise.
3759         * lstat.m4: Likewise.
3760         * malloc.m4: Likewise.
3761         * memcmp.m4: Likewise.
3762         * nanosleep.m4: Likewise.
3763         * putenv.m4: Likewise.
3764         * realloc.m4: Likewise.
3765         * regex.m4: Likewise.
3766         * stat.m4: Likewise.
3767         * strftime.m4: Likewise.
3768
3769 2000-07-01  Jim Meyering  <meyering@lucent.com>
3770
3771         * ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
3772         problem.
3773
3774 2000-06-17  Bruno Haible  <haible@clisp.cons.org>
3775
3776         * ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
3777         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
3778
3779 2000-07-01  Jim Meyering  <meyering@lucent.com>
3780
3781         * uptime.m4: Put double quotes around use of $cross_compiling.
3782
3783 2000-06-28  Jim Meyering  <meyering@lucent.com>
3784
3785         * mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not included
3786         by quotearg.c, for which we perform this test.  From Bruno Haible.
3787
3788 2000-06-17  Bruno Haible  <haible@clisp.cons.org>
3789
3790         * check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
3791         * prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
3792         <utmpx.h> exists, put readutmp.o into LIBOBJS.
3793
3794 2000-06-25  Jim Meyering  <meyering@lucent.com>
3795
3796         * mbstate_t.m4: Include stdio.h before wchar.h to work around
3797         Linux header bug when _XOPEN_SOURCE is defined to 500.
3798
3799 2000-06-24  Jim Meyering  <meyering@lucent.com>
3800
3801         * strerror_r.m4: Revive this file -- to try out an experimental
3802         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
3803         for which strerror does return char*, but which lacks a conveniently
3804         accessible declaration of the function.  If the compile-test says
3805         strerror_r doesn't work, then resort to a `run'-test that works on
3806         BeOS and segfaults on DEC Unix.
3807
3808 2000-06-19  Paul Eggert  <eggert@twinsun.com>
3809
3810         * mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
3811         * prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
3812
3813 2000-06-23  Jim Meyering  <meyering@lucent.com>
3814
3815         * afs.m4: Add missing AC_MSG_RESULT.
3816         Reported by Bruno Haible.
3817
3818         * fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
3819         Suggestion from Bruno Haible.
3820
3821 2000-06-21  Jim Meyering  <meyering@lucent.com>
3822
3823         * jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
3824
3825 2000-06-18  Jim Meyering  <meyering@lucent.com>
3826
3827         * jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
3828
3829         * link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
3830         `checking whether...' message to be consistent with that of the
3831         lstat test.
3832
3833 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
3834
3835         * glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
3836
3837 2000-06-12  Jim Meyering  <meyering@lucent.com>
3838
3839         * getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with AC_FUNC_GETLOADAVG
3840         from autoconf, and tweak the latter to accept an optional argument.
3841         * jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
3842         the optional argument, `lib'.
3843
3844 2000-06-08  Jim Meyering  <meyering@lucent.com>
3845
3846         * largefile.m4: Remove file (now that it's part of autoconf).
3847
3848 2000-06-04  Paul Eggert  <eggert@twinsun.com>
3849
3850         Rewrite largefile configuration so that we don't need to run
3851         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
3852         AC_CANONICAL_HOST in configure.in -- jmm]
3853
3854         * largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
3855         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
3856         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
3857         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
3858         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
3859         All uses changed.
3860         Instead of inspecting the output of getconf, try to compile the
3861         test program without and with the macro definition.
3862         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
3863         for getconf.  Instead, check for the needed flags by compiling
3864         test programs.
3865
3866 2000-06-03  Jim Meyering  <meyering@lucent.com>
3867
3868         * prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
3869         now that autoconf requires that.
3870
3871         * jm-glibc-io.m4: Add a kludge to make autoheader emit the required
3872         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
3873         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
3874
3875 2000-05-26  Bruno Haible  <haible@clisp.cons.org>
3876
3877         * glibc21.m4: New file.
3878         * jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
3879
3880 2000-05-28  Jim Meyering  <meyering@lucent.com>
3881
3882         * jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
3883         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
3884         * stat.m4: Likewise.
3885         * lstat.m4: Likewise.
3886         * lstat-slash.m4: Remove file (absorbed into autoconf).
3887
3888         * jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
3889         * strerror_r.m4: Remove file (absorbed into autoconf).
3890
3891 2000-05-26  Jim Meyering  <meyering@lucent.com>
3892
3893         * uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
3894
3895 2000-05-24  Jim Meyering  <meyering@lucent.com>
3896
3897         * prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
3898         autoconf requires that.
3899         * lib-check.m4: Likewise.
3900         * jm-macros.m4: Likewise.
3901         * strftime.m4: Likewise.
3902
3903         * check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in AC_CHECK_DECLS,
3904         now that autoconf requires that.
3905
3906 2000-05-22  Jim Meyering  <meyering@lucent.com>
3907
3908         * stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
3909         * lstat.m4: Likewise.
3910
3911 2000-05-20  Jim Meyering  <meyering@lucent.com>
3912
3913         * prereq.m4 (jm_PREREQ_HUMAN): New macro.
3914         (jm_PREREQ): Use it.
3915
3916 2000-05-09  Jim Meyering  <meyering@lucent.com>
3917
3918         * gettext.m4: Rename this...
3919         * libintl.m4: ...to this.
3920
3921 2000-05-06  Jim Meyering  <meyering@lucent.com>
3922
3923         * jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
3924         (AC_REPLACE_FUNCS): Add strnlen.
3925
3926         * rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
3927         * jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
3928
3929         * nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
3930         AC_SEARCH_LIBS call for nanosleep.
3931         (LIB_NANOSLEEP): Set and AC_SUBST.
3932
3933 2000-05-03  Paul Eggert  <eggert@twinsun.com>
3934
3935         * largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
3936         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
3937         2.1.3 bug.  This avoids a clash when files like regex.c define
3938         _GNU_SOURCE.
3939
3940 2000-05-05  Jim Meyering  <meyering@lucent.com>
3941
3942         * jm-macros.m4 (jm_MACROS): Save and restore LIBS around AC_SEARCH_LIBS
3943         call for clock_gettime.
3944         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
3945
3946         * search-libs.m4: Update from autoconf.
3947
3948         su doesn't work on Solaris 2.6.
3949         * lib-check.m4: When checking for struct spwd.sp_pwdp, also include
3950         <shadow.h>.  Reported by Dragos Harabor.
3951
3952 2000-05-03  Jim Meyering  <meyering@lucent.com>
3953
3954         * check-decl.m4 (AC_CHECK_DECLS): Add strndup.
3955
3956 2000-05-02  Paul Eggert  <eggert@twinsun.com>
3957
3958         * largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
3959         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
3960         compile-time test, rather than inspecting host and OS, to
3961         decide whether to define _LARGEFILE_SOURCE.
3962
3963 2000-05-01  Jim Meyering  <meyering@lucent.com>
3964
3965         * fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
3966
3967         * ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
3968         Based on a patch from Bruno Haible.
3969
3970 2000-04-18  Jim Meyering  <meyering@lucent.com>
3971
3972         * prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
3973         (jm_PREREQ): Use it.
3974
3975 2000-04-17  Jim Meyering  <meyering@lucent.com>
3976
3977         Get it right :-)
3978         * jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
3979         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
3980         Suggestion from Akim Demaille.
3981
3982 2000-04-14  Jim Meyering  <meyering@lucent.com>
3983
3984         * jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg form
3985         of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets clobbered.
3986
3987 2000-04-13  Jim Meyering  <meyering@lucent.com>
3988
3989         * jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new AH_VERBATIM
3990         to insert required #ifndef into config.h.in.
3991         Suggestion from Akim Demaille.
3992
3993 2000-04-12  Jim Meyering  <meyering@lucent.com>
3994
3995         * getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
3996         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
3997         Christian Krackowizer.
3998
3999         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
4000         * jm-macros.m4 (_GNU_SOURCE): Define.
4001         (AC_SYS_LARGEFILE): Require.
4002         (AM_C_PROTOTYPES): Require.
4003
4004 2000-04-05  Paul Eggert  <eggert@twinsun.com>
4005
4006         * largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
4007         IRIX if the installer said otherwise.
4008
4009 2000-04-05  Jim Meyering  <meyering@lucent.com>
4010
4011         Portability tweaks required for ultrix4.3.
4012         * check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
4013         (jm_CHECK_DECLS): Add getutent to the list of functions.
4014         (_jm_DECL_HEADERS): Add utmpx.h.
4015         From John David Anglin.
4016
4017         * strftime.m4: Back out the 2000-04-02 change.
4018         Instead of that change, simply undefine putenv in the test program.
4019
4020 2000-04-03  Jim Meyering  <meyering@lucent.com>
4021
4022         * gettext.m4: Fix typo in comment.
4023
4024         * codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
4025         textutils/configure.in).  Suggestion from Paul Eggert.
4026         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
4027
4028 2000-04-02  Paul Eggert  <eggert@twinsun.com>
4029
4030         * strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
4031         variable in the shell rather than using putenv, which isn't
4032         portable.  This avoids the configure-time inter-test dependency
4033         on the potentially-renamed putenv function.
4034
4035 2000-03-30  Paul Eggert  <eggert@twinsun.com>
4036
4037         * jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
4038         before checking struct stat.st_blksize, so that
4039         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
4040
4041 2000-03-29  Paul Eggert  <eggert@twinsun.com>
4042
4043         * strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
4044         since strftime.c uses HAVE_STRFTIME to decide whether to use
4045         the underlying strftime.
4046
4047 2000-03-10  Jim Meyering  <meyering@lucent.com>
4048
4049         * lib-check.m4: Look for getspnam in -lgen, too.
4050         From Marco Franzen.
4051
4052 2000-02-02  Bruno Haible  <haible@clisp.cons.org>
4053
4054         * codeset.m4: New file.
4055         * iconv.m4: New file.
4056         * jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
4057
4058 2000-03-04  Jim Meyering  <meyering@lucent.com>
4059
4060         * jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
4061         for lib/localcharset.c.
4062
4063 2000-03-03  Jim Meyering  <meyering@lucent.com>
4064
4065         * regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
4066
4067 2000-03-02  Jim Meyering  <meyering@lucent.com>
4068
4069         * timespec.m4: Require AC_HEADER_TIME before the cache check so
4070         the messages come out on separate lines.
4071
4072         * jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
4073         rather than jm_CHECK_DECLARATIONS.
4074         * decl.m4: Remove now-unused file.
4075
4076         * check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and geteuid.
4077
4078 2000-02-27  Jim Meyering  <meyering@lucent.com>
4079
4080         * check-decl.m4: Add getenv to the list.
4081
4082 2000-02-23  Jim Meyering  <meyering@lucent.com>
4083
4084         * check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
4085         in place of my hack.
4086
4087 2000-02-10  Jim Meyering  <meyering@lucent.com>
4088
4089         * nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
4090         gnu_nanosleep to rpl_nanosleep.
4091
4092 2000-02-09  Jim Meyering  <meyering@lucent.com>
4093
4094         * lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
4095         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
4096
4097 2000-02-08  Akim Demaille  <akim@epita.fr>
4098
4099         * largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
4100         `[' and `]' and remove uses of `changequote'.
4101         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
4102         (AC_SYS_LARGEFILE): Likewise.
4103         * gettext.m4 (AM_GNU_GETTEXT): Likewise.
4104         * strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
4105         of changequote.
4106         * regex.m4 (jm_INCLUDED_REGEX): Likewise.
4107         * readdir.m4 (jm_FUNC_READDIR): Likewise
4108         * memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
4109         * getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
4110
4111 2000-02-05  Jim Meyering  <meyering@lucent.com>
4112
4113         * jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
4114         Remove explicit use of AC_HEADER_TIME.  It is required by
4115         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
4116         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
4117         in autoconf whereby the expansion of the latter ended up preceding
4118         the expansion of its prerequisite, AC_HEADER_TIME.
4119         Reported by Volker Borchert.
4120
4121 2000-02-03  Jim Meyering  <meyering@lucent.com>
4122
4123         * prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
4124
4125 2000-02-02  Jim Meyering  <meyering@lucent.com>
4126
4127         * prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
4128         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
4129         Reported by Eli Zaretskii.
4130
4131 2000-01-31  Jim Meyering  <meyering@lucent.com>
4132
4133         * check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
4134         functions.  Add the time.h and sys/time.h headers along with the
4135         AC_REQUIRE'ment of AC_HEADER_TIME.
4136
4137 2000-01-30  Jim Meyering  <meyering@lucent.com>
4138
4139         * lib-check.m4: Clean up some kludgy old shadow password tests.
4140
4141         * prereq.m4 (utmp_includes): Define.
4142         Check for ut_user and ut_name members in both struct utmpx
4143         and struct utmp.
4144
4145 2000-01-29  Jim Meyering  <meyering@lucent.com>
4146
4147         * lib-check.m4: New file containing library-related checks from
4148         fileutils and sh-utils (textutils had none).
4149
4150 2000-01-28  Jim Meyering  <meyering@lucent.com>
4151
4152         * perl.m4: Change format of warning message to look more like that
4153         from the missing script.  Suggestion from François Pinard.
4154
4155 2000-01-25  Jim Meyering  <meyering@lucent.com>
4156
4157         * timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as well
4158         as time.h in the compile check.
4159         * nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
4160         Fix typo in cross-compiling case: s/yes/no/.
4161
4162 2000-01-23  Jim Meyering  <meyering@lucent.com>
4163
4164         * jm-macros.m4: Move df-related tests here from fileutils/configure.in
4165
4166         * ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
4167         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
4168
4169         * fsusage.m4: New file.  Extracted from fileutils/configure.in.
4170         s/space/ac_fsusage_space/.
4171         (jm_FILE_SYSTEM_USAGE): Take two parameters.
4172
4173         * ftruncate.m4: New file (derived from part of fileutils/configure.in).
4174         * jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
4175         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
4176
4177         * jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
4178         AC_SUBST these here, rather than just in sh-util/configure.in, so
4179         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
4180         all the same.
4181         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
4182         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
4183         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
4184         (AC_SUBST(POW_LIBM)): Likewise.
4185         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
4186
4187 2000-01-22  Jim Meyering  <meyering@lucent.com>
4188
4189         * jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
4190
4191         * prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
4192
4193         * jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
4194         configure.in
4195         (AC_CHECK_HEADERS): Likewise for sh-utils.
4196         (AC_CHECK_HEADERS): Likewise for textutils.
4197         Merge the three lists of headers.
4198
4199         * prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
4200         from fileutils' configure.in.
4201
4202         * decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)' code.
4203         Moved tests into their own function (_jm_DECL_HEADERS) in check-decl.m4.
4204
4205         * check-decl.m4: Use #if rather than #ifdef.
4206         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
4207         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
4208         (_jm_DECL_HEADERS): Define new function.
4209         (jm_CHECK_DECLARATIONS): Require it.
4210
4211 2000-01-19  Jim Meyering  <meyering@lucent.com>
4212
4213         * nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
4214         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
4215         defines `struct timespec' in <sys/time.h>
4216
4217         * c-bs-a.m4: Remove uses of changequote altogether.
4218         Thanks to Akim for explaining.
4219
4220 2000-01-16  Jim Meyering  <meyering@lucent.com>
4221
4222         * jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
4223         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
4224         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
4225         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
4226
4227 2000-01-16  Jim Meyering  <meyering@lucent.com>
4228
4229         * c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
4230         because the latter didn't work.
4231
4232 2000-01-15  Jim Meyering  <meyering@lucent.com>
4233
4234         * jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
4235         (AC_REPLACE_FUNCS): Add memcpy and memset.
4236         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
4237         Add strpbrk.
4238         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
4239
4240 2000-01-12  Jim Meyering  <meyering@lucent.com>
4241
4242         * prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
4243         (jm_PREREQ): Use it.
4244         (jm_PREREQ_READUTMP): New macro.
4245         (jm_PREREQ): Use it.
4246
4247 2000-01-11  Paul Eggert  <eggert@twinsun.com>
4248
4249         Quote multibyte characters correctly.
4250         * c-bs-a.m4: New file.
4251         * prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
4252         (jm_PREREQ): Use it.
4253
4254 2000-01-11  Paul Eggert  <eggert@twinsun.com>
4255
4256         * uintmax_t.m4: Port to autoconf 2.13.
4257
4258 2000-01-08  Jim Meyering  <meyering@ascend.com>
4259
4260         * strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
4261         * jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
4262
4263 2000-01-04  Jim Meyering  <meyering@ascend.com>
4264
4265         * d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
4266         jm_STRUCT_DIRENT_D_TYPE.
4267         * d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
4268         jm_STRUCT_DIRENT_D_INO.
4269         * utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
4270         jm_STRUCT_UTIMBUF.
4271         * jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/ renamings.
4272         * utime.m4: Likewise.
4273
4274         * timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
4275         * jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
4276
4277 2000-01-03  Paul Eggert  <eggert@twinsun.com>
4278
4279         * nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
4280         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
4281
4282 2000-01-02  Jim Meyering  <meyering@ascend.com>
4283
4284         * search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
4285         remember if this is necessary.
4286
4287 1999-12-26  Jim Meyering  <meyering@ascend.com>
4288
4289         * jm-macros.m4: Use it here.
4290         * nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
4291
4292 1999-12-23  Jim Meyering  <meyering@ascend.com>
4293
4294         * jm-macros.m4: Check for clock_gettime (moved from
4295         fileutils/configure.in)
4296         Check for gettimeofday.
4297
4298 1999-12-20  Jim Meyering  <meyering@ascend.com>
4299
4300         * strftime.m4: Remove kludge, now that I'm using the fixed
4301         autoconf-2.14a-1999-12-20.
4302
4303 1999-12-19  Jim Meyering  <meyering@ascend.com>
4304
4305         * lstat-slash.m4: New file.
4306         * jm-macros.m4: Use the new macro:
4307         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
4308
4309 1999-12-07  Jim Meyering  <meyering@ascend.com>
4310
4311         * perl.m4: Require that File::Compare be available, too.
4312         Too many systems seem to lack it.
4313
4314         * strftime.m4: Add checks for most of the cpp macros tested in
4315         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
4316
4317 1999-11-18  Paul Eggert  <eggert@twinsun.com>
4318
4319         * largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
4320         problem with the QNX 4.25 shell, which doesn't propagate exit
4321         status of failed commands inside shell assignments.
4322
4323 1999-11-17  Jim Meyering  <meyering@ascend.com>
4324
4325         * gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
4326
4327 1999-11-07  Jim Meyering  <meyering@ascend.com>
4328
4329         * getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
4330
4331 1999-11-06  Jim Meyering  <meyering@ascend.com>
4332
4333         * link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
4334         * jm-macros.m4 (jm_MACROS): Use it here.
4335
4336 1999-11-05  Jim Meyering  <meyering@ascend.com>
4337
4338         * jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from configure.in
4339         of textutils, fileutils, and sh-utils into this one (shared between
4340         those packages) file.
4341         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
4342         AC_STRUCT_ST_BLKSIZE.
4343
4344 1999-11-03  Jim Meyering  <meyering@ascend.com>
4345
4346         * ssize_t.m4: Remove file.  No longer needed since the new version of
4347         AC_CHECK_TYPE checks includes unistd.h.
4348         * jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
4349         Suggestion from Akim Demaille.
4350
4351 1999-10-30  Jim Meyering  <meyering@ascend.com>
4352
4353         * uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
4354         m4-quoted string.
4355         * ls-mntd-fs.m4: Likewise.
4356         * jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
4357         * jm-winsz1.m4: Likewise.
4358
4359         * const.m4: Remove file, since the fix made it into the experimental
4360         version of autoconf.
4361         * mktime.m4: Likewise.
4362
4363         * check-type.m4: Remove file, now that the latest version of
4364         AC_CHECK_TYPE takes a third arg to specify additional #includes.
4365
4366         * ssize_t.m4: New file, requires experimental version of autoconf.
4367         * jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
4368         AC_CHECK_TYPE.
4369
4370 1999-10-04  Jim Meyering  <meyering@ascend.com>
4371
4372         * jm-macros.m4: Don't require autoconf-2.14.1.
4373
4374 1999-09-22  Paul Eggert  <eggert@twinsun.com>
4375
4376         * largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
4377         2.95.1 bug with HP-UX 10.20.
4378
4379 1999-09-17  Jim Meyering  <meyering@ascend.com>
4380
4381         * jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
4382         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
4383         due to missing strdup (against sh-utils-2.0).
4384
4385 1999-08-29  Jim Meyering  <meyering@ascend.com>
4386
4387         * jm-macros.m4: Require jm_BISON.
4388         * bison.m4: New file.
4389
4390 1999-08-17  Paul Eggert  <eggert@twinsun.com>
4391
4392         * largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
4393         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
4394
4395 1999-08-05  Jim Meyering  <meyering@ascend.com>
4396
4397         * getline.m4: Rename test file from conftestdata to conftest.data
4398         to avoid conflicts with `conftest' on 8+3 filesystems.
4399         Suggestion from Eli Zaretskii.
4400
4401 1999-08-04  Jim Meyering  <meyering@ascend.com>
4402
4403         * jm-macros.m4: Move a 4-line block of code from the configure.in of
4404         fileutils and sh-utils (textutils's getline test was inadequate).
4405         (AM_FUNC_GETLINE): Run this test.
4406         (AC_CHECK_FUNCS): Check for getdelim.
4407         Reported by Bob Proulx.
4408
4409 1999-08-02  Jim Meyering  <meyering@ascend.com>
4410
4411         * jm-macros.m4: Add a comment.
4412
4413 1999-08-01  Jim Meyering  <meyering@ascend.com>
4414
4415         * mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from m4.
4416
4417 1999-08-01  Paul Eggert  <eggert@twinsun.com>
4418
4419         * lfs.m4: Remove this file.
4420         * largefile.m4: New file.  It contains the old contents of
4421         lfs.m4, except that all names with prefix AC_LFS have been
4422         changed to use the prefix AC_SYS_LARGEFILE instead, to be
4423         compatible with future autoconf versions.  Also, some minor m4
4424         quoting problems have been fixed.
4425
4426 1999-07-16  Paul Eggert  <eggert@twinsun.com>
4427
4428         * ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
4429         that we can shift, multiply and divide unsigned long long
4430         values; Ultrix cc can't do it.
4431
4432 1999-07-14  Paul Eggert  <eggert@twinsun.com>
4433
4434         * xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
4435         <inttypes.h> defines strtoumax as a macro (and not as a
4436         function).
4437
4438 1999-07-05  Paul Eggert  <eggert@twinsun.com>
4439
4440         * gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
4441         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
4442         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
4443         and simplify the shell code.
4444
4445 1999-07-03  Paul Eggert  <eggert@twinsun.com>
4446
4447         * mktime.m4: New file, which is a preview of what should appear
4448         in the next public autoconf release.
4449
4450 1999-07-20  Jim Meyering  <meyering@ascend.com>
4451
4452         * jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
4453
4454 1999-07-15  Jim Meyering  <meyering@ascend.com>
4455
4456         * jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
4457
4458 1999-05-22  Jim Meyering  <meyering@ascend.com>
4459
4460         * jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
4461
4462 1999-05-20  Jim Meyering  <meyering@ascend.com>
4463
4464         * search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
4465         Add a colon after each `then' in case $4 is empty.
4466
4467 1999-05-16  Jim Meyering  <meyering@ascend.com>
4468
4469         * search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
4470
4471 1999-05-10  Jim Meyering  <meyering@ascend.com>
4472
4473         * jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
4474
4475         * jm-macros.m4: Require 2.14.1, since we use newly-renamed
4476         AC_FUNC_MKTIME.
4477
4478 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
4479
4480         * jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
4481
4482 1999-05-04  Paul Eggert  <eggert@twinsun.com>
4483
4484         * lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
4485         not CPPFLAGS, so that linking works correctly in IRIX.
4486
4487 1999-04-30  Paul Eggert  <eggert@twinsun.com>
4488
4489         * jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
4490
4491 1999-04-20  Jim Meyering  <meyering@ascend.com>
4492
4493         * xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
4494         AC_REPLACE xstroull if necessary.  From Paul Eggert.
4495         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
4496
4497 1999-04-20  Paul Eggert  <eggert@twinsun.com>
4498
4499         * uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
4500         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
4501         * jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
4502         jm_AC_TYPE_UNSIGNED_LONG_LONG.
4503         * ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
4504
4505         * lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
4506
4507 1999-04-18  Jim Meyering  <meyering@ascend.com>
4508
4509         * xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
4510         * jm-macros.m4: Use it.
4511
4512 1999-04-06  Jim Meyering  <meyering@ascend.com>
4513
4514         * strftime.m4: Remove test for %f.
4515
4516 1999-03-29  Jim Meyering  <meyering@ascend.com>
4517
4518         * jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
4519         superset of the AC_TYPE_* checks in the textutils, fileutils,
4520         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
4521         AC_TYPE_PID_T.
4522
4523 1999-03-28  Jim Meyering  <meyering@ascend.com>
4524
4525         * jm-macros.m4: Define GNU_PACKAGE here.
4526         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
4527         replaced e.g., in the *.sh files of the sh-utils.
4528
4529 1999-03-20  Jim Meyering  <meyering@ascend.com>
4530
4531         * jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
4532         * regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
4533         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
4534
4535 1999-03-19  Jim Meyering  <meyering@ascend.com>
4536
4537         * jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
4538
4539 1999-03-12  Jim Meyering  <meyering@ascend.com>
4540
4541         * jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
4542
4543 1999-03-07  Jim Meyering  <meyering@ascend.com>
4544
4545         * jm-glibc-io.m4: Use only those *_unlocked macros that are declared.
4546
4547 1999-02-17  Jim Meyering  <meyering@ascend.com>
4548
4549         * gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of brackets
4550         in macro definition.  From Eli Zaretskii and Alain Magloire.
4551
4552 1999-02-07  Jim Meyering  <meyering@ascend.com>
4553
4554         * group-member.m4: New file -- extracted from sh-utils' configure.in.
4555
4556         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
4557         * gettext.m4: Support DOS-style d:/foo/bar absolute file names.
4558
4559 1999-02-06  Jim Meyering  <meyering@ascend.com>
4560
4561         * chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
4562         * fnmatch.m4: Likewise.
4563         * getgroups.m4: Likewise.
4564         * lstat.m4: Likewise.
4565         * malloc.m4: Likewise.
4566         * putenv.m4: Likewise.
4567         * realloc.m4: Likewise.
4568         * regex.m4: Likewise.
4569         * stat.m4: Likewise.
4570         * strftime.m4: Likewise.
4571         Suggestion from Alain Magloire.
4572
4573         * chown.m4: Use `.$ac_objext', not `.o'.
4574         * fnmatch.m4: Likewise.
4575         * getgroups.m4: Likewise.
4576         * getline.m4: Likewise.
4577         * lstat.m4: Likewise.
4578         * malloc.m4: Likewise.
4579         * memcmp.m4: Likewise.
4580         * putenv.m4: Likewise.
4581         * realloc.m4: Likewise.
4582         * regex.m4: Likewise.
4583         * stat.m4: Likewise.
4584         * strftime.m4: Likewise.
4585         Suggestion from Alain Magloire.
4586
4587         * jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
4588         an argument.
4589
4590         * regex.m4: Add a run-time Test for proper operation of
4591         re_compile_pattern.
4592
4593 1999-01-31  Jim Meyering  <meyering@ascend.com>
4594
4595         * getloadavg.m4: Check for locale.h and the function, setlocale.
4596
4597 1999-01-30  Jim Meyering  <meyering@ascend.com>
4598
4599         * check-type.m4: Use 3-arg form of AC_DEFINE.
4600
4601         * jm-mktime.m4: Make this a wrapper around the official AM_FUNC_MKTIME
4602         rather than my private copy, now that the official one is up to date.
4603         * mktime.m4: Remove file.
4604
4605         * getloadavg.m4: Use 3-arg form of AC_DEFINE.
4606         * uptime.m4: Likewise.
4607         * uintmax_t.m4: Likewise.
4608
4609 1999-01-28  Jim Meyering  <meyering@ascend.com>
4610
4611         * jm-macros.m4: Use jm_AFS.
4612         * afs.m4: New file (from fileutils' configure.in).
4613
4614         * assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
4615         * chown.m4: Likewise.
4616         * d-ino.m4: Likewise.
4617         * d-type.m4: Likewise.
4618         * fnmatch.m4: Likewise.
4619         * getgroups.m4: Likewise.
4620         * gettext.m4: Likewise.
4621         * jm-mktime.m4: Likewise.
4622         * jm-winsz2.m4: Likewise.
4623         * lcmessage.m4: Likewise.
4624         * ls-mntd-fs.m4: Likewise.
4625         * malloc.m4: Likewise.
4626         * memcmp.m4: Likewise.
4627         * putenv.m4: Likewise.
4628         * realloc.m4: Likewise.
4629         * st_mtim.m4: Likewise.
4630         * strftime.m4: Likewise.
4631
4632 1999-01-16  Jim Meyering  <meyering@ascend.com>
4633
4634         * jm-macros.m4 (ARGMATCH_DIE): Define.
4635         (ARGMATCH_DIE_DECL): Define.
4636
4637 1999-01-12  Jim Meyering  <meyering@ascend.com>
4638
4639         * Makefile.am.in: Rewrite to avoid using fmt.
4640         Reported by Lars Hecking.
4641
4642 1999-01-10  Jim Meyering  <meyering@ascend.com>
4643
4644         * fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
4645         gross kludge.
4646         * inttypes_h.m4: Likewise.
4647         * lstat.m4: Likewise.
4648         * malloc.m4: Likewise.
4649         * readdir.m4: Likewise.
4650         * realloc.m4: Likewise.
4651         * st_dm_mode.m4: Likewise.
4652         * stat.m4: Likewise.
4653         * utimbuf.m4: Likewise.
4654         * utimes.m4: Likewise.
4655
4656         * check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
4657         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
4658         comments in config.h.in are meaningful.
4659
4660         * jm-macros.m4: Require autoconf-2.13 here.
4661
4662         * regex.m4: By default, don't use the included regex.c on systems
4663         with glibc 2.  Suggestion from Uli Drepper.
4664
4665 1999-01-02  Jim Meyering  <meyering@ascend.com>
4666
4667         * jm-macros.m4: Replace strcasecmp and strncasecmp.
4668
4669 1998-12-18  Jim Meyering  <meyering@ascend.com>
4670
4671         * Makefile.am.in (Makefile.am): Simplify rule.
4672         Based on a suggestion from Lars Hecking.
4673
4674 1998-11-16  Jim Meyering  <meyering@ascend.com>
4675
4676         * lfs.m4: Double-quote the `uname...` expression.
4677
4678 1998-11-16  Paul Eggert  <eggert@twinsun.com>
4679
4680         * lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
4681
4682 1998-11-14  Jim Meyering  <meyering@ascend.com>
4683
4684         * lstat.m4: Correct comment.  POSIX does not permit it to succeed.
4685         * stat.m4: Likewise.
4686
4687 1998-11-03  Jim Meyering  <meyering@ascend.com>
4688
4689         * stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
4690         * lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
4691
4692 1998-10-18  Jim Meyering  <meyering@ascend.com>
4693
4694         * check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
4695
4696 1998-10-17  Jim Meyering  <meyering@ascend.com>
4697
4698         * decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
4699         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
4700         calls for those previously hard-coded headers.  Instead, take a new
4701         parameter.
4702         (jm_CHECK_DECLARATIONS): Reflect interface change.
4703         * check-decl.m4 (jm_CHECK_DECLS): Likewise.
4704         (jm_CHECK_DECL_LOCALTIME_R): New macro.
4705
4706         * mktime.m4: Test for spring-forward gap before long-running test.
4707
4708 1998-10-14  Jim Meyering  <meyering@ascend.com>
4709
4710         * mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
4711         instead of "TZ=America/Vancouver".  From Paul Eggert.
4712
4713 1998-10-11  Jim Meyering  <meyering@ascend.com>
4714
4715         * mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
4716         This adds a test for a recently added compatibility fix for mktime.c.
4717         * jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
4718
4719 1998-09-27  Jim Meyering  <meyering@ascend.com>
4720
4721         * jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
4722
4723         * fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
4724         ../configure.in, including a change from Gordon Matzigkeit to allow
4725         cross-compiling for the Hurd.
4726
4727         * glibc.m4: New file/macro to test for the GNU C Library
4728         versions 1 and 2.  From Gordon Matzigkeit.
4729         Indent.
4730
4731 1998-09-21  Jim Meyering  <meyering@ascend.com>
4732
4733         * chown.m4: Declare locals: before, after.  From Andries Brouwer.
4734
4735 1998-08-18  Paul Eggert  <eggert@twinsun.com>
4736
4737         Port nanosecond-resolution times to UnixWare 2.1.2 and
4738         pedantic Solaris 2.6.
4739
4740         * st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
4741         AC_STRUCT_ST_MTIM.
4742         * st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
4743         Generate name of ns member, instead of just 1 or undef.
4744         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
4745
4746 1998-08-15  Jim Meyering  <meyering@ascend.com>
4747
4748         * ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
4749         * check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
4750         * jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
4751         instead of jm_TYPE_SSIZE_T.
4752
4753 1998-08-12  Jim Meyering  <meyering@ascend.com>
4754
4755         * st_dm_mode.m4: New file.  From Johan Danielsson.
4756
4757 1998-08-02  Jim Meyering  <meyering@ascend.com>
4758
4759         * st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
4760         in acconfig.h manually.
4761
4762 1998-07-31  Paul Eggert  <eggert@twinsun.com>
4763
4764         * st_mtim.m4: New file.
4765
4766 1998-07-28  Jim Meyering  <meyering@ascend.com>
4767
4768         * utimes.m4: Undef stat.
4769
4770 1998-07-25  Jim Meyering  <meyering@ascend.com>
4771
4772         * utime.m4 (jm_FUNC_UTIME): New file and macro.
4773         * utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
4774
4775 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
4776
4777         * chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
4778         uid and gid actually remain unchanged.
4779
4780 1998-07-07  Jim Meyering  <meyering@ascend.com>
4781
4782         * jm-glibc-io.m4: Remove fclose_unlocked.
4783
4784 1998-07-04  Jim Meyering  <meyering@ascend.com>
4785
4786         * regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
4787         to prove that this macro can be used in packages without regex.c.
4788
4789 1998-07-02  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4790
4791         * gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
4792         is to be used.
4793
4794 1998-07-03  Jim Meyering  <meyering@ascend.com>
4795
4796         * gettext.m4: Add -lintl if it's found to be necessary.
4797
4798         * gettext.m4: New file -- from gettext-0.10.35.
4799         * lcmessage.m4: Likewise.
4800         * progtest.m4: Likewise.
4801
4802         * regex.m4 (jm_WITH_REGEX): New file and macro.
4803         * jm-macros.m4: Require the new macro.
4804
4805 1998-06-29  Jim Meyering  <meyering@ascend.com>
4806
4807         * fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
4808         for the definition of NGROUPS (used in a system header included
4809         by sys/mount.h).
4810
4811 1998-06-28  Jim Meyering  <meyering@ascend.com>
4812
4813         * ls-mntd-fs.m4: New file.
4814         * fstypename.m4: New file.
4815
4816         * jm-macros.m4: Require the new macro.
4817         * jm-glibc-io.m4: New file.
4818
4819 1998-05-19  Jim Meyering  <meyering@ascend.com>
4820
4821         * jm-macros.m4: Add jm_FUNC_LCHOWN.
4822         * lchown.m4: New file.
4823
4824         * Makefile.am.in: New file.
4825         * Makefile.am (Makefile.am): Depend on Makefile.am.in.
4826
4827 1998-05-14  Jim Meyering  <meyering@ascend.com>
4828
4829         * Makefile.am (EXTRA_DIST): Add them.
4830         * jm-macros.m4: New file.
4831         * utimbuf.m4: New file.
4832
4833 1998-05-12  Jim Meyering  <meyering@ascend.com>
4834
4835         * Makefile.am (EXTRA_DIST): Add isc-posix.m4.
4836
4837 1998-05-11  Jim Meyering  <meyering@ascend.com>
4838
4839         * isc-posix.m4: New file.
4840
4841 1998-05-10  Jim Meyering  <meyering@ascend.com>
4842
4843         * jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
4844
4845 1998-05-09  Jim Meyering  <meyering@ascend.com>
4846
4847         * Makefile.am (EXTRA_DIST): Add ssize_t.m4.
4848         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
4849         with automake.
4850
4851         * ssize_t.m4: New file.
4852         * mktime.m4: Remove file -- the new automake has this now.
4853
4854 1998-04-26  Jim Meyering  <meyering@ascend.com>
4855
4856         * assert.m4: New file.
4857         * Makefile.am (EXTRA_DIST): Add assert.m4.
4858
4859 1998-04-05  Jim Meyering  <meyering@ascend.com>
4860
4861         * prereq.m4 (jm_PREREQ_REGEX): New macro.
4862         (jm_PREREQ): Use it here.
4863
4864 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
4865
4866         * inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
4867         in acconfig.h.
4868
4869 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
4870
4871         * prereq.m4: New file.
4872         * error.m4: New file.
4873         * Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
4874
4875 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
4876
4877         * getline.m4: Don't set am_cv_func_working_getline before the
4878         cache-check for the same variable -- that defeated the purpose of
4879         the test; the test program was never run.  This was a problem only
4880         on systems with losing getline functions -- HP-UX 10.20 is one.
4881         Reported by Bjorn Helgaas.
4882
4883 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
4884
4885         * Makefile.am (EXTRA_DIST): Add perl.m4.
4886
4887 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
4888
4889         * Makefile.am (EXTRA_DIST): Add const.m4.
4890
4891         * const.m4: New file.  Use an initializer in this declaration
4892         typedef int charset[2]; const charset x;
4893         Reported by Bob Glickstein.
4894
4895 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
4896
4897         * chown.m4: Fix reversed types on -1 args to chown.
4898         From Kaveh Ghazi.
4899
4900 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
4901
4902         * check-decl.m4: s/DECLARATION_/DECL_/g.
4903         Add lseek and memchr.
4904
4905         * decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
4906         T.E.Dickey <dickey@clark.net> said that some older preprocessors
4907         have a 20-character limit on names.
4908
4909 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
4910
4911         * inttypes_h.m4: New file.
4912         * uintmax_t.m4: New file.
4913         * Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
4914
4915 Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
4916   Free Software Foundation, Inc.
4917 Copying and distribution of this file, with or without modification,
4918 are permitted provided the copyright notice and this notice are preserved.