From fde795894f9af996aff9f7f0bff7d15050d5f8e0 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 12 Apr 2011 22:10:29 +0200 Subject: [PATCH] configure: libssh2 link fix without pkg-config The script didn't properly add the -lssh2 link option when it enabled libssh2 linking where pkg-config isn't found. Reported by: Saqib Ali Bug: http://curl.haxx.se/mail/lib-2011-04/0054.html --- configure.ac | 1 + 1 file changed, 1 insertion(+) diff --git a/configure.ac b/configure.ac index 08f30fa90..ba09f07b4 100644 --- a/configure.ac +++ b/configure.ac @@ -2161,6 +2161,7 @@ if test X"$OPT_LIBSSH2" != Xno; then dnl if given with a prefix, we set -L and -I based on that if test -n "$PREFIX_SSH2"; then + LIB_SSH2="-lssh2" LD_SSH2=-L${PREFIX_SSH2}/lib$libsuff CPP_SSH2=-I${PREFIX_SSH2}/include DIR_SSH2=${PREFIX_SSH2}/lib$libsuff