Skip to content

Commit

Permalink
Provide a configure switch for libssh.
Browse files Browse the repository at this point in the history
default is enabled
  • Loading branch information
wsnipex committed Oct 3, 2012
1 parent 5e4b59d commit 882aa1e
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
24 changes: 22 additions & 2 deletions configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@ vtbdecoder_enabled="== VTBDecoder support enabled. =="
vtbdecoder_disabled="== VTBDecoder support manually disabled. =="
openmax_disabled="== OpenMax support manually disabled. =="
openmax_not_found="== Could not find libnvomx. OpenMax support disabled. =="
ssh_not_found="== Could not find libssh. SSH FTP VFS support disabled. =="
ssh_not_found="== Could not find libssh. =="
ssh_disabled="== SSH SFTP disabled. =="
librtmp_not_found="== Could not find libRTMP. RTMP support disabled. =="
librtmp_disabled="== RTMP support disabled. =="
libnfs_not_found="== Could not find libnfs. NFS client support disabled. =="
Expand Down Expand Up @@ -331,6 +332,12 @@ AC_ARG_ENABLE([pulse],
[use_pulse=$enableval],
[use_pulse=no])

AC_ARG_ENABLE([ssh],
[AS_HELP_STRING([--disable-ssh],
[enable SSH SFTP support (default is enabled)])],
[use_ssh=$enableval],
[use_ssh=yes])

AC_ARG_ENABLE([rtmp],
[AS_HELP_STRING([--enable-rtmp],
[enable RTMP support via librtmp (default is auto)])],
Expand Down Expand Up @@ -931,7 +938,6 @@ AC_CHECK_LIB([ssl], [main],, AC_MSG_ERROR($missing_library))
if test "$use_mysql" = "yes"; then
AC_CHECK_LIB([mysqlclient], [main],, AC_MSG_ERROR($missing_library))
fi
AC_CHECK_LIB([ssh], [sftp_tell64],, AC_MSG_RESULT([Could not find suitable version of libssh]))
AC_CHECK_LIB([bluetooth], [hci_devid],, AC_MSG_RESULT([Could not find suitable version of libbluetooth]))
AC_CHECK_LIB([yajl], [main],, AC_MSG_ERROR($missing_library))
AC_CHECK_LIB([tinyxml], [main],, AC_MSG_ERROR($missing_library))
Expand Down Expand Up @@ -1242,6 +1248,14 @@ else
USE_SKIN_TOUCHED=0
fi

# libssh
if test "x$use_ssh" = "xno"; then
AC_MSG_NOTICE($ssh_disabled)
use_libssh="no"
else
AC_CHECK_LIB([ssh], [sftp_tell64],, AC_MSG_ERROR($ssh_not_found))
AC_DEFINE([HAVE_LIBSSH], [1], [Whether to use libSSH library.])
fi

# libRTMP
if test "$use_librtmp" != "no"; then
Expand Down Expand Up @@ -2144,6 +2158,12 @@ else
USE_WEB_SERVER=0
fi

if test "$use_libssh" != "no"; then
final_message="$final_message\n libssh support:\tYes"
else
final_message="$final_message\n libssh support:\tNo"
fi

if test "$use_librtmp" != "no"; then
final_message="$final_message\n libRTMP support:\tYes"
else
Expand Down
2 changes: 1 addition & 1 deletion docs/README.linux
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Build-Depends: autoconf, automake, autopoint, autotools-dev, cmake, curl,
libmysqlclient-dev, libnfs-dev, libogg-dev, libpcre3-dev, libplist-dev,
libpng12-dev | libpng-dev, libpostproc-dev, libpulse-dev, librtmp-dev,
libsamplerate-dev, libsdl-dev, libsdl-image1.2-dev, libsdl-mixer1.2-dev,
libshairport-dev, libsmbclient-dev, libsqlite3-dev, libssl-dev,
libshairport-dev, libsmbclient-dev, libsqlite3-dev, libssh-dev, libssl-dev,
libswscale-dev, libtinyxml-dev, libtool, libudev-dev, libusb-dev, libva-dev,
libvdpau-dev, libvorbis-dev, libxinerama-dev, libxmu-dev, libxrandr-dev,
libxt-dev, libyajl-dev, lsb-release, nasm [!amd64], python-dev,
Expand Down

0 comments on commit 882aa1e

Please sign in to comment.