atlas-threaded-blas.diff 855 B

123456789101112131415161718192021222324252627
  1. diff --git a/ax_blas.m4 b/ax_blas.m4
  2. --- a/ax_blas.m4
  3. +++ b/ax_blas.m4
  4. @@ -117,12 +117,16 @@
  5. # BLAS in ATLAS library? (http://math-atlas.sourceforge.net/)
  6. if test $ax_blas_ok = no; then
  7. AC_CHECK_LIB(atlas, ATL_xerbla,
  8. - [AC_CHECK_LIB(f77blas, $sgemm,
  9. - [AC_CHECK_LIB(cblas, cblas_dgemm,
  10. - [ax_blas_ok=yes
  11. - BLAS_LIBS="-lcblas -lf77blas -latlas"],
  12. - [], [-lf77blas -latlas])],
  13. - [], [-latlas])])
  14. + [AC_CHECK_LIB(ptf77blas, $sgemm,
  15. + [AC_CHECK_LIB(ptcblas, cblas_dgemm,
  16. + [ax_blas_ok=yes; BLAS_LIBS="-lptcblas -lptf77blas -latlas"],,
  17. + [-lptf77blas -latlas])],
  18. + [AC_CHECK_LIB(f77blas, $sgemm,
  19. + [AC_CHECK_LIB(cblas, cblas_dgemm,
  20. + [ax_blas_ok=yes; BLAS_LIBS="-lcblas -lf77blas -latlas"],,
  21. + [-lf77blas -latlas])],,
  22. + [-latlas])],
  23. + [-latlas])])
  24. fi
  25. # BLAS in PhiPACK libraries? (requires generic BLAS lib, too)