gEDA-dev: [PATCH] GAF: Compile libgeda even if libguile is missing

Bernd Jendrissek bernd.jendrissek at gmail.com
Wed Jul 25 04:20:33 EDT 2007


On 7/24/07, Peter Clifton <pcjc2 at cam.ac.uk> wrote:
>On Tue, 2007-07-24 at 18:10 +0100, Peter Clifton wrote:
> > What (might) be handy is a conditionally compiled compatibility layer
> > for any functions / functionality not present in guile-1.6. I've
> > honestly no idea what those are, or how much work would be required
> > though.
>
> Ok, now I do....
>
> See attached header file and diff.
>
> What I don't know, is how best to tie this into the auto-foo. For
> testing, I hacked a #include in config.h

I would say just sprinkle some magic AC_CHECK_DECLS pixie dust, guard
your fallback definitions with #if HAVE_SCM_IS_STRING et al, and then
*always* include your compatibility header.  Mind that you use #if and
not #ifdef...

> (Be warned, the locale string stuff is probably bogus, but seems to work
> at least superficially. TODO: Check the memory allocated is free'd
> appropriately!)

Hmm, according to guile's info page your scm_to_locale_string() is
fine.  It's the caller's responsibility to free() the return value.


More information about the geda-dev mailing list