* 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-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
...
@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
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