ansi-c++-opt: Find correct compiler when cross-compiling.
[gnulib.git] / ChangeLog
index 5ac07f2..c88ea6a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,317 @@
+2010-04-24  Bruno Haible  <bruno@clisp.org>
+
+       ansi-c++-opt: Find correct compiler when cross-compiling.
+       * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
+       AC_CHECK_PROGS.
+       Reported by Simon Josefsson.
+
+2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
+
+       vc-list-files: Add support for subversion
+       * build-aux/vc-list-files: Use "svn list" to generate the list of
+       files controlled by subversion.
+
+2010-04-23  Jim Meyering  <meyering@redhat.com>
+
+       vc-list-files tests: convert to use init.sh
+       * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
+       path_prepend_.
+       Use Exit, not exit.
+       Use skip_ rather than open coding it.
+       Remove trap set-up and compare definitions.
+       * tests/test-vc-list-files-git.sh: Likewise.
+       * modules/vc-list-files-tests (Files): Add tests/init.sh.
+
+2010-04-22  Simon Josefsson  <simon@josefsson.org>
+
+       * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
+       backup files.
+
+2010-04-21  Simon Josefsson  <simon@josefsson.org>
+
+       * tests/test-vasprintf.c: Test %08lx.
+
+2010-04-20  Eric Blake  <eblake@redhat.com>
+
+       tests: be robust to ignored SIGPIPE
+       * tests/test-select-in.sh: Consume all output.
+       * tests/test-lseek.sh: Check correct exit status, while avoiding
+       EPIPE.
+
+2010-04-20  Simon Josefsson  <simon@josefsson.org>
+            Bruno Haible  <bruno@clisp.org>
+
+       visibility: Don't use -fvisibility if it leads to a warning.
+       * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
+       yes, don't pretend that visibility works if it leads to a warning.
+       Reported by Mike Gran <spk121@yahoo.com>.
+
+2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
+
+       * build-aux/bootstrap: Use "git -h" for testing for supported options
+       instead of "git --help".  The short-form option only shows a summary,
+       and doesn't layout the full man page.  Grep for the full option name
+       in the summary, too.
+
+2010-04-19  Bruno Haible  <bruno@clisp.org>
+
+       relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
+       * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
+       * doc/relocatable-maint.texi (Supporting Relocation): Remove the
+       mention of RELOCATABLE_STRIP.
+       Reported by Sylvain Beucler <beuc@beuc.net>.
+
+2010-04-19  Bruno Haible  <bruno@clisp.org>
+
+       * lib/diffseq.h: Fix typo in comment.
+       Reported by Eric Blake.
+
+2010-04-19  Bruno Haible  <bruno@clisp.org>
+
+       ioctl: Move autoconf macro to a .m4 file.
+       * m4/ioctl.m4: New file, extracted from modules/ioctl.
+       * modules/ioctl (Files): Add it.
+       (configure.ac): Simply invoke gl_FUNC_IOCTL.
+       Reported by Ian Beckwith <ianb@erislabs.net>.
+
+2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
+            Bruno Haible  <bruno@clisp.org>
+
+       diffseq: Accommodate use-case with abstract arrays.
+       * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
+       is not defined.
+       (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
+       defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
+
+2010-04-18  Bruno Haible  <bruno@clisp.org>
+
+       * doc/posix-headers/stdbool.texi: More precise wording.
+
+2010-04-17  Jim Meyering  <meyering@redhat.com>
+
+       maint.mk: use gnu-style indentation in an embedded perl script
+       * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
+       Rename variable: s/two/last_two_bytes/
+
+2010-04-16  Eric Blake  <eblake@redhat.com>
+
+       test-stdbool: skip test that fails with Solaris CC
+       * tests/test-stdbool.c (f): Skip test that causes compilation
+       error under buggy C++ compiler.
+       * lib/stdbool.in.h: Document the limitation.
+       * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
+
+       setenv: allow compilation with C++
+       * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
+       register keyword.
+
+       stdint: allow test to pass with C++
+       * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
+
+       getopt: allow compilation with C++
+       * lib/getopt_int.h (__ordering): Hoist enum declaration outside
+       struct.
+       * lib/getopt.c (_getopt_internal_r): Use correct type.
+       Reported by Dagobert Michelson, via Joel E. Denny.
+
+2010-04-16  Bruno Haible  <bruno@clisp.org>
+
+       Override netdb.h always.
+       * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
+       * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
+       Reported by Ludovic Courtès <ludo@gnu.org>.
+
+2010-04-15  Bruno Haible  <bruno@clisp.org>
+
+       openpty: Fix mistake from 2010-03-21.
+       * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
+       Reported by Simon Josefsson.
+
+2010-04-15  Eric Blake  <eblake@redhat.com>
+
+       test-forkpty: fix expected signature
+       * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
+       Reported by Simon Josefsson.
+
+2010-04-15  Jim Meyering  <meyering@redhat.com>
+
+       maint.mk: texinfo_suffix_re_: correct the default regexp
+       * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
+
+       * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
+       make it configurable via texinfo_suffix_re_.
+
+2010-04-14  Eric Blake  <eblake@redhat.com>
+
+       strtok_r: relax license to LGPLv2+
+       * modules/strtok_r (License): Relax license.
+       Reported by Matthias Bolte.
+
+2010-04-14  Simon Josefsson  <simon@josefsson.org>
+
+       * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
+       version 1.4.4 by default instead of requiring the libgcrypt
+       version used during build.  This makes it possible to use the
+       application with older but still binary compatible libgcrypt
+       versions.
+
+2010-04-13  Eric Blake  <eblake@redhat.com>
+
+       getopt-gnu: match recent glibc fixes and posix ruling
+       * tests/test-getopt.h (test_getopt): Strengthen tests of leading
+       '+' handling, when requesting extensions.
+       * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
+       'W;' handling.
+       * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
+       * doc/posix-functions/getopt.texi (getopt): Document this.
+       * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
+       * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
+       Likewise.
+
+       getopt: merge bug fixes from glibc
+       * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
+       diagnostics.  Honor '+:' correctly.  Reject ';'.
+
+       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.
+
+       gnulib-tool: silence warning on BSD sh
+       * gnulib-tool: Avoid leaking warning about unknown 'declare'.
+
+2010-04-13  Jim Meyering  <meyering@redhat.com>
+
+       doc: users.txt: GNU patch now uses gnulib
+       * users.txt: Add patch.
+
+2010-04-12  Jim Meyering  <meyering@redhat.com>
+
+       maint.mk: generate more concise timing data for syntax-check rules
+       * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
+       " done" from each line that reports a syntax-check test duration.
+
+2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
+
+       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  Jim Meyering  <meyering@redhat.com>
+
+       openat: correct formatting (no semantic change)
+       * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
+       Suggested by Bruno Haible.
+
+2010-04-11  Bruno Haible  <bruno@clisp.org>
+
+       Stricter declaration checking in testdirs.
+       * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
+       If for_tests is true, augment AM_CPPFLAGS to define
+       GNULIB_STRICT_CHECKING.
+       * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
+       GNULIB_STRICT_CHECKING is defined, verify that the function is
+       declared.
+
+2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
+            Bruno Haible  <bruno@clisp.org>
+
+       libunistring: Improve configure output.
+       * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
+       Don't say "consider installing GNU libunistring" when checking again
+       with libiconv.
+
+2010-04-11  Bruno Haible  <bruno@clisp.org>
+
+       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  <bruno@clisp.org>
+
+       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  <bruno@clisp.org>
+
+       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  James Youngman  <jay@gnu.org>
+
+       close-stream: declare local scalars to be "const"
+       * lib/close-stream.c (close_stream): Make boolean variables const
+       to document the fact that we set but do not change them.
+
+2010-04-11  Bruno Haible  <bruno@clisp.org>
+
+       * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
+
+2010-04-11  Jim Meyering  <meyering@redhat.com>
+
+       maint.mk: don't include dist-check.mk
+       * top/maint.mk: Remove bogus include directive.
+
+       maint.mk: improve empty-line-at-EOF check
+       * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
+       solution, rather than tail+Perl-based one.  The latter would read
+       a few kilobytes from the end of each file, and did not handle empty
+       files properly.
+
+       maint.mk: print the elapsed time for each syntax-check rule
+       * top/maint.mk (sc_m_rules_): Save start time in a file.
+       (sc_z_rules_): New rules: remove temp file and print elapsed time.
+       (local-check): Interpose the .z rules
+
+2010-04-11  Jim Meyering  <meyering@redhat.com>
+
+       maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
+       * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
+       empty file with one that ends in an empty line.
+
+2010-04-10  Bruno Haible  <bruno@clisp.org>
+
+       mkdir: Make it work on mingw64.
+       * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
+       * lib/mkdir.c: Update comment.
+       Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
+
+2010-04-10  Bruno Haible  <bruno@clisp.org>
+
+       Don't override improved macro from newer autoconf.
+       * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
+       autoconf >= 2.62.
+       Reported by Joel E. Denny <jdenny@clemson.edu>.
+
+2010-04-10  Jim Meyering  <meyering@redhat.com>
+
+       maint.mk: new syntax-check rule: prohibit empty lines at end of file
+       * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
+
+       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  <address@hidden>
+
+       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  <bruno@clisp.org>
 
        vasnprintf: Add more tests.