guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: guile & automake


From: Thien-Thi Nguyen
Subject: Re: guile & automake
Date: Sat, 31 Aug 2002 12:55:59 -0700

   From: address@hidden (Robert Uhl <address@hidden>)
   Date: 31 Aug 2002 11:19:40 -0600

   [GUILE_SITE_DIR causes problems with "make distcheck"]

GUILE_SITE_DIR uses guile-config to get its value.

guile-config does not preserve '${prefix}' so its variables are not
amenable to "configure --prefix" used by "make distcheck".

unfortunately, vars adopting the ${prefix}-preseriving convention would
not be (easily) usable from scheme.  fortunately, guile-config is a
program that we can extend to DTRT:

  guile-config info [VAR]           -- same as it ever was
  guile-config re-prefix-info [VAR] -- replace PREFIX with '${prefix}'

thus, we would see:

  $ guile-config info pkgdatadir
  /usr/local/share/guile/site

  $ guile-config re-prefix-info pkgdatadir
  ${prefix}/share/guile/site

then guile.m4 can use the latter invocation.  i have made these changes
for guile-1.4.1.82; NEWS excerpt below.  (in about half an hour) see:

  http://www.glug.org/tmp/2002-09/

for tarball.  thanks for pointing out this non-conventional behavior.

thi


______________________________________
* guile.m4 changes

The GUILE_SITE_DIR macro now uses "guile-config re-prefix-info" so that
it is amenable to "configure --prefix", useful in "make distcheck", for
example.

Note that the guile.m4 file is now distributed in subdir am/ although it
is still installed in the same place.

* Additional subcommands for guile-config (plus bugfix)

The program guile-config now can also retrieve config.status and
libguile/scmconfig.h information captured during the Guile build.
Also, "info" vars can be "re-prefixed".  Briefly, the usages are:

   guile-config link
   guile-config compile
   guile-config info [VAR]
   guile-config re-prefix-info [VAR]
   guile-config scmconfig SYMBOL
   guile-config acsubst VAR

Invoke with no arguments for details.  Also, "guile-config link"
now includes "-lltdl", which was omitted previously.

[end]




reply via email to

[Prev in Thread] Current Thread [Next in Thread]