app-text/fbpdf: reload, not redraw
[sgilles-overlay.git] / sci-mathematics / Macaulay2 / files / Macaulay2-1.8.2.1-lapack.patch
blob25185e7c560e3b88667e7b3c25f465f4f7239edf
1 --- configure.ac 2015-09-03 14:49:42.000000000 +0200
2 +++ configure.ac.new 2016-01-27 12:50:07.812215547 +0100
3 @@ -1301,46 +1301,7 @@
4 BUILTLIBS="$SINGULARLIBS $BUILTLIBS"
5 fi
7 -# we need to do the fortran library testing last, in case AC_SEARCH_LIBS adds
8 -# one of them to $LIBS, making it impossible to check for the presence of C or
9 -# C++ libraries. (I'm not sure why putting -llapack on the gcc command line
10 -# needlessly causes the library to be linked against.)
11 -FORTRANUSED=no
12 -if test "$LAPACK" = yes
13 -then AC_MSG_CHECKING([whether the Accelerate framework is available])
14 - SAVELIBS=$LIBS LIBS="-framework Accelerate $LIBS"
15 - AC_LANG(C)
16 - AC_LINK_IFELSE(
17 - [AC_LANG_PROGRAM(,[sgemv_();dgetrf_();])],
18 - [
19 - AC_MSG_RESULT(yes)
20 - ],
21 - [
22 - AC_MSG_RESULT(no)
23 - LIBS=$SAVELIBS
24 - FORTRANUSED=yes
25 - if test $BUILD_lapack = no
26 - then AC_LANG(Fortran)
27 - if test "$FC" = ""
28 - then AC_MSG_ERROR(no fortran compiler found)
29 - else AC_MSG_NOTICE(using fortran compiler $FC)
30 - fi
31 - AC_SEARCH_LIBS(sgemv,blas f77blas,,BUILD_lapack=yes)
32 - AC_SEARCH_LIBS(dgetrf,lapack,,BUILD_lapack=yes)
33 - fi
34 - ])
35 -fi
36 -test $BUILD_lapack = yes && BUILTLIBS="-llapack -lrefblas $BUILTLIBS"
38 -if test $BUILD_lapack = yes
39 -then # test whether the fortran compiler can handle lapack, which, starting with
40 - # version 3.2, requires fortran 90, not fortran 77
41 - AC_LANG(Fortran)
42 - AC_MSG_CHECKING([whether the fortran compiler is modern enough for lapack])
43 - AC_COMPILE_IFELSE([instrinsic maxloc],
44 - AC_MSG_ERROR(the fortran compiler ($FC) does not support the Fortran 90 language required for compiling lapack),
45 - AC_MSG_RESULT(yes))
46 -fi
47 +BUILTLIBS="$(${PKG_CONFIG} --libs lapack) $BUILTLIBS"
49 test "$USE_FCLIBS" = no && FCLIBS=
50 test "$FORTRANUSED" = no && FCLIBS=