Sophie

Sophie

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

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

diff -up RScaLAPACK/RScaLAPACK/configure.in.atlas RScaLAPACK/RScaLAPACK/configure.in
--- RScaLAPACK/RScaLAPACK/configure.in.atlas	2010-01-14 16:49:48.093095946 -0500
+++ RScaLAPACK/RScaLAPACK/configure.in	2010-01-14 16:51:44.234094772 -0500
@@ -92,6 +92,14 @@ AC_ARG_WITH(scalapack,
  AC_MSG_NOTICE(SCALAPACK_LIB=${SCALAPACK_LIB} .. is set)
 ])
 
+AC_ARG_WITH(atlas,
+[  --with-atlas=/usr/local/lib		Location of ATLAS library],
+[ATLAS_LIB=${withval}
+ supply_atlas=yes
+ AC_MSG_NOTICE(ATLAS_LIB=${ATLAS_LIB} .. is set)
+])
+
+
 dnl Checks for libraries
 
 AC_LANG(C)
@@ -119,6 +127,10 @@ if test "${supply_scalapack}" = yes; the
 	LDFLAGS="-L${SCALAPACK_LIB} ${LDFLAGS}"
 fi
 
+if test "${supply_atlas}" = yes; then
+	LDFLAGS="-L${ATLAS_LIB} ${LDFLAGS}"
+fi
+
 AC_CHECK_LIB(pthread, pthread_atfork,[
 	PALIBS="-lpthread"
 	],[
@@ -142,8 +154,9 @@ fi
 
 if test "${supply_blas}" = yes || test "${supply_scalapack}" = yes; then
 
-
-	if test -f ${BLAS_LIB}/libatlas.a; then
+	if test -f ${ATLAS_LIB}/libatlas.so; then
+		LIBS="-latlas ${LIBS}"
+	elif test -f ${BLAS_LIB}/libatlas.a; then
 		LIBS="-latlas ${LIBS}"
 	elif test -f ${SCALAPACK_LIB}/libatlas.a; then
 		LIBS="-latlas ${LIBS}"