[rkward-cvs] rkward/admin acinclude.m4.in,1.15,1.16

Thomas Friedrichsmeier tfry at users.sourceforge.net
Thu Sep 14 16:28:05 UTC 2006


Update of /cvsroot/rkward/rkward/admin
In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv583/admin

Modified Files:
	acinclude.m4.in 
Log Message:
Fix compilation for R 2.4.0

Index: acinclude.m4.in
===================================================================
RCS file: /cvsroot/rkward/rkward/admin/acinclude.m4.in,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** acinclude.m4.in	13 Sep 2006 12:16:30 -0000	1.15
--- acinclude.m4.in	14 Sep 2006 16:28:02 -0000	1.16
***************
*** 1915,1918 ****
--- 1915,1919 ----
  AC_REQUIRE([CHECK_RINCLUDE])
  AC_REQUIRE([CHECK_RLAPACK])
+ AC_REQUIRE([CHECK_RBLAS])
  dnl ############################################ RKWARD specific addition end ###################################
  
***************
*** 1974,1977 ****
--- 1975,1993 ----
  ])
  
+ dnl for at least some versions of R, we seem to have to link against -lRblas. Else loading some
+ dnl R packages will fail due to unresolved symbols. However, we can't do this unconditionally,
+ dnl as this is not available in some configurations of R
+ AC_DEFUN([CHECK_RBLAS],
+ [
+ AC_MSG_CHECKING(whether we should link against libRblas.so)
+ if test -f "$R_HOMEDIR/lib/libRblas.so"; then
+    AC_MSG_RESULT(yes $R_HOMEDIR/lib/libRblas.so exists)
+    R_BLAS_FLAG="-lRblas"
+ else
+    AC_MSG_RESULT(no $R_HOMEDIR/lib/libRblas.so does not exist)
+    R_BLAS_FLAG=""
+ fi
+    AC_SUBST(R_BLAS_FLAG)
+ ])
  
  dnl find out R_INLUCDE_DIR





More information about the rkward-tracker mailing list