Commit Graph

135 Commits (a0791d981c2fdd2473f10eba6f64450db90e27ed)

Author SHA1 Message Date
Sébastien Villemot a69d598b5f
Add the ability to automatically detect MATLAB version at configure time
It is thus no longer needed to pass the MATLAB_VERSION option to the configure
script when compiling from source.
2020-09-30 19:08:52 +02:00
Sébastien Villemot fa12e5abfc
Provisions for MATLAB R2020b 2020-09-24 15:43:06 +02:00
Sébastien Villemot 6e0f104d7e
Bump minimal MATLAB version to R2014a
Ref. #1713
2020-04-07 16:32:32 +02:00
Stéphane Adjemian (Charybdis) 166865149e
Updated build for matlab R2020a. 2020-03-26 11:20:24 +01:00
Sébastien Villemot ef417dab00
Remove unused m4 file 2020-01-22 18:03:47 +01:00
Sébastien Villemot 47e4649026
Add support for Fortran 2008 in MEX files
By the same token, remove unused support for Fortran 77.
2020-01-06 18:29:47 +01:00
Stéphane Adjemian (Charybdis) e2d90a949f Use nodisplay option when performing tests (linux only). 2019-11-18 21:49:20 +01:00
Houtan Bastani 0bdb04bac8
macOS snapshot: statically link to `libmatio` and dependencies, `gsl`, and `gcc` libraries
* The macOS snapshot until this point did not work unless the user had already installed `libmatio`, `gsl`, and `gcc` via Homebrew.
* We are not modifying `m4/ax_matio.m4` as we want to still be able to compile against shared libraries in development
2019-10-17 15:29:34 +02:00
Sébastien Villemot 5dffae1b63
ax_mexext.m4: remove obsolete test on ancient MATLAB version 2019-09-16 18:34:02 +02:00
Sébastien Villemot 36d530358b
Fix detection of MATLAB MEX extension under Windows/MSYS2
This check recently broke under my MSYS2 installation. I’m unsure why, but I
guess it’s related to some Windows 10 update.

The solution is to stop calling it through “cmd”, and to call it directly as an
executable.
2019-09-16 18:34:02 +02:00
Houtan Bastani a1a4168c3e
build support for Matlab R2019b 2019-09-12 12:23:14 +02:00
Sébastien Villemot 0d0a0a9bbb
Bump to C++17
This means we now require GCC 8.

Boost filesystem library is no longer needed.

Ref preprocessor#16
2019-09-11 15:06:12 +02:00
Sébastien Villemot 8b0d5f4b86
Windows: ensure that libgomp is statically linked 2019-09-10 15:17:15 +02:00
Sébastien Villemot bae1fa255a
Add scripts and CI job for building Windows package
The scripts are based the former “dynare-build” project. They have been
overhauled and simplified.

Building a Windows package (both installer and zip archive) is as easy as
running “make -C windows” (provided the right Debian packages are installed,
use the “windows/install-packages.sh” script for that purpose).

The layout of MEX files for Octave in the package has been
changed (mex/octave/win32/ and mex/octave/win64/ instead of mex/octave32/ and
mex/octave/), for consistency with MATLAB MEX.
2019-09-03 21:36:47 +02:00
Sébastien Villemot cb44d96121
Revert "MATLAB testsuite: don’t use -batch for the time being on Linux and macOS"
It actually does not prevent crashes, see for example:
https://git.dynare.org/Dynare/dynare/-/jobs/4314

This reverts commit 3cf650a2dd.
2019-06-20 17:44:23 +02:00
Sébastien Villemot 11be47103b
Avoid dynamic linking against libwinpthread when using POSIX-threads MinGW 2019-06-12 18:01:42 +02:00
Sébastien Villemot 3cf650a2dd
MATLAB testsuite: don’t use -batch for the time being on Linux and macOS
This apparently fixes random testsuite crashes in Gitlab CI.
2019-05-10 18:41:37 +02:00
Sébastien Villemot f953374dba
More Unicode copyright symbol 2019-04-16 14:34:05 +02:00
Sébastien Villemot ab6cdd0d33
Add -noFigureWindows to MATLAB ≥ R2019a batch options 2019-04-10 13:01:01 +02:00
Sébastien Villemot 0f1fdde166
Update m4 macros from autoconf-archive
By the way, drop ax_boost_base.m4 which is no longer used.
2019-04-04 16:40:31 +02:00
Houtan Bastani 7e46d8267c
mac: make build system work with clang and gcc 2019-04-01 17:38:42 +02:00
Sébastien Villemot 37d7dc65ae
Compatibility fix with MATLAB ≤ R2011a 2019-03-26 15:42:18 +01:00
Sébastien Villemot fb4d14c0a2
Fix build failure with MATLAB ≤ R2011a with recent GCC 2019-03-25 18:47:50 +01:00
Sébastien Villemot 230cfe5f33
Fail at configuration if MATLAB version can't be put in X.Y.Z form 2019-03-25 18:47:49 +01:00
Sébastien Villemot c46023ad56
POSIX shell stylistic improvements 2019-03-25 18:47:49 +01:00
Sébastien Villemot 0f28974c2c
Provisions for MATLAB R2019a
In particular, use the new "-batch" option for running the testsuite.
2019-03-22 16:43:40 +01:00
Sébastien Villemot 752a02a36c
Dynare++: use C++11 threads (instead of POSIX threads API)
On Windows, this means that a POSIX threads implementation is no longer needed,
since C++11 threads are implemented using native Windows threads.

