Sophie

Sophie

distrib > Fedora > 16 > i386 > by-pkgid > df8da82c6d3f26dc82e941cd54ddf429 > files > 8

R-RScaLAPACK-0.6.1-8.fc16.src.rpm

diff -up RScaLAPACK/RScaLAPACK/configure.in.mpiblacs RScaLAPACK/RScaLAPACK/configure.in
--- RScaLAPACK/RScaLAPACK/configure.in.mpiblacs	2010-01-14 17:13:11.239094888 -0500
+++ RScaLAPACK/RScaLAPACK/configure.in	2010-01-14 17:17:35.264095227 -0500
@@ -217,7 +217,10 @@ fi
 
 if test "${supply_blacs}" = yes || test "${supply_scalapack}" = yes; then
 
-	if test -f ${BLACS_LIB}/libblacs.a; then
+	if test -f ${BLACS_LIB}/libmpiblacs.so; then
+		LIBS="-lmpiblacs ${LIBS}"
+
+	elif test -f ${BLACS_LIB}/libblacs.a; then
 		LIBS="-lblacs ${LIBS}"
 
 	elif test -f ${SCALAPACK_LIB}/libblacs.a;  then
@@ -233,7 +236,10 @@ if test "${supply_blacs}" = yes || test 
 		AC_MSG_ERROR(libblacs.a not found,-1)
 	fi
 
-	if test -f ${BLACS_LIB}/libblacsCinit.a; then
+	if test -f ${BLACS_LIB}/libmpiblacsCinit.so; then
+		LIBS="-lmpiblacsCinit ${LIBS}"
+
+	elif test -f ${BLACS_LIB}/libblacsCinit.a; then
 		LIBS="-lblacsCinit ${LIBS}"
 
 	elif test -f ${SCALAPACK_LIB}/libblacsCinit.a;  then
@@ -249,7 +255,10 @@ if test "${supply_blacs}" = yes || test 
 		AC_MSG_ERROR(libblacsCinit.a not found,-1)
 	fi
 
-	if test -f ${BLACS_LIB}/libblacsF77init.a; then
+	if test -f ${BLACS_LIB}/libmpiblacsF77init.so; then
+		LIBS="-lmpiblacsF77init ${LIBS}"
+
+	elif test -f ${BLACS_LIB}/libblacsF77init.a; then
 		LIBS="-lblacsF77init ${LIBS}"
 
 	elif test -f ${SCALAPACK_LIB}/libblacsF77init.a;  then
@@ -282,7 +291,9 @@ fi
 
 if test "${supply_scalapack}" = yes; then
 
-	if test -f ${SCALAPACK_LIB}/libscalapack.a; then
+	if test -f ${SCALAPACK_LIB}/libscalapack.so; then
+		LIBS="-lscalapack ${LIBS}"
+	elif test -f ${SCALAPACK_LIB}/libscalapack.a; then
 		LIBS="-lscalapack ${LIBS}"
 	else
 		AC_MSG_ERROR(libscalapack.a not found,-1)