]> Savannah Git Hosting - gnulib.git/commitdiff
Fix "'gl_CHECK_HEADER_SYS_CDEFS_H' was expanded before it was required".
authorBruno Haible <bruno@clisp.org>
Tue, 21 May 2024 16:31:49 +0000 (18:31 +0200)
committerBruno Haible <bruno@clisp.org>
Tue, 21 May 2024 16:31:49 +0000 (18:31 +0200)
* m4/sys_cdefs_h.m4 (gl_CHECK_HEADER_SYS_CDEFS_H): Define through
AC_DEFUN_ONCE.

ChangeLog
m4/sys_cdefs_h.m4

index 2a9b847dbd8444c0e568fc86e9777683c5d937a7..93ff17d15da48ff39ea97f385cd69fd9e8bc72b5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-05-21  Bruno Haible  <bruno@clisp.org>
+
+       Fix "'gl_CHECK_HEADER_SYS_CDEFS_H' was expanded before it was required".
+       * m4/sys_cdefs_h.m4 (gl_CHECK_HEADER_SYS_CDEFS_H): Define through
+       AC_DEFUN_ONCE.
+
 2024-05-21  Bruno Haible  <bruno@clisp.org>
 
        access, euidaccess tests: Avoid test failure for root user on Solaris.
index 069146d438bd7304caa1e0be1c454cb1357d2eb5..22fa6c3849e37d882062c582c47c173745a08f19 100644 (file)
@@ -1,5 +1,5 @@
 # sys_cdefs_h.m4 - Is <sys/cdefs.h> compatible enough with glibc?
-# serial 1
+# serial 2
 dnl Copyright 2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -7,7 +7,7 @@ dnl with or without modifications, as long as this notice is preserved.
 
 dnl Written by Paul Eggert.
 
-AC_DEFUN([gl_CHECK_HEADER_SYS_CDEFS_H],
+AC_DEFUN_ONCE([gl_CHECK_HEADER_SYS_CDEFS_H],
   [AC_CACHE_CHECK([for glibc-compatible sys/cdefs.h],
      [gl_cv_header_sys_cdefs_h],
      [AC_COMPILE_IFELSE(