mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Get rid of boost signals in multithreading test
Test for regex instead since this is the only boost library we are linking against.
This commit is contained in:
parent
bb5c760b37
commit
7293fc7b66
@ -398,20 +398,19 @@ AC_DEFUN([LYX_USE_INCLUDED_BOOST],[
|
||||
AC_LANG_PUSH(C++)
|
||||
save_LIBS=$LIBS
|
||||
|
||||
dnl FIXME: Rewrite test to use regex, we do not use signals anymore.
|
||||
AC_MSG_CHECKING([for multithreaded boost libraries])
|
||||
LIBS="$save_LIBS -lboost_signals-mt $LIBTHREAD"
|
||||
LIBS="$save_LIBS -lboost_regex-mt $LIBTHREAD"
|
||||
AC_LINK_IFELSE(
|
||||
[AC_LANG_PROGRAM([#include <boost/signal.hpp>],
|
||||
[boost::signal<void ()> s;])],
|
||||
[AC_LANG_PROGRAM([#include <boost/regex.hpp>],
|
||||
[boost::regex reg;])],
|
||||
[AC_MSG_RESULT([yes])
|
||||
BOOST_MT="-mt"],
|
||||
[AC_MSG_RESULT([no])
|
||||
AC_MSG_CHECKING([for plain boost libraries])
|
||||
LIBS="$save_LIBS -lboost_signals"
|
||||
LIBS="$save_LIBS -lboost_regex"
|
||||
AC_LINK_IFELSE(
|
||||
[AC_LANG_PROGRAM([#include <boost/signal.hpp>],
|
||||
[boost::signal<void ()> s;])],
|
||||
[AC_LANG_PROGRAM([#include <boost/regex.hpp>],
|
||||
[boost::regex reg;])],
|
||||
[AC_MSG_RESULT([yes])
|
||||
BOOST_MT=""],
|
||||
[AC_MSG_RESULT([no])
|
||||
|
Loading…
Reference in New Issue
Block a user