+2010-04-14 Simon Josefsson <simon@josefsson.org>
+
+ * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
+ version 1.4.4 by default instead of requiring the libgcrypt
+ version used during build. This makes it possible to use the
+ application with older but still binary compatible libgcrypt
+ versions.
+
2010-04-13 Eric Blake <eblake@redhat.com>
getopt-gnu: match recent glibc fixes and posix ruling
#include <assert.h>
+#ifndef MIN_GCRYPT_VERSION
+# define MIN_GCRYPT_VERSION "1.4.4"
+#endif
+
/* Initialization. */
Gc_rc
if (gcry_control (GCRYCTL_DISABLE_SECMEM, NULL, 0))
return GC_INIT_ERROR;
- if (gcry_check_version (GCRYPT_VERSION) == NULL)
+ if (gcry_check_version (MIN_GCRYPT_VERSION) == NULL)
return GC_INIT_ERROR;
err = gcry_control (GCRYCTL_INITIALIZATION_FINISHED, NULL, 0);