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