Explorar o código

Allow user to set BLAS_LIBS for own blas libraries and mimic standard AX_BLAS autoconf macro behaviour. Thanks bicatali for the patch

Samuel Thibault %!s(int64=12) %!d(string=hai) anos
pai
achega
106d8e0cd0
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      configure.ac

+ 6 - 0
configure.ac

@@ -1526,6 +1526,12 @@ if test x$blas_lib = xmaybe; then
      if test x$use_system_blas = xyes; then
         AC_DEFINE(STARPU_SYSTEM_BLAS, [1], [use refblas library])
 	blas_lib=system
+     elif test x"$BLAS_LIBS" != x; then
+        AC_DEFINE(STARPU_SYSTEM_BLAS, [1], [use user defined library])
+        STARPU_BLAS_LDFLAGS="$BLAS_LIBS"
+        AC_SUBST(STARPU_BLAS_LDFLAGS)
+        blas_lib=system
+        AC_ARG_VAR([BLAS_LIBS], [linker flags for blas])
      else
 	blas_lib=none
      fi