block/ssh: Require libssh2 >= 1.2.8.
commit4fc16838b8392a29644d4d2c01495e6ff447a6f0
authorRichard W.M. Jones <rjones@redhat.com>
Fri, 19 Apr 2013 08:16:39 +0000 (19 09:16 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 26 Apr 2013 11:26:27 +0000 (26 13:26 +0200)
tree2cf6f06213c35808c2653b7c0619113c520d11dc
parente3351000cd682200835763caca87adf708ed1c65
block/ssh: Require libssh2 >= 1.2.8.

libssh2 >= 1.2.8 is required to enable this block device (because
that version introduced the libssh2_session_handshake call).

Change the test to use pkg-config exclusively.  If the user requests
--enable-libssh2 and the minimum version is not available, then the
following error is displayed:

  $ ./configure --enable-libssh2

  ERROR: libssh2 >= 1.2.8 required for --enable-libssh2

If --enable-libssh2 is not specified, then the feature is silently
disabled if sufficiently new libssh2 is not available.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
configure