gnulib.git
16 years agoNew module 'areadlink'. cvs-readonly
Bruno Haible [Tue, 18 Sep 2007 22:04:19 +0000 (22:04 +0000)]
New module 'areadlink'.

16 years agoNew module 'areadlink'. File based on lib/xreadlink.c.
Bruno Haible [Tue, 18 Sep 2007 22:03:42 +0000 (22:03 +0000)]
New module 'areadlink'. File based on lib/xreadlink.c.

16 years ago* lib/savewd.c (ESTALE) [!defined]: Define.
Jim Meyering [Mon, 17 Sep 2007 16:51:01 +0000 (16:51 +0000)]
* lib/savewd.c (ESTALE) [!defined]: Define.
Reported to be required on Interix by Martin Koeppe.

16 years agoMake "gnulib-tool --version" work in git-cvsserver checkout.
Bruno Haible [Mon, 17 Sep 2007 10:26:32 +0000 (10:26 +0000)]
Make "gnulib-tool --version" work in git-cvsserver checkout.

16 years agoMake the buffer large enough, to avoid a buffer overflow.
Bruno Haible [Sun, 16 Sep 2007 11:42:32 +0000 (11:42 +0000)]
Make the buffer large enough, to avoid a buffer overflow.

16 years agoTry harder to enable the alias for 'sed'.
Bruno Haible [Sun, 16 Sep 2007 00:41:34 +0000 (00:41 +0000)]
Try harder to enable the alias for 'sed'.

16 years ago* ChangeLog: Remove conflict markers.
Eric Blake [Thu, 13 Sep 2007 13:52:18 +0000 (13:52 +0000)]
* ChangeLog: Remove conflict markers.

16 years ago(gc_hash_open): Catch NULL calloc return value.
Simon Josefsson [Thu, 13 Sep 2007 11:53:38 +0000 (11:53 +0000)]
(gc_hash_open): Catch NULL calloc return value.
Reported by Bruno Haible <bruno@clisp.org>.

16 years agoAvoid defining AC_USE_SYSTEM_EXTENSIONS here.
Bruno Haible [Wed, 12 Sep 2007 23:24:15 +0000 (23:24 +0000)]
Avoid defining AC_USE_SYSTEM_EXTENSIONS here.

16 years agoTrack CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
Eric Blake [Wed, 12 Sep 2007 15:59:57 +0000 (15:59 +0000)]
Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
* m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
Autoconf definition.
* modules/euidaccess (Depends-on): Add extensions, for
AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
* modules/fnmatch (Depends-on): Likewise.
* modules/getaddrinfo (Depends-on): Likewise.
* modules/getdelim (Depends-on): Likewise.
* modules/getline (Depends-on): Likewise.
* modules/getsubopt (Depends-on): Likewise.
* modules/gettext (Depends-on): Likewise.
* modules/group-member (Depends-on): Likewise.
* modules/mbchar (Depends-on): Likewise.
* modules/memmem (Depends-on): Likewise.
* modules/mempcpy (Depends-on): Likewise.
* modules/memrchr (Depends-on): Likewise.
* modules/pagealign_alloc (Depends-on): Likewise.
* modules/readutmp (Depends-on): Likewise.
* modules/stpcpy (Depends-on): Likewise.
* modules/stpncpy (Depends-on): Likewise.
* modules/strchrnul (Depends-on): Likewise.
* modules/strndup (Depends-on): Likewise.
* modules/strsep (Depends-on): Likewise.
* modules/strverscmp (Depends-on): Likewise.
* modules/vasprintf (Depends-on): Likewise.
* modules/wcwidth (Depends-on): Likewise.
* m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
* m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
* m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
* m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
* m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
* m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
* m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
* m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
* m4/mbchar.m4 (gl_MBCHAR): Likewise.
* m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
* m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
* m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
* m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
* m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
* m4/readutmp.m4 (gl_READUTMP): Likewise.
* m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
* m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
* m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
* m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
* m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
* m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
* m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
* m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
* m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
* m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
* m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
so that lock.m4 can be used in gettext without extensions module.

16 years agoRemove old, obsolete isc-posix.m4.
Bruno Haible [Tue, 11 Sep 2007 23:07:45 +0000 (23:07 +0000)]
Remove old, obsolete isc-posix.m4.

