[PATCH 4/6] Use AC_CHECK_HEADERS_ONCE for the tests done by AC_INCLUDES_DEFAULT.

2013-09-15 Thread Zack Weinberg
* lib/autoconf/headers.m4 (AC_CHECK_HEADERS_ONCE): Divide into a public macro that AC_REQUIREs _AC_INCLUDES_DEFAULT_REQUIREMENTS, and ... (_AC_CHECK_HEADERS_ONCE): ... a private macro, that doesn't. (_AC_HEADERS_EXPANSION): Use $ac_includes_default, not AC_INCLUDES_DEFAULT.

[PATCH 3/6] Modernize AC_INCLUDES_DEFAULT and friends.

2013-09-15 Thread Zack Weinberg
* lib/autoconf/headers.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Include stddef.h, stdlib.h, and string.h unconditionally. Don't include memory.h at all. Don't use AC_HEADER_STDC. Don't check for stddef.h, stdlib.h, string.h, or memory.h. For compatibility, unconditionally define

[PATCH 6/6] Expose the checks done by AC_INCLUDES_DEFAULT as a public macro.

2013-09-15 Thread Zack Weinberg
* lib/autoconf/headers.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Rename to AC_CHECK_INCLUDES_DEFAULT. All callers changed. (AC_HEADER_STDC, AC_UNISTD_H): Use AC_CHECK_INCLUDES_DEFAULT instead of previous kludge. * doc/autoconf.texi: Document AC_CHECK_INCLUDES_DEFAULT. Signed-off-by:

[PATCH 5/6] Use AC_CHECK_{DECLS, FUNCS, HEADERS}_ONCE more in specific-check macros.

2013-09-15 Thread Zack Weinberg
* lib/autoconf/functions.m4 (AC_FUNC_CHOWN): No need to check for unistd.h. (_AC_LIBOBJ_FNMATCH): Use AC_CHECK_DECLS_ONCE and AC_CHECK_FUNCS_ONCE. (_AC_LIBOBJ_GETLOADAVG): Use AC_CHECK_FUNCS_ONCE for setlocale. (AC_FUNC_MMAP): Use AC_CHECK_FUNCS_ONCE for getpagesize.

[PATCH 2/6] AC_CHECK_HEADER/AC_CHECK_HEADERS: complete transition to compile tests.

2013-09-15 Thread Zack Weinberg
* lib/autoconf/headers.m4 (AC_CHECK_HEADER): Use _AC_CHECK_HEADER_COMPILE by default. Continue to use _AC_CHECK_HEADER_PREPROC if fourth arg is '-'. (_AC_CHECK_HEADER_PREPROC): Issue a deprecation warning. (_AC_CHECK_HEADER_MONGREL, _AC_CHECK_HEADER_MONGREL_BODY): Remove. * tests/c.at,

[PATCH 1/6] * tests/local.at (AT_CHECK_M4): Support 'stderr' as fourth argument.

2013-09-15 Thread Zack Weinberg
Signed-off-by: Zack Weinberg za...@panix.com --- tests/local.at |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/local.at b/tests/local.at index 97a1e1d..47501bf 100644 --- a/tests/local.at +++ b/tests/local.at @@ -113,13 +113,14 @@ m4_define([AT_CHECK_M4],