|
@@ -3012,11 +3012,13 @@ if test x$blas_lib = xmaybe; then
|
|
|
fi
|
|
|
fi
|
|
|
|
|
|
-SAVED_LIBS="${LIBS}"
|
|
|
-LIBS="$LIBS $STARPU_BLAS_LDFLAGS"
|
|
|
-AC_CHECK_FUNC([cblas_sgemv], have_cblas_sgemv=yes)
|
|
|
-AM_CONDITIONAL(BLAS_LIB_HAS_CBLAS_SGEMV, test x$have_cblas_sgemv = xyes)
|
|
|
-LIBS="${SAVED_LIBS}"
|
|
|
+if test x$blas_lib = xsystem; then
|
|
|
+ AC_CHECK_HEADER([cblas.h], [have_cblas_h=yes], [have_cblas_h=no])
|
|
|
+fi
|
|
|
+AM_CONDITIONAL(BLAS_LIB_HAS_CBLAS_SGEMV, test x$have_cblas_h = xyes)
|
|
|
+if test x$have_cblas_h = xyes; then
|
|
|
+ AC_DEFINE(STARPU_BLAS_LIB_HAS_CBLAS_SGEMV, [1], [The blas library has cblas_sgemv])
|
|
|
+fi
|
|
|
|
|
|
AM_CONDITIONAL(ATLAS_BLAS_LIB, test x$blas_lib = xatlas)
|
|
|
AM_CONDITIONAL(GOTO_BLAS_LIB, test x$blas_lib = xgoto)
|