[rkward-cvs] rkward/admin acinclude.m4.in,1.6,1.7
Thomas Friedrichsmeier
tfry at users.sourceforge.net
Tue Feb 21 13:26:20 UTC 2006
- Previous message: [rkward-cvs] rkward/rkward/plugin rkstandardcomponent.cpp,NONE,1.1 rkstandardcomponent.h,NONE,1.1 Makefile.am,1.6,1.7 rkcomponent.cpp,1.2,1.3 rkcomponent.h,1.2,1.3 rkcomponentproperties.cpp,1.8,1.9 rkcomponentproperties.h,1.9,1.10
- Next message: [rkward-cvs] rkward ChangeLog,1.99,1.100 TODO,1.101,1.102 acinclude.m4,1.7,1.8 aclocal.m4,1.7,1.8 configure,1.30,1.31
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/rkward/rkward/admin
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25052/admin
Modified Files:
acinclude.m4.in
Log Message:
Autodetection of R_HOME, R_SHARE_DIR, etc. during configure. Should fix compilation/run-time issues with recent debian versions of R
Index: acinclude.m4.in
===================================================================
RCS file: /cvsroot/rkward/rkward/admin/acinclude.m4.in,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** acinclude.m4.in 13 Nov 2005 13:18:42 -0000 1.6
--- acinclude.m4.in 21 Feb 2006 13:26:18 -0000 1.7
***************
*** 1857,1860 ****
--- 1857,1863 ----
AC_REQUIRE([CHECK_RHOME])
AC_REQUIRE([CHECK_LIBRSO])
+ AC_REQUIRE([CHECK_RINCLUDE])
+ AC_REQUIRE([CHECK_RSHARE])
+ AC_REQUIRE([CHECK_RDOC])
dnl ############################################ RKWARD specific addition end ###################################
***************
*** 1869,1873 ****
AC_ARG_WITH(r-home,AC_HELP_STRING([--r-home=DIR],[specify location of R_HOME directory]),
use_r_home="$withval",
! use_r_home="/usr/local/lib/R"
)
r_home=
--- 1872,1876 ----
AC_ARG_WITH(r-home,AC_HELP_STRING([--r-home=DIR],[specify location of R_HOME directory]),
use_r_home="$withval",
! use_r_home=`R CMD sh -c 'echo $R_HOME' || echo "/usr/local/lib/R"`
)
r_home=
***************
*** 1877,1881 ****
AC_MSG_ERROR([
$use_r_home does not exist as a directory!
! Check your installation of R, and use --with-r-home to specify the correct location.])
fi
AC_SUBST(R_HOMEDIR)
--- 1880,1884 ----
AC_MSG_ERROR([
$use_r_home does not exist as a directory!
! Check your installation of R, and use --r-home to specify the correct location.])
fi
AC_SUBST(R_HOMEDIR)
***************
*** 1884,1887 ****
--- 1887,1891 ----
])
+
dnl check for existence of libR.so
AC_DEFUN([CHECK_LIBRSO],
***************
*** 1894,1900 ****
$R_HOMEDIR/lib/libR.so does not exist.
Check whether you have compiled R with shared library,
! and the --with-r-home setting was detected correctly above.])
fi
])
dnl ############################################ RKWARD specific addition end ###################################
--- 1898,1974 ----
$R_HOMEDIR/lib/libR.so does not exist.
Check whether you have compiled R with shared library,
! and the --r-home setting was detected correctly above.])
! fi
! ])
!
!
! dnl find out R_INLUCDE_DIR
! AC_DEFUN([CHECK_RINCLUDE],
! [
! AC_MSG_CHECKING(for R include files)
! AC_ARG_WITH(r-includes,AC_HELP_STRING([--r-includes=DIR],[specify location of R include files]),
! use_r_includes="$withval",
! use_r_includes=`R CMD sh -c 'echo $R_INCLUDE_DIR' || echo "$R_HOMEDIR/include"`
! )
!
! r_includes=
! if test -f "$use_r_includes/R.h"; then
! R_INCLUDEDIR="$use_r_includes"
! else
! AC_MSG_ERROR([
! $use_r_includes/R.h does not exist!
! Check your installation of R, and use --r-includes to specify the correct directory.])
! fi
! AC_SUBST(R_INCLUDEDIR)
!
! AC_MSG_RESULT($use_r_includes)
! ])
!
!
! dnl find out about R_SHARE_DIR
! AC_DEFUN([CHECK_RSHARE],
! [
! AC_MSG_CHECKING(for R_SHARE directory)
! AC_ARG_WITH(r-share,AC_HELP_STRING([--r-share=DIR],[specify location of R_SHARE directory]),
! use_r_share="$withval",
! use_r_share=`R CMD sh -c 'echo $R_SHARE_DIR' || echo "$R_HOMEDIR/share"`
! )
!
! r_share=
! if test -d "$use_r_share"; then
! R_SHAREDIR="$use_r_share"
! else
! AC_MSG_ERROR([
! $use_r_share does not exist as a directory!
! Check your installation of R, and use --r-share to specify the correct directory.])
! fi
! AC_SUBST(R_SHAREDIR)
!
! AC_MSG_RESULT($use_r_share)
! ])
!
!
! dnl find out about R_DOC_DIR
! AC_DEFUN([CHECK_RDOC],
! [
! AC_MSG_CHECKING(for R_DOC directory)
! AC_ARG_WITH(r-doc,AC_HELP_STRING([--r-doc=DIR],[specify location of R_DOC directory]),
! use_r_doc="$withval",
! use_r_doc=`R CMD sh -c 'echo $R_DOC_DIR' || echo "$R_HOMEDIR/doc"`
! )
!
! r_doc=
! if test -d "$use_r_doc"; then
! R_DOCDIR="$use_r_doc"
! else
! AC_MSG_ERROR([
! $use_r_doc does not exist as a directory!
! Check your installation of R, and use --r-doc to specify the correct directory.])
fi
+ AC_SUBST(R_DOCDIR)
+
+ AC_MSG_RESULT($use_r_doc)
])
+
dnl ############################################ RKWARD specific addition end ###################################
- Previous message: [rkward-cvs] rkward/rkward/plugin rkstandardcomponent.cpp,NONE,1.1 rkstandardcomponent.h,NONE,1.1 Makefile.am,1.6,1.7 rkcomponent.cpp,1.2,1.3 rkcomponent.h,1.2,1.3 rkcomponentproperties.cpp,1.8,1.9 rkcomponentproperties.h,1.9,1.10
- Next message: [rkward-cvs] rkward ChangeLog,1.99,1.100 TODO,1.101,1.102 acinclude.m4,1.7,1.8 aclocal.m4,1.7,1.8 configure,1.30,1.31
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the rkward-tracker
mailing list