Avoid side effects from tests-related modules on the compilation of lib.
[gnulib.git] / ChangeLog
index f30bdbf..57ded7c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,140 @@
+2010-03-27  Bruno Haible  <bruno@clisp.org>
+
+       Avoid side effects from tests-related modules on the compilation of lib.
+       * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
+       (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
+       * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
+       parameter. Emit into AM_CPPFLAGS a definition of the designated C
+       macro.
+       (func_import): Define a witness macro. Assign it a value that depends
+       on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
+       tests-related modules.
+       (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
+       Reported by Jim Meyering.
+
+2010-03-27  Bruno Haible  <bruno@clisp.org>
+
+       Factorize common .m4 code.
+       * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
+       * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
+       * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
+       * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
+       * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
+       * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
+       * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
+       * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
+       * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
+       * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
+       * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
+       * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
+       * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
+       * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
+       * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
+       * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
+       * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
+       * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
+       * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
+       * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
+       * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
+       * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
+       * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
+       * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
+       * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
+       * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
+       * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
+       * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
+       * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
+       * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
+       * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
+       * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
+
+2010-03-27  Bruno Haible  <bruno@clisp.org>
+
+       Fix a compilation error on Cygwin with g++ >= 4.3.
+       * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
+       if it is undefined or if we alias it to chmod.
+       (lstat): Don't warn about the use of this function if it is undefined
+       or if we alias it to stat.
+       Reported by Simon Josefsson.
+
+2010-03-27  Bruno Haible  <bruno@clisp.org>
+
+       * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
+       * modules/getlogin (configure.ac): Update.
+
+       * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
+       * modules/getlogin_r (configure.ac): Update.
+
+       * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
+       * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
+       * modules/inet_ntop (configure.ac): Update.
+
+       * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
+       * modules/inet_pton (configure.ac): Update.
+
+       * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
+       * modules/mbslen (configure.ac): Update.
+
+       * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
+       (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
+       * modules/forkpty (configure.ac): Update.
+       * modules/openpty (configure.ac): Update.
+
+2010-03-26  Simon Josefsson  <simon@josefsson.org>
+
+       * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
+       no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
+
+2010-03-25  Eric Blake  <eblake@redhat.com>
+
+       maint: use pragma consistently across replacement headers
+       * lib/ctype.in.h (system_header): Hoist for consistent placement.
+       * lib/dirent.in.h (system_header): Likewise.
+       * lib/errno.in.h (system_header): Likewise.
+       * lib/float.in.h (system_header): Likewise.
+       * lib/getopt.in.h (system_header): Likewise.
+       * lib/iconv.in.h (system_header): Likewise.
+       * lib/inttypes.in.h (system_header): Likewise.
+       * lib/langinfo.in.h (system_header): Likewise.
+       * lib/locale.in.h (system_header): Likewise.
+       * lib/math.in.h (system_header): Likewise.
+       * lib/netdb.in.h (system_header): Likewise.
+       * lib/netinet_in.in.h (system_header): Likewise.
+       * lib/pty.in.h (system_header): Likewise.
+       * lib/sched.in.h (system_header): Likewise.
+       * lib/se-selinux.in.h (system_header): Likewise.
+       * lib/search.in.h (system_header): Likewise.
+       * lib/spawn.in.h (system_header): Likewise.
+       * lib/stdarg.in.h (system_header): Likewise.
+       * lib/stdint.in.h (system_header): Likewise.
+       * lib/string.in.h (system_header): Likewise.
+       * lib/strings.in.h (system_header): Likewise.
+       * lib/sys_file.in.h (system_header): Likewise.
+       * lib/sys_ioctl.in.h (system_header): Likewise.
+       * lib/sys_socket.in.h (system_header): Likewise.
+       * lib/sys_times.in.h (system_header): Likewise.
+       * lib/sys_utsname.in.h (system_header): Likewise.
+       * lib/sys_wait.in.h (system_header): Likewise.
+       * lib/sysexits.in.h (system_header): Likewise.
+       * lib/unistd.in.h (system_header): Likewise.
+       * lib/wctype.in.h (system_header): Likewise.
+
+       arpa/inet: fix mingw compilation warning
+       * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
+       Reported by Matthew Bolte.
+
+2010-03-25  Bruno Haible  <bruno@clisp.org>
+
+       Avoid collision between gnulib wrapper and libintl wrapper.
+       * lib/printf.c (printf): Don't define if a printf wrapper is already
+       defined in intl/printf.c.
+       Reported by Michel Boaventura <michel@michelboaventura.com>.
+
+2010-03-25  Bruno Haible  <bruno@clisp.org>
+
+       Use ANSI C.
+       * lib/readutmp.h (getutent): Provide ANSI C prototype.
+
 2010-03-25  Bruno Haible  <bruno@clisp.org>
 
        Minor formatting changes.
        errno value in error message.
 
 2010-03-20  Bruno Haible  <bruno@clisp.org>
-            Jim Meyering  <meyering@redhat.com>
+           Jim Meyering  <meyering@redhat.com>
 
        lchown: Avoid "unused variable" warning.
        * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.