From: mquinson Date: Sun, 17 Jan 2010 14:01:19 +0000 (+0000) Subject: let simgrid still compile when lua was not detected X-Git-Tag: SVN~714 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/8caf511fa693be7104bc3ecfa8be1e47bfefa1df?hp=06a67e0e83a46b4d0946aecc025aa69377bb9610 let simgrid still compile when lua was not detected git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7016 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/src/simix/smx_context.c b/src/simix/smx_context.c index 0c1387418b..be29ac5144 100644 --- a/src/simix/smx_context.c +++ b/src/simix/smx_context.c @@ -116,7 +116,11 @@ void SIMIX_context_init_factory_by_name(smx_context_factory_t * factory, THROW0(not_found_error, 0, "Factory 'sysv' does not exist: no System V thread support under Windows"); #endif else if (!strcmp(name, "lua")) +#ifdef HAVE_LUA SIMIX_ctx_lua_factory_init(factory); +#else + THROW0(not_found_error, 0, "Factory 'lua' does not exist: Lua support was not compiled in the SimGrid library"); +#endif /* HAVE_LUA */ else THROW1(not_found_error, 0, "Factory '%s' does not exist", name); }