summaryrefslogtreecommitdiffstats
path: root/kdm
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-01-11 13:56:06 -0600
committerSlávek Banko <slavek.banko@axis.cz>2012-06-03 03:26:39 +0200
commit6e32504bba30e923c8aa587a02eba9f14d717d6a (patch)
tree6e939fcfec69a7a3d02d0edcf186c1b1dab78b3c /kdm
parent5bcc5923f8e9a0545aa098b51a50fdf825700aa9 (diff)
downloadtdebase-6e32504bba30e923c8aa587a02eba9f14d717d6a.tar.gz
tdebase-6e32504bba30e923c8aa587a02eba9f14d717d6a.zip
Fix KDM logins when PAM is not in use
This closes Bug 624 (cherry picked from commit 51ff055d6ce9e93584818d5e80e42fa9cb1da0a3)
Diffstat (limited to 'kdm')
-rw-r--r--kdm/ConfigureChecks.cmake10
-rw-r--r--kdm/backend/CMakeLists.txt2
2 files changed, 11 insertions, 1 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 )
diff --git a/kdm/backend/CMakeLists.txt b/kdm/backend/CMakeLists.txt
index 47256a7a7..b93174e4c 100644
--- a/kdm/backend/CMakeLists.txt
+++ b/kdm/backend/CMakeLists.txt
@@ -43,6 +43,6 @@ tde_add_executable( kdm
process.c protodpy.c reset.c resource.c rpcauth.c
server.c session.c sessreg.c socket.c streams.c
util.c xdmauth.c xdmcp.c
- LINK X11 ${XAU_LIBRARIES} ${DBUS_TQT_LIBRARIES} ${PAM_LIBRARY} ${XDMCP_LIBRARIES}
+ LINK X11 ${XAU_LIBRARIES} ${DBUS_TQT_LIBRARIES} ${CRYPT_LIBRARY} ${PAM_LIBRARY} ${XDMCP_LIBRARIES}
DESTINATION ${BIN_INSTALL_DIR}
)