On GNU/Linux and macOS, POSIX threads are still used under the hood.

A new m4 macro (AX_CXX11_THREAD) is used to add the proper compilation
flags (instead of AX_PTHREAD).
2019-01-28 18:44:24 +01:00
Sébastien Villemot 18faa9733c
Further updates related to minimal MATLAB version bump 2018-11-13 18:29:20 +01:00
Sébastien Villemot 671fe4bcd4
Build system improvements on Windows (MinGW / MSYS2)
- Use the -static flag when linking Dynare++, so that shipping libquadmath and
  libgcc DLL in the installer is no longer needed.

- Use AM_CXXFLAGS and AM_LDFLAGS variables for changing flags, since CXXFLAGS
  and LDFLAGS are user variables. Also, this avoids passing these flags down to
  configure scripts in subdirectories.

- Check for the SZIP library in the configure test for the MatIO, this is
  needed under MSYS2.

- Statically link MatIO and GSL in MEX files for MATLAB, this is needed under
  MSYS2.
2018-11-06 12:17:56 +01:00
Sébastien Villemot 40362789de
Revert "More fixes related to spaces in paths"
This commit was breaking the detection of slicot. My understanding is that
autoconf is not able to deal with spaces in paths, hence Windows users have not
choice but to use the 8.3 notation for MATLAB location.

This reverts commit 4ab79c55f0.
2018-10-31 18:00:52 +01:00
Sébastien Villemot 4ab79c55f0
More fixes related to spaces in paths 2018-10-31 16:19:47 +01:00
Sébastien Villemot 625d824bbe
MEX extension detection now robust to spaces in MATLAB path 2018-10-31 15:57:34 +01:00
Sébastien Villemot 24cb1c0719 Provisions for MATLAB R2018b (9.5) 2018-10-01 18:26:03 +02:00
Sébastien Villemot e669321eec Require C++14 for MEX files
Needed because bytecode DLL uses some preprocessor code which is C++14.
2018-06-05 11:34:41 +02:00
Sébastien Villemot 473b2f59ef Provisions for MATLAB 9.4 (R2018a)
Take into account the API break in the MEX interface (new interleaved complex API).
But do not split MEX directories on MacOS X for the time being.
2018-05-14 15:16:03 +02:00
Stéphane Adjemian (Charybdis) 798c22fb6e Account for matlab R2017b. 2017-10-17 17:55:09 +02:00
Sébastien Villemot 72c6fd5ffa Drop useless AX_LATEX_BIBTEX_TEST m4 macro. 2017-06-13 16:09:36 +02:00
Stéphane Adjemian (Charybdis) 4f3b35acba Account for Matlab 2017a.
(cherry picked from commit f3a1619040fbb831830791424015d3d3bf8bdbae)
2017-03-13 23:42:48 +01:00
Houtan Bastani bc8a7f1b09 build system: change min os x version to build mex with libstdc++ 2016-10-24 16:00:26 +02:00
Johannes Pfeifer b50602962d Account for Matlab 2016b in installer and mex-folder 2016-09-18 16:33:49 +02:00
Johannes Pfeifer b364dd1d4c Account for Matlab 2016a in installer and mex-folder
Note that 32bit is not supported anymore

(cherry picked from commit e37b32b01534ffe9a5a5ec3f00f745720b75a83f)
2016-05-04 11:12:35 +02:00
Stéphane Adjemian (Charybdis) 6593c433f3 Revert "Account for Matlab 2016a in installer and mex-folder"
This reverts commit 6072aa0b46.
2016-05-03 22:20:10 +02:00
Johannes Pfeifer 6072aa0b46 Account for Matlab 2016a in installer and mex-folder
Note that 32bit is not supported anymore

(cherry picked from commit e37b32b01534ffe9a5a5ec3f00f745720b75a83f)
2016-05-03 15:24:23 +02:00
Houtan Bastani 710e8ef3a5 fix copyright dates for 2016 2016-02-23 14:04:04 +01:00
Johannes Pfeifer 7d051d1161 Make Dynare compatible with Matlab2015b
Closes #1058
2016-01-29 18:44:05 +01:00
Houtan Bastani f63015c404 build system: add MATLAB_MEX_* flags to allow user to override default mex compilation flags in the call to the configure script, #1121 2016-01-25 15:54:58 +08:00
Houtan Bastani 1a3d8d0b26 Provisions for MATLAB 8.5 (R2015a) 2015-03-16 14:44:06 +01:00
Houtan Bastani 0dbff4fa52 build system: modify blas check for os x 10.10 2014-10-30 16:25:01 +01:00
Houtan Bastani f4f7a02fd7 Provisions for MATLAB 8.4 (R2014b) 2014-10-10 10:41:04 +02:00
Houtan Bastani f6fa361838 build system: add hdf5 check to RHEL matio hack 2014-07-29 11:38:07 +02:00