From 44b9c8ef0370bca3255079d381c0fb8621ea5a21 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 6 Feb 2013 07:43:11 +0200 Subject: Fix incorrect AC_LANG_SOURCE quoting Thanks to Hugo Mildenberger for the patch. --- m4/libboost.m4 | 30 +++++++++++++++--------------- m4/libodb.m4 | 6 +++--- m4/threads.m4 | 6 +++--- 3 files changed, 21 insertions(+), 21 deletions(-) (limited to 'm4') diff --git a/m4/libboost.m4 b/m4/libboost.m4 index b1f53b4..c8132eb 100644 --- a/m4/libboost.m4 +++ b/m4/libboost.m4 @@ -28,8 +28,8 @@ if test x"$libboost_dir" != x; then LDFLAGS="$LDFLAGS -L$abs_libboost_dir/stage/lib" fi -CXX_LIBTOOL_LINK_IFELSE( -AC_LANG_SOURCE([[ +CXX_LIBTOOL_LINK_IFELSE([ +AC_LANG_SOURCE([ #include #ifndef BOOST_VERSION @@ -40,7 +40,7 @@ int main () { } -]]), +])], [ libboost_found=yes ]) @@ -113,8 +113,8 @@ dnl dnl LIBBOOST_SMART_PTR([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) dnl AC_DEFUN([LIBBOOST_SMART_PTR], [ -LIBBOOST_HEADER_LIB([smart_ptr], -AC_LANG_SOURCE([[ +LIBBOOST_HEADER_LIB([smart_ptr],[ +AC_LANG_SOURCE([ #include #include @@ -124,7 +124,7 @@ main () boost::shared_ptr sp (new int (10)); boost::weak_ptr wp (sp); } -]]), +])], [$1], [$2]) ])dnl @@ -132,8 +132,8 @@ dnl dnl LIBBOOST_UNORDERED([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) dnl AC_DEFUN([LIBBOOST_UNORDERED], [ -LIBBOOST_HEADER_LIB([unordered], -AC_LANG_SOURCE([[ +LIBBOOST_HEADER_LIB([unordered],[ +AC_LANG_SOURCE([ #include #include @@ -146,7 +146,7 @@ main () s.insert (1); return m.find (1) != m.end (); } -]]), +])], [$1], [$2]) ])dnl @@ -154,13 +154,13 @@ dnl dnl LIBBOOST_SYSTEM([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) dnl AC_DEFUN([LIBBOOST_SYSTEM], [ -LIBBOOST_LIB([system], -AC_LANG_SOURCE([[ +LIBBOOST_LIB([system],[ +AC_LANG_SOURCE([ int main () { } -]]), +])], [$1], [$2]) ])dnl @@ -168,8 +168,8 @@ dnl dnl LIBBOOST_DATE_TIME([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) dnl AC_DEFUN([LIBBOOST_DATE_TIME], [ -LIBBOOST_LIB([date_time], -AC_LANG_SOURCE([[ +LIBBOOST_LIB([date_time],[ +AC_LANG_SOURCE([ #include int @@ -179,7 +179,7 @@ main () const char* s (m.as_short_string ()); return s == 0; } -]]), +])], [$1], [$2]) ])dnl diff --git a/m4/libodb.m4 b/m4/libodb.m4 index 6e282a6..7d3130b 100644 --- a/m4/libodb.m4 +++ b/m4/libodb.m4 @@ -31,8 +31,8 @@ fi save_LIBS="$LIBS" LIBS="-lodb $LIBS" -CXX_LIBTOOL_LINK_IFELSE( -AC_LANG_SOURCE([[ +CXX_LIBTOOL_LINK_IFELSE([ +AC_LANG_SOURCE([ #include void @@ -60,7 +60,7 @@ main () const char* m (g ()); return m != 0; } -]]), +])], [libodb_found=yes]) if test x"$libodb_found" = xno; then diff --git a/m4/threads.m4 b/m4/threads.m4 index fce3f39..4cd4c05 100644 --- a/m4/threads.m4 +++ b/m4/threads.m4 @@ -36,8 +36,8 @@ if test x$threads = xcheck; then # AC_MSG_CHECKING([for __thread keyword]) - CXX_LIBTOOL_LINK_IFELSE( - AC_LANG_SOURCE([[ + CXX_LIBTOOL_LINK_IFELSE([ + AC_LANG_SOURCE([ __thread int tls_var; int @@ -45,7 +45,7 @@ if test x$threads = xcheck; then { tls_var = 0; } - ]]), + ])], [threads_thread_keyword=yes]) AC_MSG_RESULT([$threads_thread_keyword]) -- cgit v1.1