diff options
author | Treeki <treeki@gmail.com> | 2015-10-11 14:55:46 +0200 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2015-10-11 14:55:46 +0200 |
commit | 5445c84684f0c12e4dc0ec06445117418d679105 (patch) | |
tree | 2e663bc8aa085d84c82731a7c38513fe11db697a /config | |
parent | 800c3a250c410150a4560ddaf6a1853c75a516f8 (diff) | |
download | tinyproxy-ninji-patches.tar.gz tinyproxy-ninji-patches.zip |
add crummy authentication supportninji-patches
Diffstat (limited to '')
-rw-r--r-- | configure.ac | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 3c162f0..3d2ab70 100644 --- a/configure.ac +++ b/configure.ac @@ -87,6 +87,17 @@ if test x"$xtinyproxy_enabled" = x"yes"; then AC_DEFINE(XTINYPROXY_ENABLE) fi +dnl Include proxy authentication +AH_TEMPLATE([AUTH_SUPPORT], + [Include support for proxy authentication.]) +TP_ARG_ENABLE(auth, + [Enable proxy authentication support (requires OpenSSL, default is YES)], + yes) + +if test x"$auth_enabled" = x"yes"; then + AC_DEFINE(AUTH_SUPPORT) +fi + dnl Include filtering for domain/URLs AH_TEMPLATE([FILTER_ENABLE], [Defined if you would like filtering code included.]) @@ -160,6 +171,10 @@ fi AC_CHECK_LIB(resolv, inet_aton) +if test x"$auth_enabled" = x"yes"; then + AC_CHECK_LIB([crypto], [MD5_Init], [], [AC_MSG_FAILURE([could not find OpenSSL])]) +fi + dnl dnl Checks for headers dnl |