diff options
author | Ulrich Germann <ugermann@inf.ed.ac.uk> | 2015-03-18 16:50:30 +0300 |
---|---|---|
committer | Ulrich Germann <ugermann@inf.ed.ac.uk> | 2015-03-18 16:50:30 +0300 |
commit | 286800abbab9dd3068488d2e5beb6e5049967d7f (patch) | |
tree | 834f7bf69a79e95d5334ab04dad5aab03b0ed0d8 /jam-files | |
parent | 058abc32c378cbae1b2ea615f13e4681a8b1f4fd (diff) |
Addresses issues with compiling server capabilities into the Moses main executable.
Diffstat (limited to 'jam-files')
-rw-r--r-- | jam-files/server.jam | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/jam-files/server.jam b/jam-files/server.jam index a2b1fc967..e24ad6c8f 100644 --- a/jam-files/server.jam +++ b/jam-files/server.jam @@ -1,5 +1,22 @@ +import modules ; +import option ; +import os ; +import path ; +import project ; +import build-system ; +import version ; + # Is the XMLRPC-C server available? +build-moses-server = false ; +rule shell_or_die ( cmd ) { + local ret = [ _shell $(cmd) : exit-status ] ; + if $(ret[2]) != 0 { + exit "Failed to run $(cmd)" : 1 ; + } + return $(ret[1]) ; +} + with-xmlrpc-c = [ option.get "with-xmlrpc-c" ] ; if $(with-xmlrpc-c) @@ -15,6 +32,9 @@ if $(with-xmlrpc-c) { exit Could not find $(xmlrpc-command) : 1 ; } + + + } else { @@ -34,3 +54,5 @@ else } + + |