From tov@phoenix.ece.cmu.edu  Fri Jun 16 15:32:36 2000
From: tov@phoenix.ece.cmu.edu (tov@phoenix.ece.cmu.edu)
Date: Fri, 16 Jun 2000 16:32:36 +0200 (MET DST)
Subject: [Rd] Missing -lm for tcltk (R 1.1.0, AIX 4.3) (PR#573)
Message-ID: <200006161432.QAA02711@pubhealth.ku.dk>

Hi,

  ok, AIX 4.3 insists on being different.  I can't compile --with-tcltk
  out of the box.  I have to add '-lm' to the SHLIBLDFLAGS manually
  after configure.
  Which brings up the question:  Can you use TK_LIBS instead of TK_XLIBSW
  during configure? Excerpt from tkConfig.sh on my machine:

# Linker switch(es) to use to link with the X11 library archive.
TK_XLIBSW='-lX11' 

# Additional libraries to use when linking Tk.
TK_LIBS='-lX11 -lld  -lm' 

  The '-lld' wouldn't hurt, would it?
  Maybe the following would work for configure?

case "${host}" in
  *aix*)
    LIBS="-ltk${TK_VERSION} ${TCLTK_LIBS} ${TK_LIBS}  $LIBS"
    ;;      
  *)
    LIBS="-ltk${TK_VERSION} ${TCLTK_LIBS} ${TK_XLIBSW}  $LIBS"
    ;;      
esac      

  I'll try that myself, but compilation takes a long, long time...
  Thanks,
    -tom


--please do not edit the information below--

Version:
 platform = powerpc-ibm-aix4.3.2.0
 arch = powerpc
 os = aix4.3.2.0
 system = powerpc, aix4.3.2.0
 status = 
 major = 1
 minor = 1.0
 year = 2000
 month = June
 day = 15
 language = R

Search Path:
 .GlobalEnv, Autoloads, package:base

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


[Rd] Missing -lm for tcltk (R 1.1.0, AIX 4.3) (PR#573)
tov@phoenix.ece.cmu.edu