[pro] library configuration

Hans Hübner hans.huebner at gmail.com
Tue Jun 28 15:33:01 UTC 2011


I made a moderation error, so I'm forwarding this message manually. -Hans

---------- Forwarded message ----------
From: Tamas Papp <tkpapp at gmail.com>
To: pro at common-lisp.net
Date: Tue, 28 Jun 2011 12:26:24 +0000 (UTC)
Subject: library configuration
Hi,

A user of my LLA library asked for more flexibility in specifying which
foreign library to load.  For example, BLAS/LAPACK come in so many
variants that it is impossible to cover them with the :or feature of
cffi:define-foreign-library, especially because users have their own
preferences when more than one is available.

I am looking for a portable way to specify configuration for a library
before/during loading with ASDF2.  It would be sufficient if the user
could specify an ALIST (or something similar) somewhere and I could read/
use it when the library is loaded.  Does ASDF2 have a "standard"
mechanism for library config files (eg where they are, how to handle them
etc), or should I use something else?  I thought of using *features*, but
I need actual values instead of merely checking for the presence of
symbols.

Any suggestions are welcome.

Thanks,

Tamas




More information about the pro mailing list