1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
--- configure.ac 2012-10-24 09:29:55.240498786 -0700
+++ configure.ac.2 2012-10-30 15:07:27.172846300 -0700
@@ -1285,46 +1285,7 @@
done
test $BUILD_factory = yes && BUILTLIBS="$SINGULARLIBS $BUILTLIBS"
-# we need to do the fortran library testing last, in case AC_SEARCH_LIBS adds
-# one of them to $LIBS, making it impossible to check for the presence of C or
-# C++ libraries. (I'm not sure why putting -llapack on the gcc command line
-# needlessly causes the library to be linked against.)
-FORTRANUSED=no
-if test "$LAPACK" = yes
-then AC_MSG_CHECKING([whether the vecLib framework is available])
- SAVELIBS=$LIBS LIBS="-framework vecLib $LIBS"
- AC_LANG(C)
- AC_LINK_IFELSE(
- [AC_LANG_PROGRAM(,[sgemv_();dgetrf_();])],
- [
- AC_MSG_RESULT(yes)
- ],
- [
- AC_MSG_RESULT(no)
- LIBS=$SAVELIBS
- FORTRANUSED=yes
- if test $BUILD_lapack = no
- then AC_LANG(Fortran)
- if test "$FC" = ""
- then AC_MSG_ERROR(no fortran compiler found)
- else AC_MSG_NOTICE(using fortran compiler $FC)
- fi
- AC_SEARCH_LIBS(sgemv,blas f77blas,,BUILD_lapack=yes)
- AC_SEARCH_LIBS(dgetrf,lapack,,BUILD_lapack=yes)
- fi
- ])
-fi
-test $BUILD_lapack = yes && BUILTLIBS="-llapack -lblas $BUILTLIBS"
-
-if test $BUILD_lapack = yes
-then # test whether the fortran compiler can handle lapack, which, starting with
- # version 3.2, requires fortran 90, not fortran 77
- AC_LANG(Fortran)
- AC_MSG_CHECKING([whether the fortran compiler is modern enough for lapack])
- AC_COMPILE_IFELSE([instrinsic maxloc],
- AC_MSG_ERROR(the fortran compiler ($FC) does not support the Fortran 90 language required for compiling lapack),
- AC_MSG_RESULT(yes))
-fi
+BUILTLIBS="$(${PKG_CONFIG} --libs lapack) $BUILTLIBS"
if test $BUILD_memtailor = yes
then BUILTLIBS="-lmemtailor $BUILTLIBS"
|