dnl Configuration input file for Squid
dnl
-dnl $Id: configure.in,v 1.485 2007/11/11 20:10:09 amosjeffries Exp $
+dnl $Id: configure.in,v 1.486 2007/11/15 18:48:27 wessels Exp $
dnl
dnl
dnl
AC_CONFIG_AUX_DIR(cfgaux)
AC_CONFIG_SRCDIR([src/main.cc])
AM_INIT_AUTOMAKE([tar-ustar])
-AC_REVISION($Revision: 1.485 $)dnl
+AC_REVISION($Revision: 1.486 $)dnl
AC_PREFIX_DEFAULT(/usr/local/squid)
AM_MAINTAINER_MODE
AC_HELP_STRING([--enable-esi],[Enable ESI for accelerators. Requires libexpat. Enabling ESI will cause squid to follow the Edge Acceleration Specification (www.esi.org). This causes squid to IGNORE client Cache-Control headers. DO NOT use this in a squid configured as a web proxy, ONLY use it in a squid configured for webserver acceleration.]),
use_esi=$enableval, use_esi=no)
if test "$use_esi" = "yes" ; then
- AC_DEFINE(ESI,1,[Compile the ESI processor and Surrogate header support])
+ AC_DEFINE(SQUID_ESI,1,[Compile the ESI processor and Surrogate header support])
AM_CONDITIONAL(USE_ESI, true)
XTRA_LIBS="$XTRA_LIBS -lexpat -lxml2"
else
- AC_DEFINE(ESI,0,[Compile the ESI processor and Surrogate header support])
+ AC_DEFINE(SQUID_ESI,0,[Compile the ESI processor and Surrogate header support])
fi
AM_CONDITIONAL(USE_ICAP_CLIENT, false)
XPROF_file_read,
XPROF_file_write,
XPROF_file_close,
-#ifdef ESI
+#if SQUID_ESI
XPROF_esiExpressionEval,
XPROF_esiProcessing,
XPROF_esiParsing,
/*
- * $Id: Store.h,v 1.37 2007/09/28 00:22:37 hno Exp $
+ * $Id: Store.h,v 1.38 2007/11/15 18:48:30 wessels Exp $
*
*
* SQUID Web Proxy Cache http://www.squid-cache.org/
#include "Packer.h"
#include "RemovalPolicy.h"
-#if ESI
+#if SQUID_ESI
+ESI
#include "ESIElement.h"
#endif
void *operator new(size_t byteCount);
void operator delete(void *address);
void setReleaseFlag();
-#if ESI
+#if SQUID_ESI
ESIElement::Pointer cachedESITree;
#endif
/*
- * $Id: cache_cf.cc,v 1.526 2007/11/13 23:06:01 rousskov Exp $
+ * $Id: cache_cf.cc,v 1.527 2007/11/15 18:48:30 wessels Exp $
*
* DEBUG: section 3 Configuration File Parsing
* AUTHOR: Harvest Derived
#if SQUID_SNMP
#include "snmp.h"
#endif
-#if ESI
+#if SQUID_ESI
#include "ESIParser.h"
#endif
#
-# $Id: cf.data.pre,v 1.486 2007/11/06 21:19:30 wessels Exp $
+# $Id: cf.data.pre,v 1.487 2007/11/15 18:48:30 wessels Exp $
#
# SQUID Web Proxy Cache http://www.squid-cache.org/
# ----------------------------------------------------------
COMMENT_END
NAME: httpd_accel_surrogate_id
-IFDEF: ESI
+IFDEF: SQUID_ESI
TYPE: string
LOC: Config.Accel.surrogate_id
DEFAULT: unset-id
DOC_END
NAME: http_accel_surrogate_remote
-IFDEF: ESI
+IFDEF: SQUID_ESI
COMMENT: on|off
TYPE: onoff
DEFAULT: off
DOC_END
NAME: esi_parser
-IFDEF: ESI
+IFDEF: SQUID_ESI
COMMENT: libxml2|expat|custom
TYPE: string
LOC: ESIParser::Type
/*
- * $Id: client_side_reply.cc,v 1.140 2007/10/30 21:43:45 rousskov Exp $
+ * $Id: client_side_reply.cc,v 1.141 2007/11/15 18:48:30 wessels Exp $
*
* DEBUG: section 88 Client-side Reply Routines
* AUTHOR: Robert Collins (Originally Duane Wessels in client_side.c)
#include "clientStream.h"
#include "AuthUserRequest.h"
-#if ESI
+#if SQUID_ESI
#include "ESI.h"
#endif
#include "MemObject.h"
(int) body_size << " bytes after " << reply->hdr_sz <<
" bytes of headers");
-#if ESI
+#if SQUID_ESI
+#warning foo
if (http->flags.accel && reply->sline.status != HTTP_FORBIDDEN &&
!alwaysAllowResponse(reply->sline.status) &&
/*
- * $Id: client_side_request.cc,v 1.94 2007/10/16 15:57:28 rousskov Exp $
+ * $Id: client_side_request.cc,v 1.95 2007/11/15 18:48:30 wessels Exp $
*
* DEBUG: section 85 Client-side Request Routines
* AUTHOR: Robert Collins (Originally Duane Wessels in client_side.c)
HttpRequest *request = http->request;
HttpHeader *req_hdr = &request->header;
int no_cache = 0;
-#if !(ESI) || defined(USE_USERAGENT_LOG) || defined(USE_REFERER_LOG)
+#if !(SQUID_ESI) || defined(USE_USERAGENT_LOG) || defined(USE_REFERER_LOG)
const char *str;
#endif
if (request->ims > 0)
request->flags.ims = 1;
-#if ESI
+#if SQUID_ESI
/*
* We ignore Cache-Control as per the Edge Architecture Section 3. See
* www.esi.org for more information.
/*
- * $Id: http.cc,v 1.538 2007/09/27 14:34:06 rousskov Exp $
+ * $Id: http.cc,v 1.539 2007/11/15 18:48:30 wessels Exp $
*
* DEBUG: section 11 Hypertext Transfer Protocol (HTTP)
* AUTHOR: Harvest Derived
void
HttpStateData::processSurrogateControl(HttpReply *reply)
{
-#if ESI
+#if SQUID_ESI
if (request->flags.accelerated && reply->surrogate_control) {
HttpHdrScTarget *sctusable =
strVia.clean();
}
-#if ESI
+#if SQUID_ESI
{
/* Append Surrogate-Capabilities */
String strSurrogate (hdr_in->getList(HDR_SURROGATE_CAPABILITY));
/*
- * $Id: structs.h,v 1.565 2007/09/28 00:22:38 hno Exp $
+ * $Id: structs.h,v 1.566 2007/11/15 18:48:30 wessels Exp $
*
*
* SQUID Web Proxy Cache http://www.squid-cache.org/
struct
{
-#if ESI
+#if SQUID_ESI
char *surrogate_id;
#endif
int ie_refresh;
int vary_ignore_expire;
int pipeline_prefetch;
-#if ESI
+#if SQUID_ESI
int surrogate_is_remote;
#endif