gnulib.git
17 years agoSmall optimization.
Bruno Haible [Sat, 27 Jan 2007 02:21:21 +0000 (02:21 +0000)]
Small optimization.

17 years agoNew modules uniconv/*.
Bruno Haible [Sat, 27 Jan 2007 01:05:04 +0000 (01:05 +0000)]
New modules uniconv/*.

17 years agoNew module 'uniconv/u32-strconv-to-locale'.
Bruno Haible [Sat, 27 Jan 2007 00:53:08 +0000 (00:53 +0000)]
New module 'uniconv/u32-strconv-to-locale'.

17 years agoNew module 'uniconv/u16-strconv-to-locale'.
Bruno Haible [Sat, 27 Jan 2007 00:52:30 +0000 (00:52 +0000)]
New module 'uniconv/u16-strconv-to-locale'.

17 years agoNew module 'uniconv/u8-strconv-to-locale'.
Bruno Haible [Sat, 27 Jan 2007 00:52:00 +0000 (00:52 +0000)]
New module 'uniconv/u8-strconv-to-locale'.

17 years agoNew module 'uniconv/u32-strconv-from-locale'.
Bruno Haible [Sat, 27 Jan 2007 00:51:13 +0000 (00:51 +0000)]
New module 'uniconv/u32-strconv-from-locale'.

17 years agoNew module 'uniconv/u16-strconv-from-locale'.
Bruno Haible [Sat, 27 Jan 2007 00:50:42 +0000 (00:50 +0000)]
New module 'uniconv/u16-strconv-from-locale'.

17 years agoNew module 'uniconv/u8-strconv-from-locale'.
Bruno Haible [Sat, 27 Jan 2007 00:50:22 +0000 (00:50 +0000)]
New module 'uniconv/u8-strconv-from-locale'.

17 years agoTests for module 'uniconv/u32-strconv-to-enc'.
Bruno Haible [Sat, 27 Jan 2007 00:50:01 +0000 (00:50 +0000)]
Tests for module 'uniconv/u32-strconv-to-enc'.

17 years agoNew module 'uniconv/u32-strconv-to-enc'.
Bruno Haible [Sat, 27 Jan 2007 00:49:39 +0000 (00:49 +0000)]
New module 'uniconv/u32-strconv-to-enc'.

17 years agoTests for module 'uniconv/u16-strconv-to-enc'.
Bruno Haible [Sat, 27 Jan 2007 00:49:14 +0000 (00:49 +0000)]
Tests for module 'uniconv/u16-strconv-to-enc'.

17 years agoNew module 'uniconv/u16-strconv-to-enc'.
Bruno Haible [Sat, 27 Jan 2007 00:48:49 +0000 (00:48 +0000)]
New module 'uniconv/u16-strconv-to-enc'.

17 years agoNew modules 'uniconv/u16-strconv-to-enc', 'uniconv/u32-strconv-to-enc'.
Bruno Haible [Sat, 27 Jan 2007 00:48:30 +0000 (00:48 +0000)]
New modules 'uniconv/u16-strconv-to-enc', 'uniconv/u32-strconv-to-enc'.

17 years agoTests for module 'uniconv/u8-strconv-to-enc'.
Bruno Haible [Sat, 27 Jan 2007 00:48:05 +0000 (00:48 +0000)]
Tests for module 'uniconv/u8-strconv-to-enc'.

17 years agoNew module 'uniconv/u8-strconv-to-enc'.
Bruno Haible [Sat, 27 Jan 2007 00:47:44 +0000 (00:47 +0000)]
New module 'uniconv/u8-strconv-to-enc'.

17 years agoTests for module 'uniconv/u32-strconv-from-enc'.
Bruno Haible [Sat, 27 Jan 2007 00:45:18 +0000 (00:45 +0000)]
Tests for module 'uniconv/u32-strconv-from-enc'.

17 years agoNew module 'uniconv/u32-strconv-from-enc'.
Bruno Haible [Sat, 27 Jan 2007 00:44:57 +0000 (00:44 +0000)]
New module 'uniconv/u32-strconv-from-enc'.

17 years agoTests for module 'uniconv/u16-strconv-from-enc'.
Bruno Haible [Sat, 27 Jan 2007 00:44:24 +0000 (00:44 +0000)]
Tests for module 'uniconv/u16-strconv-from-enc'.

17 years agoNew module 'uniconv/u16-strconv-from-enc'.
Bruno Haible [Sat, 27 Jan 2007 00:44:03 +0000 (00:44 +0000)]
New module 'uniconv/u16-strconv-from-enc'.

17 years agoTests for module 'uniconv/u8-strconv-from-enc'.
Bruno Haible [Sat, 27 Jan 2007 00:43:40 +0000 (00:43 +0000)]
Tests for module 'uniconv/u8-strconv-from-enc'.

17 years agoNew module 'uniconv/u8-strconv-from-enc'.
Bruno Haible [Sat, 27 Jan 2007 00:43:15 +0000 (00:43 +0000)]
New module 'uniconv/u8-strconv-from-enc'.

17 years agoNew modules uniconv/u8-strconv-from-enc, uniconv/u16-strconv-from-enc,
Bruno Haible [Sat, 27 Jan 2007 00:42:51 +0000 (00:42 +0000)]
New modules uniconv/u8-strconv-from-enc, uniconv/u16-strconv-from-enc,
uniconv/u32-strconv-from-enc.

17 years agoTests for module 'uniconv/u32-conv-from-enc'.
Bruno Haible [Sat, 27 Jan 2007 00:42:18 +0000 (00:42 +0000)]
Tests for module 'uniconv/u32-conv-from-enc'.

17 years agoNew module 'uniconv/u32-conv-from-enc'.
Bruno Haible [Sat, 27 Jan 2007 00:41:56 +0000 (00:41 +0000)]
New module 'uniconv/u32-conv-from-enc'.

17 years agoTests for module 'uniconv/u16-conv-from-enc'.
Bruno Haible [Sat, 27 Jan 2007 00:41:33 +0000 (00:41 +0000)]
Tests for module 'uniconv/u16-conv-from-enc'.

17 years agoNew module 'uniconv/u16-conv-from-enc'.
Bruno Haible [Sat, 27 Jan 2007 00:41:10 +0000 (00:41 +0000)]
New module 'uniconv/u16-conv-from-enc'.

17 years agoNew modules uniconv/u16-conv-from-enc and uniconv/u32-conv-from-enc.
Bruno Haible [Sat, 27 Jan 2007 00:40:49 +0000 (00:40 +0000)]
New modules uniconv/u16-conv-from-enc and uniconv/u32-conv-from-enc.

17 years agoTests for module 'uniconv/u8-conv-from-enc'.
Bruno Haible [Sat, 27 Jan 2007 00:40:10 +0000 (00:40 +0000)]
Tests for module 'uniconv/u8-conv-from-enc'.

17 years agoNew module 'uniconv/u8-conv-from-enc'.
Bruno Haible [Sat, 27 Jan 2007 00:39:31 +0000 (00:39 +0000)]
New module 'uniconv/u8-conv-from-enc'.

17 years agoNew module 'uniconv/base'.
Bruno Haible [Sat, 27 Jan 2007 00:39:07 +0000 (00:39 +0000)]
New module 'uniconv/base'.

17 years ago* doc/gnulib-tool.texi (Initial import): Update to match current
Paul Eggert [Fri, 26 Jan 2007 22:16:55 +0000 (22:16 +0000)]
* doc/gnulib-tool.texi (Initial import): Update to match current
behavior with strdup module.
* lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
* lib/memmem.h: Remove; all uses removed.  This is now done
by <string.h>.
* lib/mempcpy.h: Likewise.
* lib/memrchr.h: Likewise.
* lib/stpcpy.h: Likewise.
* lib/stpncpy.h: Likewise.
* lib/strcase.h: Likewise.
* lib/strchrnul.h: Likewise.
* lib/strdup.h: Likewise.
* lib/strndup.h: Likewise.
* lib/strnlen.h: Likewise.
* lib/strpbrk.h: Likewise.
* lib/strsep.h: Likewise.
* lib/strstr.h: Likewise.
* lib/strtok_r.h: Likewise.
* lib/string_.h: New file.
* lib/argp-namefrob.h: Don't include no-longer-existent include files.
Rely on <string.h> instead.
* lib/canon-host.c: Likewise.
* lib/chdir-long.c: Likewise.
* lib/concatpath.c: Likewise.
* lib/exclude.c: Likewise.
* lib/fchdir.c: Likewise.
* lib/getaddrinfo.c: Likewise.
* lib/getcwd.c: Likewise.
* lib/getsubopt.c: Likewise.
* lib/glob.c: Likewise.
* lib/hard-locale.c: Likewise.
* lib/iconvme.c: Likewise.
* lib/javacomp.c: Likewise.
* lib/mempcpy.c: Likewise.
* lib/memrchr.c: Likewise.
* lib/regex_internal.h: Likewise.
* lib/stpncpy.c: Likewise.
* lib/strcasecmp.c: Likewise.
* lib/strchrnul.c: Likewise.
* lib/strdup.c: Likewise.
* lib/striconv.c: Likewise.
* lib/striconveh.c: Likewise.
* lib/striconveha.c: Likewise.
* lib/strncasecmp.c: Likewise.
* lib/strndup.c: Likewise.
* lib/strnlen.c: Likewise.
* lib/strsep.c: Likewise.
* lib/strstr.c: Likewise.
* lib/strtok_r.c: Likewise.
* lib/userspec.c: Likewise.
* lib/w32spawn.h: Likewise.
* lib/xstrndup.c: Likewise.
* lib/mountlist.c (strstr): Remove decl.
* m4/string_h.m4: New file.
* m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
* m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
* m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
* m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
* m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
* m4/strcase.m4 (gl_FUNC_STRCASECMP):
Set REPLACE_STRCASECMP if necessary.
(gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
* m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
* m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
* m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
HAVE_DECL_STRDUP if necessary.
(gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
since gl_FUNC_STRNDUP does that now.
* m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
Check for decl here...
(gl_PREREQ_STRNLEN): ... not here.
* m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
* m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
* m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
* m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
necessary.
* modules/string: New file.
* modules/memmem (Files): Remove special-purpose include file.
(Depends-on): Add string.
(Include): Include <string.h>, not the removed file.
* modules/mempcpy: Likewise.
* modules/memrchr: Likewise.
* modules/stpcpy: Likewise.
* modules/stpncpy: Likewise.
* modules/strcase: Likewise.
* modules/strchrnul: Likewise.
* modules/strdup: Likewise.
* modules/strndup: Likewise.
* modules/strnlen: Likewise.
* modules/strpbrk: Likewise.
* modules/strsep: Likewise.
* modules/strstr: Likewise.
* modules/strtok_r: Likewise.
* tests/test-dirname.c: Don't include "stdup.h", since
<string.h> now suffices.
* tests/test-memmem.c: Don't include "memmem.h", since
<string.h> now suffices.

17 years agoVarious fixes.
Bruno Haible [Fri, 26 Jan 2007 02:59:46 +0000 (02:59 +0000)]
Various fixes.

17 years ago2007-01-24 Bruno Haible <bruno@clisp.org>
Bruno Haible [Thu, 25 Jan 2007 03:25:54 +0000 (03:25 +0000)]
2007-01-24  Bruno Haible  <bruno@clisp.org>
        Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
        <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
        * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
        * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
        gl_FUNC_FTS_CORE.
        (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
        * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
        AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
        * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
        * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
        * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
        gl_FUNC_FCHOWNAT.
        * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
        gl_FUNC_STRFTIME.
        * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
        Reported by Ralf Wildenhues.

17 years ago2007-01-24 Bruno Haible <bruno@clisp.org>
Bruno Haible [Thu, 25 Jan 2007 03:22:41 +0000 (03:22 +0000)]
2007-01-24  Bruno Haible  <bruno@clisp.org>
        Drop AC_REQUIRE calls that are redundant with the module dependencies.
        * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
        gl_GETADDRINFO.
        * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
        gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
        * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.

17 years ago* m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
Paul Eggert [Thu, 25 Jan 2007 00:43:59 +0000 (00:43 +0000)]
* m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.

17 years ago* m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
Paul Eggert [Thu, 25 Jan 2007 00:40:06 +0000 (00:40 +0000)]
* m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
Don't use 'exit'; just return from 'main'.

17 years ago* lib/fnmatch_.h: Readjust white space and comments to match
Paul Eggert [Wed, 24 Jan 2007 21:46:44 +0000 (21:46 +0000)]
* lib/fnmatch_.h: Readjust white space and comments to match
glibc, to avoid spurious diffs.

17 years ago* lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
Paul Eggert [Wed, 24 Jan 2007 07:15:57 +0000 (07:15 +0000)]
* lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
2004-12-01 change by Jakub Jelinek, since this code won't compile
if !LIBC.  Problem reported by Bob Proulx.

17 years agoOptimize the recognition of "UTF-8" strings.
Bruno Haible [Wed, 24 Jan 2007 03:00:11 +0000 (03:00 +0000)]
Optimize the recognition of "UTF-8" strings.

17 years agoNew modules streq, c-strcaseeq.
Bruno Haible [Wed, 24 Jan 2007 02:47:09 +0000 (02:47 +0000)]
New modules streq, c-strcaseeq.

17 years agoNew module 'c-strcaseeq'.
Bruno Haible [Wed, 24 Jan 2007 02:46:06 +0000 (02:46 +0000)]
New module 'c-strcaseeq'.

17 years agoNew module 'streq'.
Bruno Haible [Wed, 24 Jan 2007 02:45:50 +0000 (02:45 +0000)]
New module 'streq'.

17 years agoTests for 'striconveha' module.
Bruno Haible [Wed, 24 Jan 2007 00:59:09 +0000 (00:59 +0000)]
Tests for 'striconveha' module.

17 years agoAdd an optional argument specifying transliteration.
Bruno Haible [Wed, 24 Jan 2007 00:56:40 +0000 (00:56 +0000)]
Add an optional argument specifying transliteration.

17 years agoMake the striconveha module actually work.
Bruno Haible [Wed, 24 Jan 2007 00:48:01 +0000 (00:48 +0000)]
Make the striconveha module actually work.

17 years agoImport the following changes from libc.
Paul Eggert [Wed, 24 Jan 2007 00:15:58 +0000 (00:15 +0000)]
Import the following changes from libc.

2005-10-14  Ulrich Drepper  <drepper@redhat.com>

* lib/fnmatch_loop.c: Adjust for changed secondary hash function.

2004-12-01  Jakub Jelinek  <jakub@redhat.com>

* lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
normal_bracket label.

2004-09-01  Jakub Jelinek  <jakub@redhat.com>

[BZ #361]
* lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
to normal_bracket after fetching the next character.

17 years agoOops, tweak comment.
Bruno Haible [Tue, 23 Jan 2007 01:17:42 +0000 (01:17 +0000)]
Oops, tweak comment.

17 years agoAdd optional offsets argument to conversion routines.
Bruno Haible [Tue, 23 Jan 2007 01:09:41 +0000 (01:09 +0000)]
Add optional offsets argument to conversion routines.

17 years agoUse @MKDIR_P@ instead of $(MKDIR_P), since automake < 1.10 doesn't see the
Bruno Haible [Mon, 22 Jan 2007 23:09:01 +0000 (23:09 +0000)]
Use @MKDIR_P@ instead of $(MKDIR_P), since automake < 1.10 doesn't see the
MKDIR_P variable of autoconf >= 2.60.

17 years agoUse @MKDIR_P@ instead of $(MKDIR_P), since automake < 1.10 doesn't the
Bruno Haible [Mon, 22 Jan 2007 23:07:42 +0000 (23:07 +0000)]
Use @MKDIR_P@ instead of $(MKDIR_P), since automake < 1.10 doesn't the
MKDIR_P variable of autoconf >= 2.60.

17 years ago* modules/gettimeofday (License): Change from GPL to LGPL, since
Paul Eggert [Mon, 22 Jan 2007 17:41:17 +0000 (17:41 +0000)]
* modules/gettimeofday (License): Change from GPL to LGPL, since
gettimeofday is a library function.

17 years agoupdate from texinfo
Karl Berry [Mon, 22 Jan 2007 14:40:10 +0000 (14:40 +0000)]
update from texinfo

17 years agoFix a problem with MKDIR_P when using autoconf-2.61 and automake-1.9.6.
Bruno Haible [Mon, 22 Jan 2007 14:23:39 +0000 (14:23 +0000)]
Fix a problem with MKDIR_P when using autoconf-2.61 and automake-1.9.6.

17 years ago2007-01-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
Paolo Bonzini [Mon, 22 Jan 2007 09:33:16 +0000 (09:33 +0000)]
2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>

* lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.

17 years agoAdd an AC_PROG_MKDIR_P backport.
Bruno Haible [Mon, 22 Jan 2007 00:13:19 +0000 (00:13 +0000)]
Add an AC_PROG_MKDIR_P backport.

17 years agoNew module 'striconveha'.
Bruno Haible [Sun, 21 Jan 2007 22:59:19 +0000 (22:59 +0000)]
New module 'striconveha'.

17 years agoOops, fix description.
Bruno Haible [Sun, 21 Jan 2007 22:58:01 +0000 (22:58 +0000)]
Oops, fix description.

17 years agoEnsure errno when strdup fails.
Bruno Haible [Sun, 21 Jan 2007 22:18:23 +0000 (22:18 +0000)]
Ensure errno when strdup fails.

17 years agoNew function mem_iconveh.
Bruno Haible [Sun, 21 Jan 2007 22:14:24 +0000 (22:14 +0000)]
New function mem_iconveh.
Change specification of mem_cd_iconveh.

17 years agoNew function mem_iconveh.
Bruno Haible [Sun, 21 Jan 2007 22:04:33 +0000 (22:04 +0000)]
New function mem_iconveh.

17 years agoChange specification of mem_cd_iconveh.
Bruno Haible [Sun, 21 Jan 2007 21:34:27 +0000 (21:34 +0000)]
Change specification of mem_cd_iconveh.

17 years agoChange calling convention of xmem_cd_iconv.
Bruno Haible [Sun, 21 Jan 2007 20:45:25 +0000 (20:45 +0000)]
Change calling convention of xmem_cd_iconv.

17 years agoMake the API of mem_cd_iconv more useful.
Bruno Haible [Sun, 21 Jan 2007 20:36:25 +0000 (20:36 +0000)]
Make the API of mem_cd_iconv more useful.

17 years agoFix test whether sed is GNU sed supporting --posix.
Bruno Haible [Sun, 21 Jan 2007 20:07:08 +0000 (20:07 +0000)]
Fix test whether sed is GNU sed supporting --posix.

17 years agoautoupdate
Karl Berry [Sun, 21 Jan 2007 17:29:20 +0000 (17:29 +0000)]
autoupdate

17 years ago* lib/userspec.c (parse_with_separator): If a user or group string
Jim Meyering [Sat, 20 Jan 2007 08:46:44 +0000 (08:46 +0000)]
* lib/userspec.c (parse_with_separator): If a user or group string
starts with "+", skip the corresponding name-to-ID look-up, since
such a look-up must fail: user and group names may not include "+".

17 years ago* lib/poll.c: Include sys/time.h and time.h unconditionally,
Paul Eggert [Sat, 20 Jan 2007 08:32:33 +0000 (08:32 +0000)]
* lib/poll.c: Include sys/time.h and time.h unconditionally,
since we now assume the sys_time module.
* m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
check for sys/time.h; no longer needed.
* modules/poll (Depends-on): Depend on sys_time.

17 years agoMake it compile again. suseconds_t does not exist on Cygwin.
Bruno Haible [Fri, 19 Jan 2007 02:18:25 +0000 (02:18 +0000)]
Make it compile again. suseconds_t does not exist on Cygwin.

17 years ago2007-01-18 Bruno Haible <bruno@clisp.org>
Bruno Haible [Fri, 19 Jan 2007 02:14:42 +0000 (02:14 +0000)]
2007-01-18  Bruno Haible  <bruno@clisp.org>
        * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
        * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.

17 years agoDrop tests that are now done in the gettimeofday module.
Bruno Haible [Fri, 19 Jan 2007 02:11:31 +0000 (02:11 +0000)]
Drop tests that are now done in the gettimeofday module.

17 years agoMake it compile again. suseconds_t does not exist on Cygwin.
Bruno Haible [Fri, 19 Jan 2007 02:09:26 +0000 (02:09 +0000)]
Make it compile again. suseconds_t does not exist on Cygwin.

17 years agoEnforce that GETTIMEOFDAY_REPLACEMENT=0 is only expanded once.
Bruno Haible [Fri, 19 Jan 2007 02:04:14 +0000 (02:04 +0000)]
Enforce that GETTIMEOFDAY_REPLACEMENT=0 is only expanded once.

17 years agoReplace HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME
Bruno Haible [Fri, 19 Jan 2007 02:00:37 +0000 (02:00 +0000)]
Replace HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME
with GETTIMEOFDAY_REPLACEMENT.

17 years agoUndo the last change; it caused a compilation error when cross-compiling to
Bruno Haible [Fri, 19 Jan 2007 01:50:55 +0000 (01:50 +0000)]
Undo the last change; it caused a compilation error when cross-compiling to
Cygwin.

17 years agoUse "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
Jim Meyering [Thu, 18 Jan 2007 16:19:13 +0000 (16:19 +0000)]
Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
* modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
than the race-prone "test -d sys || mkdir sys".
(configure.ac): Use AC_PROG_MKDIR_P.
* modules/sys_select: Likewise.
* modules/sys_socket: Likewise.
* modules/sys_time: Likewise.

17 years agoautoupdate
Karl Berry [Thu, 18 Jan 2007 16:16:52 +0000 (16:16 +0000)]
autoupdate

17 years ago* m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
Eric Blake [Thu, 18 Jan 2007 16:15:42 +0000 (16:15 +0000)]
* m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
replace gettimeofday.
* lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
name, to avoid infinite recursion.

17 years ago* MODULES.html.sh (Support for systems lacking POSIX:2001): New
Paul Eggert [Thu, 18 Jan 2007 08:33:34 +0000 (08:33 +0000)]
* MODULES.html.sh (Support for systems lacking POSIX:2001): New
module sys_time.
* lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
assume timespec.h defines struct timeval.
* lib/settime.c: Likewise.
* lib/utimens.c: Likewise.
* lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
since we now assume the gettimeofday module.
* lib/tempname.c (__gen_tempname): Likewise.
* lib/gettimeofday.h: Remove.
* lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
Include <time.h>, for 'time()'.
(localtime_buffer_addr): Also use this workaround if
TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
to simplify the uses.  All uses changed.
(localtime, gmtime, tzset, gettimeofday): Reformat slightly so
that #undef is inside {}, and 'const' follows type name consistently.
(tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
(gettimeofday): Do not use the maximum possible value for
tv->tv_usec, since that might break usages other than ls.c.
Instead, we'll leave ls.c alone.  This undoes today's patch
by Bruno.  Add a compile-time warning for 1s-clock resolution;
we've never observed the problem but might as well keep the
canary.
* lib/nanosleep.c: Include timespec.h first, for interface check.
* lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
now assume the sys_time module.
* lib/tempname.c: Likewise.
* lib/timespec.h: Likewise.
* lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
needed.
* lib/strftime.c: Likewise.
* lib/timespec.h: Likewise.
* lib/posixtm.c: Include posixtm.h first, for interface check.
Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
* lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
* lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
* lib/sys_time_.h: New file.
* lib/timespec.h (struct timespec): Use long int, not long.
* m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
(gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
Remove obsolescent call to AC_HEADER_TIME.
* m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
* m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
* m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
* m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
Likewise.
* m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
* m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
* m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
into the sys_time module.  Check for gettimeofday just once.
Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
for gettimeofday signature to just check the signature.  Merely
compile it, since linking doesn't test signature.  Improve test for
whether gettimeofday.o is actually needed.
(gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
(gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
* m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
than worrying about sys/time.h.
* m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
Don't bother worrying about TIME_WITH_SYS_TIME.
* m4/stat-time.m4 (gl_STAT_TIME): Likewise.
* m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
* m4/sys_time_h.m4: New file.
* m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
Don't include sys/time.h.  Return from main rather than exiting.
Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
all uses changed.
* modules/gethrxtime (Depends-on): Add sys_time.
* modules/gettime (Depends-on): Likewise.
* modules/gettimeofday (Depends-on): Likewise.
* modules/nanosleep (Depends-on): Likewise.
* modules/settime (Depends-on): Likewise.
* modules/tempname (Depends-on): Likewise.
* modules/utimens (Depends-on): Likewise.
* modules/gettimeofday (Files): Remove lib/gettimeofday.h.
(Include:) Change back to <sys/time.h>.
(Maintainer:) Add self.
* modules/sys_time: New file.
* modules/tempname (Depends-on): Add gettimeofday.
* tests/test-gettimeofday.c: Include <sys/time.h>
rather than gettimeofday.h.

17 years agoTests modules are under GPL now.
Bruno Haible [Wed, 17 Jan 2007 23:46:34 +0000 (23:46 +0000)]
Tests modules are under GPL now.

17 years agorevert unwanted commit
Paolo Bonzini [Wed, 17 Jan 2007 18:32:08 +0000 (18:32 +0000)]
revert unwanted commit

17 years ago2006-01-17 Paolo Bonzini <bonzini@gnu.org>
Paolo Bonzini [Wed, 17 Jan 2007 18:28:48 +0000 (18:28 +0000)]
2006-01-17  Paolo Bonzini  <bonzini@gnu.org>

* modules/csharpcomp-script, modules/csharpexec-script,
modules/javacomp-script, modules/javaexec-script: Add chmod +x
in the configure.ac section.

17 years agoTwo more fixes to revised gettimeofday module.
Bruno Haible [Wed, 17 Jan 2007 11:48:22 +0000 (11:48 +0000)]
Two more fixes to revised gettimeofday module.

17 years agoTest module for gettimeofday.
Bruno Haible [Wed, 17 Jan 2007 01:07:16 +0000 (01:07 +0000)]
Test module for gettimeofday.

17 years agoVarious fixes to Martin Lambers' gettimeofday patch.
Bruno Haible [Wed, 17 Jan 2007 01:04:17 +0000 (01:04 +0000)]
Various fixes to Martin Lambers' gettimeofday patch.

17 years agoPatch from Martin Lambers <marlam@marlam.de>, from 2005-10-08
Bruno Haible [Wed, 17 Jan 2007 00:42:21 +0000 (00:42 +0000)]
Patch from Martin Lambers <marlam@marlam.de>, from 2005-10-08
<http://lists.gnu.org/archive/html/bug-gnulib/2005-10/msg00093.html>

17 years agoUntabify.
Bruno Haible [Tue, 16 Jan 2007 17:56:41 +0000 (17:56 +0000)]
Untabify.

17 years ago* modules/fnmatch (Depends-on): Depend on wchar.
Eric Blake [Tue, 16 Jan 2007 16:31:23 +0000 (16:31 +0000)]
* modules/fnmatch (Depends-on): Depend on wchar.
* lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
* m4/fnmatch.m4: Likewise.
* modules/mbchar (Makefile.am): Assume <wchar.h>.
* m4/mbchar.m4: Likewise.
* modules/mbswidth (Depends-on): Depend on wchar.
* lib/mbswidth.c: Assume <wchar.h>.
* m4/mbswidth.m4: Likewise.
* modules/quotearg (Depends-on): Depend on wchar.
* lib/quotearg.c: Assume <wchar.h>.
* m4/quotearg.m4: Likewise.
* modules/regex (Depends-on): Depend on wchar.
* lib/regex_internal.h: Assume <wchar.h>.
* m4/regex.m4: Likewise.
* modules/stdint (Depends-on): Depend on wchar.
* lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
* m4/stdint.m4: Likewise.
* tests/test-stdint.c [HAVE_WINT_T]: Likewise.
* modules/strftime (Depends-on): Depend on wchar.
* lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
* modules/strtol (Depends-on): Depend on wchar.
* lib/strtol.c: Assume <wchar.h>.
* modules/wcwidth (Depends-on): Depend on wchar.
* lib/wcwidth.h: Assume <wchar.h>.
* m4/wcwidth.m4: Likewise.

17 years agoNew module 'csharpexec-script'.
Bruno Haible [Tue, 16 Jan 2007 13:22:24 +0000 (13:22 +0000)]
New module 'csharpexec-script'.

17 years ago2007-01-16 Paolo Bonzini <bonzini@gnu.org>
Paolo Bonzini [Tue, 16 Jan 2007 12:43:13 +0000 (12:43 +0000)]
2007-01-16  Paolo Bonzini  <bonzini@gnu.org>

* modules/javaexec-script: New, created from...
* modules/javaexec: ... this.

2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>

* modules/poll (Dependencies): Add sys_select.

17 years agoAll test scripts must be EXTRA_DISTed.
Bruno Haible [Tue, 16 Jan 2007 11:20:16 +0000 (11:20 +0000)]
All test scripts must be EXTRA_DISTed.

17 years ago* m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
Jim Meyering [Tue, 16 Jan 2007 09:40:30 +0000 (09:40 +0000)]
* m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
redefinition bug when using both <utmp.h> and <utmpx.h> headers.
* lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
<http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.

17 years agoTests for striconveh module.
Bruno Haible [Tue, 16 Jan 2007 03:49:00 +0000 (03:49 +0000)]
Tests for striconveh module.

17 years agoNew module 'striconveh'.
Bruno Haible [Tue, 16 Jan 2007 03:47:23 +0000 (03:47 +0000)]
New module 'striconveh'.

17 years ago(str_cd_iconv): Use the first algorithm if iconv is not from GNU libiconv or
Bruno Haible [Tue, 16 Jan 2007 03:25:12 +0000 (03:25 +0000)]
(str_cd_iconv): Use the first algorithm if iconv is not from GNU libiconv or
GNU libc. Otherwise we may miss a conversion failure.

17 years agoTweak: Use undetermined copyright years.
Bruno Haible [Tue, 16 Jan 2007 01:14:28 +0000 (01:14 +0000)]
Tweak: Use undetermined copyright years.

17 years agowint_t.m4 just has a version number discrepancy, skip for now
Karl Berry [Mon, 15 Jan 2007 14:43:20 +0000 (14:43 +0000)]
wint_t.m4 just has a version number discrepancy, skip for now

17 years agoautoupdate
Karl Berry [Mon, 15 Jan 2007 14:41:52 +0000 (14:41 +0000)]
autoupdate

17 years agoFix typo, reported by Ralf Wildenhues.
Bruno Haible [Mon, 15 Jan 2007 14:30:36 +0000 (14:30 +0000)]
Fix typo, reported by Ralf Wildenhues.

17 years agoExplain the different license terms for module descriptions,
Bruno Haible [Mon, 15 Jan 2007 11:20:59 +0000 (11:20 +0000)]
Explain the different license terms for module descriptions,
autoconf macros, tests, documentation.

17 years agoBump copyright year.
Bruno Haible [Mon, 15 Jan 2007 10:58:01 +0000 (10:58 +0000)]
Bump copyright year.