summaryrefslogtreecommitdiffstats
path: root/kcheckpass
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2023-01-31 15:23:24 +0100
committerSlávek Banko <slavek.banko@axis.cz>2023-02-09 02:11:37 +0100
commit7df41e857228b5a9b5ceca277b812bbe98db6a28 (patch)
tree392ece3e8bca56f8eef7b55ca2863629de6ce51c /kcheckpass
parentd196e674e10dc2a2d353cfcc3cdabf03d029eea5 (diff)
downloadtdebase-7df41e857228b5a9b5ceca277b812bbe98db6a28.tar.gz
tdebase-7df41e857228b5a9b5ceca277b812bbe98db6a28.zip
kcheckpass: Add pw_encrypt detection.
This relates to Bug 2854. Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'kcheckpass')
-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( )