Additional autoconf test for linuxppc/mklinux
Fred Bacon
bacon@mediaone.net
Tue, 24 Nov 1998 00:08:35 +0000
This is a multi-part message in MIME format.
--------------B1771E3EA5AC1A7BE37E1417
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
I am attaching a patch to R-0.63's configure.in file which will enable
R to detect and use some special math libraries on linuxppc and mklinux.
The patch provides tests for these libraries and enable/disable switches
for them as well.
One library is the libmoto math library which must be used in
conjunction
with libm (it only replaces some of libm's functions). The other is a
RISC optimized BLAS library, libblas_risc, which must be used along with
a standard implementation of BLAS, libblas. It only provides optimized
versions of GEMM routines for single and double precision real values.
Please let me know if the tests cause problems on other architectures.
--
Fred Bacon
==========================================================================
Aerodyne Research, Inc. Phone: (978) 663-9500 ext.
273
45 Manning Rd. FAX: (978) 663-4918
Billerica, MA 01821-3976 http://www.aerodyne.com
==========================================================================
People who want to share their religious views with you almost never
want
you to share yours with them. -- Dave Barry
--------------B1771E3EA5AC1A7BE37E1417
Content-Type: text/plain; charset=us-ascii;
name="R-0.63.ppc.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="R-0.63.ppc.patch"
diff -ur R-0.63/configure.in R-0.63.new/configure.in
--- R-0.63/configure.in Fri Nov 13 13:13:56 1998
+++ R-0.63.new/configure.in Sun Nov 22 17:54:46 1998
@@ -94,6 +94,14 @@
## Here we should maybe check that only one of the above options for
## dealing with FORTRAN were specified.
+AC_ARG_ENABLE(libmoto,
+ [ --enable-libmoto use libmoto math library (if available)],
+ [ if test "${enableval}"=no;
+ then use_libmoto=false;
+ else use_libmoto=true;
+ fi],
+ use_libmoto=true)
+
AC_ARG_ENABLE(blas,
[ --enable-blas use BLAS library (if available)],
[if test "${enableval}" = no;
@@ -102,6 +110,14 @@
fi],
use_blas=true)
+AC_ARG_ENABLE(blas_risc,
+ [ --enable-blas_risc use RISC Optimized BLAS library (if available)],
+ [ if test "${enableval}" = no;
+ then use_blas_risc=false;
+ else use_blas_risc=true; use_blas=true;
+ fi],
+ use_blas_risc=true; use_blas=true)
+
AC_ARG_ENABLE(dxml,
[ --enable-dxml use DXML library (if available)],
[if test "${enableval}" = no;
@@ -396,6 +412,9 @@
export LD_LIBRARY_PATH
AC_CHECK_LIB(m, sin)
+if ${use_libmoto}; then
+ AC_CHECK_LIB(moto,sin)
+fi
AC_CHECK_LIB(ncurses, main,,
AC_CHECK_LIB(termcap, main,,
AC_CHECK_LIB(termlib, main)
@@ -413,6 +432,11 @@
fi
)
fi
+
+if ${use_blas_risc}; then
+ AC_CHECK_LIB(blas_risc, main, FLIBS="-lblas_risc ${FLIBS}" BLAS="",,-lblas -lf2c)
+fi
+
AC_SUBST(BLAS)
for arg in ${LIBS}; do
case ${arg} in
--------------B1771E3EA5AC1A7BE37E1417--
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._