|
4392fa65
|
2006-07-09T01:31:04
|
|
Commentary sync from coreutils.
|
|
673458cf
|
2006-01-24T07:40:58
|
|
Work around porting bugs reported by Dieter in
<http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
* lib/getopt.c (_NOPROTO): Remove; no longer needed.
Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
Include "getopt.h" first, to check interface.
(getenv): Declare only if defined HAVE_DECL_GETENV &&
!HAVE_DECL_GETENV.
* lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
(__strndup): Revert to K&R-style function dfns, the glibc style.
* lib/strnlen.c: Don't claim it's taken from glibc; it's not.
(strnlen, __strnlen): Remove #defines and #undefs; not needed.
Include strnlen.h first, to get prototype properly.
(strnlen): Renamed from __strnlen.
Remove weak alias.
* m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
|
|
1b4d508f
|
2005-08-16T18:45:50
|
|
* m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
of gl_GETOPT_SUBSTITUTE. That way, if both gl_GETOPT_SUBSTITUTE
and gl_GETOPT are both invoked via different paths (as happens
with GNU tar CVS because it uses both argp and getopt), the former
wins.
|
|
f521b73c
|
2005-07-26T21:55:31
|
|
Add support to getopt for Emacs, which doesn't use LIBOBJS in the
normal way.
* getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
(gl_GETOPT_SUBSTITUTE): Use it. Invoke gl_PREREQ_GETOPT.
(gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
(gl_GETOPT): Use the new macros. Most of the implementation
is moved to the new macros. This is for programs like Emacs
that don't want all the functionality of gl_GETOPT.
|
|
2ff0e132
|
2005-05-10T19:11:00
|
|
* getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
possible.
|
|
49e0d57f
|
2005-05-06T01:04:20
|
|
* getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
needless checks.
|
|
44d7c1c1
|
2005-01-23T08:06:57
|
|
Use an all-permissive copyright notice, recommended by RMS.
|
|
f092adca
|
2004-11-23T02:52:44
|
|
(gl_GETOPT): Check if GETOPT_H is already set, in
order not to spoil the result of an eventual previous invocation
of gl_GETOPT_SUBSTITUTE.
|
|
38276efd
|
2004-11-11T21:00:47
|
|
(gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
of replacing opterr, getopt, etc. This should handle the
powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
|
|
4a976235
|
2004-11-11T15:32:19
|
|
Replace opterr.
|
|
91e24ce6
|
2004-10-15T20:01:46
|
|
(gl_GETOPT): Detect and reject the incompatible BSD
implementation of getopt_long.
|
|
145c669a
|
2004-08-12T08:03:11
|
|
(gl_GETOPT_SUBSTITUTE, gl_PREREQ_GETOPT): New macros.
(gl_GETOPT): Use them.
|
|
6d2408b7
|
2003-09-09T18:36:53
|
|
Remove K&R cruft in getopt.
|
|
53b8fa05
|
2002-12-31T13:42:06
|
|
An autoconf macro for its associated module.
|