diff options
author | Peter Simons <simons@cryp.to> | 2012-09-07 10:40:03 +0200 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2012-09-07 10:40:03 +0200 |
commit | c78c8c763254ad0086bc8bd5c714cba0425080b2 (patch) | |
tree | 10235745d8024b54574bae73697df9fea702d04d /m4/ax_blas.m4 | |
parent | 2d6f7df85ade8b2f5decc424f036584b0c116c9b (diff) | |
download | autoconf-archive-c78c8c763254ad0086bc8bd5c714cba0425080b2.tar.gz |
AX_BLAS: add support for the (free-software, BSD-licensed) OpenBLAS library, a descendant of GotoBLAS (http://xianyi.github.com/OpenBLAS/).
See <http://savannah.gnu.org/patch/?7828> for further details.
Diffstat (limited to 'm4/ax_blas.m4')
-rw-r--r-- | m4/ax_blas.m4 | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/m4/ax_blas.m4 b/m4/ax_blas.m4 index 089fe0a..62fecc6 100644 --- a/m4/ax_blas.m4 +++ b/m4/ax_blas.m4 @@ -63,7 +63,7 @@ # modified version of the Autoconf Macro, you may extend this special # exception to the GPL to apply to your modified version as well. -#serial 12 +#serial 13 AU_ALIAS([ACX_BLAS], [AX_BLAS]) AC_DEFUN([AX_BLAS], [ @@ -107,6 +107,12 @@ if test $ax_blas_ok = no; then LIBS="$save_LIBS" fi +# BLAS in OpenBLAS library? (http://xianyi.github.com/OpenBLAS/) +if test $ax_blas_ok = no; then + AC_CHECK_LIB(openblas, $sgemm, [ax_blas_ok=yes + BLAS_LIBS="-lopenblas"]) +fi + # BLAS in ATLAS library? (http://math-atlas.sourceforge.net/) if test $ax_blas_ok = no; then AC_CHECK_LIB(atlas, ATL_xerbla, |