Am Mittwoch, 6. Februar 2013 schrieb Ludovic Courtès:
> Andreas Enge <andr...@enge.fr> skribis:
> > checking whether libgcrypt can be dynamically loaded... no
> > configure: error: GNU libgcrypt does not appear to be usable; see
> > `--with- libgcrypt-prefix' and `README'.
> Just pass --with-libgcrypt-prefix=$HOME/.guix-profile/lib.

Yes, that should work, but...

> The code corresponding to the check above is simple-minded (it’s in
> m4/guix.m4).  All it does is:
>   guile -c "(dynamic-func \"gcry_md_hash_buffer\" (dynamic-link
> \"$LIBGCRYPT\"))"
> and checks its return code.
> Passing --with-libgcrypt-prefix allows it to work with non-standard
> prefixes.

... under guix, $HOME/.guix-profile/{lib,...} is the standard prefix ;-)

So would it be possible to modify the test so that it takes LIBRARY_PATH 
into account? (If it were C, the AC macros would do that automatically.) Or 
could one simply use AC_CHECK_LIB?

If not, a possible work-around would be to check explicitly with the 
$HOME/.guix-profile/lib prefix.

Andreas

Reply via email to