]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - configure.in
SSL->HTTP gatewaying support by Benno Rice
[thirdparty/squid.git] / configure.in
index 83805aa1fab31a18049dbe8f510ca56f7676e1f8..d9b2da2db12908923492e511b44b8bf19b240164 100644 (file)
@@ -3,13 +3,13 @@ dnl  Configuration input file for Squid
 dnl
 dnl  Duane Wessels, wessels@nlanr.net, February 1996 (autoconf v2.9)
 dnl
-dnl  $Id: configure.in,v 1.222 2001/03/10 00:55:35 hno Exp $
+dnl  $Id: configure.in,v 1.223 2001/04/14 00:03:19 hno Exp $
 dnl
 dnl
 dnl
 AC_INIT(src/main.c)
 AC_CONFIG_HEADER(include/autoconf.h)
-AC_REVISION($Revision: 1.222 $)dnl
+AC_REVISION($Revision: 1.223 $)dnl
 AC_PREFIX_DEFAULT(/usr/local/squid)
 AC_CONFIG_AUX_DIR(cfgaux)
 
@@ -501,6 +501,53 @@ AC_ARG_ENABLE(htcp,
 ])
 AC_SUBST(HTCP_OBJS)
 
+AC_ARG_ENABLE(ssl,
+[  --enable-ssl            Enable ssl gatewaying support using OpenSSL],
+[ if test "$enableval" != "no"; then
+    echo "SSL gatewaying enabled"
+    AC_DEFINE(USE_SSL)
+    SSL_OBJS='$(SSL_OBJS)'
+    SSLLIB='-lssl -lcrypto'
+    USE_OPENSSL=1
+  fi
+])
+
+AC_ARG_WITH(openssl,
+[  --with-openssl[=prefix]
+                          Compile with the OpenSSL libraries. The path to
+                         the OpenSSL development libraries and headers
+                         installation can be specified if outside of the
+                         system standard directories],
+[ 
+  case "$with_ssl" in
+  yes)
+    USE_OPENSSL=1
+    ;;
+  no)
+    USE_OPENSSL=
+    ;;
+  *)
+    SSLLIBDIR="$with_ssl/lib"
+    SSLINC="-I$with_ssl/include"
+    USE_OPENSSL=1
+  esac
+])
+
+if test -n "$USE_OPENSSL"; then
+  AC_DEFINE(USE_OPENSSL)
+  if test -z "$SSLLIB"; then
+    SSLLIB="-lcrypto" # for MD5 routines
+  fi
+fi
+if test -n "$SSLLIBDIR"; then
+  SSLLIB="-L$SSLLIBDIR $SSLLIB"
+fi
+if test -n "$SSLINC"; then
+  CFLAGS="$CFLAGS $SSLINC"
+fi
+AC_SUBST(SSL_OBJS)
+AC_SUBST(SSLLIB)
+
 AC_ARG_ENABLE(forw-via-db,
 [  --enable-forw-via-db    Enable Forw/Via database],
 [ if test "$enableval" = "yes" ; then
@@ -952,6 +999,9 @@ AC_CHECK_HEADERS( \
        netinet/ip_fil_compat.h \
        netinet/ip_fil.h \
        netinet/ip_nat.h \
+       openssl/err.h \
+       openssl/md5.h \
+       openssl/ssl.h \
        poll.h \
        pwd.h \
        regex.h \