Mercurial > jwe > octave
comparison m4/octave_blas.m4 @ 31138:1d61c36bb34a
build: Uspdate Copyright notices for acinclude.m4, octave_blas.m4.
* acinclude.m4: Update copyright notice which was missing a word.
* octave_blas.m4: Add copyright notice to new file. Also rename
"save_octave_blas_f77_func_LIBS" variable to "ac_octave_save_LIBS".
author | Rik <rik@octave.org> |
---|---|
date | Sat, 09 Jul 2022 11:29:19 -0700 |
parents | 4dc326899f65 |
children | 6308ce73bdca |
comparison
equal
deleted
inserted
replaced
31137:0f4d16af143b | 31138:1d61c36bb34a |
---|---|
1 dnl -------------------------------------------------------------------- | |
1 dnl | 2 dnl |
2 dnl Check for BLAS libary and if valid determine integer size in library | 3 dnl Copyright (C) 2022 The Octave Project Developers |
4 dnl | |
5 dnl See the file COPYRIGHT.md in the top-level directory of this | |
6 dnl distribution or <https://octave.org/copyright/>. | |
7 dnl | |
8 dnl This file is part of Octave. | |
9 dnl | |
10 dnl Octave is free software: you can redistribute it and/or modify it | |
11 dnl under the terms of the GNU General Public License as published by | |
12 dnl the Free Software Foundation, either version 3 of the License, or | |
13 dnl (at your option) any later version. | |
14 dnl | |
15 dnl Octave is distributed in the hope that it will be useful, but | |
16 dnl WITHOUT ANY WARRANTY; without even the implied warranty of | |
17 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
18 dnl GNU General Public License for more details. | |
19 dnl | |
20 dnl You should have received a copy of the GNU General Public License | |
21 dnl along with Octave; see the file COPYING. If not, see | |
22 dnl <https://www.gnu.org/licenses/>. | |
23 dnl | |
24 dnl -------------------------------------------------------------------- | |
25 dnl | |
26 dnl Check for BLAS library and, if valid, determine integer size of library | |
3 dnl | 27 dnl |
4 AC_DEFUN([OCTAVE_BLAS], [ | 28 AC_DEFUN([OCTAVE_BLAS], [ |
5 AC_PREREQ(2.50) | 29 AC_PREREQ(2.50) |
6 dnl Call reference macro to find BLAS library | 30 dnl Call reference macro to find BLAS library |
7 AX_BLAS | 31 AX_BLAS |
10 dnl Assume generic 4-byte BLAS library exists when cross compiling | 34 dnl Assume generic 4-byte BLAS library exists when cross compiling |
11 ax_blas_ok=yes | 35 ax_blas_ok=yes |
12 ax_cv_blas_integer_size=4 | 36 ax_cv_blas_integer_size=4 |
13 AC_MSG_CHECKING([BLAS can be called from Fortran]) | 37 AC_MSG_CHECKING([BLAS can be called from Fortran]) |
14 AC_MSG_RESULT([yes assumed for cross compilation]) | 38 AC_MSG_RESULT([yes assumed for cross compilation]) |
15 elif test x"$ax_blas_ok" = xyes; then | 39 elif test $ax_blas_ok = yes; then |
16 save_octave_blas_f77_func_LIBS="$LIBS" | 40 ac_octave_save_LIBS="$LIBS" |
17 LIBS="$BLAS_LIBS $LIBS" | 41 LIBS="$BLAS_LIBS $LIBS" |
18 AC_LANG_PUSH(Fortran 77) | 42 AC_LANG_PUSH(Fortran 77) |
19 ## Check BLAS library integer size. | 43 ## Check BLAS library integer size. |
20 ## If it does not appear to be 8 bytes, we assume it is 4 bytes. | 44 ## If it does not appear to be 8 bytes, we assume it is 4 bytes. |
21 ## FIXME: this may fail with options like -ftrapping-math. | 45 ## FIXME: this may fail with options like -ftrapping-math. |
72 ax_cv_blas_integer_size=8, | 96 ax_cv_blas_integer_size=8, |
73 ax_cv_blas_integer_size=4) | 97 ax_cv_blas_integer_size=4) |
74 ]) | 98 ]) |
75 | 99 |
76 AC_LANG_POP(Fortran 77) | 100 AC_LANG_POP(Fortran 77) |
77 LIBS="$save_octave_blas_f77_func_LIBS" | 101 LIBS="$ac_octave_save_LIBS" |
78 fi | 102 fi |
79 | 103 |
80 ]) | 104 ]) |