]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
gnulib-tool: port better to current Autoconf
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 27 Apr 2021 06:31:29 +0000 (23:31 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 27 Apr 2021 06:31:58 +0000 (23:31 -0700)
* 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
doc/gnulib-tool.texi
gnulib-tool

index 6a449380e6de0b36e0836491807d8dbe0e5cfc4a..bc7427cb080497f0174651d3e883a6cb215bcf83 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2021-04-26  Paul Eggert  <eggert@cs.ucla.edu>
+
+       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  <eggert@cs.ucla.edu>
 
        reallocarray: a bit more tuning
index 465bb42464fe61d66e7d4ae5c9a738701bccba38..b35c7136682c789f18921606ff00aa7144ccd161 100644 (file)
@@ -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
index 1a9a45aaf12fb820ab55900630faec513fd5a832..182b9b4a4e08b83097ebc856036a3db311370b5f 100755 (executable)
@@ -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