On 2014-06-27 Mats Erik Andersson <[email protected]> wrote: > Thank you for the reference. An important consistency follows.
> söndag den 27 april 2014 klockan 16:07 skrev Andreas Metzler detta: [...] > > #if GNUTLS_VERSION_NUMBER <= 0x020b00 [...] > This rewrites as > $ pkg-config --exists 'gnutls <= 2.12' [...] > > + Only link against and #include gcrypt for gnutls < 2.12. > > ++REQUIREGCRYPT := $(shell if pkg-config --exists 'gnutls < 2.12' ; then > > echo "-lgcrypt" ; fi ) > The difference between > pkg-config --exist 'gnutls < 2.12' > and > #if GNUTLS_VERSION_NUMBER <= 0x020b00 > is non-empty, namely the single version "2.12". Can this be intended? Hello, Actually the difference is bigger ;-) #if GNUTLS_VERSION_NUMBER <= 0x020b00 translates[1] to pkg-config --exists 'gnutls <= 2.11.0' So, yes there is indeed an unintended difference, however it is not really relevant. Because looking at gnutls stable versions (2.1[02].x), 2.10.x fails both tests and 2.12.x fullfills both of them. Actually digging out debian packages, it looks like at 2.12.0 times the GNUTLS_VERSION_NUMBER was slightly broken, 2.12.[01] has GNUTLS_VERSION_NUMBER 0x020b07. (2.11.7). So it is probably not worth investing more thought here. ;-) cu Andreas [1] printf "0x%02x%02x%02x\n" 2 11 0 -- `What a good friend you are to him, Dr. Maturin. His other friends are so grateful to you.' `I sew his ears on from time to time, sure' -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

