Mercurial > jwe > octave
comparison m4/octave_blas.m4 @ 31142:6308ce73bdca
build: Allow setting BLAS integer size as configure argument (bug #62715).
* m4/octave-blas.m4: Allow setting BLAS integer size as configure argument when
cross compiling.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Sun, 10 Jul 2022 17:34:12 +0200 |
parents | 1d61c36bb34a |
children |
comparison
equal
deleted
inserted
replaced
31141:cbfe8318566a | 31142:6308ce73bdca |
---|---|
29 AC_PREREQ(2.50) | 29 AC_PREREQ(2.50) |
30 dnl Call reference macro to find BLAS library | 30 dnl Call reference macro to find BLAS library |
31 AX_BLAS | 31 AX_BLAS |
32 | 32 |
33 if test "$cross_compiling" = yes ; then | 33 if test "$cross_compiling" = yes ; then |
34 dnl Assume generic 4-byte BLAS library exists when cross compiling | 34 dnl Assume BLAS library exists when cross compiling |
35 ax_blas_ok=yes | 35 ax_blas_ok=yes |
36 ax_cv_blas_integer_size=4 | |
37 AC_MSG_CHECKING([BLAS can be called from Fortran]) | 36 AC_MSG_CHECKING([BLAS can be called from Fortran]) |
38 AC_MSG_RESULT([yes assumed for cross compilation]) | 37 AC_MSG_RESULT([yes assumed for cross compilation]) |
38 dnl Assume generic 4-byte BLAS library if not specified | |
39 AC_MSG_CHECKING([BLAS library integer size]) | |
40 if test -z "$ax_cv_blas_integer_size" ; then | |
41 ax_cv_blas_integer_size=4 | |
42 fi | |
43 AC_MSG_RESULT([$ax_cv_blas_integer_size assumed for cross compilation]) | |
39 elif test $ax_blas_ok = yes; then | 44 elif test $ax_blas_ok = yes; then |
40 ac_octave_save_LIBS="$LIBS" | 45 ac_octave_save_LIBS="$LIBS" |
41 LIBS="$BLAS_LIBS $LIBS" | 46 LIBS="$BLAS_LIBS $LIBS" |
42 AC_LANG_PUSH(Fortran 77) | 47 AC_LANG_PUSH(Fortran 77) |
43 ## Check BLAS library integer size. | 48 ## Check BLAS library integer size. |