Quoting fix for boost thread check
[m4-moved-to-github.git] / boost.m4
index ff8e0f6..3ef2e7e 100644 (file)
--- a/boost.m4
+++ b/boost.m4
@@ -69,11 +69,15 @@ version_is:BOOST_VERSION
            for c in $1; do
                case $c in 
                    thread)
-                       AC_MSG_CHECKING([Boost threads])
+                       if test "$BOOST_GOT_VERSION" -ge 104100; then
+                           AC_MSG_CHECKING([Boost threads + system])
+                       else
+                           AC_MSG_CHECKING([Boost threads])
+                       fi
                        AC_SUBST([BOOST_THREAD_LIB])
                        saveLIBS="${LIBS}"
                        BOOST_THREAD_LIB=""
-                       for l in ${BOOST_TOOLSET}-mt ${BOOST_TOOLSET}; do
+                       for l in "${BOOST_TOOLSET}-mt" "${BOOST_TOOLSET}"; do
                            trylib="-lboost_thread${l}"
                            if test "$BOOST_GOT_VERSION" -ge 104100; then
                                trylib="-lboost_system${l} ${trylib}"