From 9b43dad109b0e66247a7c909d5cc96bade3cea56 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 24 Mar 2020 07:22:37 +0100 Subject: cmake: Check for pam_modutil_search_key Signed-off-by: Andreas Schneider Reviewed-by: Ralph Boehme --- ConfigureChecks.cmake | 3 +++ config.h.cmake | 1 + 2 files changed, 4 insertions(+) diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 1d5ca9a..8dcf978 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -77,6 +77,9 @@ set(CMAKE_REQUIRED_LIBRARIES ${PAM_LIBRARY}) check_function_exists(pam_syslog HAVE_PAM_SYSLOG) check_function_exists(pam_vsyslog HAVE_PAM_VSYSLOG) check_function_exists(pam_start_confdir HAVE_PAM_START_CONFDIR) +# This is available in current PAM master and will be used as a workaround +# till pam_start_confdir() is available. +check_function_exists(pam_modutil_search_key HAVE_PAM_MODUTIL_SEARCH_KEY) unset(CMAKE_REQUIRED_LIBRARIES) # OPTIONS diff --git a/config.h.cmake b/config.h.cmake index 4e74315..01a54f3 100644 --- a/config.h.cmake +++ b/config.h.cmake @@ -21,6 +21,7 @@ #cmakedefine HAVE_PAM_VSYSLOG 1 #cmakedefine HAVE_PAM_SYSLOG 1 #cmakedefine HAVE_PAM_START_CONFDIR 1 +#cmakedefine HAVE_PAM_MODUTIL_SEARCH_KEY 1 #cmakedefine HAVE_PAM_VPROMPT_CONST 1 #cmakedefine HAVE_PAM_PROMPT_CONST 1 -- cgit v1.2.3