diff options
Diffstat (limited to 'sci-libs/libghemical/files/2.00-really-find-blas-and-lapack.patch')
-rw-r--r-- | sci-libs/libghemical/files/2.00-really-find-blas-and-lapack.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/sci-libs/libghemical/files/2.00-really-find-blas-and-lapack.patch b/sci-libs/libghemical/files/2.00-really-find-blas-and-lapack.patch new file mode 100644 index 000000000000..bef730abbe4c --- /dev/null +++ b/sci-libs/libghemical/files/2.00-really-find-blas-and-lapack.patch @@ -0,0 +1,24 @@ +diff -urN libghemical-2.00.orig/configure.ac libghemical-2.00/configure.ac +--- libghemical-2.00.orig/configure.ac 2006-05-12 23:31:06.000000000 -0700 ++++ libghemical-2.00/configure.ac 2006-05-12 23:54:20.000000000 -0700 +@@ -69,8 +69,18 @@ + AC_CHECK_LIB([m], [acos]) + + if test $WITH_MPQC = yes; then +- AC_CHECK_LIB([blas], [main], , AC_MSG_ERROR([Cannot find blas library needed for MPQC support])) +- AC_CHECK_LIB([lapack], [main], , AC_MSG_ERROR([Cannot find lapack library needed for MPQC support])) ++ AC_CHECK_LIB([blas], [dgemm_], HAVE_BLAS="yes", , -lpthread) ++ AC_CHECK_LIB([blas], [dgemm], HAVE_BLAS="yes", , -lpthread) ++ AC_CHECK_LIB([blas], [dgemm__], HAVE_BLAS="yes", , -lpthread) ++ if test "x${HAVE_BLAS}" = "x"; then ++ AC_MSG_ERROR([Cannot find blas library needed for MPQC support]) ++ fi ++ AC_CHECK_LIB([lapack], [cheev_], HAVE_LAPACK="yes", , -lpthread) ++ AC_CHECK_LIB([lapack], [cheev], HAVE_LAPACK="yes", , -lpthread) ++ AC_CHECK_LIB([lapack], [cheev__], HAVE_LAPACK="yes", , -lpthread) ++ if test "x${HAVE_LAPACK}" = "x"; then ++ AC_MSG_ERROR([Cannot find lapack library needed for MPQC support]) ++ fi + AM_PATH_SC(1.2.5, HAVE_MPQC="yes", HAVE_MPQC="no") + if test "${HAVE_MPQC}" = "yes"; then + AC_DEFINE([ENABLE_MPQC], [], [Define if you are building a version that interfaces directly with MPQC]) |