* gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
invocation, say "right after AC_PROG_CC_STDC", not "right after
AC_PROG_CC".
Reported by Gary V. Vaughan <gary@gnu.org>.
2011-09-30 Bruno Haible <bruno@clisp.org>
+ gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
+ * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
+ invocation, say "right after AC_PROG_CC_STDC", not "right after
+ AC_PROG_CC".
+ Reported by Gary V. Vaughan <gary@gnu.org>.
+
+2011-09-30 Bruno Haible <bruno@clisp.org>
+
Centralize C99 requirement.
* m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
* modules/stdarg (configure.ac-early): Invoke it instead of
echo " - mention \"${val}\" in ${var} in ${dir}Makefile.am,"
fi
done
- echo " - invoke ${macro_prefix}_EARLY in $configure_ac, right after AC_PROG_CC,"
+ if grep '^ *AC_PROG_CC_STDC' "$configure_ac" > /dev/null; then
+ position_early_after=AC_PROG_CC_STDC
+ else
+ if grep '^ *AC_PROG_CC_C99' "$configure_ac" > /dev/null; then
+ position_early_after=AC_PROG_CC_C99
+ else
+ position_early_after=AC_PROG_CC
+ fi
+ fi
+ echo " - invoke ${macro_prefix}_EARLY in $configure_ac, right after $position_early_after,"
echo " - invoke ${macro_prefix}_INIT in $configure_ac."
}