From 982ffa49966de1bb0494dde573d46b1f3f887cd4 Mon Sep 17 00:00:00 2001 From: sebastien Date: Thu, 17 Dec 2009 14:20:14 +0000 Subject: [PATCH] Detection of MEX files: avoid confusion with directories of the same name than MEX files git-svn-id: https://www.dynare.org/svn/dynare/trunk@3263 ac1d8469-bf42-47a9-8791-bf33cf982152 --- matlab/dynare_config.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/matlab/dynare_config.m b/matlab/dynare_config.m index d3a8c8d55..0027f7db0 100644 --- a/matlab/dynare_config.m +++ b/matlab/dynare_config.m @@ -188,7 +188,7 @@ for i=1:number_of_mex_files end % Test if bytecode DLL is present -if exist('bytecode') == 3 +if exist('bytecode', 'file') == 3 if ~multithread_flag message = '[mex] '; else @@ -200,7 +200,7 @@ end disp([ message 'Bytecode evaluation.' ]) % Test if k-order perturbation DLL is present -if exist('k_order_perturbation') == 3 +if exist('k_order_perturbation', 'file') == 3 message = '[mex] '; else message = '[no] '; @@ -208,7 +208,7 @@ end disp([ message 'k-order perturbation solver.' ]) % Test if dynare_simul_ DLL is present -if exist('dynare_simul_') == 3 +if exist('dynare_simul_', 'file') == 3 message = '[mex] '; else message = '[no] ';