16 years ago* ChangeLog: Restore lines accidentally truncated 2007-04-06.
Eric Blake [Tue, 11 Sep 2007 15:58:09 +0000 (15:58 +0000)]
* ChangeLog: Restore lines accidentally truncated 2007-04-06.

16 years agoFix typo in error message.
Bruno Haible [Tue, 11 Sep 2007 00:40:16 +0000 (00:40 +0000)]
Fix typo in error message.

16 years agoautoupdate
Karl Berry [Mon, 10 Sep 2007 16:39:13 +0000 (16:39 +0000)]
autoupdate

16 years agoautoupdate
Karl Berry [Mon, 10 Sep 2007 13:18:03 +0000 (13:18 +0000)]
autoupdate

16 years agoOops, avoid an infinite recursion.
Bruno Haible [Sun, 9 Sep 2007 17:38:23 +0000 (17:38 +0000)]
Oops, avoid an infinite recursion.

16 years agoUpdate portability list.
Bruno Haible [Sun, 9 Sep 2007 17:14:46 +0000 (17:14 +0000)]
Update portability list.

16 years agoOops, invert the direction of the test.
Bruno Haible [Sun, 9 Sep 2007 17:10:10 +0000 (17:10 +0000)]
Oops, invert the direction of the test.

16 years ago* lib/hash.c (hash_initialize): Detect calloc failure.
Jim Meyering [Sun, 9 Sep 2007 14:48:10 +0000 (14:48 +0000)]
* lib/hash.c (hash_initialize): Detect calloc failure.

Reported by Bruno Haible.

16 years agoSet errno to ENOMEM when malloc/realloc fails. Needed on mingw.
Bruno Haible [Sun, 9 Sep 2007 14:32:21 +0000 (14:32 +0000)]
Set errno to ENOMEM when malloc/realloc fails. Needed on mingw.

16 years agoAdd dependencies to malloc-posix, realloc-posix.
Bruno Haible [Sun, 9 Sep 2007 14:27:39 +0000 (14:27 +0000)]
Add dependencies to malloc-posix, realloc-posix.

16 years agoAdd dependency to realloc-posix.
Bruno Haible [Sun, 9 Sep 2007 14:27:13 +0000 (14:27 +0000)]
Add dependency to realloc-posix.

16 years agoAdd dependency to malloc-posix.
Bruno Haible [Sun, 9 Sep 2007 14:26:55 +0000 (14:26 +0000)]
Add dependency to malloc-posix.

16 years agoNew chapter "POSIX Substitutes Library".
Bruno Haible [Sun, 9 Sep 2007 13:20:45 +0000 (13:20 +0000)]
New chapter "POSIX Substitutes Library".

16 years agoSimplify the malloc/realloc/calloc macrology.
Bruno Haible [Sun, 9 Sep 2007 13:19:42 +0000 (13:19 +0000)]
Simplify the malloc/realloc/calloc macrology.

16 years agoSimplify the malloc/realloc/calloc macrology.
Bruno Haible [Sun, 9 Sep 2007 13:07:55 +0000 (13:07 +0000)]
Simplify the malloc/realloc/calloc macrology.

16 years agoNew module 'malloc-posix'.
Bruno Haible [Sun, 9 Sep 2007 13:01:44 +0000 (13:01 +0000)]
New module 'malloc-posix'.

16 years agoNew module 'realloc-posix'.
Bruno Haible [Sun, 9 Sep 2007 12:56:27 +0000 (12:56 +0000)]
New module 'realloc-posix'.

16 years agoNew module 'calloc-posix'.
Bruno Haible [Sun, 9 Sep 2007 12:29:37 +0000 (12:29 +0000)]
New module 'calloc-posix'.

16 years agoAllow for modules to show an arbitrary notice.
Bruno Haible [Sun, 9 Sep 2007 12:17:35 +0000 (12:17 +0000)]
Allow for modules to show an arbitrary notice.

16 years agoNew options --verbose, --quiet.
Bruno Haible [Sun, 9 Sep 2007 11:49:57 +0000 (11:49 +0000)]
New options --verbose, --quiet.

16 years agoPrefer rsync over wget when available.
Bruno Haible [Sat, 8 Sep 2007 23:07:48 +0000 (23:07 +0000)]
Prefer rsync over wget when available.

