Revert "changed libssh detection"
authorVictor Kirhenshtein <victor@netxms.org>
Thu, 20 Apr 2017 13:46:20 +0000 (16:46 +0300)
committerVictor Kirhenshtein <victor@netxms.org>
Thu, 20 Apr 2017 13:46:20 +0000 (16:46 +0300)
This reverts commit bec2d7eef2e3691b7c85e090b3cdb6eebf498857.

configure.ac

index f287ada..2fd0d4f 100644 (file)
@@ -1894,7 +1894,7 @@ fi
 if test "x$DISABLE_SSH" != "xyes"; then
        AC_CHECK_HEADER(libssh/libssh.h,HAVE_LIBSSH=yes,HAVE_LIBSSH=no)
        if test "x$HAVE_LIBSSH" = "xyes"; then
-               AC_CHECK_LIB(ssh, ssh_new, [ HAVE_LIBSSH=yes ], [ HAVE_LIBSSH=no ])
+               AC_CHECK_LIB(ssh, ssh_version, [ HAVE_LIBSSH=yes ], [ HAVE_LIBSSH=no ])
        fi
 
        if test "x$HAVE_LIBSSH" = "xyes"; then