From: Paul Eggert Date: Tue, 27 Apr 2021 06:31:29 +0000 (-0700) Subject: gnulib-tool: port better to current Autoconf X-Git-Tag: v1.0~2912 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4b071c115309079528db7b60e8d2ffb22b129088;p=thirdparty%2Fgnulib.git 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. --- 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