Mercurial > jwe > octave
diff m4/acinclude.m4 @ 28943:8592190176a8 stable
build: Re-instate configure test for SUNLinSol_Dense header (bug #59248).
* configure.ac, m4/acinclude.m4 (OCTAVE_CHECK_SUNDIALS_SUNLINSOL_DENSE):
Re-instate check for header `sunlinsol/sunlinsol_dense.h`. The presence of
that header is sufficient to enable SUNLinSol_Dense support (in SUNDIALS 3
and later versions), afaict.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Thu, 15 Oct 2020 15:13:33 +0200 |
parents | 34a83d34038e |
children | 72874422e17d a0ff81c8b8e8 |
line wrap: on
line diff
--- a/m4/acinclude.m4 Thu Oct 15 13:22:36 2020 +0200 +++ b/m4/acinclude.m4 Thu Oct 15 15:13:33 2020 +0200 @@ -2563,6 +2563,22 @@ fi ]) dnl +dnl Check whether SUNDIALS IDA library has the SUNLINSOL_DENSE linear solver. +dnl +AC_DEFUN([OCTAVE_CHECK_SUNDIALS_SUNLINSOL_DENSE], [ + AC_CHECK_HEADERS([sunlinsol/sunlinsol_dense.h], + octave_cv_sundials_sunlinsol_dense=yes, + octave_cv_sundials_sunlinsol_dense=no) + ]) + if test $octave_cv_sundials_sunlinsol_dense = yes; then + AC_DEFINE(HAVE_SUNDIALS_SUNLINSOL_DENSE, 1, + [Define to 1 if SUNDIALS IDA includes the SUNLINSOL_DENSE linear solver.]) + else + warn_sundials_disabled="SUNDIALS IDA library does not include the SUNLINSOL_DENSE linear solver. The solvers ode15i and ode15s will be disabled." + OCTAVE_CONFIGURE_WARNING([warn_sundials_disabled]) + fi +]) +dnl dnl Add warning to final summary. dnl AC_DEFUN([OCTAVE_CONFIGURE_WARNING], [