diff options
author | redpony <redpony@1f5c12ca-751b-0410-a591-d2e778427230> | 2006-11-08 21:49:47 +0300 |
---|---|---|
committer | redpony <redpony@1f5c12ca-751b-0410-a591-d2e778427230> | 2006-11-08 21:49:47 +0300 |
commit | 4906e9b4f1a3b1506de12af37ae94d78a752e951 (patch) | |
tree | 71f1a921ad65848d7ac836e4599baa3de9b79847 /configure.in | |
parent | d4a488e54e7669e9830be09c591c4a77efe7d246 (diff) |
update to use both irstlm and srilm
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@964 1f5c12ca-751b-0410-a591-d2e778427230
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/configure.in b/configure.in index dc2ce2a31..f13503f1a 100644 --- a/configure.in +++ b/configure.in @@ -30,6 +30,10 @@ AC_ARG_ENABLE(optimization, [CPPFLAGS="$CPPFLAGS -O3"; LDFLAGS="$LDFLAGS -O3" ] ) +AM_CONDITIONAL([INTERNAL_LM], false) +AM_CONDITIONAL([SRI_LM], false) +AM_CONDITIONAL([IRST_LM], false) + if test "x$with_srilm" != 'xno' then SAVE_CPPFLAGS="$CPPFLAGS" @@ -48,9 +52,9 @@ then LIBS="$LIBS $LIB_SRILM" FMTLIBS="$FMTLIBS liboolm.a libdstruct.a libmisc.a" AM_CONDITIONAL([SRI_LM], true) - AM_CONDITIONAL([INTERNAL_LM], false) - AM_CONDITIONAL([IRST_LM], false) -else if test "x$with_irstlm" != 'xno' +fi + +if test "x$with_irstlm" != 'xno' then SAVE_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS -I${with_irstlm}/include" @@ -63,15 +67,7 @@ then LDFLAGS="$LDFLAGS -L${with_irstlm}/lib" LIBS="$LIBS $LIB_SRILM" FMTLIBS="$FMTLIBS libirstlm.a" - AM_CONDITIONAL([SRI_LM], false) - AM_CONDITIONAL([INTERNAL_LM], false) AM_CONDITIONAL([IRST_LM], true) -else - echo "Using internal language model (use --with-srilm or --with-irstlm to change)!" - AM_CONDITIONAL([SRI_LM], false) - AM_CONDITIONAL([INTERNAL_LM], true) - AM_CONDITIONAL([IRST_LM], false) -fi fi LIBS="$LIBS -lz" |