16 years agoAdd --help and --version option processing.
Bruno Haible [Sat, 8 Sep 2007 22:45:08 +0000 (22:45 +0000)]
Add --help and --version option processing.

16 years agoScript to print the POSIX substitutes modules.
Bruno Haible [Sat, 8 Sep 2007 22:27:19 +0000 (22:27 +0000)]
Script to print the POSIX substitutes modules.

16 years agoRemove extra @code.
Bruno Haible [Sat, 8 Sep 2007 21:36:51 +0000 (21:36 +0000)]
Remove extra @code.

16 years agoRename __fpending.c -> fpending.c and __fpending.h -> fpending.h
Jim Meyering [Sat, 8 Sep 2007 19:25:52 +0000 (19:25 +0000)]
Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h

* lib/fpending.h: Rename from __fpending.h.
* lib/fpending.c: Rename from __fpending.c.
Include "fpending.h", not "__fpending.h".
* lib/__fpending.h, lib/__fpending.c: Remove files.
* modules/fpending (Files): Reflect new file names.
* lib/close-stream.c: Include "fpending.h", not "__fpending.h".

16 years agoRemove old stub file.
Bruno Haible [Sat, 8 Sep 2007 12:16:39 +0000 (12:16 +0000)]
Remove old stub file.

16 years agodoc/headers/stdint.texi: Discuss #include_next issue.
Simon Josefsson [Fri, 7 Sep 2007 10:33:34 +0000 (10:33 +0000)]
doc/headers/stdint.texi: Discuss #include_next issue.

16 years ago* build-aux/bootstrap: Remove obsolete comment about wget --help.
Paul Eggert [Thu, 6 Sep 2007 18:14:05 +0000 (18:14 +0000)]
* build-aux/bootstrap: Remove obsolete comment about wget --help.

16 years ago* m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
Paul Eggert [Thu, 6 Sep 2007 17:52:29 +0000 (17:52 +0000)]
* m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
in variable name.

16 years agoupdate from texinfo
Karl Berry [Mon, 3 Sep 2007 12:19:53 +0000 (12:19 +0000)]
update from texinfo

16 years agoNew module: git-version-gen.
Jim Meyering [Mon, 3 Sep 2007 10:47:39 +0000 (10:47 +0000)]
New module: git-version-gen.
* modules/git-version-gen: New file.

16 years agoImport changes from coreutils for bootstrap script.
Jim Meyering [Sun, 2 Sep 2007 23:05:26 +0000 (23:05 +0000)]
Import changes from coreutils for bootstrap script.

* build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.

bootstrap: uses rsync to download the .po files
* build-aux/bootstrap (po_download_command_format): New global.
(download_po_files): Use rsync.
(update_po_files): Don't remove .po files after download,
so future rsync runs can take advantage of the copies.

* build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.

Solve the unnecessary-.po-file-regeneration problem once and for all.
* build-aux/bootstrap (download_po_files): New function, renamed from
get_translations.  Now, downloads, but doesn't update LINGUAS.
(update_po_files): New function.

bootstrap: Ignore more.
* build-aux/bootstrap (symlink_to_dir): Add a directory name like
uniwidth to e.g., lib/.gitignore.
(slurp): Handle the sys_stat_.h -> sys mapping, too.

* build-aux/bootstrap: New setting: vc_ignore.
(insert_sorted_if_absent): Create $file if absent.
Adapt to new, possibly empty, list: $vc_ignore.

bootstrap: generate more ignorable names
* build-aux/bootstrap (slurp): When generating ignorable names,
also map .sin to .sed, .gperf to .c, and .y to .c.

2007-09-03  Jim Meyering  <jim@meyering.net>

16 years ago* build-aux/git-version-gen: New file, from coreutils. For details, see
Jim Meyering [Sun, 2 Sep 2007 22:42:45 +0000 (22:42 +0000)]
* build-aux/git-version-gen: New file, from coreutils.  For details, see
http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506

16 years agomissed commit
Karl Berry [Sun, 2 Sep 2007 21:05:51 +0000 (21:05 +0000)]
missed commit

16 years agoFix mis-recognition of 'mcs' on QNX 6.
Bruno Haible [Sun, 2 Sep 2007 11:13:02 +0000 (11:13 +0000)]
Fix mis-recognition of 'mcs' on QNX 6.

