On Fri, Oct 13, 2017 at 11:51:54AM -0400, Jim Jagielski wrote: > The long and short is that under maintainer mode, we cannot > expect AC_CHECK_LIB to being correct any longer, because > the combination of -Werror and -Wstrict-prototypes means > that any and all functions looked for/checked for using > AC_CHECK_LIB will NOT be found, due to warnings which are > now fatal errors during configure time, even if those > functions DO exist.
IMO the correct fix is to add all -W... flags to NOTEST_CFLAGS not CFLAGS so they don't take effect during the configure run at all. At least I can't think of a good motivation for having compiler warnings enabled when running autoconf tests in general.