From d06d0f94b6decfa11cf80c86ffa7d43ad2292cf8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@debian.org>
Date: Tue, 21 Jul 2015 13:57:48 +0200
Subject: [PATCH] Fix test for Octave/MATLAB versions w.r.t. ilu

The test would crash on Octave 4.0.
---
 matlab/dynare_config.m | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/matlab/dynare_config.m b/matlab/dynare_config.m
index 5d24b70ace..d52ec96629 100644
--- a/matlab/dynare_config.m
+++ b/matlab/dynare_config.m
@@ -91,7 +91,8 @@ if ~isoctave && matlab_ver_less_than('7.4')
 end
 
 % ilu is missing in old versions of MATLAB and in Octave < 4.0
-if (isoctave && octave_ver_less_than('4.0')) || matlab_ver_less_than('7.4')
+if (isoctave && octave_ver_less_than('4.0')) || ..
+        (~isoctave && matlab_ver_less_than('7.4'))
     addpath([dynareroot '/missing/ilu'])
 end
 
-- 
GitLab