1 --- configure.ac 2015-09-03 14:49:42.000000000 +0200
2 +++ configure.ac.new 2016-01-27 12:50:07.812215547 +0100
4 BUILTLIBS="$SINGULARLIBS $BUILTLIBS"
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.)
12 -if test "$LAPACK" = yes
13 -then AC_MSG_CHECKING([whether the Accelerate framework is available])
14 - SAVELIBS=$LIBS LIBS="-framework Accelerate $LIBS"
17 - [AC_LANG_PROGRAM(,[sgemv_();dgetrf_();])],
25 - if test $BUILD_lapack = no
26 - then AC_LANG(Fortran)
28 - then AC_MSG_ERROR(no fortran compiler found)
29 - else AC_MSG_NOTICE(using fortran compiler $FC)
31 - AC_SEARCH_LIBS(sgemv,blas f77blas,,BUILD_lapack=yes)
32 - AC_SEARCH_LIBS(dgetrf,lapack,,BUILD_lapack=yes)
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
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),
47 +BUILTLIBS="$(${PKG_CONFIG} --libs lapack) $BUILTLIBS"
49 test "$USE_FCLIBS" = no && FCLIBS=
50 test "$FORTRANUSED" = no && FCLIBS=