X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=ChangeLog;h=f0f323996293e1f38e6dc9d3eed11014a08108a9;hb=d711c3032e93195bfb11d703f86af745a873e121;hp=db74668c1662c9cadebe165b1383cd30925e8306;hpb=6050218aa0cfc0667bac087b677d6cbec5880bfb;p=gnulib.git diff --git a/ChangeLog b/ChangeLog index db74668c1..f0f323996 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,586 @@ +2010-04-13 Eric Blake + + getopt-posix: detect MacOS bug + * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of + optind when missing a required argument. + * doc/posix-functions/getopt.texi (getopt): Document the bug. + * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise. + * doc/glibc-functions/getopt_long_only.texi (getopt_long_only): + Likewise. + + getopt-posix: avoid spurious failure on Solaris + * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as + an indicator that setting optind=1 is sufficient for reset. + + getopt-posix: avoid spurious failure on FreeBSD + * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even + in POSIX mode, since the m4 test uses it. + +2010-04-13 Jim Meyering + + doc: users.txt: GNU patch now uses gnulib + * users.txt: Add patch. + +2010-04-12 Andreas Gruenbacher + + git-version-gen: use "git update-index..." rather than "git status" + * build-aux/git-version-gen: Use git update-index --refresh, not + "git status". With some versions of git, "git status" would fail + to update the index and result in an unwarranted "-dirty" suffix. + +2010-04-11 Bruno Haible + + libunistring: Correct value of $LTLIBUNISTRING. + * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv, + correct the value of $LTLIBUNISTRING. + +2010-04-11 Bruno Haible + + havelib: Add static libraries to LIBS in the right order. + * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no + -l options, prepend it to $LIBS, instead of appending it to $LIBS. + +2010-04-11 Bruno Haible + + libunistring: Detect libunistring also when it depends on libiconv. + * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before + the second AC_LIB_HAVE_LINKFLAGS invocation. + +2010-04-11 Bruno Haible + + * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment. + +2010-04-10 Bruno Haible + + mkdir: Make it work on mingw64. + * lib/sys_stat.in.h: Include together with . + * lib/mkdir.c: Update comment. + Reported by Roman Donchenko (Роман Донченко) . + +2010-04-10 Jim Meyering + + maint.mk: correct a diagnostic + * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re + in diagnostic; now use $prohibit. + +2010-04-10 Bruno Haible + + fchownat: Fix a C++ test error on Solaris 8. + * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if + the function does not exist. + +2010-04-10 Bruno Haible + + vasnprintf: Add more tests. + * tests/test-vasnprintf-posix.c: Include . + (test_function): Test converting an invalid wide string. + + vasnprintf: Correct handling of unconvertible wide string arguments. + * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from + VASNPRINTF. + (VASNPRINTF): Use it. After snprintf failed, allocate more memory only + if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is + smaller than the expected maximum need for the directive. Set errno to + EILSEQ, not EINVAL, when the directive is 'c' or 's'. + (local_strnlen, local_wcslen, local_wcsnlen): Update conditions. + * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and + gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99. + * modules/vasnprintf (Files): Add m4/printf.m4. + Reported by Jarno Rajahalme . + +2010-04-10 Bruno Haible + + vasnprintf: Fix crash in %ls directive. + * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide + string is passed as argument to %ls, with no precision and no width. + Reported by Jarno Rajahalme . + +2010-04-10 Bruno Haible + + vasnprintf: Fix multiple test failures on mingw. + * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not + _snprintf, or snwprintf, not _snwprintf. + +2010-04-10 Bruno Haible + + write: Fix a C++ test error on mingw. + * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST. + +2010-04-10 Bruno Haible + + vasnprintf test: Reduce code duplication. + * tests/test-vasnprintf.c (test_function): New function, extracted from + test_vasnprintf. + (test_vasnprintf, test_asnprintf): Invoke it. + +2010-04-08 James Youngman + + * doc/manywarnings.texi (manywarnings): Add missing parenthesis in + the example. + +2010-04-09 Jim Meyering + + init.sh: run tr in the "C" locale to avoid multibyte interpretation + * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does + not try to interpret its random input bytes. Jarno Rajahalme reported + that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence". + on Darwin 10.3.0 with LC_CTYPE=UTF-8. + (mktempd_): Likewise, just in case. + + ftruncate: add two years to projected module removal date: 2012 + * m4/ftruncate.m4: Adjust comments. + + ftruncate: mark module as obsolete; even MinGW provides it, now + * modules/ftruncate (Status): Obsolete. + (Notice): Say that. + * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it. + http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203 + +2010-04-08 Bruno Haible + + Fix side effects from tests-related modules. + * modules/dprintf-posix (Comment): New section. + * modules/fprintf-posix (Comment): Likewise. + * modules/obstack-printf-posix (Comment): Likewise. + * modules/printf-posix (Comment): Likewise. + * modules/snprintf-posix (Comment): Likewise. + * modules/sprintf-posix (Comment): Likewise. + * modules/vasnprintf-posix (Comment): Likewise. + * modules/vasprintf-posix (Comment): Likewise. + * modules/vdprintf-posix (Comment): Likewise. + * modules/vfprintf-posix (Comment): Likewise. + * modules/vprintf-posix (Comment): Likewise. + * modules/vsnprintf-posix (Comment): Likewise. + * modules/vsprintf-posix (Comment): Likewise. + * modules/xprintf-posix (Comment): Likewise. + * modules/xvasprintf-posix (Comment): Likewise. + * modules/ceilf-tests (Depends-on): Remove fprintf-posix. + * modules/floorf-tests (Depends-on): Likewise. + * modules/round-tests (Depends-on): Likewise. + * modules/roundf-tests (Depends-on): Likewise. + * modules/trunc-tests (Depends-on): Likewise. + * modules/truncf-tests (Depends-on): Likewise. + * tests/test-ceilf2.c (check): Don't invoke fprintf if the + 'fprintf-posix' module is not present. + * tests/test-floorf2.c (check): Likewise. + * tests/test-trunc2.c (check): Likewise. + * tests/test-truncf2.c (check): Likewise. + * tests/test-round2.c (equal): Likewise. + Reported by Jarno Rajahalme . + +2010-04-07 Karl Berry + + * config/srclist.txt, + * config/srclistvars.sh, + * config/srclist-update: doc fixes. + +2010-04-07 Jim Meyering + + maint.mk: add a PATH crosschecking syntax-check rule + * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule. + Useful if you use a test like the one in help-version (coreutils, + diffutils, grep, gzip) that ensures $(VERSION) matches what is + printed by prog --version. + +2010-04-06 Bruno Haible + + Fix link error on mingw. + * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET. + * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise. + +2010-04-06 Bruno Haible + + Assume rmdir exists. + * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program. + +2010-04-06 Giuseppe Scrivano + + doc: update users.txt + * users.txt: Add gcal. + +2010-04-06 Jim Meyering + + init.sh: simply unset TMPDIR rather than risking env -i + * tests/init.sh (mktempd_): Using env -i is rather harsh, and + although it probably works fine on all Unix-based systems, some + systems (Cygwin?) cannot tolerate a totally cleared environment. + Suggestion from Eric Blake. + +2010-04-06 Jim Meyering + + init.sh: portability fix: use env's POSIX-specified -i option not -u + * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather + than unportable env -u. Solaris 5.11's env lacks support for -u. + +2010-04-05 Bruno Haible + + btowc: Work around Cygwin 1.7.2 bug. + * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function + does not map NUL to 0. + * doc/posix-functions/btowc.texi: Mention the Cygwin bug. + +2010-04-05 Bruno Haible + + Make the multithread modules work on Cygwin 1.7.2. + * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether + imported symbols can be declared weak, so that it returns "no" on + Cygwin 1.7.2. + +2010-04-05 Bruno Haible + + Use the module 'strncat'. + * modules/unistr/u8-strncat (Depends-on): Add strncat. + + Tests for module 'strncat'. + * modules/strncat-tests: New file. + * tests/test-strncat.c: New file. + + New module 'strncat'. + * lib/string.in.h (strncat): New declaration. + * lib/strncat.c: New file, based on lib/unistr/u-strncat.h. + * m4/strncat.m4: New file, based on m4/memchr.m4. + * modules/strncat: New file. + * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat + is declared. + (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT, + REPLACE_STRNCAT. + * modules/string (Makefile.am): Substitute GNULIB_STRNCAT, + REPLACE_STRNCAT. + * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new + module. + * tests/test-string-c++.cc: Check signature of strncat. + +2010-04-05 Jim Meyering + + xstrtoumax-tests: convert to use init.sh + * modules/xstrtoumax-tests (Files): Add tests/init.sh. + * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_. + Use Exit, not exit. + Remove uses of $EXEEXT and "./" to run a program in the current dir. + + xstrtoimax-tests: convert to use init.sh + * modules/xstrtoimax-tests (Files): Add tests/init.sh. + * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_. + Use Exit, not exit. + Remove uses of $EXEEXT and "./" to run a program in the current dir. + +2010-04-05 Bruno Haible + + sys_socket: Avoid #define replacements in C++ mode. + * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a + warning to the function if possible, rather than #defining the symbol + to a dysfunctional alias. + +2010-04-05 Bruno Haible + + fseeko: Fix C++ test error on mingw. + * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from + gl_FUNC_FSEEKO. + (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate. + (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update. + * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the + fseeko module. Instead, invoke gl_REPLACE_FSEEKO. + +2010-04-05 Bruno Haible + + duplocale: Improve test output. + * tests/test-duplocale.c (main): Print reason for skipped test. + +2010-04-05 Bruno Haible + + Assume rmdir exists. + * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists. + * doc/posix-functions/rmdir.texi: Remove mention of "old platforms". + +2010-04-05 Bruno Haible + + Fix link error on Solaris 8 with cc. + * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL. + +2010-04-05 Bruno Haible + + frexpl: Fix a C++ test error on Solaris 8 and Cygwin. + * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation. + +2010-04-05 Bruno Haible + + vasprintf: Update documentation. + * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module. + +2010-04-05 Bruno Haible + + ptsname: Improve test. + * tests/test-ptsname.c (main): Also try the various master names of BSD + systems. + +2010-04-05 Bruno Haible + + memchr: Avoid a possible C++ test error. + * lib/string.in.h (memchr): Provide declaration if function is missing. + * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set + HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1. + * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR. + * modules/string (Makefile.am): Substitute HAVE_MEMCHR. + +2010-04-05 Bruno Haible + + strtok_r: Improve idiom. + * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when + AC_LIBOBJ is used. + +2010-04-05 Bruno Haible + + strdup: Improve idiom. + * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when + AC_LIBOBJ is used. + (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX + compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only + when AC_LIBOBJ is used. + +2010-04-05 Bruno Haible + + mbsinit, mbrtowc, wcrtomb: Improve idioms. + * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist, + don't set REPLACE_MBSINIT to 1. + * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist, + don't set REPLACE_MBRTOWC to 1. + * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not + exist, don't set REPLACE_MBSRTOWCS to 1. + * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not + exist, don't set REPLACE_MBSNRTOWCS to 1. + * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist, + don't set REPLACE_WCRTOMB to 1. + * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not + exist, don't set REPLACE_WCSRTOMBS to 1. + * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not + exist, don't set REPLACE_WCSNRTOMBS to 1. + +2010-04-05 Bruno Haible + + ldexpl: Improve idiom. + * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared, + make sure to set HAVE_DECL_LDEXPL to 0. + +2010-04-05 Jim Meyering + + xstrtol-tests: convert to use init.sh + * modules/xstrtol-tests (Files): Add tests/init.sh. + * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_. + Use Exit, not exit. + Remove uses of $EXEEXT and "./" to run a program in the current dir. + + atexit-tests: convert to use init.sh + * modules/atexit-tests (Files): Add tests/init.sh. + * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_. + Use Exit, not exit. + Remove uses of $EXEEXT and "./" to run a program in the current dir. + + init.sh: fix typo + * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization. + + init.sh: make it easier for a test script to write to the tty, ... + when using automake's parallel-tests mode. + * tests/init.sh (stderr_fileno_): Define overridable variable. + (warn_): New function, to use it. + (fail_, skip_, framework_failure_): Use warn_. + +2010-04-04 Bruno Haible + + btowc: Avoid warning. + * lib/btowc.c: Include . + Reported by Hauke Fath . + +2010-04-04 Hauke Fath (tiny change) + Bruno Haible + + wchar: Port to NetBSD 1.5. + * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists. + * lib/wctype.in.h (WEOF): Likewise. + +2010-04-04 Hauke Fath (tiny change) + Bruno Haible + + Port extended stdio to NetBSD 1.5. + * lib/stdio-impl.h [NetBSD]: Include . + (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and + older. + +2010-04-04 Bruno Haible + + string: Remove unused substitution. + * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize + HAVE_DECL_STRERROR. + * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR. + +2010-04-04 Bruno Haible + + strtod: Avoid a possible C++ test error. + * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't + set REPLACE_STRTOD. + +2010-04-04 Bruno Haible + + strerror: Update documentation. + * doc/posix-functions/strerror.texi: Remove mention of old platforms. + +2010-04-04 Bruno Haible + + stdio: Fix some C++ test errors on Solaris 8 with GCC. + * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use + _GL_CXXALIAS_SYS_CAST. + +2010-04-04 Bruno Haible + + frexpl: Fix a C++ test error on Solaris 8 and Cygwin. + * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the + function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting + REPLACE_FREXPL to 1. + * doc/posix-functions/frexpl.texi: Update documentation. + +2010-04-04 Bruno Haible + + math: Fix some C++ test errors on Solaris 8 and Cygwin. + * lib/math.in.h (cosl, logl, sinl): Use simpler idiom. + +2010-04-04 Bruno Haible + + Implement nanosleep for native Windows. + * lib/nanosleep.c (nanosleep): New implementation for native Windows. + +2010-04-04 Bruno Haible + + math: Fix some C++ test errors on Solaris 8. + * lib/math.in.h (truncf, trunc): Use simpler idiom. + +2010-04-04 Bruno Haible + + math: Fix some C++ test errors on Cygwin. + * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl, + truncl): Provide declaration if the system does not have it. + * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set + HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1. + * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set + HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1. + * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set + HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1. + * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set + HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1. + * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set + HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1. + * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set + HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1. + * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set + HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1. + * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set + HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1. + * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF, + HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND, + HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL. + * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF, + HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND, + HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL. + +2010-04-04 Bruno Haible + + * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation. + * m4/ceill.m4 (gl_FUNC_CEILL): Likewise. + * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise. + * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise. + * m4/isfinite.m4 (gl_ISFINITE): Likewise. + * m4/isinf.m4 (gl_ISINF): Likewise. + * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise. + +2010-04-04 Bruno Haible + + * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation. + * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise. + +2010-04-04 Bruno Haible + + * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE. + * modules/tmpfile (configure.ac): Update. + + tmpfile: Fix C++ test error on mingw. + * lib/stdio.in.h (tmpfile): New declaration. + * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set + REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h. + * modules/tmpfile (Depends-on): Add stdio. + (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR. + * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared. + (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE. + * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and + REPLACE_TMPFILE. + * tests/test-stdio-c++.cc (tmpfile): Verify signature. + +2010-04-04 Bruno Haible + + ioctl: Fix C++ test error on mingw. + * lib/ioctl.c (ioctl): Renamed from rpl_ioctl. + * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1, + use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL. + +2010-04-03 Bruno Haible + + wcwidth: Fix C++ test error on mingw. + * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth. + * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not + exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH. + +2010-04-03 Bruno Haible + + nanosleep: Fix C++ test error on mingw. + * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep. + * lib/time.in.h (nanosleep): Use modern idiom. + * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a + nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting + REPLACE_NANOSLEEP to 1. + * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP. + * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP. + +2010-04-03 Bruno Haible + + strptime: Fix C++ test error on mingw. + * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME. + * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not + REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME. + (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME. + * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME, + not REPLACE_STRPTIME. + * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not + REPLACE_STRPTIME. + +2010-04-03 Bruno Haible + + timegm: Fix C++ test error on mingw. + * lib/time.in.h (timegm): Use modern idiom. + * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set + HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1. + * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM. + * modules/time (Makefile.am): Substitute HAVE_TIMEGM. + +2010-04-03 Bruno Haible + + timegm: Assume declaration if function exists. + * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only + if it exists. Don't clobber ac_cv_func_timegm. + +2010-04-03 Bruno Haible + + time_r: Fix C++ test error on mingw. + * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom. + * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set + HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1. + * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R. + * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R. + +2010-04-03 Bruno Haible + + time_r: Minor updates. + * modules/time_r (Description): Mention the provided functions. + * lib/time_r.c: Don't include . + * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module. + * doc/posix-functions/localtime_r.texi: Likewise. + 2010-04-03 Bruno Haible time: Fix regression introduced on 2010-03-08.