From 7312c775f1fdce89bddec9488ae139e039752f0f Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Thu, 31 May 2001 07:32:27 +0000 Subject: [PATCH] * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Include stdlib.h. From Paul Eggert and Lars Hecking. --- ChangeLog | 6 ++++++ NEWS | 3 +++ acgeneral.m4 | 6 +++++- doc/autoconf.texi | 4 ++++ lib/autoconf/general.m4 | 6 +++++- 5 files changed, 23 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5bda1ba8..24f1e489 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2001-05-31 Akim Demaille + + * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Include + stdlib.h. + From Paul Eggert and Lars Hecking. + 2001-05-31 Akim Demaille * tests/base.at: Adjust line numbers in error messages. diff --git a/NEWS b/NEWS index 90f06337..51edbe0a 100644 --- a/NEWS +++ b/NEWS @@ -1,4 +1,7 @@ * Major changes in Autoconf 2.50a -*- outline -*- +** Default includes +Now include stdint.h. + * Major changes in Autoconf 2.50 diff --git a/acgeneral.m4 b/acgeneral.m4 index 0d8c7600..3deae136 100644 --- a/acgeneral.m4 +++ b/acgeneral.m4 @@ -2333,13 +2333,17 @@ ac_includes_default="\ #endif #if HAVE_INTTYPES_H # include +#else +# if HAVE_STDINT_H +# include +# endif #endif #if HAVE_UNISTD_H # include #endif" ])dnl AC_REQUIRE([AC_HEADER_STDC])dnl -AC_CHECK_HEADERS(stdlib.h string.h memory.h strings.h inttypes.h unistd.h) +AC_CHECK_HEADERS(stdlib.h string.h memory.h strings.h inttypes.h stdint.h unistd.h) ]) diff --git a/doc/autoconf.texi b/doc/autoconf.texi index d8e1b057..204bf952 100644 --- a/doc/autoconf.texi +++ b/doc/autoconf.texi @@ -2797,6 +2797,10 @@ Most generic macros provide the following default set of includes: #endif #if HAVE_INTTYPES_H # include +#else +# if HAVE_STDINT_H +# include +# endif #endif #if HAVE_UNISTD_H # include diff --git a/lib/autoconf/general.m4 b/lib/autoconf/general.m4 index 0d8c7600..3deae136 100644 --- a/lib/autoconf/general.m4 +++ b/lib/autoconf/general.m4 @@ -2333,13 +2333,17 @@ ac_includes_default="\ #endif #if HAVE_INTTYPES_H # include +#else +# if HAVE_STDINT_H +# include +# endif #endif #if HAVE_UNISTD_H # include #endif" ])dnl AC_REQUIRE([AC_HEADER_STDC])dnl -AC_CHECK_HEADERS(stdlib.h string.h memory.h strings.h inttypes.h unistd.h) +AC_CHECK_HEADERS(stdlib.h string.h memory.h strings.h inttypes.h stdint.h unistd.h) ])