Jim Meyering [Mon, 13 Aug 2001 20:11:03 +0000 (20:11 +0000)]
(unlocked-io.h): Do not append "_unlocked" twice.
Port to Solaris 8, where 'sed' requires a space after the 'r'
command, and where sh dislikes "$/". Clean up the spacing a bit.
Redirect output to $tmp just once.
Jim Meyering [Mon, 13 Aug 2001 06:30:10 +0000 (06:30 +0000)]
(<errno.h>): Include.
(errno): Declare if not defined.
(addext): Work correctly when pathconf returns -1 and leaves
errno alone because there is no limit. Also, work even if
pathconf returns a value greater than SIZE_MAX.
Jim Meyering [Sat, 4 Aug 2001 17:07:37 +0000 (17:07 +0000)]
Don't include <limits.h>.
Include <stdlib.h> and <string.h> unconditionally.
(iswcntrl, mbsinit, ISCNTRL): New macros.
(mbsnwidth): Use K&R style function declarations.
Don't bother checking for MB_LEN_MAX == 1, since the compiler
can optimize it when MB_CUR_MAX == 1.
The width of control characters is zero, not 1.
Jim Meyering [Sat, 4 Aug 2001 17:00:11 +0000 (17:00 +0000)]
(jm_PREREQ_MBSWIDTH): No longer requires AM_C_PROTOTYPES.
Check for iswcntrl, mbsinit. Use AC_TRY_COMPILE, not AC_CHECK_DECLS,
for portability to Autoconf 2.13.
Jim Meyering [Sat, 4 Aug 2001 16:55:58 +0000 (16:55 +0000)]
Upgrade to serial AM2.
(AM_ICONV): Renamed from jm_ICONV; all uses changed.
Add --with-libconv-prefix.
Quote first arg of AC_DEFUN. Add description for ICONV_CONST.
(am_cv_func_iconv): Renamed from jm_cv_func_iconv.
(am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
(am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
Jim Meyering [Sat, 4 Aug 2001 16:55:36 +0000 (16:55 +0000)]
Upgrade to serial AM1.
(AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
all uses changed. Quote first arg of AC_DEFUN.
(am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
Jim Meyering [Thu, 5 Jul 2001 07:58:06 +0000 (07:58 +0000)]
(noinst_HEADERS): Remove definition, per new automake recommendation.
(libfetish_a_SOURCES): Put all .h files here instead.
Remove a thus-exposed (better checks in automake) duplicate and
two unnecessary .h files.
Jim Meyering [Mon, 2 Jul 2001 07:39:33 +0000 (07:39 +0000)]
(Makefile.am): Include jm-glibc-io.m4n in emitted
definition of EXTRA_DIST.
(Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
ensure that the generated file is created/updated whenever the list
of $(unlocked_functions) is changed.
(jm-glibc-io.m4): New rule.
(unlocked-io.h): New rule -- currently unused.
Jim Meyering [Sun, 24 Jun 2001 20:01:11 +0000 (20:01 +0000)]
(jm_INCLUDED_REGEX): Use a quadrigraph to represent an
unmatched right bracket, rather than an extra, falsely-matching
quote in a comment. Patch by Akim Demaille.
Jim Meyering [Tue, 22 May 2001 06:56:43 +0000 (06:56 +0000)]
(_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
now that we use the package-supplied version unconditionally.
(jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
Jim Meyering [Sun, 20 May 2001 20:41:20 +0000 (20:41 +0000)]
(my_strftime):
Define to nstrftime if emacs, but only if my_strftime is not defined.
(extra_args, extra_args_spec, extra_args_spec_iso): Rename from
ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
Add one more extra argument: a nanoseconds value.
All uses changed.
(ns): New macro.
(my_strftime function): Add %N format.
(emacs_strftimeu): Renamed from emacs_strftime,
with extra ut argument.
Jim Meyering [Sun, 20 May 2001 20:38:25 +0000 (20:38 +0000)]
(jm_FUNC_GNU_STRFTIME):
Don't bother to check library strftime, since
we'll be using our own my_strftime function anyway.
Define my_strftime instead of strftime.