From 0ad268f991f6f3191e9fdeeb65d9731b7c542a80 Mon Sep 17 00:00:00 2001 From: ddelange <14880945+ddelange@users.noreply.github.com> Date: Tue, 18 Apr 2023 10:57:53 +0200 Subject: [PATCH] Add support for OpenBLAS --- m4/ax_cblas.m4 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/m4/ax_cblas.m4 b/m4/ax_cblas.m4 index 0c87c29f..4acda990 100644 --- a/m4/ax_cblas.m4 +++ b/m4/ax_cblas.m4 @@ -157,6 +157,11 @@ if test $ax_cblas_ok = no; then AC_CHECK_LIB(cblas, cblas_dgemm, [ax_cblas_ok=yes; CBLAS_LIBS="-lcblas"]) fi +# Generic BLAS library? (for instance OpenBLAS) +if test $ax_cblas_ok = no; then + AC_CHECK_LIB(cblas, cblas_dgemm, [ax_cblas_ok=yes; CBLAS_LIBS="-lblas"]) +fi + AC_SUBST(CBLAS_LIBS) LIBS="$ax_cblas_save_LIBS"