From 7f277bc5e1504110b80bdef6da99d21ba4ea2a8c Mon Sep 17 00:00:00 2001 From: Mavridis Philippe Date: Fri, 24 Jun 2022 14:28:04 +0300 Subject: SFTP: Various fixes and improvements For details see PR #279. Portions of code borrowed from KDE5 SFTP ioslave: Source: https://invent.kde.org/network/kio-extras/-/blob/master/sftp/kio_sftp.cpp Licence: LGPLv2 or later Signed-off-by: Mavridis Philippe --- ConfigureChecks.cmake | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'ConfigureChecks.cmake') diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index b60dd5dc0..a637df137 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -89,11 +89,19 @@ endif( ) # sys/time.h (tdeioslave/sftp, ksmserver, ksplashml) -if( BUILD_KSMSERVER OR BUILD_KSPLASHML OR BUILD_TDEIOSLAVES) +if( BUILD_KSMSERVER OR BUILD_KSPLASHML OR BUILD_TDEIOSLAVES ) check_include_file( sys/time.h HAVE_SYS_TIME_H ) check_include_files( "sys/time.h;time.h" TIME_WITH_SYS_TIME ) endif( ) +# libssh (tdeioslave/sftp) +if( BUILD_TDEIOSLAVES ) + pkg_search_module( LIBSSH libssh ) + if( NOT LIBSSH_FOUND ) + tde_message_fatal( "LibSSH is required, but was not found on your system" ) + endif( ) +endif( ) + # pam if( WITH_PAM AND (BUILD_KCHECKPASS OR BUILD_TDM) ) -- cgit v1.2.1