summaryrefslogtreecommitdiffstats
path: root/kdm/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2012-01-11 13:56:06 -0600
committerTimothy Pearson <[email protected]>2012-01-11 13:56:06 -0600
commit51ff055d6ce9e93584818d5e80e42fa9cb1da0a3 (patch)
tree977e38b6d43f5c0cacb3d4b33258263471bd765c /kdm/ConfigureChecks.cmake
parent3ed19b2a1e9047cef4a505d82c55cdba8201f0e2 (diff)
downloadtdebase-51ff055d6ce9e93584818d5e80e42fa9cb1da0a3.tar.gz
tdebase-51ff055d6ce9e93584818d5e80e42fa9cb1da0a3.zip
Fix KDM logins when PAM is not in use
This closes Bug 624
Diffstat (limited to 'kdm/ConfigureChecks.cmake')
-rw-r--r--kdm/ConfigureChecks.cmake10
1 files changed, 10 insertions, 0 deletions
diff --git a/kdm/ConfigureChecks.cmake b/kdm/ConfigureChecks.cmake
index 162a8a6ba..ae7ea8b6c 100644
--- a/kdm/ConfigureChecks.cmake
+++ b/kdm/ConfigureChecks.cmake
@@ -27,6 +27,16 @@ check_function_exists( login_getclass HAVE_LOGIN_GETCLASS )
check_function_exists( auth_timeok HAVE_AUTH_TIMEOK )
tde_restore( CMAKE_REQUIRED_LIBRARIES )
+check_function_exists( crypt LIBC_HAVE_CRYPT )
+if( LIBC_HAVE_CRYPT )
+ set( HAVE_CRYPT 1 CACHE INTERNAL "" FORCE )
+else( )
+ check_library_exists( crypt crypt "" HAVE_CRYPT )
+ if( HAVE_CRYPT )
+ set( CRYPT_LIBRARY crypt )
+ endif( )
+endif( )
+
check_include_file( lastlog.h HAVE_LASTLOG_H )
check_include_file( termio.h HAVE_TERMIO_H )