[rkward-cvs] rkward/admin acinclude.m4.in,1.11,1.12

Thomas Friedrichsmeier tfry at users.sourceforge.net
Sun May 7 11:47:54 UTC 2006


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

Modified Files:
	acinclude.m4.in 
Log Message:
only link against -lRlapack, if that is available

Index: acinclude.m4.in
===================================================================
RCS file: /cvsroot/rkward/rkward/admin/acinclude.m4.in,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** acinclude.m4.in	17 Apr 2006 14:06:29 -0000	1.11
--- acinclude.m4.in	7 May 2006 11:47:52 -0000	1.12
***************
*** 1858,1861 ****
--- 1858,1862 ----
  AC_REQUIRE([CHECK_LIBRSO])
  AC_REQUIRE([CHECK_RINCLUDE])
+ AC_REQUIRE([CHECK_RLAPACK])
  dnl ############################################ RKWARD specific addition end ###################################
  
***************
*** 1901,1904 ****
--- 1902,1920 ----
  ])
  
+ dnl for at least some versions of R, we seem to have to link against -lRlapack. 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_RLAPACK],
+ [
+ AC_MSG_CHECKING(whether we should link against libRlapack.so)
+ if test -f "$R_HOMEDIR/lib/libRlapack.so"; then
+    AC_MSG_RESULT($R_HOMEDIR/lib/libRlapack.so exists, so we'll link against it)
+    R_LAPACK_FLAG="-lRlapack"
+ else
+    R_LAPACK_FLAG=""
+ fi
+    AC_SUBST(R_LAPACK_FLAG)
+ ])
+ 
  
  dnl find out R_INLUCDE_DIR





More information about the rkward-tracker mailing list