From: Ruben Kerkhof Date: Sat, 4 Jun 2016 17:28:22 +0000 (+0200) Subject: configure.ac: fix autoreconf warnings X-Git-Tag: collectd-5.6.0~241 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=8d0fe341f760339ca64e23495d52808607bf0002;p=collectd.git configure.ac: fix autoreconf warnings configure.ac:804: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body ../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from... configure.ac:804: the top level --- diff --git a/configure.ac b/configure.ac index 5ab5f0d7..eb5d17b5 100644 --- a/configure.ac +++ b/configure.ac @@ -800,12 +800,14 @@ AC_CHECK_FUNCS(gettimeofday select strdup strtol getaddrinfo getnameinfo strchr AC_FUNC_STRERROR_R test_cxx_flags() { - AC_LANG_PUSH(C++) - AC_LANG_CONFTEST([int main(void){}]) + AC_LANG_PUSH([C++]) + AC_LANG_CONFTEST([ + AC_LANG_SOURCE([[int main(void){}]]) + ]) $CXX -c conftest.cpp $CXXFLAGS $@ > /dev/null 2> /dev/null ret=$? rm -f conftest.o - AC_LANG_POP(C++) + AC_LANG_POP([C++]) return $ret }