lavv17 / lftp

sophisticated command line file transfer program (ftp, http, sftp, fish, torrent)

Home Page:http://lftp.yar.ru

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Improve compilation with dante socks5 support by looking for "-lsocksd"

Jonher937 opened this issue · comments

Hi, I recently attempted to compile lftp on Ubuntu focal with socks5 support via dante library.
Ubuntu provides libdsocksd0 that installs:

/usr/lib/x86_64-linux-gnu/libdsocksd.so.0
/usr/lib/x86_64-linux-gnu/libdsocksd.so.0.0.0

If you attempt to run ./configure --with-socksdante if will fail as it's trying to -lsocks and not -lsocksd.

AC_CHECK_LIB(socks, main, [SOCKSLIBS=-lsocks],

If however I compile dante manually and do a make install on dante it will install the libs into /usr/local/lib with libsocks as the name and will then successfully compile.

Could this be improved so that -lsocksd is also acceptable when --with-socksdante is used?