1dnl This file is part of MED. 2dnl 3dnl COPYRIGHT (C) 1999 - 2019 EDF R&D, CEA/DEN 4dnl MED is free software: you can redistribute it and/or modify 5dnl it under the terms of the GNU Lesser General Public License as published by 6dnl the Free Software Foundation, either version 3 of the License, or 7dnl (at your option) any later version. 8dnl 9dnl MED is distributed in the hope that it will be useful, 10dnl but WITHOUT ANY WARRANTY; without even the implied warranty of 11dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12dnl GNU Lesser General Public License for more details. 13dnl 14dnl You should have received a copy of the GNU Lesser General Public License 15dnl along with MED. If not, see <http://www.gnu.org/licenses/>. 16dnl 17 18AC_DEFUN([MED_ENABLE_CHECK23],dnl 19[ 20 21AC_ARG_ENABLE([check23], 22 AC_HELP_STRING([--enable-check23], 23 [Return an error if a MED file contains an object of a previous data model version \ 24which is not managable by a MED3.0 function. [default = enabled]]), 25 [med_check23=$enableval], 26 [med_check23=yes]) 27if test "x$med_check23" = "xyes" 28then 29 AC_DEFINE([MED_CHECK_23FORMAT],[1],[Return an error if a MED file contains at least one object of a previous data model \ 30which is not be managable by a MED3.0 function.]) 31 AC_MSG_NOTICE([Checking previous data model objects not strictly API3.0 compatible is activated.]) 32else 33 AC_DEFINE([MED_CHECK_23FORMAT],[0],[Return an error if a MED file contains at least one object of a previous data model \ 34which is not be managable by a MED3.0 function.]) 35 AC_MSG_WARN([Checking previous data model objects not strictly API3.0 compatible is deactivated.]) 36fi 37MED_CHECK_23FORMAT="$med_check23" 38AC_SUBST(MED_CHECK_23FORMAT) 39]) 40 41