Recently I've started getting odd warnings from autoconf, and I'm not sure how to shut them up... e.g., from the following "configure.ac" file: AC_INIT([barf], [0.1], [Miles Bader <miles@xxxxxxx>]) AC_PROG_CXX AC_LANG(C++) AC_DEFUN([BARF_CHECK_CXX_FLAG], [ AC_LANG_ASSERT(C++) _SAVED_CXXFLAGS="$CXXFLAGS" OPT="$2" CXXFLAGS="$CXXFLAGS $OPT" case "$OPT" in *' '*) S=s;; *) S="";; esac AC_MSG_CHECKING([whether C++ compiler accepts "$OPT" option$S]) AC_COMPILE_IFELSE(AC_LANG_SOURCE([int x;]), [opt_ok=yes], [opt_ok=no]) AC_MSG_RESULT([$opt_ok]) if test "$opt_ok" = yes; then AC_SUBST([$1], ["$OPT"]) fi CXXFLAGS="$_SAVED_CXXFLAGS" ]) BARF_CHECK_CXX_FLAG([BARF], "-march=native") I get the following warnings from running "autoconf": configure.ac:24: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body ../../lib/autoconf/lang.m4:194: AC_LANG_CONFTEST is expanded from... ../../lib/autoconf/general.m4:2591: _AC_COMPILE_IFELSE is expanded from... ../../lib/autoconf/general.m4:2607: AC_COMPILE_IFELSE is expanded from... configure.ac:7: BARF_CHECK_CXX_FLAG is expanded from... configure.ac:24: the top level AFAICS, I _am_ using AC_LANG_SOURCE, so ... I dunno why it's complaining... Thanks, -Miles -- Non-combatant, n. A dead Quaker. _______________________________________________ Autoconf mailing list Autoconf@xxxxxxx https://lists.gnu.org/mailman/listinfo/autoconf