From fa37965ab08ce66875be15f340e54f4c283075d9 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Wed, 28 Dec 2011 18:20:30 +0100 Subject: cmake: Add a define to see if we have ecc support. --- ConfigureChecks.cmake | 3 +++ config.h.cmake | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 197ae21d..80ab7599 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -85,6 +85,9 @@ if (HAVE_OPENSSL_EC_H AND HAVE_OPENSSL_ECDSA_H) set(HAVE_OPENSSL_ECC 1) endif (HAVE_OPENSSL_EC_H AND HAVE_OPENSSL_ECDSA_H) +if (HAVE_OPENSSL_ECC) + set(HAVE_ECC 1) +endif (HAVE_OPENSSL_ECC) # FUNCTIONS check_function_exists(strncpy HAVE_STRNCPY) diff --git a/config.h.cmake b/config.h.cmake index 334e8459..67a6b204 100644 --- a/config.h.cmake +++ b/config.h.cmake @@ -47,8 +47,12 @@ /* Define to 1 if you have the header file. */ #cmakedefine HAVE_PTHREAD_H 1 +/* 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 */ +#cmakedefine HAVE_ECC 1 + /*************************** FUNCTIONS ***************************/ /* Define to 1 if you have the `snprintf' function. */ -- cgit v1.2.3