Commit 3ce540b4 authored by Lorenz Huedepohl's avatar Lorenz Huedepohl

Fix Scalapack configure tests for Debian/Ubuntu

This should make it easier to compile ELPA for Debian/Ubuntu, now it
should be sufficient to just

  ./configure

without a need to set LIBS or SCALAPACK_LDFLAGS
parent cf217c2c
......@@ -469,7 +469,7 @@ else
if test x"${enable_shared_memory_only}" = x"no"; then
dnl test whether scalapack already contains blacs
scalapack_libs="mpiscalapack scalapack"
scalapack_libs="mpiscalapack scalapack scalapack-openmpi"
old_LIBS="$LIBS"
for lib in ${scalapack_libs}; do
LIBS="-l${lib} ${old_LIBS}"
......@@ -486,6 +486,12 @@ else
dnl Test for stand-alone blacs
AC_SEARCH_LIBS([bi_f77_init],[mpiblacsF77init],[],[],[-lmpiblacs])
dnl for debian
AC_SEARCH_LIBS([blacs_gridinit],[blacs-openmpi],[have_blacs=yes],[have_blacs=no],[-lblacsCinit-openmpi -lscalapack-openmpi])
if test x"${have_blacs}" = x"no"; then
unset ac_cv_search_blacs_gridinit
fi
AC_SEARCH_LIBS([blacs_gridinit],[mpiblacs blacs],[have_blacs=yes],[have_blacs=no])
if test x"${have_blacs}" = x"no"; then
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment