1 dnl Enable SFTP filesystem
2 AC_DEFUN([mc_VFS_SFTP],
4 AC_ARG_ENABLE([vfs-sftp],
5 AS_HELP_STRING([--enable-vfs-sftp], [Support for SFTP filesystem [auto]]))
6 if test "$enable_vfs" != "no" -a x"$enable_vfs_sftp" != x"no"; then
7 PKG_CHECK_MODULES(LIBSSH, [libssh2 >= 1.2.5], [found_libssh=yes], [:])
8 if test x"$found_libssh" = "xyes"; then
10 AC_DEFINE([ENABLE_VFS_SFTP], [1], [Support for SFTP filesystem])
11 MCLIBS="$MCLIBS $LIBSSH_LIBS"
14 if test x"$enable_vfs_sftp" = x"yes"; then
15 dnl user explicitly requested feature
16 AC_MSG_ERROR([libssh2 >= 1.2.5 library not found])
21 AM_CONDITIONAL([ENABLE_VFS_SFTP], [test "$enable_vfs" = "yes" -a x"$enable_vfs_sftp" = x"yes"])