- Use libssh2_version() to present the libssh2 version in case the libssh2

library is found to support it.
This commit is contained in:
Daniel Stenberg
2009-03-13 09:58:15 +00:00
parent fa96436661
commit 74ba4d7950
4 changed files with 18 additions and 2 deletions

View File

@@ -1494,6 +1494,9 @@ if test X"$OPT_LIBSSH2" != Xno; then
dnl linker doesn't search through, we need to add it to LD_LIBRARY_PATH
dnl to prevent further configure tests to fail due to this
dnl libssh2_version is a post 1.0 addition
AC_CHECK_FUNCS( libssh2_version )
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$LIB_LIBSSH2"
export LD_LIBRARY_PATH
AC_MSG_NOTICE([Added $LIB_LIBSSH2 to LD_LIBRARY_PATH])