BLAS_LIBS variable gets unset by the ACX_BLAS macro
Reported by Guillaume Horel
I've noticed that the ACX_BLAS macro unsets the BLAS_LIBS variable so that it never gets checked. In the file m4/libsmath.m4, these lines look strange to me:
AC_DEFUN([ACX_BLAS], [
AC_PREREQ(2.50)
AC_REQUIRE([AC_F77_LIBRARY_LDFLAGS])
acx_blas_ok=no
BLAS_LIBS=
acx_blas_save_LIBS="$LIBS"
If I replace it by:
AC_DEFUN([ACX_BLAS], [
AC_PREREQ(2.50)
AC_REQUIRE([AC_F77_LIBRARY_LDFLAGS])
acx_blas_ok=no
acx_blas_save_LIBS="$LIBS"
then the configure file actually checks BLAS_LIBS, but I still don't think that's the right fix, cause it produces this error:
./configure: line 21170: : command not found
The reason I noticed this bug is that with the development versions of atlas, the link flags are something like: -lf77blas -lm -latlas which are not picked up by the default cases in the ACX_BLAS macro, hence it's necessary to provide it through the BLAS_LIBS variable.