diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /sci-chemistry/mpqc/files/mpqc-2.3.1-blas.patch |
reinit the tree, so we can have metadata
Diffstat (limited to 'sci-chemistry/mpqc/files/mpqc-2.3.1-blas.patch')
-rw-r--r-- | sci-chemistry/mpqc/files/mpqc-2.3.1-blas.patch | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/sci-chemistry/mpqc/files/mpqc-2.3.1-blas.patch b/sci-chemistry/mpqc/files/mpqc-2.3.1-blas.patch new file mode 100644 index 000000000000..b99c82fb71da --- /dev/null +++ b/sci-chemistry/mpqc/files/mpqc-2.3.1-blas.patch @@ -0,0 +1,55 @@ + configure.in | 36 +++--------------------------------- + 1 files changed, 3 insertions(+), 33 deletions(-) + +diff --git a/configure.in b/configure.in +index ee82977..caae1f9 100644 +--- a/configure.in ++++ b/configure.in +@@ -1487,44 +1487,14 @@ AC_LANG_CPLUSPLUS + LIBSSAV="$LIBS" + LIBS="$LIBSSAV $FLIBS" + +-LIBBLAS="" +-F77_DGEMM=`$PERL $srcdir/bin/mkf77sym.pl.in -method $F77_SYMBOLS DAXPY` +-AC_CHECK_FUNC($F77_DGEMM,HAVE_BLAS=yes,[ +- AC_CHECK_LIB(essl,$F77_DGEMM,[HAVE_BLAS=yes;LIBBLAS="-lessl"], +- AC_CHECK_LIB(blas,$F77_DGEMM,[HAVE_BLAS=yes;LIBBLAS="-lblas"]) +- )] +-) +-if test X$HAVE_BLAS != Xyes; then +- LIBSSAV2="$LIBS" +- LIBS="-latlas $LIBS" +- AC_CHECK_LIB(f77blas,$F77_DGEMM,[HAVE_BLAS=yes;LIBBLAS="-lf77blas -latlas"], +- LIBS="$LIBSSAV2") +-fi +-AC_SUBST(HAVE_BLAS) +-if test X$HAVE_BLAS != Xyes; then +- echo "WARNING: Could not link to the BLAS library. It can be obtained at" +- echo "http://www.netlib.org/blas. Use --with-libdirs and/or --with-libs" +- echo "to specify the name of the library." +- AC_MSG_ERROR([BLAS is required to complete the build]) +-fi ++PKG_CHECK_MODULES([BLAS], [blas], [LIBBLAS="${BLAS_LIBS}"]) + + LIBS="$LIBSSAV $LIBBLAS $FLIBS" + +-LIBLAPACK="" +-F77_DGESVD=`$PERL $srcdir/bin/mkf77sym.pl.in -method $F77_SYMBOLS DGESVD` +-AC_CHECK_FUNC($F77_DGESVD,HAVE_LAPACK=yes,[ +- AC_CHECK_LIB(lapack,$F77_DGESVD,[HAVE_LAPACK=yes;LIBLAPACK="-llapack"] +- )] +-) +-AC_SUBST(HAVE_LAPACK) +-if test X$HAVE_LAPACK != Xyes; then +- echo "Could not link to the LAPACK library. It can be obtained at" +- echo "http://www.netlib.org/lapack. Use --with-libdirs and/or --with-libs" +- echo "to specify the name of the library." +- AC_MSG_ERROR([LAPACK is required to complete the build]) +-fi ++PKG_CHECK_MODULES([LAPACK], [lapack], [LIBLAPACK="${LAPACK_LIBS}"]) + + FLIBS="$LIBLAPACK $LIBBLAS $FLIBS" ++ + AC_LANG_RESTORE + + dnl ----------- check for Scalable BLAS library -------------- |