configure -- braindead failure message

Simon Josefsson simon at josefsson.org
Sun Jan 2 10:36:27 CET 2011


Heiko Berges <gnubug at bsls.de> writes:

> Hi,
>
> I'd expect that at least GNU people themself would know how to use
> autoconf, espacially how to design the tests and errormessages in 
> a way so they resamble the problem:
>
> # (blahblah)
> # | #include <gcrypt.h>
> # | int
> # | main ()
> # | {
> # | enum gcry_cipher_algos i = GCRY_CIPHER_CAMELLIA128
> # |   ;
> # |   return 0;
> # | }
> # configure:7485: result: no
> # configure:7516: error:
> # ***
> # *** libgcrypt was not found. You may want to get it from
> # *** ftp://ftp.gnupg.org/gcrypt/libgcrypt/  
> # ***
>
> Wrong.
>
> # $ libgcrypt-config --version
> # 1.2.0
>
> Too old, probably.  Doesn't know about CAMELLIA, in fact.   But I
> will never know, if you use a new feature to test for the existence 
> of library.

I've changed the error message to say:

***  
*** Libgcrypt v1.4.0 or later was not found. You may want to get it from
*** ftp://ftp.gnupg.org/gcrypt/libgcrypt/
***

If we can do anything more to improve the situation, please tell us.

/Simon




More information about the Gnutls-devel mailing list