Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
use AC_SEARCH_LIBS
Browse files Browse the repository at this point in the history
AC_CHECK_LIB sets variables we don't need.
  • Loading branch information
dimpase committed Jan 28, 2020
1 parent 39a317d commit 7adc712
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/pkgs/openblas/spkg-configure.m4
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ SAGE_SPKG_CONFIGURE([openblas], [
PKG_CHECK_MODULES([OPENBLAS], [openblas >= 0.2.20], [
PKG_CHECK_VAR([OPENBLASPCDIR], [openblas], [pcfiledir], [
AC_CONFIG_LINKS([$SAGE_SRC/lib/pkgconfig/blas.pc:$OPENBLASPCDIR/openblas.pc])
AC_CHECK_LIB([openblas], [cblas_dgemm], [dnl openblas works as cblas
AC_SEARCH_LIBS([cblas_dgemm], [openblas], [dnl openblas works as cblas
AC_CONFIG_LINKS([$SAGE_SRC/lib/pkgconfig/cblas.pc:$OPENBLASPCDIR/openblas.pc])
], [
dnl openblas does not work as cblas; try to use system's cblas as is
PKG_CHECK_MODULES([CBLAS], [], [], [sage_spkg_install_openblas=yes])
])
AC_FC_FUNC([dgeqrf])
AC_CHECK_LIB([openblas], [$dgeqrf], [dnl openblas works as lapack
AC_SEARCH_LIBS([$dgeqrf], [openblas], [dnl openblas works as lapack
AC_CONFIG_LINKS([$SAGE_SRC/lib/pkgconfig/lapack.pc:$OPENBLASPCDIR/openblas.pc])
], [
dnl openblas does not work as lapack; try to use system's lapack as is
Expand Down

0 comments on commit 7adc712

Please sign in to comment.