2010-02-26 Eric Blake <eblake@redhat.com>
+ Document how to safely override CFLAGS default.
+ * doc/autoconf.texi (C Compiler) <AC_PROG_CC>: Document a way to
+ change the default CFLAGS.
+ (C++ Compiler) <AC_PROG_CXX>: Likewise, for CXXFLAGS.
+ Reported by Monty Taylor; wording suggested by Paolo Bonzini.
+
Document that Autoconf relies on IFS.
* doc/autoconf.texi (Special Shell Variables) <IFS>: Add details
about use of IFS within configure script.
@samp{yes}. If output variable @code{CFLAGS} was not already set, set
it to @option{-g -O2} for the @acronym{GNU} C compiler (@option{-O2} on systems
where @acronym{GCC} does not accept @option{-g}), or @option{-g} for
-other compilers.
+other compilers. If your package does not like this default, then it is
+acceptable to insert the line @samp{: $@{CFLAGS=""@}} after @code{AC_INIT}
+and before @code{AC_PROG_CC} to select an empty default instead.
Many Autoconf macros use a compiler, and thus call
@samp{AC_REQUIRE([AC_PROG_CC])} to ensure that the compiler has been
@samp{yes}. If output variable @code{CXXFLAGS} was not already set, set
it to @option{-g -O2} for the @acronym{GNU} C++ compiler (@option{-O2} on
systems where G++ does not accept @option{-g}), or @option{-g} for other
-compilers.
+compilers. If your package does not like this default, then it is
+acceptable to insert the line @samp{: $@{CXXFLAGS=""@}} after @code{AC_INIT}
+and before @code{AC_PROG_CXX} to select an empty default instead.
+
@end defmac
@defmac AC_PROG_CXXCPP