From 4b071c115309079528db7b60e8d2ffb22b129088 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 26 Apr 2021 23:31:29 -0700 Subject: [PATCH] gnulib-tool: port better to current Autoconf MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit * doc/gnulib-tool.texi (Initial import): Don’t mention AC_PROG_CC_STDC as it’s deprecated in current Autoconf. * gnulib-tool (func_done_dir): Suggest replacing AC_PROG_CC_STDC and AC_PROG_CC_C99, as per current Autoconf. --- ChangeLog | 8 ++++++++ doc/gnulib-tool.texi | 11 ----------- gnulib-tool | 2 ++ 3 files changed, 10 insertions(+), 11 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6a449380e6..bc7427cb08 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2021-04-26 Paul Eggert + + gnulib-tool: port better to current Autoconf + * doc/gnulib-tool.texi (Initial import): Don’t mention + AC_PROG_CC_STDC as it’s deprecated in current Autoconf. + * gnulib-tool (func_done_dir): Suggest replacing + AC_PROG_CC_STDC and AC_PROG_CC_C99, as per current Autoconf. + 2021-04-25 Paul Eggert reallocarray: a bit more tuning diff --git a/doc/gnulib-tool.texi b/doc/gnulib-tool.texi index 465bb42464..b35c713668 100644 --- a/doc/gnulib-tool.texi +++ b/doc/gnulib-tool.texi @@ -234,17 +234,6 @@ gl_EARLY ... @end example -If you are using @code{AC_PROG_CC_STDC}, the macro @code{gl_EARLY} must -be called after it, like this: - -@example -... -AC_PROG_CC -AC_PROG_CC_STDC -gl_EARLY -... -@end example - The core part of the gnulib checks are done by the macro @code{gl_INIT}. Place it further down in the file, typically where you normally check for header files or functions. It must come after diff --git a/gnulib-tool b/gnulib-tool index 1a9a45aaf1..182b9b4a4e 100755 --- a/gnulib-tool +++ b/gnulib-tool @@ -6142,9 +6142,11 @@ s,//*$,/,' fi done if grep '^ *AC_PROG_CC_STDC' "$configure_ac" > /dev/null; then + echo " - replace AC_PROG_CC_STDC with AC_PROG_CC in $configure_ac," position_early_after=AC_PROG_CC_STDC else if grep '^ *AC_PROG_CC_C99' "$configure_ac" > /dev/null; then + echo " - replace AC_PROG_CC_C99 with AC_PROG_CC in $configure_ac," position_early_after=AC_PROG_CC_C99 else position_early_after=AC_PROG_CC -- 2.39.5