From 0d80193e96124d3add33ecbf22a5d05e2823ec84 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 24 Sep 2010 11:35:21 +0200 Subject: build: m4-quote use of AC_LANG_PROGRAM to avoid warning from new autoconf Using autoconf-2.68 would evoke many new warnings like this: configure.ac:78: 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... ../../lib/m4sugar/m4sh.m4:606: AS_IF is expanded from... ../../lib/autoconf/general.m4:2032: AC_CACHE_VAL is expanded from... ../../lib/autoconf/general.m4:2053: AC_CACHE_CHECK is expanded from... ax/ax_boost_thread.m4:35: AX_BOOST_THREAD is expanded from... configure.ac:78: the top level Autoconf was unable to detect the existing use of AC_LANG_SOURCE because it was underquoted. Fix that. --- m4/ax_boost_thread.m4 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'm4/ax_boost_thread.m4') diff --git a/m4/ax_boost_thread.m4 b/m4/ax_boost_thread.m4 index 49f6287..1fcb867 100644 --- a/m4/ax_boost_thread.m4 +++ b/m4/ax_boost_thread.m4 @@ -75,9 +75,9 @@ AC_DEFUN([AX_BOOST_THREAD], else CXXFLAGS="-pthread $CXXFLAGS" fi - AC_COMPILE_IFELSE(AC_LANG_PROGRAM([[@%:@include ]], + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[@%:@include ]], [[boost::thread_group thrds; - return 0;]]), + return 0;]])], ax_cv_boost_thread=yes, ax_cv_boost_thread=no) CXXFLAGS=$CXXFLAGS_SAVE AC_LANG_POP([C++]) -- cgit v1.2.1