diff -up mpich/configure.ac.blacs mpich/configure.ac --- mpich/configure.ac.blacs 2014-03-21 12:10:21.000000001 +0100 +++ mpich/configure.ac 2014-06-29 22:47:36.214804126 +0200 @@ -274,7 +274,7 @@ if test "x${can_link_with_mkl}" = "xyes" else dnl first check blas - AC_SEARCH_LIBS([dgemm],[blas],[can_link_with_blas=yes],[can_link_with_blas=no]) + AC_SEARCH_LIBS([dgemm],[f77blas blas],[can_link_with_blas=yes],[can_link_with_blas=no],[-lf77blas -latlas]) AC_MSG_CHECKING([whether we can link a program with a blas lib]) AC_MSG_RESULT([${can_link_with_blas}])