From palme@uni-wuppertal.de  Wed Mar 25 15:01:21 1998
From: palme@uni-wuppertal.de (Hubert Palme)
Date: Wed, 25 Mar 1998 16:01:21 +0100 (MET)
Subject: POSIX regular expressions on Irix 5.3
In-Reply-To: <199803181946.HAA14615@stat1.stat.auckland.ac.nz>
References: <199803181946.HAA14615@stat1.stat.auckland.ac.nz>
Message-ID: <199803251501.QAA21283@wrin27.urz.uni-wuppertal.de>

OK, now I got it. But it is a pain to install R on Irix systems
without having gcc!

Ross Ihaka: 
 > If you look in the R source tree in R/src/regex you will find a version
 > of Henry Spencer's regular expression library.  You could try compiling
 > and installing that (you will need to modify the Makefile).  Some SGI
 > compilers have trouble with it, but it may work for you.

It doesn't compile. There is a header file missing.

 > 
 > If that doesn't work, there are a number of GNU regular expression
 > libraries, which you can get from the usual GNU places.  Install one
 > of them and then try again.  You may also want to pick up a recent version
 > of the readline library at the same time.
 > 
 > I'd be interested in a report if you are successful.
 > 
 > 	Ross

I installed the rx and readline libraries in /usr/local. Then I had to 
do a lot of changes changes to compile successfully. I append them.

I strongly recommend to make 'configure' smart enough to check for the
rx library (librx.a, rxposix.h) if necessary -- also in /usr/local! 


Another strange thing:

checking for main in -lreadline... yes
...
checking for readline/history.h... no

This file does exist! (in /usr/local/include -- is that the problem?) 


And, please, insert

SHELL = /bin/sh

in the Makefile's not generated by configure (those ones are OK)!


Thanks for R!

H.P.


Here are the changes:

*** src/include/Platform.h.origin       Tue Mar 24 15:47:24 1998
--- src/include/Platform.h      Tue Mar 24 15:56:43 1998
***************
*** 42,48 ****
  /* #undef USE_BUILTIN_RINT */
  
  /* POSIX Regular Expressions Available */
! /* #undef HAVE_REGCOMP */
  
  /* Compatibility for "memmove" on older BSD platforms */
  #define HAVE_MEMMOVE 1
--- 42,48 ----
  /* #undef USE_BUILTIN_RINT */
  
  /* POSIX Regular Expressions Available */
! #define HAVE_REGCOMP 1
  
  /* Compatibility for "memmove" on older BSD platforms */
  #define HAVE_MEMMOVE 1

*** src/main/Makefile.origin    Tue Mar 24 15:47:08 1998
--- src/main/Makefile   Tue Mar 24 16:26:14 1998
***************
*** 1,11 ****
  # Generated automatically from Makefile.in by configure.
  CC=cc
! CFLAGS=-g -I../include
  LDCMD=cc
  DLLFLAGS=
  PICFLAGS=
  SHLIBLDFLAGS=-shared
! LIBS=-ldl -lreadline -ltermcap -lm 
  X_CFLAGS=
  X_LIBS= -lX11
  X_EXTRA_LIBS=
--- 1,11 ----
  # Generated automatically from Makefile.in by configure.
  CC=cc
! CFLAGS=-g -I../include -I/usr/local/include
  LDCMD=cc
  DLLFLAGS=
  PICFLAGS=
  SHLIBLDFLAGS=-shared
! LIBS=-ldl -lreadline -ltermcap -lm -lrx 
  X_CFLAGS=
  X_LIBS= -lX11
  X_EXTRA_LIBS=

*** src/unix/Makefile.origin    Tue Mar 24 15:47:10 1998
--- src/unix/Makefile   Tue Mar 24 16:19:34 1998
***************
*** 1,6 ****
  # Generated automatically from Makefile.in by configure.
  CC=cc
! CFLAGS=-g -I../include
  AR=ar
  RANLIB=:
  X_CFLAGS=
--- 1,6 ----
  # Generated automatically from Makefile.in by configure.
  CC=cc
! CFLAGS=-g -I../include -I/usr/local/include
  AR=ar
  RANLIB=:
  X_CFLAGS=

-- 
======================================================================
Hubert Palme         Bergische Universitaet-Gesamthochschule Wuppertal
                                      Computing  Center
                                      D-42097 Wuppertal
Email: palme@uni-wuppertal.de             (Germany)
http://www.hrz.uni-wuppertal.de/hrz/personen/h_palme.html
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


POSIX regular expressions on Irix 5.3
Hubert Palme