From 1fa154bb1e06bfb4f8d6b95f09a6352d38577c57 Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Sun, 23 Jan 2000 10:32:03 +1100 Subject: - AIX patch from Matt Richards and David Rankin --- configure.in | 44 ++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 42 insertions(+), 2 deletions(-) (limited to 'configure.in') diff --git a/configure.in b/configure.in index 4d414573f..6f5cdafc7 100644 --- a/configure.in +++ b/configure.in @@ -518,13 +518,53 @@ dnl Compile with dante SOCKS library AC_ARG_WITH(dante, [ --with-dante=DIR Use Dante SOCKS lib (default is system library path)], [ - AC_DEFINE(HAVE_DANTE) + SAVELIBS="$LIBS" + SOCKSLIBS="" + SOCKSLIBPATH="" if test "x$withval" != "xno" ; then if test -n $withval ; then LIBS="$LIBS -L$withval" + SOCKSLIBPATH="-L$withval" fi - LIBS="$LIBS -lsocks" + AC_CHECK_LIB(socks, Rconnect, AC_DEFINE(HAVE_DANTE) SOCKSLIBS="$SOCKSLIBPATH -lsocks") fi + LIBS="$SAVELIBS $SOCKSLIBS" + ] +) + +dnl Compile with SOCKS4 SOCKS library +AC_ARG_WITH(socks4, + [ --with-socks4=DIR Use Socks4 SOCKS lib (default is system library path)], + [ + SAVELIBS="$LIBS" + SOCKSLIBS="" + SOCKSLIBPATH="" + if test "x$withval" != "xno" ; then + if test -n $withval ; then + LIBS="$LIBS -L$withval" + SOCKSLIBPATH="-L$withval" + fi + AC_CHECK_LIB(socks, Rconnect, AC_DEFINE(HAVE_SOCKS4) SOCKSLIBS="$SOCKSLIBPATH -lsocks") + fi + LIBS="$SAVELIBS $SOCKSLIBS" + ] +) + +dnl Compile with SOCKS5 SOCKS library +AC_ARG_WITH(socks5, + [ --with-socks5=DIR Use Socks5 SOCKS lib (default is system library path)], + [ + SAVELIBS="$LIBS" + SOCKSLIBS="" + SOCKSLIBPATH="" + if test "x$withval" != "xno" ; then + if test -n $withval ; then + LIBS="$LIBS -L$withval" + SOCKSLIBPATH="-L$withval" + fi + AC_CHECK_LIB(socks5, SOCKSconnect, AC_DEFINE(HAVE_SOCKS5) SOCKSLIBS="$SOCKSLIBPATH -lsocks5") + fi + LIBS="$SAVELIBS $SOCKSLIBS" ] ) AC_ARG_WITH(catman, -- cgit v1.2.3