[Rd] solaris without x
Erich Neuwirth
erich.neuwirth@univie.ac.at
Wed, 15 Mar 2000 21:42:17 +0100
ok,
i managed to create a non x-rated version of R
i am not an expert in writing configurations,
so i just give the changes.
perhaps some kind soul can integrate them into configure and
the different Makefile.in
or wheerever chanegs are needed.
-=-=-=-=-=-=
the following changes are needed:
necessary changes in
src/unix/Makefile
old
SOURCES = dataentry.c devX11.c dynload.c edit.c rotated.c \
system.c sys-unix.c sys-common.c
--->
new
SOURCES = dynload.c edit.c \
system.c sys-unix.c sys-common.c
probably sensible changes:
remove
HEADERS = dataentry.h devX11.h rotated.h
-=-=-=-=-=-=-=-=-=-=-
necessary changes in
src/main/devices.c
#ifdef Unix
has to be changed to
Unix AND X11
(or whatever the syntax needed is)
-=-=-=-=-=-=-=-=-=-=-
necessary changes in
src/main/names.c
remove the entry
{"dataentry", do_dataentry, 0, 11, 1, PP_FUNCALL},
-=-=-=-=-=-=-=-=-=-=-
necessary changes in
src/unix/system.c
1. remove
case XActivity:
R_ProcessEvents();
break;
2. remove
#include "devX11.h"
#define XActivity 1
int connectionfd = X11ConnectionNumber();
3. remove
if (connectionfd > 0) {
FD_SET(connectionfd, &readMask);
if (connectionfd > stdinfd)
maxfd = connectionfd;
4. remove
if (connectionfd > 0)
if (FD_ISSET(connectionfd, &readMask))
return XActivity;
-=-=-=-=-=-=-=-=-=-=-
> However, last I tried (a couple of years back, admittedly...) it
> wasn't terribly difficult to force the sources to compile without X.
> Basically, place R on the operating table and rip out the relevant
> internal organs... I.e. you need to remove the entire dataentry.c and
> devX11.c and all references to X include files and functions in other
> places.
>
> If you figure out how to do this with proper #ifdef'ing I think we'd
> like to have the patches (it is much easier to get right on a system
> that doesn't actuallly have X11, and gives an error if one forget to
> remove something...).
>
--
Erich Neuwirth, Computer Supported Didactics Working Group
Visit our SunSITE at http://sunsite.univie.ac.at
Phone: +43-1-4277-38624 Fax: +43-1-4277-9386
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._