[PPL-devel] Locating sicstus.h

Roberto Bagnara bagnara at cs.unipr.it
Fri Oct 21 12:09:55 CEST 2005


Most people installing SICStus onto some non-standard place,
will set their PATH environment variable so that the command
`sicstus' does the right thing.  Exploiting this fact,
I would like to know where is sicstus.h located.
In other words, I need something like what is offered
by SWI-Prolog as follows:

$ pl -dump-runtime-variables
CC="gcc";
PLBASE="/usr/local/lib/pl-5.4.7";
PLARCH="i686-linux";
PLLIBS="-ldl -lreadline -lncurses -lm -lrt ";
PLLIB="-lpl";
PLLDFLAGS="-export-dynamic  -O3 -pthread";
PLSOEXT="so";
PLVERSION="50407";
PLSHARED="yes";
PLTHREADS="yes";

Here, PLBASE tells me the installation path, and from there
I can retrieve everything.  Notice that I rely on the fact that
PATH has been set so that `pl' works.

What is the simplest way to achieve this effect for SICStus?
Many thanks,

    Roberto

-- 
Prof. Roberto Bagnara
Computer Science Group
Department of Mathematics, University of Parma, Italy
http://www.cs.unipr.it/~bagnara/
mailto:bagnara at cs.unipr.it



More information about the PPL-devel mailing list