* m4/stdint.m4 (gl_STDINT_H): Check for inttypes.h and sys/types.h instead of assuming that AC_INCLUDES_DEFAULT does it. The old code relied on AC_INCLUDES_DEFAULT being called and setting ac_cv_header_inttypes_h and ac_cv_header_sys_types_h, but this does not occur in Autoconf 2.70. --- ChangeLog | 7 +++++++ m4/stdint.m4 | 6 +++--- 2 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog index 68bae99d9..b8d0daf09 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2020-12-11 Paul Eggert <egg...@cs.ucla.edu> + stdint: port to Autoconf 2.70 + * m4/stdint.m4 (gl_STDINT_H): Check for inttypes.h and sys/types.h + instead of assuming that AC_INCLUDES_DEFAULT does it. + The old code relied on AC_INCLUDES_DEFAULT being called + and setting ac_cv_header_inttypes_h and ac_cv_header_sys_types_h, + but this does not occur in Autoconf 2.70. + pid_t.m4: just use 2.70 * m4/pid_t.m4 (AC_TYPE_PID_T): Use Autoconf 2.70 as a prerequisite, not 2.69c. diff --git a/m4/stdint.m4 b/m4/stdint.m4 index d5f5d6133..95c0944dc 100644 --- a/m4/stdint.m4 +++ b/m4/stdint.m4 @@ -1,4 +1,4 @@ -# stdint.m4 serial 56 +# stdint.m4 serial 57 dnl Copyright (C) 2001-2020 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -34,7 +34,7 @@ AC_DEFUN_ONCE([gl_STDINT_H], AC_SUBST([HAVE_WCHAR_H]) dnl Check for <inttypes.h>. - dnl AC_INCLUDES_DEFAULT defines $ac_cv_header_inttypes_h. + AC_CHECK_HEADERS_ONCE([inttypes.h]) if test $ac_cv_header_inttypes_h = yes; then HAVE_INTTYPES_H=1 else @@ -43,7 +43,7 @@ AC_DEFUN_ONCE([gl_STDINT_H], AC_SUBST([HAVE_INTTYPES_H]) dnl Check for <sys/types.h>. - dnl AC_INCLUDES_DEFAULT defines $ac_cv_header_sys_types_h. + AC_CHECK_HEADERS_ONCE([sys/types.h]) if test $ac_cv_header_sys_types_h = yes; then HAVE_SYS_TYPES_H=1 else -- 2.28.0