Simon Josefsson jas@extundo.com writes:
The for loop is in several places, my version only has sys/types.h in one of them. After I added it to the for loop at line 78, for uintptr_t, and to line 94, for uint32_t, someone using cygwin managed to get it to work.
I see. I'm changing the AX_CREATE_STDINT_H invocation to
# According to Simon Josefsson, looking for uint32_t and friends in # sys/types.h is needed on some systems, in particular cygwin. AX_CREATE_STDINT_H([nettle-types.h], [sys/types.h])
I guess one solution is to add sha.h, but not sha*.c, so hmac.h works, but since I don't need SHA, it feels slightly confusing.
Any ideas appreciated. Of course, all this is very minor.
Perhaps it would make sense to add something like
#ifndef NETTLE_WANT_HMAC_SHA1 # define NETTLE_WANT_HMAC_SHA1 1 #endif
...
#if NETTLE_WANT_HMAC_SHA1 # include "sha.h" ... hmac-sha1-related stuff ... #endif
to hmac.h. Then you can just add -DNETTLE_WANT_HMAC_SHA1=0 to your CPPFLAGS. It will clutter up the header files a little, especially if it's done consistently for other header files that declares many related structures.
(I've also been thinking of hacks where hmac.h examines NETTLE_SHA_H_INCLUDED, but I dislike that because I don't want the order of the #include directives in users' files to matter).
Regards, /Niels