Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
build/pkgs/r/spkg-configure.m4: Do not use system R on cygwin
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Koeppe committed Apr 20, 2020
1 parent 10ed24e commit 032eb86
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions build/pkgs/r/spkg-configure.m4
Original file line number Diff line number Diff line change
@@ -1,16 +1,22 @@
SAGE_SPKG_CONFIGURE([r], [
m4_pushdef([SAGE_R_MINVER],["3.4.4"])
SAGE_SPKG_DEPCHECK([atlas openblas iconv readline bzip2 xz pcre curl], [
PKG_CHECK_MODULES([R], [libR >= $SAGE_R_MINVER], [
AC_PATH_PROG([R], [R])
AS_IF([test "x$R" = x], [
AC_MSG_NOTICE([R is not found])
sage_spkg_install_r=yes
], [
dnl TODO: check that versions of R and libR match
sage_spkg_install_r=no
])
], [sage_spkg_install_r=yes])
AS_CASE([$host],
[*-*-cygwin*], [
dnl #29486: rpy2 2.8.x does not build against system R on cygwin.
sage_spkg_install_r=yes
], [
PKG_CHECK_MODULES([R], [libR >= $SAGE_R_MINVER], [
AC_PATH_PROG([R], [R])
AS_IF([test "x$R" = x], [
AC_MSG_NOTICE([R is not found])
sage_spkg_install_r=yes
], [
dnl TODO: check that versions of R and libR match
sage_spkg_install_r=no
])
], [sage_spkg_install_r=yes])
])
])
m4_popdef([SAGE_R_MINVER])
])

0 comments on commit 032eb86

Please sign in to comment.