The definition of AC_LANG_PROGRAM has documented its arguments as optional since:
Factor the AC_PROG_<compiler>_WORKS macros. 164b08eb 2000-05-22 08:38:44 +0000 https://git.sv.gnu.org/cgit/autoconf.git/commit/?id=164b08eb But its entry in the manual shows them as mandatory: * lib/autoconf/headers.m4 (AC_HEADER_STDC): Don't use AC_TRY_CPP. b2504ea9 2002-10-27 18:19:38 +0000 https://git.sv.gnu.org/cgit/emacs.git/commit/?id=b2504ea9 And I've most often seen the macro called with at most 1 argument. I attach a docfix below. WDYT? Thanks, -- Basil
>From bdbbeb114118c2fb517aade9fafc43bd90b18d39 Mon Sep 17 00:00:00 2001 From: "Basil L. Contovounesios" <[email protected]> Date: Tue, 14 Oct 2025 08:50:13 +0200 Subject: [PATCH] doc: fix AC_LANG_PROGRAM signature * doc/autoconf.texi (Generating Sources): Mark AC_LANG_PROGRAM arguments as optional to match its definition and common usage. --- doc/autoconf.texi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/autoconf.texi b/doc/autoconf.texi index 7b680540..93611008 100644 --- a/doc/autoconf.texi +++ b/doc/autoconf.texi @@ -9436,7 +9436,7 @@ Generating Sources definitions are not automatically translated into constants in the source code by this macro. -@defmac AC_LANG_PROGRAM (@var{prologue}, @var{body}) +@defmac AC_LANG_PROGRAM (@ovar{prologue}, @ovar{body}) @acindex{LANG_PROGRAM} Expands into a source file which consists of the @var{prologue}, and then @var{body} as body of the main function (e.g., @code{main} in -- 2.51.0
