From ffa54887cef6a8e36b2d63e7e9139ac11863a525 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Mon, 14 Sep 2015 03:54:16 -0500 Subject: Add additional cryptographic card functions to tdehwlib Fix FTBFS on old distributions --- CMakeLists.txt | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 96b72e0b6..4621f92f5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -696,6 +696,15 @@ if( WITH_CRYPTSETUP ) message(FATAL_ERROR "\ncryptsetup support was requested, but libcryptsetup was not found on your system" ) endif( NOT LIBCRYPTSETUP_FOUND ) set( HAVE_CRYPTSETUP 1 ) + if ( HAVE_CRYPTSETUP ) + check_c_source_compiles(" + #include + int main(int argc, char *argv[]) { crypt_keyslot_info status = CRYPT_SLOT_INVALID; return 0; } " + HAVE_NEW_CRYPTSETUP ) + endif( ) + if ( NOT HAVE_NEW_CRYPTSETUP ) + set( CRYPTSETUP_OLD_API 1 ) + endif( ) endif( ) -- cgit v1.2.1