From e2d90a949f40a0095c068632064e0a88fcf8724e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Adjemian=20=28Charybdis=29?= Date: Sun, 17 Nov 2019 00:42:11 +0100 Subject: [PATCH] Use nodisplay option when performing tests (linux only). --- m4/ax_matlab_batch_options.m4 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/m4/ax_matlab_batch_options.m4 b/m4/ax_matlab_batch_options.m4 index a18b87163..32f02d5cb 100644 --- a/m4/ax_matlab_batch_options.m4 +++ b/m4/ax_matlab_batch_options.m4 @@ -22,7 +22,13 @@ AC_REQUIRE([AX_MATLAB_ARCH]) AC_REQUIRE([AX_MATLAB_VERSION]) AX_COMPARE_VERSION([$MATLAB_VERSION], [ge], [9.6], - [MATLAB_BATCH_OPTIONS='-noFigureWindows -batch'], + [ + if test "${MATLAB_ARCH}" = win32 -o "${MATLAB_ARCH}" = win64; then + MATLAB_BATCH_OPTIONS='-noFigureWindows -batch' + else + MATLAB_BATCH_OPTIONS='-nodisplay -batch' + fi + ], [ if test "${MATLAB_ARCH}" = win32 -o "${MATLAB_ARCH}" = win64; then MATLAB_BATCH_OPTIONS='-nosplash -automation -wait -sd "$(CURDIR)" -r'