]> Savannah Git Hosting - gnulib.git/commitdiff
stdint: port to Autoconf 2.70
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 12 Dec 2020 01:33:36 +0000 (17:33 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 12 Dec 2020 01:36:25 +0000 (17:36 -0800)
* 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
m4/stdint.m4

index 68bae99d90f1acd3a6d89912202abb6a09f52681..b8d0daf09df8f647a7db2dea44a6e35a94ed0cee 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2020-12-11  Paul Eggert  <eggert@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.
index d5f5d6133a9b0bf6b49a54936ddd6bc65eca30e1..95c0944dc6e66662ddbf6d7f6a47e00d607bfc1e 100644 (file)
@@ -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