From: Akim Demaille Date: Thu, 31 May 2001 07:32:27 +0000 (+0000) Subject: * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Include X-Git-Tag: AUTOCONF-2.50a~83 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7312c775f1fdce89bddec9488ae139e039752f0f;p=thirdparty%2Fautoconf.git * acgeneral.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): Include stdlib.h. From Paul Eggert and Lars Hecking. --- diff --git a/ChangeLog b/ChangeLog index 5bda1ba8d..24f1e489a 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 90f06337e..51edbe0a4 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 0d8c76009..3deae136c 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 d8e1b0574..204bf9520 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 0d8c76009..3deae136c 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) ])