summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Robbins <andrew@robbinsa.me>2023-04-12 11:32:51 -0400
committerGitHub <noreply@github.com>2023-04-12 11:32:51 -0400
commitab99334f322f98f061d0aaa74b724d6fda0af415 (patch)
treecbcdc6bd6845d053fee95d97fa9a039c97f5f436
parent919e299682fa49b4747dbf010e7b318c46e0458d (diff)
downloadautoconf-archive-ab99334f322f98f061d0aaa74b724d6fda0af415.tar.gz
Fix vecLib detection on modern MacOS
For whatever reason Apple's hardened runtime scoping disallows third-party linking to -framework vecLib. Linking -framework Accelerate solves this issue.
-rw-r--r--m4/ax_blas.m46
1 files changed, 3 insertions, 3 deletions
diff --git a/m4/ax_blas.m4 b/m4/ax_blas.m4
index 9571905..86ec926 100644
--- a/m4/ax_blas.m4
+++ b/m4/ax_blas.m4
@@ -175,9 +175,9 @@ fi
# BLAS in Apple vecLib library?
if test $ax_blas_ok = no; then
- save_LIBS="$LIBS"; LIBS="-framework vecLib $LIBS"
- AC_MSG_CHECKING([for $sgemm in -framework vecLib])
- AC_LINK_IFELSE([AC_LANG_CALL([], [$sgemm])], [ax_blas_ok=yes;BLAS_LIBS="-framework vecLib"])
+ save_LIBS="$LIBS"; LIBS="-framework Accelerate $LIBS"
+ AC_MSG_CHECKING([for $sgemm in -framework Accelerate])
+ AC_LINK_IFELSE([AC_LANG_CALL([], [$sgemm])], [ax_blas_ok=yes;BLAS_LIBS="-framework Accelerate"])
AC_MSG_RESULT($ax_blas_ok)
LIBS="$save_LIBS"
fi