Problem in "configure" for Solaris (cc) -- solved (partly) --

Peter Dalgaard BSA
18 Aug 1998 21:39:34 +0200

Prof Brian Ripley <> writes:

> $ CC=cc CFLAGS=-O2 ./configure
> $ cat config.log
> This file contains any messages produced by compilers while
> running configure, to aid debugging if configure makes a mistake.
> configure:708: checking for a BSD compatible install
> Note, no details of the compiler failure appear ....

Hmmm. Yes. Easily reproduced on other systems by using:

CC=/bin/false ./configure

The basic problem here is that this part of is handwritten,
and doesn't use the "autoconf conventions" (which are probably as
well-documented as certain aspects of R...) of sending the compile
commands and in the case of failure also the program contents to file
descriptor 5.  I.e. what yields all the constructions of the type

if { (eval echo configure:1475: \"$ac_link\") 1>&5; (eval $ac_link)
2>&5; } && test -s conftest; then
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"

There must be a relevant macro for this somewhere?

   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (             FAX: (+45) 35327907
r-devel mailing list -- Read
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: