aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt2
-rw-r--r--ConfigureChecks.cmake6
-rw-r--r--config.h.cmake3
3 files changed, 9 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7ecad05e..53953b8e 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 80ab7599..0e4f8958 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 67a6b204..03843e3e 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