16 years agoAdd double-inclusion guard.
Bruno Haible [Sat, 1 Sep 2007 16:24:55 +0000 (16:24 +0000)]
Add double-inclusion guard.

16 years agoLet linebreak rely on uniwidth/width.
Bruno Haible [Sat, 1 Sep 2007 15:52:06 +0000 (15:52 +0000)]
Let linebreak rely on uniwidth/width.

16 years agofinish mreadlink_with_size rename
Karl Berry [Sat, 1 Sep 2007 14:01:44 +0000 (14:01 +0000)]
finish mreadlink_with_size rename

16 years agoRename mreadlink_with_size to areadlink_with_size.
Jim Meyering [Tue, 28 Aug 2007 09:13:04 +0000 (09:13 +0000)]
Rename mreadlink_with_size to areadlink_with_size.
* NEWS: Document the change.
* lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
* lib/areadlink-with-size.c (areadlink_with_size): ...this.
* lib/mreadlink.h: Rename this to...
* lib/areadlink.h: ...this.
* modules/mreadlink-with-size: Rename this to...
* modules/areadlink-with-size: ...this.
* lib/canonicalize.c: Reflect the renaming.
* modules/canonicalize: Likewise.

16 years agoCare about dangling symbolic links.
Bruno Haible [Sun, 26 Aug 2007 10:36:54 +0000 (10:36 +0000)]
Care about dangling symbolic links.

16 years agoUse test -h, not test -L.
Bruno Haible [Sun, 26 Aug 2007 10:31:22 +0000 (10:31 +0000)]
Use test -h, not test -L.

16 years agolib/readline.c: Don't include getline.h, the prototype is now found in stdio.h.
Simon Josefsson [Thu, 23 Aug 2007 15:44:35 +0000 (15:44 +0000)]
lib/readline.c: Don't include getline.h, the prototype is now found in stdio.h.

16 years agoGetdelim touchup.
Jim Meyering [Thu, 23 Aug 2007 08:33:16 +0000 (08:33 +0000)]
Getdelim touchup.
* lib/getdelim.c (getdelim): Don't bother to save/restore errno
around the funlockfile call, since funlockfile never sets errno.
Don't set errno upon failed realloc.

16 years agoGetline touchups.
Eric Blake [Thu, 23 Aug 2007 02:00:18 +0000 (02:00 +0000)]
Getline touchups.
* lib/getdelim.c (getdelim): Revert regression that required *n to
be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
* m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
getdelim, rather than whether implementation is missing.
* m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
* lib/stdio_.h (getline): Also declare if replacement is
required.
* doc/functions/getdelim.texi: New file.
* doc/functions/getline.texi: Likewise.
* doc/gnulib.texi (Function Substitutes): Add new files.
Reported by Bruno Haible.

16 years agoAdd guile.
Bruno Haible [Wed, 22 Aug 2007 22:24:55 +0000 (22:24 +0000)]
Add guile.

16 years ago* tests/test-getdelim.c (main): Use remove, not unlink.
Eric Blake [Wed, 22 Aug 2007 14:04:30 +0000 (14:04 +0000)]
* tests/test-getdelim.c (main): Use remove, not unlink.
* tests/test-getline.c (main): Likewise.

16 years agoMove getline and getdelim into stdio.h, per POSIX 200x.
Eric Blake [Wed, 22 Aug 2007 12:54:21 +0000 (12:54 +0000)]
Move getline and getdelim into stdio.h, per POSIX 200x.
* modules/getline (Files): Remove getline.h.
(Depends-on): Add stdio.
(configure.ac): Add module indicator.
* modules/getdelim (Files): Remove getdelim.h.
(Depends-on): Add stdio.
(configure.ac): Add module indicator.
* modules/stdio (Makefile.am): Work with new indicators.
* m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
* m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
* m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
* lib/getdelim.h: Delete.
* lib/getline.h: Delete.
* lib/stdio_.h (getdelim, getline): Declare.
* modules/getdelim-tests: New module.
* modules/getline-tests: Likewise.
* tests/test-getdelim.c: New file.
* tests/test-getline.c: Likewise.
* NEWS: Document the change.
* lib/getline.c: Update choice of header.
* lib/csharpcomp.c: Likewise.
* lib/getpass.c: Likewise.
* lib/javacomp.c: Likewise.
* lib/javaversion.c: Likewise.
* lib/yesno.c: Likewise.
* lib/getdelim.c: Likewise.
(getdelim): Set errno on failure, and avoid memory leak.

