0001-Fix-BLAS-library-integer-size-detection.patch 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. From e4dcfefac4215ee66c3dda5b067dd6d06066b0a2 Mon Sep 17 00:00:00 2001
  2. From: Julien Olivain <ju.o@free.fr>
  3. Date: Sat, 5 Mar 2022 12:36:09 +0100
  4. Subject: [PATCH] Fix BLAS library integer size detection
  5. When cross-compiling, octave ./configure script fails to detect the BLAS
  6. library integer size and fails with the message:
  7. configure: error: unrecognized BLAS library integer size
  8. This patch fixes this detection.
  9. Patch adapted from:
  10. https://github.com/openembedded/meta-openembedded/commit/0ad153f721ef99de585c4452a997a7104f45d71d
  11. Signed-off-by: Julien Olivain <ju.o@free.fr>
  12. ---
  13. configure.ac | 6 ++++++
  14. 1 file changed, 6 insertions(+)
  15. diff --git a/configure.ac b/configure.ac
  16. index de7a00a330..383ce27b06 100644
  17. --- a/configure.ac
  18. +++ b/configure.ac
  19. @@ -781,6 +781,12 @@ if test $ax_blas_ok = no || test $ax_lapack_ok = no; then
  20. AC_MSG_ERROR([BLAS and LAPACK libraries are required])
  21. fi
  22. +if ac_fn_f77_try_run "$LINENO"; then :
  23. + ax_blas_integer_size=8
  24. +else
  25. + ax_blas_integer_size=4
  26. +fi
  27. +
  28. case $ax_blas_integer_size in
  29. 4)
  30. HAVE_64_BIT_BLAS=no
  31. --
  32. 2.36.0