diff options
-rw-r--r-- | CMakeLists.txt | 2 | ||||
-rw-r--r-- | ConfigureChecks.cmake | 6 | ||||
-rw-r--r-- | config.h.cmake | 3 |
3 files changed, 9 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 7ecad05..53953b8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -49,7 +49,7 @@ if (WITH_ZLIB) endif (WITH_ZLIB) if (WITH_GCRYPT) - find_package(GCrypt REQUIRED) + find_package(GCrypt 1.5.0 REQUIRED) if (NOT GCRYPT_FOUND) message(FATAL_ERROR "Could not find GCrypt") endif (NOT GCRYPT_FOUND) diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 80ab759..0e4f895 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -146,7 +146,11 @@ if (OPENSSL_FOUND) endif (OPENSSL_FOUND) if (GCRYPT_FOUND) - set(HAVE_LIBGCRYPT 1) + set(HAVE_LIBGCRYPT 1) + if (GCRYPT_VERSION VERSION_GREATER "1.4.6") + set(HAVE_GCRYPT_ECC 1) + set(HAVE_ECC 1) + endif (GCRYPT_VERSION VERSION_GREATER "1.4.6") endif (GCRYPT_FOUND) if (CMAKE_HAVE_THREADS_LIBRARY) diff --git a/config.h.cmake b/config.h.cmake index 67a6b20..03843e3 100644 --- a/config.h.cmake +++ b/config.h.cmake @@ -50,6 +50,9 @@ /* Define to 1 if you have eliptic curve cryptography in openssl */ #cmakedefine HAVE_OPENSSL_ECC 1 +/* Define to 1 if you have eliptic curve cryptography in gcrypt */ +#cmakedefine HAVE_GCRYPT_ECC 1 + /* Define to 1 if you have eliptic curve cryptography */ #cmakedefine HAVE_ECC 1 |