16 years agoOptimization: no need to flush stdin if we can determine quickly that stdin's
Bruno Haible [Mon, 20 Aug 2007 22:09:08 +0000 (22:09 +0000)]
Optimization: no need to flush stdin if we can determine quickly that stdin's
input buffer is empty.

16 years agoTests for module 'freadahead'.
Bruno Haible [Sun, 19 Aug 2007 17:43:56 +0000 (17:43 +0000)]
Tests for module 'freadahead'.

16 years agoNew module 'freadahead'.
Bruno Haible [Sun, 19 Aug 2007 17:42:40 +0000 (17:42 +0000)]
New module 'freadahead'.

16 years agoTest yesno in combination with closein.
Eric Blake [Sun, 19 Aug 2007 15:47:14 +0000 (15:47 +0000)]
Test yesno in combination with closein.
* lib/yesno.c (yesno): Document use of stdin.
* modules/yesno-tests (Files): New module.
* tests/test-yesno.c (main): New file.
* tests/test-yesno.sh: Likewise.

16 years agoautoupdate
Karl Berry [Sun, 19 Aug 2007 13:44:47 +0000 (13:44 +0000)]
autoupdate

16 years agoAdd tentative support for Solaris/AMD64.
Bruno Haible [Sun, 19 Aug 2007 09:37:45 +0000 (09:37 +0000)]
Add tentative support for Solaris/AMD64.

16 years agoAnother lseek bug on BeOS.
Bruno Haible [Sun, 19 Aug 2007 09:10:56 +0000 (09:10 +0000)]
Another lseek bug on BeOS.

16 years agoWork around lseek bug on BeOS.
Bruno Haible [Sun, 19 Aug 2007 09:08:05 +0000 (09:08 +0000)]
Work around lseek bug on BeOS.

16 years agoTest of fuzzy string matching.
Bruno Haible [Sat, 18 Aug 2007 17:09:47 +0000 (17:09 +0000)]
Test of fuzzy string matching.

16 years agoFuzzy string comparison.
Bruno Haible [Sat, 18 Aug 2007 11:07:07 +0000 (11:07 +0000)]
Fuzzy string comparison.

16 years agoTrivial modifications to lib/diffseq.h.
Bruno Haible [Sat, 18 Aug 2007 10:54:38 +0000 (10:54 +0000)]
Trivial modifications to lib/diffseq.h.

16 years ago- Comment style.
Bruno Haible [Sat, 18 Aug 2007 10:53:41 +0000 (10:53 +0000)]
- Comment style.
- Change 'heuristic' from 'int' to 'bool'.
- Remove the 'const' from the context parameter. Needed because in the
  fstrcmp case, the NOTE_INSERT and NOTE_DELETE macros modify fields
  in the context, and an extra indirection would only cost performance:
    #define EXTRA_CONTEXT_FIELDS \
      /* The number of elements inserted or deleted. */ \
      int xvec_edit_count; \
      int yvec_edit_count;
    #define NOTE_DELETE(ctxt, xoff) ctxt->xvec_edit_count++
    #define NOTE_INSERT(ctxt, yoff) ctxt->yvec_edit_count++
- In 'diag', keep two blocks of code in sync (lines 191 and 224).
- Undefine the macro USE_HEURISTIC after use.

16 years agoNew file: lib/idcache.h
Jim Meyering [Sat, 18 Aug 2007 07:16:52 +0000 (07:16 +0000)]
New file: lib/idcache.h
* NEWS: Mention the addition.
* modules/idcache (Files): Add lib/idcache.h
* lib/idcache.c: Include "idcache.h".
Don't include <sys/types.h>.
Add a FIXME comment.
Move file-scoped "static" declarations to the top.
* lib/idcache.h: New file.  Include <sys/types.h> here, instead.

