summaryrefslogtreecommitdiff
path: root/academic/spqr/patches/atlas-lib-rename.diff
blob: 4801036f4673a1d0a86c5922d9b52be1c51133b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/m4/ax_blas.m4 b/m4/ax_blas.m4
--- a/m4/ax_blas.m4
+++ b/m4/ax_blas.m4
@@ -116,13 +116,10 @@
 
 # BLAS in ATLAS library? (http://math-atlas.sourceforge.net/)
 if test $ax_blas_ok = no; then
-	AC_CHECK_LIB(atlas, ATL_xerbla,
-		[AC_CHECK_LIB(f77blas, $sgemm,
-		[AC_CHECK_LIB(cblas, cblas_dgemm,
-			[ax_blas_ok=yes
-			 BLAS_LIBS="-lcblas -lf77blas -latlas"],
-			[], [-lf77blas -latlas])],
-			[], [-latlas])])
+	AC_CHECK_LIB(tatlas, $sgemm,
+		[ax_blas_ok=yes; BLAS_LIBS="-ltatlas"],
+		[AC_CHECK_LIB(satlas, $sgemm,
+			[ax_blas_ok=yes; BLAS_LIBS="-lsatlas"])])
 fi
 
 # BLAS in PhiPACK libraries? (requires generic BLAS lib, too)