diff options
-rw-r--r-- | ConfigureChecks.cmake | 3 | ||||
-rw-r--r-- | config.h.cmake | 1 |
2 files changed, 4 insertions, 0 deletions
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 |