]> git.lyx.org Git - features.git/blobdiff - config/lyxinclude.m4
Merge branch 'master' of git.lyx.org:lyx
[features.git] / config / lyxinclude.m4
index ed12f3d630566c6ee61bba20ff055665530f5f04..299efbc6fbb778bd86b38dde36ceb97128e6bcd2 100644 (file)
@@ -22,7 +22,7 @@ AC_ARG_ENABLE(build-type,
     *) AC_ERROR([Bad build type specification \"$enableval\". Please use one of rel(ease), pre(release), dev(elopment), prof(iling), or gprof]);;
    esac],
   [case AC_PACKAGE_VERSION in
-    *svn*) build_type=development;;
+    *svn*|*dev*) build_type=development;;
     *pre*|*alpha*|*beta*|*rc*) build_type=prerelease;;
     *) build_type=release ;;
    esac])
@@ -322,25 +322,24 @@ AC_DEFUN([LYX_USE_INCLUDED_BOOST],[
        AC_MSG_RESULT([$lyx_cv_with_included_boost])
        if test x$lyx_cv_with_included_boost != xyes ; then
                AC_LANG_PUSH(C++)
-               SAVED_LDFLAGS=$LDFLAGS
+               save_LIBS=$LIBS
 
-               LDFLAGS="$SAVED_LDFLAGS -lboost_signals -lm"
-               AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <boost/signal.hpp>], [boost::signal<void ()> s;])], [lyx_boost_underscore=yes], [])
-               LDFLAGS="$SAVED_LDFLAGS -lboost_signals-mt -lm $LIBTHREAD"
-               AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <boost/signal.hpp>], [boost::signal<void ()> s;])], [lyx_boost_underscore_mt=yes], [])
+               LIBS="$save_LIBS -lboost_signals -lm"
+               AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <boost/signal.hpp>], [boost::signal<void ()> s;])], [lyx_boost_plain=yes], [])
+               LIBS="$save_LIBS -lboost_signals-mt -lm $LIBTHREAD"
+               AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <boost/signal.hpp>], [boost::signal<void ()> s;])], [lyx_boost_mt=yes], [])
 
-               LDFLAGS=$SAVED_LDFLAGS
+               LIBS=$save_LIBS
                AC_LANG_POP(C++)
 
-               if test x$lyx_boost_underscore_mt = xyes ; then
+               if test x$lyx_boost_mt = xyes ; then
                        BOOST_MT="-mt"
                else
                        BOOST_MT=""
-                       if test x$lyx_boost_plain != xyes -a x$lyx_boost_underscore != xyes ; then
+                       if test x$lyx_boost_plain != xyes ; then
                                LYX_ERROR([No suitable boost library found (do not use --without-included-boost)])
                        fi
                fi
-               AC_SUBST(BOOST_SEP)
                AC_SUBST(BOOST_MT)
        fi
 ])