mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-09-20 23:58:15 +03:00
Syntactic LM doesn't require boost. Enabling synlm no longer automatically enables boost or boost threads.
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@3995 1f5c12ca-751b-0410-a591-d2e778427230
This commit is contained in:
parent
a040227376
commit
9112d9b749
@ -107,7 +107,7 @@ AC_ARG_WITH(tcmalloc,
|
||||
)
|
||||
|
||||
require_boost=no
|
||||
if test "x$enable_threads" != 'xno' || test "x$enable_boost" != 'xno' || test "x$with_synlm" != 'xno'
|
||||
if test "x$enable_threads" != 'xno' || test "x$enable_boost" != 'xno'
|
||||
then
|
||||
require_boost=yes
|
||||
fi
|
||||
@ -144,7 +144,7 @@ then
|
||||
BOOST_REQUIRE([1.36.0])
|
||||
fi
|
||||
|
||||
if test "x$enable_threads" = 'xyes' || test "x$with_synlm" = "xyes"
|
||||
if test "x$enable_threads" = 'xyes'
|
||||
then
|
||||
AC_MSG_NOTICE([Building threaded moses])
|
||||
BOOST_THREADS
|
||||
@ -283,10 +283,7 @@ fi
|
||||
if test "x$with_synlm" != 'xno'
|
||||
then
|
||||
SAVE_CPPFLAGS="$CPPFLAGS"
|
||||
CPPFLAGS="$CPPFLAGS -DWITH_THREADS -I${PWD}/synlm/hhmm/rvtl/include -I${PWD}/synlm/hhmm/wsjparse/include -lm"
|
||||
|
||||
|
||||
|
||||
CPPFLAGS="$CPPFLAGS -I${PWD}/synlm/hhmm/rvtl/include -I${PWD}/synlm/hhmm/wsjparse/include -lm"
|
||||
|
||||
AC_CHECK_HEADERS(nl-cpt.h,
|
||||
[AC_DEFINE([HAVE_SYNLM], [], [flag for Syntactic Parser])],
|
||||
|
Loading…
Reference in New Issue
Block a user