16 years ago* MODULES.html.sh: Add diffseq.
Paul Eggert [Fri, 17 Aug 2007 23:29:23 +0000 (23:29 +0000)]
* MODULES.html.sh: Add diffseq.
* modules/diffseq: New file.
* lib/diffseq.h: New file, from GNU gettext with a few minor changes,
extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.

16 years agoImport changes from coreutils for bootstrap script.
Paul Eggert [Fri, 17 Aug 2007 23:13:57 +0000 (23:13 +0000)]
Import changes from coreutils for bootstrap script.

2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>

* build-aux/bootstrap (slurp): Work even in environments where
"ls" defaults to "ls -A".  Put in a FIXME, though, since the
current code does not slurp files whose names start with ".", and
this looks like it might be a troublesome area.

2007-07-11  Jim Meyering  <jim@meyering.net>

If there's a GPL vN copyright comment, require that N == 3.

2007-07-08  Jim Meyering  <jim@meyering.net>

Run the coreutils-specific code only if tests/Makefile.am.in exists.
* build-aux/bootstrap (mam_template): Move definition out of loop.

Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.

* build-aux/bootstrap (symlink_to_dir): Rename function from
symlink_to_gnulib.  Add a directory parameter.  Update all
callers.
(cp_mark_as_generated): Also check for -- and link to -- files in
gl/.

2007-07-08  Jim Meyering  <jim@meyering.net>

Adapt to deeper hierarchy in gnulib.
* build-aux/bootstrap (symlink_to_dir): If the destination
directory doesn't exist, create it. This is required at least for
"lib/uniwidth/cjk.h".

2007-05-15  Jim Meyering  <jim@meyering.net>

* build-aux/bootstrap: Now that generated Makefile.am files
are no longer under version control, they must be created at
bootstrap time.

16 years ago* lib/count-one-bits.h: Add comments. (From Bruno Haible.)
Ben Pfaff [Wed, 15 Aug 2007 03:37:54 +0000 (03:37 +0000)]
* lib/count-one-bits.h: Add comments.  (From Bruno Haible.)

