1 |
jlec 12/02/28 12:57:17 |
2 |
|
3 |
Added: mc-1.5-unbundle.patch |
4 |
Log: |
5 |
Moved to autotools-utils, EAPI=4, fix blas/lapack detection and add USE=static-libs |
6 |
|
7 |
(Portage version: 2.2.0_alpha89/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 sci-libs/mc/files/mc-1.5-unbundle.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/mc/files/mc-1.5-unbundle.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/mc/files/mc-1.5-unbundle.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: mc-1.5-unbundle.patch |
16 |
=================================================================== |
17 |
configure.ac | 38 ++++++-------------------------------- |
18 |
1 files changed, 6 insertions(+), 32 deletions(-) |
19 |
|
20 |
diff --git a/configure.ac b/configure.ac |
21 |
index 6198ac0..4b1b169 100644 |
22 |
--- a/configure.ac |
23 |
+++ b/configure.ac |
24 |
@@ -191,44 +191,18 @@ dnl # ----------------------- |
25 |
dnl # HANDLE THE BLAS LIBRARY |
26 |
dnl # ----------------------- |
27 |
blas_lib=""; |
28 |
-AC_MSG_CHECKING([whether your environment defines FETK_BLAS_LIBRARY]) |
29 |
-if test -n "${FETK_BLAS_LIBRARY}"; then |
30 |
- AC_MSG_RESULT([yes]) |
31 |
- blas_lib_path="-L${FETK_BLAS_LIBRARY} "; |
32 |
-else |
33 |
- AC_MSG_RESULT([no]) |
34 |
- blas_lib_path="-L${FETK_LIBRARY} "; |
35 |
-fi |
36 |
-LDFLAGS_SAVE=${LDFLAGS}; |
37 |
-LDFLAGS=${blas_lib_path}; |
38 |
-blas_use=""; |
39 |
-AC_CHECK_LIB(blas,dscal_, |
40 |
- [blas_use="yes";blas_lib="${blas_lib_path}-lblas";AC_DEFINE(HAVE_BLAS)], |
41 |
- [blas_use="";blas_lib=""], |
42 |
- [${blas_lib_path}-lblas ${vf2c_lib}]) |
43 |
-LDFLAGS=${LDFLAGS_SAVE}; |
44 |
+blas_lib_path=""; |
45 |
+PKG_CHECK_MODULES([BLAS], [blas]) |
46 |
+blas_lib="${BLAS_LIBS}"; |
47 |
AC_SUBST(blas_lib) |
48 |
|
49 |
dnl # ------------------------- |
50 |
dnl # HANDLE THE LAPACK LIBRARY |
51 |
dnl # ------------------------- |
52 |
lapack_lib=""; |
53 |
-AC_MSG_CHECKING([whether your environment defines FETK_LAPACK_LIBRARY]) |
54 |
-if test -n "${FETK_LAPACK_LIBRARY}"; then |
55 |
- AC_MSG_RESULT([yes]) |
56 |
- lapack_lib_path="-L${FETK_LAPACK_LIBRARY} "; |
57 |
-else |
58 |
- AC_MSG_RESULT([no]) |
59 |
- lapack_lib_path="-L${FETK_LIBRARY} "; |
60 |
-fi |
61 |
-LDFLAGS_SAVE=${LDFLAGS}; |
62 |
-LDFLAGS=${lapack_lib_path}; |
63 |
-lapack_use=""; |
64 |
-AC_CHECK_LIB(lapack,dsysv_, |
65 |
- [lapack_use="yes";lapack_lib="${lapack_lib_path}-llapack";AC_DEFINE(HAVE_LAPACK)], |
66 |
- [lapack_use="";lapack_lib=""], |
67 |
- [${lapack_lib_path}-llapack ${blas_lib} ${vf2c_lib}]) |
68 |
-LDFLAGS=${LDFLAGS_SAVE}; |
69 |
+lapack_lib_path=""; |
70 |
+PKG_CHECK_MODULES([LAPACK], [lapack]) |
71 |
+lapack_lib="${LAPACK_LIBS}" |
72 |
AC_SUBST(lapack_lib) |
73 |
|
74 |
dnl # -------------------------- |