changeset 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 cbfe8318566a
children b3ca7f891750
files m4/octave_blas.m4
diffstat 1 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/m4/octave_blas.m4	Sat Jul 09 14:37:57 2022 -0700
+++ b/m4/octave_blas.m4	Sun Jul 10 17:34:12 2022 +0200
@@ -31,11 +31,16 @@
   AX_BLAS
 
   if test "$cross_compiling" = yes ; then
-    dnl Assume generic 4-byte BLAS library exists when cross compiling
+    dnl Assume BLAS library exists when cross compiling
     ax_blas_ok=yes
-    ax_cv_blas_integer_size=4
     AC_MSG_CHECKING([BLAS can be called from Fortran])
     AC_MSG_RESULT([yes assumed for cross compilation])
+    dnl Assume generic 4-byte BLAS library if not specified
+    AC_MSG_CHECKING([BLAS library integer size])
+    if test -z "$ax_cv_blas_integer_size" ; then
+      ax_cv_blas_integer_size=4
+    fi
+    AC_MSG_RESULT([$ax_cv_blas_integer_size assumed for cross compilation])
   elif test $ax_blas_ok = yes; then
     ac_octave_save_LIBS="$LIBS"
     LIBS="$BLAS_LIBS $LIBS"