autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 2/2] Modernize AC_INCLUDES_DEFAULT and friends.


From: Zack Weinberg
Subject: [PATCH 2/2] Modernize AC_INCLUDES_DEFAULT and friends.
Date: Thu, 30 May 2013 17:19:14 -0400

 * lib/autoconf/headers.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS):
   Include stddef.h, stdlib.h, and string.h unconditionally.
   Don't include strings.h or memory.h at all.
   Don't use AC_HEADER_STDC.
   Don't check for stddef.h, stdlib.h, string.h, strings.h, or memory.h.
   (AN_HEADER list): Remove C89 headers, strings.h, and memory.h from list.
   (AC_HEADER_STDC): AU_DEFUN as an unconditional AC_DEFINE of STDC_HEADERS.
   (AC_HEADER_TIME): AU_DEFUN, and define TIME_WITH_SYS_TIME unconditionally
   as long as sys/time.h is present.
   (AC_USG, AC_MEMORY_H): Assume existence of string.h.
 * lib/autoconf/functions.m4 (_AC_FUNC_MALLOC_IF, _AC_FUNC_REALLOC_IF):
   Don't use AC_HEADER_STDC. Assume stdlib.h exists.
   (AC_FUNC_MKTIME): Don't use AC_HEADER_TIME.
   (AC_FUNC_ALLOCA): Assume stdlib.h exists.
   (_AC_LIBOBJ_FNMATCH): Assume wchar.h and wctype.h exist.
   (_AC_LIBOBJ_GETLOADAVG): Assume locale.h exists.
   (AC_FUNC_MMAP): Assume stdlib.h exists.
 * tests/tools.at: Use AC_WORDS_BIGENDIAN instead of AC_STDC_HEADERS in
   autoupdate test.

 * NEWS, doc/autoconf.texi: Document changes. Remove obsolete advice.

Signed-off-by: Zack Weinberg <address@hidden>
---
 NEWS                      |   14 ++
 doc/autoconf.texi         |  290 +++++++++++++++------------------------------
 lib/autoconf/functions.m4 |   35 +-----
 lib/autoconf/headers.m4   |  172 ++++++++++-----------------
 tests/tools.at            |    6 +-
 5 files changed, 182 insertions(+), 335 deletions(-)

Attachment: 0002-Modernize-AC_INCLUDES_DEFAULT-and-friends.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]