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)
])
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
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 \