[Rd] extra flags for cc and f77 on alpha (PR#420)

albrecht.gebhardt@uni-klu.ac.at albrecht.gebhardt@uni-klu.ac.at
Tue, 8 Feb 2000 11:21:37 +0100 (MET)

Full_Name: Albrecht Gebhardt
Version: 0.99.0
OS: alpha, osf4.0
Submission from: (NULL) (

Im not sure if this is really correct, but it has proven to work.

1. It is always a good idea to add -std1 to DEC cc's flags to force 
strict ANSI language mode. It was neccessary for 0.90.x to compile, 
so I used it for 0.99.0 too
2. I'm not sure if -fpe3 is neccessary for DEC f77, but it seems to 
enable IEEE floating point exception handling (if I understood what 
was said in the manpage). Correct me if I'm wrong.  

Patch below.

--- ./configure.in.cc-conf-patch	Mon Feb  7 19:47:09 2000
+++ ./configure.in	Mon Feb  7 21:50:36 2000
@@ -440,6 +455,13 @@
       R_XTRA_CFLAGS="${R_XTRA_CFLAGS} -ieee_with_inexact")
+    if test -z "${GCC}"; then
+      R_PROG_CC_FLAG(-std1,
+        R_XTRA_CFLAGS="${R_XTRA_CFLAGS} -std1")
+    fi
+    if test -z "${G77}"; then
+        R_XTRA_FFLAGS="${R_XTRA_FFLAGS} -fpe3"
+    fi

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