Debian Codegraph @

matio-1.5.0/config/matio_def_file_ver.m4

raw
1 dnl Copyright (C) 2008 Christopher C. Hulbert
2 dnl
3 dnl All rights reserved.
4 dnl
5 dnl Redistribution and use in source and binary forms, with or without
6 dnl modification, are permitted provided that the following conditions are met:
7 dnl
8 dnl 1. Redistributions of source code must retain the above copyright notice,
9 dnl this list of conditions and the following disclaimer.
10 dnl
11 dnl 2. Redistributions in binary form must reproduce the above copyright
12 dnl notice, this list of conditions and the following disclaimer in the
13 dnl documentation and/or other materials provided with the distribution.
14 dnl
15 dnl THIS SOFTWARE IS PROVIDED BY CHRISTOPHER C. HULBERT ``AS IS'' AND ANY
16 dnl EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17 dnl WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18 dnl DISCLAIMED. IN NO EVENT SHALL CHRISTOPHER C. HULBERT OR CONTRIBUTORS BE
19 dnl LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
20 dnl CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
21 dnl SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
22 dnl INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
23 dnl CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
24 dnl ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
25 dnl POSSIBILITY OF SUCH DAMAGE.
26 AC_DEFUN([MATIO_CHECK_DEFAULT_FILE_VERSION],
27 [
28 AC_ARG_WITH(default-file-ver,
29 AS_HELP_STRING([--with-default-file-ver=version],
30 [Default MAT file version (4,5,7.3)]),[],[with_default_file_ver=5])
31 AC_MSG_CHECKING([for default MAT file version])
32 file_ver=
33 case "$with_default_file_ver" in
34 "4")
35 file_ver=MAT_FT_MAT4
36 ;;
37 "5")
38 file_ver=MAT_FT_MAT5
39 ;;
40 "7.3")
41 file_ver=MAT_FT_MAT73
42 ;;
43 esac
44 if test "x$file_ver" != "x"; then
45 AC_DEFINE_UNQUOTED([MAT_FT_DEFAULT],[$file_ver],[Default file format])
46 AC_MSG_RESULT([$file_ver])
47 else
48 AC_MSG_ERROR([Unrecognized MAT file version])
49 fi
50 ])