summaryrefslogtreecommitdiffstats
path: root/kcheckpass/ConfigureChecks.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'kcheckpass/ConfigureChecks.cmake')
-rw-r--r--kcheckpass/ConfigureChecks.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/kcheckpass/ConfigureChecks.cmake b/kcheckpass/ConfigureChecks.cmake
index d6d62f55b..902e6628d 100644
--- a/kcheckpass/ConfigureChecks.cmake
+++ b/kcheckpass/ConfigureChecks.cmake
@@ -12,3 +12,7 @@
if( WITH_PAM AND (NOT DEFINED KCHECKPASS_PAM_SERVICE) )
set( KCHECKPASS_PAM_SERVICE "kde" CACHE INTERNAL "" )
endif( )
+
+if( NOT WITH_PAM AND WITH_SHADOW )
+ check_function_exists( pw_encrypt HAVE_PW_ENCRYPT )
+endif( )