Skip to content

Commit

Permalink
always link against gslcblas even when petsc is found
Browse files Browse the repository at this point in the history
  • Loading branch information
gtheler committed Sep 2, 2021
1 parent a07d395 commit 0da38bb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -310,10 +310,13 @@ AS_IF([test -e ${gsldist}],[
AC_CHECK_HEADER([gsl/gsl_vector.h], [], AC_MSG_ERROR([GNU Scientific library headers libgsl-dev not found.
Either install them with your package manager or configure with --enable-download-gsl]))
# TODO: the original idea is that
# if we found PETSc, we use whatever BLAS it has, otherwise we use GSL's CBLAS
AS_IF([test "x${have_petsc}" != "xyes"],
# but this does not work in Fedora since even though the library flexiblas
# that is used by PETSc does contain cblas_dgemm, it is not found by the linker
#AS_IF([test "x${have_petsc}" != "xyes"],
AC_CHECK_LIB([gslcblas],[cblas_dgemm], [], AC_MSG_ERROR([GNU Scientific library CBLAS libgsl-dev not found]))
)
#)
AC_CHECK_LIB([gsl],[gsl_blas_dgemm], [], AC_MSG_ERROR([GNU Scientific library libgsl-dev not found]))
gsl_version="from system"
])
Expand Down

0 comments on commit 0da38bb

Please sign in to comment.