* lib/count-one-bits.h: Don't include <limits.h>; no longer needed
given the changes below.
(COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
even on hosts that have padding bits beyond the supported 64.
(From Paul Eggert.)

16 years ago* tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
Paul Eggert [Fri, 10 Aug 2007 19:07:06 +0000 (19:07 +0000)]
* tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
* tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.

16 years ago* NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
Paul Eggert [Fri, 10 Aug 2007 19:02:31 +0000 (19:02 +0000)]
* NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
* lib/xstrtol.h: Don't include exitfail.h; that's now internal to
xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
depends on it.
(xstrtol_error): Remove.
(xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
but with a different signature.
(ATTRIBUTE_NORETURN, __attribute__): New macros.
* lib/xstrtol-error.c: Include exitfail.h.
(xstrtol_fatal): New function, with a different signature from the
old xstrtol_error, so that the caller need not worry about passing
in an exit status, or about storage management of the option argument.
(xstrtol_error): Now a static function.  Redo signature to
implement xstrtol_fatal.  Output the correct number of hyphens in
front of the option so that the caller need not worry about
storage management.
(N_): New macro.
(_): Remove; not used now.
* modules/xstrtol: Depend on getopt.
* tests/test-xstrtol.c (main): Use new xstrtol_error function instead
of old STRTOL_FATAL_ERROR macro.
* tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
of test program.

16 years ago* lib/xstrtol-error.c: Add missing include.
Eric Blake [Wed, 8 Aug 2007 16:05:58 +0000 (16:05 +0000)]
* lib/xstrtol-error.c: Add missing include.

16 years agoMove xstrtol messages into gnulib domain, when --pobase is used.
Eric Blake [Wed, 8 Aug 2007 12:45:54 +0000 (12:45 +0000)]
Move xstrtol messages into gnulib domain, when --pobase is used.
* lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
* lib/xstrtol-error.c (xstrtol_error): ...into new file.
* modules/xstrtol (Files): Distribute new file.
* m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
* lib/xstrtol.c (TESTING_XSTRTO): Move tests...
* tests/test-xstrtol.c: ...into new file.
* tests/test-xstrtoul.c: Also test xstrtoul.
* tests/test-xstrtoimax.c: Also test xstrtoimax.
* tests/test-xstrtoumax.c: Also test xstrtoumax.
* tests/test-xstrtol.sh: Drive the tests.
* tests/test-xstrtoimax.sh: Likewise.
* tests/test-xstrtoumax.sh: Likewise.
* modules/xstrtol-tests: New module.
* modules/xstrtoimax-tests: Likewise.
* modules/xstrtoumax-tests: Likewise.

16 years agoNew function: mfile_name_concat.
Jim Meyering [Wed, 8 Aug 2007 06:43:35 +0000 (06:43 +0000)]
New function: mfile_name_concat.
* lib/filenamecat.c (mfile_name_concat): New function, just like
file_name_concat, but return NULL upon failure rather than exiting
with a diagnostic.
* lib/filenamecat.h: Declare it.

16 years agoAvoid gcc warning: "__STDC_LIMIT_MACROS_TRIGGER" redefined
Bruno Haible [Tue, 7 Aug 2007 22:26:23 +0000 (22:26 +0000)]
Avoid gcc warning: "__STDC_LIMIT_MACROS_TRIGGER" redefined

16 years ago2007-08-07 Simon Josefsson <simon@josefsson.org>
Simon Josefsson [Tue, 7 Aug 2007 09:49:37 +0000 (09:49 +0000)]
2007-08-07  Simon Josefsson  <simon@josefsson.org>

* modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
* modules/crypto/arcfour (License): Likewise.
* modules/crypto/des-tests (License): Likewise.
* modules/crypto/gc-arctwo-tests (License): Likewise.
* modules/crypto/gc-des-tests (License): Likewise.
* modules/crypto/gc-hmac-md5-tests (License): Likewise.
* modules/crypto/gc-hmac-sha1-tests (License): Likewise.
* modules/crypto/gc-md2-tests (License): Likewise.
* modules/crypto/gc-md4-tests (License): Likewise.
* modules/crypto/gc-md5-tests (License): Likewise.
* modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
* modules/crypto/gc-rijndael-tests (License): Likewise.
* modules/crypto/gc-sha1-tests (License): Likewise.
* modules/crypto/gc-tests (License): Likewise.
* modules/crypto/hmac-md5 (License): Likewise.
* modules/crypto/hmac-sha1 (License): Likewise.
* modules/crypto/md2-tests (License): Likewise.
* modules/crypto/md4-tests (License): Likewise.
* modules/crypto/md5 (License): Likewise.
* modules/crypto/rijndael (License): Likewise.
* modules/crypto/sha1 (License): Likewise.
* modules/memxor (License): Likewise.

16 years ago* NEWS: Describe interface changes to human, xstrtol.
Paul Eggert [Mon, 6 Aug 2007 16:44:24 +0000 (16:44 +0000)]
* NEWS: Describe interface changes to human, xstrtol.
* lib/human.h: Include <xstrtol.h>.
(human_options): Return enum strtol_error, not int.  Remove
bool arg; take int * instead.
* lib/human.c: Don't include "gettext.h".
(_): Remove; no longer used.
Don't include <xstrtol.h>, since human.h does it.
(human_options): Adjust to abovementioned interface changes.
Do not report error to stderr; that's now the caller's
responsibility.
* lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
interface change.
* lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
Str, Argument_type_string.  All uses changed.  Put " argument"
in diagnostics to make them clearer.  Change wording of suffix
message for clarity.
(STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
Argument_type_string.
(STRTOL_FATAL_WARN): Remove; no longer used.
* modules/human (Depends-on): Remove gettext-h.

16 years ago2007-08-06 Simon Josefsson <simon@josefsson.org>
Simon Josefsson [Mon, 6 Aug 2007 14:06:55 +0000 (14:06 +0000)]
2007-08-06  Simon Josefsson  <simon@josefsson.org>

* build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.

16 years agoDon't pretend that stdint.h conforms to C99 if it doesn't define WCHAR_MIN
Bruno Haible [Tue, 31 Jul 2007 22:34:58 +0000 (22:34 +0000)]
Don't pretend that stdint.h conforms to C99 if it doesn't define WCHAR_MIN
and WCHAR_MAX.

16 years agoUse a slightly cleaner hack on BSD systems.
Bruno Haible [Tue, 31 Jul 2007 22:15:00 +0000 (22:15 +0000)]
Use a slightly cleaner hack on BSD systems.

16 years agoIn attribution, correct name spelling and adjust email address.
Jim Meyering [Tue, 31 Jul 2007 17:08:37 +0000 (17:08 +0000)]
In attribution, correct name spelling and adjust email address.

16 years agoCorrect recent fts.c patch author attribution.
Jim Meyering [Tue, 31 Jul 2007 16:33:30 +0000 (16:33 +0000)]
Correct recent fts.c patch author attribution.

16 years agoUse the synonymous term LGPLv2+.
Bruno Haible [Mon, 30 Jul 2007 21:35:56 +0000 (21:35 +0000)]
Use the synonymous term LGPLv2+.

16 years agoupdate from texinfo
Karl Berry [Mon, 30 Jul 2007 15:51:07 +0000 (15:51 +0000)]
update from texinfo

16 years ago* lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
Jim Meyering [Mon, 30 Jul 2007 12:16:34 +0000 (12:16 +0000)]
* lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
it has valid stat data.  This bug would cause du not to count the
sizes of inaccessible directories.
Patch by Jose Maria Plans, reported in http://bugzilla.redhat.com/250077

16 years agoRevert last patch.
Bruno Haible [Fri, 27 Jul 2007 08:49:41 +0000 (08:49 +0000)]
Revert last patch.

16 years agoRevert last patch.
Bruno Haible [Thu, 26 Jul 2007 08:28:56 +0000 (08:28 +0000)]
Revert last patch.

16 years ago2007-07-25 Jim Meyering <jim@meyering.net>
Bruno Haible [Wed, 25 Jul 2007 22:42:36 +0000 (22:42 +0000)]
2007-07-25  Jim Meyering  <jim@meyering.net>
            Bruno Haible  <bruno@clisp.org>
        * lib/xstrtol.h (_STRTOL_ERROR): Change third argument from a
        localized noun to an option name.
        (STRTOL_FATAL_ERROR, STRTOL_FAIL_WARN): Likewise.
        * lib/human.h (human_options): Insert a third argument.
        * lib/human.h (human_options): Likewise. Pass it to STRTOL_FATAL_ERROR.

16 years agoautoupdate
Karl Berry [Wed, 25 Jul 2007 22:10:26 +0000 (22:10 +0000)]
autoupdate

16 years agoautoupdate
Karl Berry [Wed, 25 Jul 2007 12:13:58 +0000 (12:13 +0000)]
autoupdate

16 years agoFix the include_next test so that it rejects AIX 4.3 xlc.
Bruno Haible [Wed, 25 Jul 2007 08:11:26 +0000 (08:11 +0000)]
Fix the include_next test so that it rejects AIX 4.3 xlc.

16 years agoImprove name: "count-one-bits" is better than "popcount".
Ben Pfaff [Wed, 25 Jul 2007 03:13:19 +0000 (03:13 +0000)]
Improve name: "count-one-bits" is better than "popcount".
* MODULES.html.sh: Update name.
* lib/popcount.h: Renamed lib/count-one-bits.h.
(popcount): Renamed count_one_bits.
(popcountl): Renamed count_one_bits_l.
(popcountll): Renamed count_one_bits_ll.
* m4/popcount.m4: Renamed m4/count-one-bits.m4.
* modules/popcount: Renamed module/count-one-bits.
* modules/popcount-tests: Renamed module/count-one-bits-tests.
* tests/test-popcount.c: Renamed tests/test-count-one-bits.c.

16 years ago(popcount32): Reduce size of constants, to allow better code
Ben Pfaff [Tue, 24 Jul 2007 02:35:09 +0000 (02:35 +0000)]
(popcount32): Reduce size of constants, to allow better code
generation, and add U to large constants to avoid warnings, in non-GCC
case.
Suggested by Bruno Haible.

16 years ago* lib/popcount.h: Use verify_true instead of if...abort.
Ben Pfaff [Tue, 24 Jul 2007 02:13:14 +0000 (02:13 +0000)]
* lib/popcount.h: Use verify_true instead of if...abort.
* modules/popcount: Depend on verify module.
Suggested by Jim Meyering.

16 years agoCreate .cvsignore files when creating a new directory.
Bruno Haible [Mon, 23 Jul 2007 22:08:02 +0000 (22:08 +0000)]
Create .cvsignore files when creating a new directory.