Re: puzzle: from Guile executable to --prefix and --exec-prefix

Bill Janssen (janssen@parc.xerox.com)
Tue, 27 May 1997 10:07:24 PDT

Excerpts from direct: 25-May-97 puzzle: from Guile executa.. Jim
Blandy@cyclic.com (335)

> >I'm writing configuration scripts, and I'd like to be able to go from
> >the path of the Guile interpreter to the --prefix and --exec-prefix
> >options that Guile was configured with.

> This is an interesting question. Can you tell us more about what
> you're trying to do? (i.e. I suspect more context would yield a
> better solution...)

Sure. I'm writing an autoconf script that tries to figure out whether
to configure Guile into a system (ILU). If so, I need to figure out
where libguile.{a,so} live, and where the Guile include files are, so
that I can compile properly. Autoconf does best at finding executables
on the PATH. So my strategy is to find the guile executable, then
derive the locations of the library and the includes files from its
location. Not infallible, I know, but should work in the majority of
cases. It would be very helpful if the values of PREFIX and EXEC_PREFIX
were directly available as bound symbols in the Guile executable.
Python, for instance, does this.

Bill