AC_HEADER_STDC
AC_CHECK_HEADERS( \
+ aio.h \
arpa/inet.h \
arpa/nameser.h \
assert.h \
bstring.h \
+ cassert \
crypt.h \
ctype.h \
errno.h \
glob.h \
gnumalloc.h \
grp.h \
+ iosfwd \
+ iomanip \
+ iostream \
ip_compat.h \
ip_fil_compat.h \
ip_fil.h \
openssl/ssl.h \
netinet/tcp.h \
openssl/engine.h \
+ ostream \
paths.h \
poll.h \
pwd.h \
regex.h \
sched.h \
signal.h \
+ sstream \
stdarg.h \
stddef.h \
+ stdexcept \
stdio.h \
stdlib.h \
+ string \
string.h \
strings.h \
sys/bitypes.h \
-
/*
* $Id$
*
#ifndef SQUID_RANGE_H
#define SQUID_RANGE_H
+#include "config.h"
+
+#if HAVE_IOSFWD
#include <iosfwd>
+#endif
+#if HAVE_OSTREAM
#include <ostream>
+#endif
/* represents [start, end) */
template <class C>
-
class Range
{
-
/*
* $Id$
*
#ifndef _SQUID_REFCOUNT_H_
#define _SQUID_REFCOUNT_H_
+#include "config.h"
+
+#if HAVE_IOSTREAM
#include <iostream>
+#endif
template <class C>
-
class RefCount
{
#include "Trie.h"
#include "TrieCharTransform.h"
+
+#if HAVE_IOSTREAM
#include <iostream>
+#endif
bool
CaseSensitiveCheck()
#ifndef SQUID_DEBUG_H
#define SQUID_DEBUG_H
+#include "config.h"
+
+#if HAVE_IOSTREAM
#include <iostream>
+#endif
+
#undef assert
+#if HAVE_SSTREAM
#include <sstream>
+#endif
+#if HAVE_IOMANIP
#include <iomanip>
-#if defined assert
+#endif
+#if defined(assert)
#undef assert
#endif
+
#if PURIFY
#define assert(EX) ((void)0)
#elif defined(NODEBUG)
#ifndef __ASYNC_IO_H__
#define __ASYNC_IO_H__
+#include "config.h"
+
#ifdef _SQUID_WIN32_
#include "aio_win32.h"
#else
+#if HAVE_AIO_H
#include <aio.h>
#endif
+#endif
/* for FREE* */
#include "typedefs.h"
#ifndef SQUID_GENERIC_H
#define SQUID_GENERIC_H
-/** \todo CLEANUP: checks towrap this header properly */
-#include <ostream>
-
#include "dlink.h"
+#if HAVE_OSTREAM
+#include <ostream>
+#endif
+
template <class _Arg, class _Result>
struct unary_function {
typedef _Arg argument_type;
#ifndef SQUID_MEM
#define SQUID_MEM
+#include "config.h"
+
+#if HAVE_OSTREAM
+#include <ostream>
+#endif
+
class StoreEntry;
class MemPoolStats;
class MemPoolMeter;
-/** \todo CLEANUP: protection to wrap this system include */
-#include <ostream>
-
class Mem
{
#include "config.h"
-/** todo checks to wrap this include properly */
+#if HAVE_OSTREAM
#include <ostream>
+#endif
/* squid string placeholder (for printf) */
#ifndef SQUIDSTRINGPH
*/
#include "squid.h"
-
-/// \todo protect the 'ostream' file includes via configure file tests as per squid conventions.
-#include <ostream>
-
#include "StoreIOBuffer.h"
#include "Range.h"
#include "RefCount.h"
#include "esi/Element.h"
#endif
+#if HAVE_OSTREAM
+#include <ostream>
+#endif
+
+
class AsyncCall;
class StoreClient;
class MemObject;
-
/*
* $Id$
*
#include "Store.h"
+#if HAVE_OSTREAM
#include <ostream>
+#endif
/*
* This class provides a streambuf interface for writing
#include "DiskIO/DiskIOModule.h"
#include "Parsing.h"
#include "SquidTime.h"
-
#include "SwapDir.h"
+
int UFSSwapDir::NumberOfUFSDirs = 0;
int *UFSSwapDir::UFSDirToGlobalDirMapping = NULL;
#include <netdb.h>
#endif
+#if HAVE_IOSFWD
#include <iosfwd>
+#endif
+#if HAVE_OSTREAM
#include <ostream>
-
+#endif
/* FreeBSD hack:
* This OS has at least one version that defines these as private
#include "config.h"
+#include "testIpAddress.h"
+#include "ip/IpAddress.h"
-#include <stdexcept>
+#if HAVE_CSTRING
#include <cstring>
+#endif
+#if HAVE_NETINET_IN_H
#include <netinet/in.h>
+#endif
+#if HAVE_ARPA_INET_H
#include <arpa/inet.h>
+#endif
+#if HAVE_NETDB_H
#include <netdb.h>
+#endif
+#if HAVE_STRING
#include <string>
+#endif
+#if HAVE_STDEXCEPT
+#include <stdexcept>
+#endif
-#include "testIpAddress.h"
-#include "ip/IpAddress.h"
CPPUNIT_TEST_SUITE_REGISTRATION( testIpAddress );
*/
#include "squid.h"
-
-#include <iomanip>
-#include <ostream>
-
#include "event.h"
#include "CacheManager.h"
#include "ClientInfo.h"
#include "MemBuf.h"
#include "SquidTime.h"
+#if HAVE_IOMANIP
+#include <iomanip>
+#endif
+#if HAVE_OSTREAM
+#include <ostream>
+#endif
+
/* module globals */
/* local prototypes */
#define SQUID_UNIT_TEST 1
#include "squid.h"
-#include <stdexcept>
-
#include "testACLMaxUserIP.h"
#include "auth/AclMaxUserIp.h"
+#if HAVE_STDEXCEPT
+#include <stdexcept>
+#endif
+
CPPUNIT_TEST_SUITE_REGISTRATION( testACLMaxUserIP );
}
}
+#if HAVE_IOSTREAM
#include <iostream>
+#endif
/* AuthUserRequest::scheme returns the correct scheme for all
* authentication types
#define SQUID_UNIT_TEST 1
#include "squid.h"
-#include <stdexcept>
-
#include "testBoilerplate.h"
+#if HAVE_STDEXCEPT
+#include <stdexcept>
+#endif
+
CPPUNIT_TEST_SUITE_REGISTRATION( testBoilerplate );
#include "squid.h"
-#include <stdexcept>
-
#include "testCoss.h"
#include "Store.h"
#include "SwapDir.h"
#include "StoreFileSystem.h"
#include "testStoreSupport.h"
+#if HAVE_STDEXCEPT
+#include <stdexcept>
+#endif
+
#define TESTDIR "testCoss__testCossSearch"
CPPUNIT_TEST_SUITE_REGISTRATION( testCoss );
#define SQUID_UNIT_TEST 1
#include "squid.h"
-#include <stdexcept>
-
#include "testDiskIO.h"
#include "Store.h"
#include "SwapDir.h"
#include "StoreFileSystem.h"
#include "testStoreSupport.h"
+#if HAVE_STDEXCEPT
+#include <stdexcept>
+#endif
+
CPPUNIT_TEST_SUITE_REGISTRATION( testDiskIO );
void
#define SQUID_UNIT_TEST 1
#include "squid.h"
-#include <sstream>
#include <cppunit/TestAssert.h>
#include "Mem.h"
#include "testHttpRequestMethod.h"
#include "HttpRequestMethod.h"
+#if HAVE_SSTREAM
+#include <sstream>
+#endif
CPPUNIT_TEST_SUITE_REGISTRATION( testHttpRequestMethod );
#include "squid.h"
-#include <stdexcept>
-
#include "testNull.h"
#include "Store.h"
#include "SwapDir.h"
#include "StoreFileSystem.h"
#include "testStoreSupport.h"
+#if HAVE_STDEXCEPT
+#include <stdexcept>
+#endif
+
#define TESTDIR "testNull__testNullSearch"
CPPUNIT_TEST_SUITE_REGISTRATION( testNull );
#include "Store.h"
#include "StoreEntryStream.h"
+#if HAVE_IOMANIP
#include <iomanip>
+#endif
#include <cppunit/TestAssert.h>
#include "config.h"
-#include <sstream>
#include <cppunit/TestAssert.h>
#include "testURL.h"
#include "URL.h"
#include "Mem.h"
+#if HAVE_SSTREAM
+#include <sstream>
+#endif
+
CPPUNIT_TEST_SUITE_REGISTRATION( testURL );
/* stub functions to link successfully */
#define SQUID_UNIT_TEST 1
#include "squid.h"
-#include <sstream>
+
#include <cppunit/TestAssert.h>
#include "Mem.h"
#include "testURLScheme.h"
#include "URLScheme.h"
+#if HAVE_SSTREAM
+#include <sstream>
+#endif
CPPUNIT_TEST_SUITE_REGISTRATION( testURLScheme );
#include "config.h"
-
-#include <stdexcept>
-
#include "testUfs.h"
#include "Store.h"
#include "SwapDir.h"
#include "HttpReply.h"
#include "testStoreSupport.h"
+#if HAVE_STDEXCEPT
+#include <stdexcept>
+#endif
+
#define TESTDIR "testUfs__testUfsSearch"
CPPUNIT_TEST_SUITE_REGISTRATION( testUfs );
#include "Generic.h"
#undef malloc
#undef free
+
+#if HAVE_STDEXCEPT
#include <stdexcept>
+#endif
+#if HAVE_IOSTREAM
#include <iostream>
+#endif
+#if HAVE_CASSERT
#include <cassert>
+#endif
/* stub functions for parts of squid not factored to be dynamic yet */
void
#include "squid.h"
#include "MemPool.h"
+
+#if HAVE_IOSTREAM
#include <iostream>
+#endif
/* TODO: put this in a libTest */
void
*/
#include "squid.h"
+
+#if HAVE_IOSTREAM
#include <iostream>
+#endif
class CallCounter
{
#include "squid.h"
#include "stmem.h"
#include "mem_node.h"
-#include <iostream>
class StreamTest
{
#include "squid.h"
#include "stmem.h"
#include "mem_node.h"
-#include <iostream>
#include "Generic.h"
+#if HAVE_IOSTREAM
+#include <iostream>
+#endif
+
void
testLowAndHigh()
{
#include "squid.h"
#include "mem_node.h"
+
+#if HAVE_IOSTREAM
#include <iostream>
+#endif
/* TODO: put this in a libTest */
void
#include "squid.h"
#include "stmem.h"
#include "mem_node.h"
+
+#if HAVE_IOSTREAM
#include <iostream>
+#endif
class HasExplicit
{
#define _SQUID_EXTERNNEW_
#include "squid.h"
-#include <iostream>
-#include <sstream>
/* AYJ: the debug stuff here should really be in a stub_debug.cc file for tests to link */
/* for correct pre-definitions of debug objects */
+/* and stream headers */
#include "Debug.h"
FILE *debug_log = NULL;