summaryrefslogtreecommitdiff
path: root/net-ftp/lftp/files/lftp-4.9.2-socks.patch
blob: 7e004118a9688871fc421cf80330be45b4460817 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
diff '--color=auto' -urNd a/configure.ac b/configure.ac
--- a/configure.ac
+++ b/configure.ac
@@ -192,18 +192,18 @@
 
 if test x$with_socks = xyes; then
    AC_DEFINE(SOCKS4, 1, [define if you are building with SOCKS support])
-   AC_CHECK_LIB(socks, main, [SOCKSLIBS=-lsocks],
+   AC_CHECK_LIB(socks, Rconnect, [SOCKSLIBS=-lsocks],
       [AC_MSG_ERROR([cannot find -lsocks library])])
 fi
 if test x$with_socks5 = xyes; then
    AC_DEFINE(SOCKS5, 1, [define if you are building with SOCKSv5 support])
-   AC_CHECK_LIB(socks5, main, [SOCKSLIBS=-lsocks5],
+   AC_CHECK_LIB(socks5, Rconnect, [SOCKSLIBS=-lsocks5],
       [AC_MSG_ERROR([cannot find -lsocks5 library])])
 fi
 if test x$with_socksdante = xyes; then
    AC_DEFINE(SOCKS_DANTE, 1, [define if you are building with SOCKS-Dante support])
-   AC_CHECK_LIB(socks, main, [SOCKSLIBS=-lsocks],
-      [AC_MSG_ERROR([cannot find -lsocks library])])
+   AC_CHECK_LIB(socksd, Rconnect, [SOCKSLIBS=-lsocksd],
+      [AC_MSG_ERROR([cannot find -lsocksd library])])
 fi
 
 AC_SUBST(SOCKSLIBS)