gnulib.git
13 years agoUnify tests that set gl_cv_func_frexpl_no_libm.
Bruno Haible [Mon, 12 Jul 2010 21:16:46 +0000 (23:16 +0200)]
Unify tests that set gl_cv_func_frexpl_no_libm.

13 years agoUnify tests that set gl_cv_func_frexp_no_libm.
Bruno Haible [Mon, 12 Jul 2010 21:08:21 +0000 (23:08 +0200)]
Unify tests that set gl_cv_func_frexp_no_libm.

13 years agomemcoll: clarify sizes versus lengths, document better, and tweak perf
Paul R. Eggert [Mon, 12 Jul 2010 17:58:35 +0000 (10:58 -0700)]
memcoll: clarify sizes versus lengths, document better, and tweak perf

* lib/memcoll.c (strcoll_loop, memcoll0):
Improve quality of descriptive comments.  Name variables
consistently as to whether they are lengths (which do not include
terminating null) versus sizes (which do).
* lib/xmemcoll.c (xmemcoll0): Likewise.
* lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
returned when s1size == 0; this is easier to compile and saves
about 17% of memcoll's code space on x86-64 with GCC 4.1.2.

13 years agoTests for module '_Exit'.
Bruno Haible [Mon, 12 Jul 2010 16:55:19 +0000 (18:55 +0200)]
Tests for module '_Exit'.

13 years agoNew module '_Exit'.
Bruno Haible [Mon, 12 Jul 2010 16:54:13 +0000 (18:54 +0200)]
New module '_Exit'.

13 years agostrtod: make it more-accurate typically, and don't require libm
Paul R. Eggert [Mon, 12 Jul 2010 16:14:10 +0000 (09:14 -0700)]
strtod: make it more-accurate typically, and don't require libm

* lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
Include limits.h.  Don't include string.h.
(HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
(locale_isspace): New function, so that no casts are needed to
check whether *s is a space.
(ldexp): Provide an unused dummy if not available.
(scale_radix_exp, parse_number, underlying_strtod): New functions.
(strtod): Use them.  This implementation prefers to use the
underlying strtod if available, falling back on our own code
only to fix known bugs.  This is more likely to produce an
accurate result.  Also, it avoids the use of libm functions.
* m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
was absent, but it caused a test failure with coreutils.
(gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
with libm.
* modules/strtod (Makefile.am, Link): libm is no longer needed.
* modules/strtod-tests (Makefile.am): Likewise.

13 years agoautoupdate
Karl Berry [Sun, 11 Jul 2010 18:45:38 +0000 (11:45 -0700)]
autoupdate

13 years agounistr/u8-strchr: Optimize ASCII argument case.
Pádraig Brady [Sun, 11 Jul 2010 13:28:55 +0000 (15:28 +0200)]
unistr/u8-strchr: Optimize ASCII argument case.

13 years ago(x)memcoll: minor tweaks
Paul Eggert [Fri, 9 Jul 2010 01:16:40 +0000 (18:16 -0700)]
(x)memcoll: minor tweaks

* lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
is after the type that it qualifies.
(memcoll0): Likewise.
* lib/memcoll.h (memcoll0): Likewise.
* lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
* lib/xmemcoll.h (xmemcoll0): Likewise.
* lib/memcoll.c (memcoll0): Correct the comment.  This function
differs from memcoll in that the NUL byte is part of the argument.
Omit the abort-checks, as performance is a real issue here.  Plus,
the checks were wrong anyway (an off-by-one error).  Omit local
variable 'diff', as it's a bit clearer that way.
* m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
no longer needed.

13 years ago(x)memcoll: speedup when input is known to be NUL delimited
Chen Guo [Thu, 8 Jul 2010 22:50:11 +0000 (15:50 -0700)]
(x)memcoll: speedup when input is known to be NUL delimited

* lib/memcoll.c: Include stdlib.
(memcoll0) New function.
(strcoll_loop) New function, refactored for use in both memcoll
and memcoll0.
* lib/memcoll.h: Add prototype for memcoll0.
* lib/xmemcoll.c: (xmemcoll0) New function.
(collate_error) New function, refactored for use in both xmemcoll
and xmemcoll0.
* lib/xmemcoll.h: Add prototype for xmemcoll0.
* m4/memcoll.m4: add inline invocation.

13 years agobootstrap: discard non translation project po files
Pádraig Brady [Tue, 6 Jul 2010 09:00:05 +0000 (10:00 +0100)]
bootstrap: discard non translation project po files

* build-aux/bootstrap (update_po_files): Remove any
local only files from the $po_dir/.reference directory.
The LINGUAS index is generated from this directory
and so those translations will not be distributed.
Note, local only translations are not removed from the
$po_dir directory.

13 years agofsusage: Clarify which code applies to which platforms.
Bruno Haible [Sun, 4 Jul 2010 21:48:16 +0000 (23:48 +0200)]
fsusage: Clarify which code applies to which platforms.

13 years agohavelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
Bruno Haible [Sun, 4 Jul 2010 14:12:35 +0000 (16:12 +0200)]
havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.

13 years agohash: once again explicitly disallow insertion of NULL
Jim Meyering [Sun, 4 Jul 2010 08:54:38 +0000 (10:54 +0200)]
hash: once again explicitly disallow insertion of NULL

* lib/hash.c (hash_insert0): Reinstate just-removed test:
inserting a NULL pointer cannot work with these functions.
Add a comment with details.
This reverts part of the 2010-07-01 commit, 5bef1a35
"hash: extend module to deal with non-pointer keys".

13 years agostdbool: Update doc.
Bruno Haible [Fri, 2 Jul 2010 00:48:01 +0000 (02:48 +0200)]
stdbool: Update doc.

13 years agohash: extend module to deal with non-pointer keys
Jim Meyering [Thu, 1 Jul 2010 21:17:25 +0000 (23:17 +0200)]
hash: extend module to deal with non-pointer keys

* lib/hash.c (hash_insert0): New interface, much like hash_insert
but that allows insertion of non-pointer entries.
Do not disallow an ENTRY value of NULL.
(hash_insert): This is now just a thin wrapper.  Call hash_insert0.
* lib/hash.h (hash_insert0): Declare.

13 years agogettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
Christian Weisgerber [Thu, 1 Jul 2010 09:08:34 +0000 (11:08 +0200)]
gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.

13 years agoidpriv-drop: Fix tests.
Ian Beckwith [Thu, 1 Jul 2010 08:54:36 +0000 (10:54 +0200)]
idpriv-drop: Fix tests.

13 years agostring: Fix syntax error with g++ 2.96.
Bruno Haible [Wed, 30 Jun 2010 00:19:54 +0000 (02:19 +0200)]
string: Fix syntax error with g++ 2.96.

13 years agounitypes: Fix bug introduced on 2010-05-18.
Ian Beckwith [Tue, 29 Jun 2010 08:51:34 +0000 (10:51 +0200)]
unitypes: Fix bug introduced on 2010-05-18.

13 years agoautoupdate
Karl Berry [Wed, 23 Jun 2010 13:51:43 +0000 (06:51 -0700)]
autoupdate

13 years agoautoupdates
Karl Berry [Tue, 22 Jun 2010 16:34:07 +0000 (09:34 -0700)]
autoupdates

13 years agomemmem: slight optimization
Eric Blake [Mon, 21 Jun 2010 22:16:44 +0000 (16:16 -0600)]
memmem: slight optimization

For any needle, the factorization 0/n has a local period of 1, so it
is a critical factorization iff the entire needle consists only of a
single repeated byte, in which case 1/n-1 would also be critical.
Starting with a comparison of x[0] and x[1] in the maximal suffix
check will either find the 0/n case or move on to something else, so
we can optimize and start with the x[1] vs. x[2] case to begin with.

To avoid out-of-bounds references, we must then special case needles
of length two or less.  However, for these cases, we can determine a
critical factorization without any probes of the needle (we already
require a non-empty needle; a 1-byte needle can factor as either 0/1
or 1/0 but the rest of our code assumes a non-empty suffix; and of the
two 2-byte needle patterns, "aa" can factor as either 0/2 or 1/1 but
with best performance for 1/1, and "ab" must be factored as 1/1).

* lib/str-two-way.h (critical_factorization): Update comments.
Reduce work during factorization phase.
Reported by Carlos Bueno <carlos@bueno.org>.

Signed-off-by: Eric Blake <eblake@redhat.com>
13 years agoFix HAVE_CALLOC_POSIX misnomer.
Bruno Haible [Mon, 21 Jun 2010 22:20:46 +0000 (00:20 +0200)]
Fix HAVE_CALLOC_POSIX misnomer.

13 years agoUse modern idiom for calloc() replacement.
Bruno Haible [Mon, 21 Jun 2010 22:16:26 +0000 (00:16 +0200)]
Use modern idiom for calloc() replacement.

13 years agoFix HAVE_REALLOC_POSIX misnomer.
Bruno Haible [Mon, 21 Jun 2010 22:11:19 +0000 (00:11 +0200)]
Fix HAVE_REALLOC_POSIX misnomer.

13 years agoUse modern idiom for realloc() replacement.
Bruno Haible [Mon, 21 Jun 2010 22:07:30 +0000 (00:07 +0200)]
Use modern idiom for realloc() replacement.

13 years agoFix HAVE_MALLOC_POSIX misnomer.
Bruno Haible [Mon, 21 Jun 2010 22:06:29 +0000 (00:06 +0200)]
Fix HAVE_MALLOC_POSIX misnomer.

13 years agoUse modern idiom for malloc() replacement.
Bruno Haible [Mon, 21 Jun 2010 21:58:08 +0000 (23:58 +0200)]
Use modern idiom for malloc() replacement.

13 years agostdio.in.h: fix compilation failure when using HP-UX 11's C compiler
Richard Lloyd [Sun, 20 Jun 2010 11:31:40 +0000 (13:31 +0200)]
stdio.in.h: fix compilation failure when using HP-UX 11's C compiler

* lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
This macro takes 3 arguments, not 4.

13 years agoupdate from texinfo
Karl Berry [Thu, 17 Jun 2010 18:13:36 +0000 (11:13 -0700)]
update from texinfo

13 years agoupdate from texinfo
Karl Berry [Thu, 17 Jun 2010 00:30:50 +0000 (17:30 -0700)]
update from texinfo

13 years agoupdate from texinfo
Karl Berry [Wed, 16 Jun 2010 00:07:44 +0000 (17:07 -0700)]
update from texinfo

13 years agoipv6: fix detection under mingw
Giuseppe Scrivano [Tue, 15 Jun 2010 14:56:42 +0000 (16:56 +0200)]
ipv6: fix detection under mingw

this small patch fixes the detection of IPv6 under mingw.  The header
<ws2tcpip.h> is already used by <sys/socket.h>.

* m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
in6_addr.

Signed-off-by: Eric Blake <eblake@redhat.com>
13 years agostrtod: Assume strtod() works when cross-compiling to new-enough glibc.
Ben Pfaff [Tue, 15 Jun 2010 00:15:41 +0000 (17:15 -0700)]
strtod: Assume strtod() works when cross-compiling to new-enough glibc.

13 years agoFactor out common code in gl_FUNC_STRTOD.
Ben Pfaff [Mon, 14 Jun 2010 23:52:25 +0000 (16:52 -0700)]
Factor out common code in gl_FUNC_STRTOD.

13 years agostrtod: Stop using AC_FUNC_STRTOD.
Bruno Haible [Tue, 15 Jun 2010 08:37:32 +0000 (10:37 +0200)]
strtod: Stop using AC_FUNC_STRTOD.

13 years agoselect: Correct timeout.
René Berber [Tue, 15 Jun 2010 08:29:07 +0000 (10:29 +0200)]
select: Correct timeout.

13 years agogit-version-gen: init shell var to avoid env var influence
Thien-Thi Nguyen [Mon, 14 Jun 2010 20:25:42 +0000 (22:25 +0200)]
git-version-gen: init shell var to avoid env var influence

* build-aux/git-version-gen (v): Init shell var to empty.

Signed-off-by: Eric Blake <eblake@redhat.com>
13 years agopriv-set: Don't assume that priv.h exists merely because getppriv does.
Paul Eggert [Mon, 14 Jun 2010 19:20:22 +0000 (12:20 -0700)]
priv-set: Don't assume that priv.h exists merely because getppriv does.

See Jan Andersen's bug report about AIX 5L in
http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
* m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
* lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
* lib/priv-set.h: Likewise.
* tests/test-priv-set.c: Likewise.

13 years agorelocatable: Make it easier to test whether to install wrappers.
Bruno Haible [Sun, 13 Jun 2010 23:53:49 +0000 (01:53 +0200)]
relocatable: Make it easier to test whether to install wrappers.

13 years agognulib-tool: Display specified modules and dependencies differently.
Bruno Haible [Sun, 13 Jun 2010 13:57:16 +0000 (15:57 +0200)]
gnulib-tool: Display specified modules and dependencies differently.

13 years agognulib-tool: Align code of func_import and func_create_testdir.
Bruno Haible [Sun, 13 Jun 2010 12:45:56 +0000 (14:45 +0200)]
gnulib-tool: Align code of func_import and func_create_testdir.

13 years agotest-inttostr: avoid spurious failure on Solaris 9
Jim Meyering [Sat, 12 Jun 2010 12:47:43 +0000 (14:47 +0200)]
test-inttostr: avoid spurious failure on Solaris 9

* tests/test-inttostr.c (main): Skip the test when snprintf fails
to accept "%ju".  Reported by Bruno Haible.

13 years agoupdate from texinfo
Karl Berry [Sat, 12 Jun 2010 13:48:33 +0000 (06:48 -0700)]
update from texinfo

13 years agotest-sys_socket: mark variables as used more readably
Jim Meyering [Fri, 11 Jun 2010 20:09:27 +0000 (22:09 +0200)]
test-sys_socket: mark variables as used more readably

* tests/test-sys_socket.c (main): Mark otherwise unused variables
as "used" explicitly via (void) statement casts.  This is more
readable than using them in an artificial return expression.
Suggestion from Bruno Haible.

13 years agoAvoid some more warnings from "gcc -Wwrite-strings".
Bruno Haible [Fri, 11 Jun 2010 19:17:11 +0000 (21:17 +0200)]
Avoid some more warnings from "gcc -Wwrite-strings".

13 years agoinit.sh: change framework_failure_ to fail with status 99, not 1
Ralf Wildenhues [Fri, 11 Jun 2010 17:03:33 +0000 (19:03 +0200)]
init.sh: change framework_failure_ to fail with status 99, not 1

* tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
automake's parallel-tests rule that this is an unexpected failure,
even if the test is listed in XFAIL_TESTS.

13 years agotest-inttostr: avoid warnings about 4-6KB literal strings
Jim Meyering [Fri, 11 Jun 2010 15:31:04 +0000 (17:31 +0200)]
test-inttostr: avoid warnings about 4-6KB literal strings

* tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
Include "macros.h", for its definition of ASSERT.
(CK): s/assert/ASSERT/
* modules/inttostr-tests (Files): Add macros.h.

13 years agoinit.sh: don't use $ME_ or skip_ before they are defined
Jim Meyering [Fri, 11 Jun 2010 11:41:31 +0000 (13:41 +0200)]
init.sh: don't use $ME_ or skip_ before they are defined

* tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
their first uses.  Also hoist their companions: warn_, fail_,
framework_failure_, $stderr_fileno.  Prompted by a patch from
Stefano Lattarini.

13 years agotest-sys_socket: avoid set-but-not-used warnings from gcc
Jim Meyering [Fri, 11 Jun 2010 09:26:31 +0000 (11:26 +0200)]
test-sys_socket: avoid set-but-not-used warnings from gcc

* tests/test-sys_socket.c (main): Use "i" and "x", in order to
avoid warning about set-but-not-used variables.

13 years agotest-xvasprintf: avoid 'const' discard warnings
Jim Meyering [Fri, 11 Jun 2010 09:03:54 +0000 (11:03 +0200)]
test-xvasprintf: avoid 'const' discard warnings

* tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
"const" when assigning from literal strings.
(test_xasprintf): Add "void" in function argument list to placate
-Wstrict-prototypes and to be consistent with test_xvasprintf above.

13 years agotests: avoid compilation warnings in argmatch and exclude tests...
Jim Meyering [Fri, 11 Jun 2010 07:50:29 +0000 (09:50 +0200)]
tests: avoid compilation warnings in argmatch and exclude tests...

in packages that define ARGMATCH_DIE_DECL, like coreutils.
* tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
Since it always exits, declare with the "noreturn" attribute.
* tests/test-argmatch.c: Likewise.

13 years agotests: avoid 'const' discard warnings in mbsstr tests
Jim Meyering [Fri, 11 Jun 2010 07:27:19 +0000 (09:27 +0200)]
tests: avoid 'const' discard warnings in mbsstr tests

* tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
* tests/test-mbsstr2.c (main): Likewise.

13 years agotest-verify: avoid warning from gcc's -Wmissing-declarations
Jim Meyering [Fri, 11 Jun 2010 07:15:16 +0000 (09:15 +0200)]
test-verify: avoid warning from gcc's -Wmissing-declarations

* tests/test-verify.c (function): Declare to be static.

13 years agotest-inttostr.c: include <string.h> for use of strcmp
Jim Meyering [Fri, 11 Jun 2010 07:08:47 +0000 (09:08 +0200)]
test-inttostr.c: include <string.h> for use of strcmp

* tests/test-inttostr.c: Include <string.h> for strcmp declaration.

13 years agotest-linkat: avoid failed assertion on "other" architectures
Jim Meyering [Fri, 11 Jun 2010 06:50:08 +0000 (08:50 +0200)]
test-linkat: avoid failed assertion on "other" architectures

* tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
sparc: https://bugs.launchpad.net/bugs/591968

13 years agoprintf.m4: avoid autoconf's "Expanded Before Required" warning
Jim Meyering [Thu, 10 Jun 2010 13:21:09 +0000 (15:21 +0200)]
printf.m4: avoid autoconf's "Expanded Before Required" warning

* m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
autoconf warning.

13 years agoReplacement header templates are now named with ".in", not "_".
Ben Pfaff [Fri, 11 Jun 2010 03:11:05 +0000 (20:11 -0700)]
Replacement header templates are now named with ".in", not "_".

* doc/gnulib-intro.texi: Correct.

13 years agointtostr-tests: depend on snprintf, not snprintf-posix
Jim Meyering [Thu, 10 Jun 2010 16:35:59 +0000 (18:35 +0200)]
inttostr-tests: depend on snprintf, not snprintf-posix

* modules/inttostr-tests (Depends-on): Depend on snprintf, not
snprintf-posix, to avoid this aclocal failure:
  missing file gnulib-tests/vasnprintf.c
  configure.ac:45: error: expected source file, required through \
  AC_LIBSOURCES, not found

13 years agoautoupdate
Karl Berry [Thu, 10 Jun 2010 13:22:36 +0000 (06:22 -0700)]
autoupdate

13 years agointtostr: add a new function, inttostr, and tests
Jim Meyering [Wed, 9 Jun 2010 16:22:25 +0000 (18:22 +0200)]
inttostr: add a new function, inttostr, and tests

The namesake function was not available.  The existence of the
template file, inttostr.c makes its addition nontrivial.
* lib/anytostr.c: Rename from inttostr.c.
(anytostr): Rename from inttostr.
* lib/inttostr.c: New file.
* modules/inttostr (Files): Add anytostr.c.
(Makefile.am): Set lib_SOURCES instead of ...
* m4/inttostr.m4: Remove uses of AC_LIBOBJ.
* lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
* lib/offtostr.c: Likewise.
* lib/uinttostr.c: Likewise.
* lib/umaxtostr.c: Likewise.
* modules/inttostr-tests: New file.
* tests/test-inttostr.c: New file.  Test these functions.

13 years agoAdd "Extending Gnulib" chapter to manual.
Ben Pfaff [Thu, 10 Jun 2010 03:53:13 +0000 (20:53 -0700)]
Add "Extending Gnulib" chapter to manual.

* doc/gnulib.texi (Writing Modules): Add cross-reference to new chapter.
(Extending Gnulib): New chapter.
* doc/gnulib-intro.texi (Openness): Add cross-reference to new chapter.

13 years agoAvoid relocwrapper link errors due to gnulib replacement functions.
Bruno Haible [Wed, 9 Jun 2010 13:30:40 +0000 (15:30 +0200)]
Avoid relocwrapper link errors due to gnulib replacement functions.

13 years agoAvoid relocwrapper link errors due to gnulib replacement functions.
Bruno Haible [Wed, 9 Jun 2010 10:47:59 +0000 (12:47 +0200)]
Avoid relocwrapper link errors due to gnulib replacement functions.

13 years agoPrefer documented low-level autoconf macro names.
Bruno Haible [Sat, 5 Jun 2010 01:46:32 +0000 (03:46 +0200)]
Prefer documented low-level autoconf macro names.

13 years agohavelib: Allow library names with '+' characters.
Martin Lambers [Sat, 5 Jun 2010 01:29:00 +0000 (03:29 +0200)]
havelib: Allow library names with '+' characters.

13 years agoModule setenv does not depend on 'malloc-posix', 'realloc-posix'.
Bruno Haible [Wed, 9 Jun 2010 10:40:40 +0000 (12:40 +0200)]
Module setenv does not depend on 'malloc-posix', 'realloc-posix'.

13 years agomaint.mk: make the news-check rule more configurable
Peter Simons [Mon, 7 Jun 2010 13:24:21 +0000 (15:24 +0200)]
maint.mk: make the news-check rule more configurable

* top/maint.mk (news-check-lines-spec) New variable.
(news-check): Use "sed -n 1,10p" in place of "head".

13 years agodo-release-commit-and-tag: fix typo in --help
Jim Meyering [Mon, 7 Jun 2010 07:06:42 +0000 (09:06 +0200)]
do-release-commit-and-tag: fix typo in --help

* build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.

13 years agoregex: avoid new dead-code warning with gcc-4.6.0
Jim Meyering [Mon, 7 Jun 2010 05:58:49 +0000 (07:58 +0200)]
regex: avoid new dead-code warning with gcc-4.6.0

* lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
if-block containing a while-loop.  It's been unused for at least
5 years.

13 years agoMention Solaris limitation.
Bruno Haible [Sat, 5 Jun 2010 03:13:57 +0000 (05:13 +0200)]
Mention Solaris limitation.

13 years agoUpdate to GNU gettext 0.18.1.
Bruno Haible [Sat, 5 Jun 2010 00:03:43 +0000 (02:03 +0200)]
Update to GNU gettext 0.18.1.

13 years agoDon't use AC_LIBOBJ with file names in subdirectories.
Bruno Haible [Thu, 3 Jun 2010 22:21:14 +0000 (00:21 +0200)]
Don't use AC_LIBOBJ with file names in subdirectories.

13 years agoSimplify gl_LIBUNISTRING_VERSION_CMP expansion.
Bruno Haible [Thu, 3 Jun 2010 21:54:36 +0000 (23:54 +0200)]
Simplify gl_LIBUNISTRING_VERSION_CMP expansion.

13 years agoReduce dependencies.
Bruno Haible [Thu, 3 Jun 2010 19:46:41 +0000 (21:46 +0200)]
Reduce dependencies.

13 years agoReduce dependencies.
Bruno Haible [Thu, 3 Jun 2010 18:22:57 +0000 (20:22 +0200)]
Reduce dependencies.

13 years agotime: Undefine more broken macros.
Bruno Haible [Thu, 3 Jun 2010 14:25:01 +0000 (16:25 +0200)]
time: Undefine more broken macros.

13 years agoChoose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
Bruno Haible [Thu, 3 Jun 2010 11:55:01 +0000 (13:55 +0200)]
Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.

13 years agotime: work with mingw + pthreads-win32 library
Eric Blake [Wed, 2 Jun 2010 17:08:06 +0000 (11:08 -0600)]
time: work with mingw + pthreads-win32 library

When using the pthreads-win32 library with mingw, struct timespec
is available in <pthread.h>.  Meanwhile, that header has some
rather buggy macros for localtime_r and gmtime_r that interfere
with proper gnulib replacement header actions.

Tested in a cross-compilation environment: Fedora 13 with mingw32-gcc
and mingw32-pthreads installed.

* m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
if timespec is defined only in pthread.h.
* modules/time (Makefile.am): Substitute it.
* lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
<pthread.h>, when needed.
(GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
from the library.

Signed-off-by: Eric Blake <eblake@redhat.com>
13 years agoAvoid expanding two macros in the wrong order.
Bruno Haible [Mon, 31 May 2010 23:26:32 +0000 (01:26 +0200)]
Avoid expanding two macros in the wrong order.

13 years agoautoupdate
Karl Berry [Mon, 31 May 2010 12:04:53 +0000 (05:04 -0700)]
autoupdate

13 years agogit-version-gen: take a sed script to transform the git tag
Ludovic Courtès [Fri, 28 May 2010 10:15:23 +0000 (12:15 +0200)]
git-version-gen: take a sed script to transform the git tag

* build-aux/git-version-gen (tag_sed_script): New variable.  Use it to
transform the output of "git describe" to the canonical form.
* top/GNUmakefile (_curr-ver): Pass $(git-version-gen-tag-sed-script) as
a second argument to `git-version-gen'.

13 years agomaint.mk: also prohibit "#undef" of always-defined symbols
Jim Meyering [Thu, 27 May 2010 11:33:04 +0000 (13:33 +0200)]
maint.mk: also prohibit "#undef" of always-defined symbols

* top/maint.mk (def_sym_regex): Handle #undef as well as #define.
Allow more than one space before the symbol name.
(sc_prohibit_always-defined_macros): Use grep's -E, now that
the regexp uses alternation.

13 years agocorrect ChangeLog
Eric Blake [Wed, 26 May 2010 17:53:58 +0000 (11:53 -0600)]
correct ChangeLog

13 years agomaint.mk: avoid echo -e
Eric Blake [Wed, 26 May 2010 17:47:22 +0000 (11:47 -0600)]
maint.mk: avoid echo -e

There are still other potentially non-portable uses of echo
throughout this file, if $(ME) contains \ or starts with -,
but this patch is a trivial step in the right direction.

* top/maint.mk (gzip_rsyncable): Convert all uses of echo -* to
printf.
Reported by Matthias Bolte.

Signed-off-by: Eric Blake <eblake@redhat.com>
13 years agoOops, typo in ChangeLog entry.
Bruno Haible [Tue, 25 May 2010 19:37:23 +0000 (21:37 +0200)]
Oops, typo in ChangeLog entry.

13 years agoUpdate to GNU gettext 0.18, part 2.
Bruno Haible [Tue, 25 May 2010 19:35:22 +0000 (21:35 +0200)]
Update to GNU gettext 0.18, part 2.

13 years agoAdd missing include in test-pwrite.c.
Ralf Wildenhues [Tue, 25 May 2010 05:22:43 +0000 (07:22 +0200)]
Add missing include in test-pwrite.c.

* tests/test-pwrite.c: Include string.h, for strcmp.

13 years agoMention requirement for Automake option 'subdir-objects'.
Bruno Haible [Tue, 25 May 2010 00:26:15 +0000 (02:26 +0200)]
Mention requirement for Automake option 'subdir-objects'.

13 years agoDon't use conversion with transliteration in u{8,16,32}_strcoll.
Bruno Haible [Mon, 24 May 2010 21:00:42 +0000 (23:00 +0200)]
Don't use conversion with transliteration in u{8,16,32}_strcoll.

13 years agoAvoid a test failure on NetBSD 5.0.
Bruno Haible [Mon, 24 May 2010 20:06:22 +0000 (22:06 +0200)]
Avoid a test failure on NetBSD 5.0.

13 years agoautoupdate
Karl Berry [Mon, 24 May 2010 13:56:22 +0000 (06:56 -0700)]
autoupdate

13 years agoAdjust #include directive style.
Bruno Haible [Mon, 24 May 2010 10:45:20 +0000 (12:45 +0200)]
Adjust #include directive style.

13 years agoregex: Don't require alloca.
Bruno Haible [Mon, 24 May 2010 10:23:03 +0000 (12:23 +0200)]
regex: Don't require alloca.

13 years agotest-renameat.c: include <sys/stat.h>
Jim Meyering [Sun, 23 May 2010 19:57:32 +0000 (21:57 +0200)]
test-renameat.c: include <sys/stat.h>

* tests/test-renameat.c: Include <sys/stat.h>; required for
definition of S_IS* macros.

13 years agoUpdate maintainer documentation for 'relocatable-prog' module.
Ben Pfaff [Sun, 23 May 2010 19:02:39 +0000 (12:02 -0700)]
Update maintainer documentation for 'relocatable-prog' module.

13 years agogit-merge-changelog: Enable --split-merged-entry by default.
Bruno Haible [Sun, 23 May 2010 16:03:16 +0000 (18:03 +0200)]
git-merge-changelog: Enable --split-merged-entry by default.

13 years agotest-pwrite: do not leave behind a test file named "out"
Jim Meyering [Sun, 23 May 2010 08:32:12 +0000 (10:32 +0200)]
test-pwrite: do not leave behind a test file named "out"

Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
The trivial-looking use of init.sh is really necessary.
It ensures that the temporary file, "out", is created in
a temporary directory, and removed upon termination.
* tests/test-pwrite.sh: Re-add file.
* modules/pwrite-tests: Reference it.

13 years agoFix output redirection buglet in init.sh.
Ralf Wildenhues [Sun, 23 May 2010 08:05:31 +0000 (10:05 +0200)]
Fix output redirection buglet in init.sh.

* tests/init.sh: Fix redirection of stderr.