aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2011-08-30 00:44:46 +0200
committerAndreas Schneider <asn@cryptomilk.org>2011-08-30 00:44:46 +0200
commit85d12f6774abd216fef571da48a3bdfd1c5ef169 (patch)
tree06699ac56f5fa5c8e02c9eb1c978e65366271bb9
parent6bf8dfa073028374767cba684df9a06abd34a997 (diff)
downloadlibssh-85d12f6774abd216fef571da48a3bdfd1c5ef169.tar.gz
libssh-85d12f6774abd216fef571da48a3bdfd1c5ef169.tar.xz
libssh-85d12f6774abd216fef571da48a3bdfd1c5ef169.zip
cmake: Add ec.h and ecdsa.h checks.
-rw-r--r--ConfigureChecks.cmake10
-rw-r--r--config.h.cmake6
2 files changed, 16 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index 435098fa..2200621d 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -71,10 +71,20 @@ check_include_file(openssl/des.h HAVE_OPENSSL_DES_H)
set(CMAKE_REQUIRED_INCLUDES ${OPENSSL_INCLUDE_DIRS})
check_include_file(openssl/ecdh.h HAVE_OPENSSL_ECDH_H)
+set(CMAKE_REQUIRED_INCLUDES ${OPENSSL_INCLUDE_DIRS})
+check_include_file(openssl/ec.h HAVE_OPENSSL_EC_H)
+
+set(CMAKE_REQUIRED_INCLUDES ${OPENSSL_INCLUDE_DIRS})
+check_include_file(openssl/ecdsa.h HAVE_OPENSSL_ECDSA_H)
+
if (CMAKE_HAVE_PTHREAD_H)
set(HAVE_PTHREAD_H 1)
endif (CMAKE_HAVE_PTHREAD_H)
+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)
+
# FUNCTIONS
check_function_exists(strncpy HAVE_STRNCPY)
diff --git a/config.h.cmake b/config.h.cmake
index f08c3801..d61f5859 100644
--- a/config.h.cmake
+++ b/config.h.cmake
@@ -38,10 +38,16 @@
/* Define to 1 if you have the <openssl/ecdh.h> header file. */
#cmakedefine HAVE_OPENSSL_ECDH_H 1
+/* Define to 1 if you have the <openssl/ec.h> header file. */
+#cmakedefine HAVE_OPENSSL_EC_H 1
+
+/* Define to 1 if you have the <openssl/ecdsa.h> header file. */
+#cmakedefine HAVE_OPENSSL_ECDSA_H 1
/* Define to 1 if you have the <pthread.h> header file. */
#cmakedefine HAVE_PTHREAD_H 1
+#cmakedefine HAVE_OPENSSL_ECC 1
/*************************** FUNCTIONS ***************************/