dnl This encapsulates the nasty mess of headers we need to check when dnl checking types. AC_DEFUN([SQUID_DEFAULT_INCLUDES],[[ /* What a mess.. many systems have added the (now standard) bit types * in their own ways, so we need to scan a wide variety of headers to * find them.. * IMPORTANT: Keep include/squid_types.h syncronised with this list */ #if HAVE_SYS_TYPES_H #include #endif #if STDC_HEADERS #include #include #endif #if HAVE_INTTYPES_H #include #endif #if HAVE_SYS_BITYPES_H #include #endif #if HAVE_SYS_SELECT_H #include #endif #if HAVE_NETINET_IN_SYSTM_H #include #endif ]]) dnl and this is for AC_CHECK_SIZEOF AC_DEFUN([SQUID_DEFAULT_SIZEOF_INCLUDES],[ #include SQUID_DEFAULT_INCLUDES ]) dnl *BSD net headers AC_DEFUN([SQUID_BSDNET_INCLUDES],[ SQUID_DEFAULT_INCLUDES #if HAVE_SYS_TIME_H #include #endif #if HAVE_SYS_SOCKET_H #include #endif #if HAVE_NETINET_IN_H #include #endif #if HAVE_NETINET_IP_H #include #endif #if HAVE_NETINET_IP_COMPAT_H #include #endif #if HAVE_NET_IF_H #include #endif #if HAVE_NETINET_IP_FIL_H #include #endif #if HAVE_SYS_PARAM_H #include #endif ]) dnl dnl thanks to autogen, for the template.. dnl dnl @synopsis AC_TEST_CHECKFORHUGEOBJECTS dnl dnl Test whether -fhuge-objects is available with this c++ compiler. gcc-29.5 series compilers need this on some platform with large objects. dnl HUGE_OBJECT_FLAG="" AC_DEFUN([AC_TEST_CHECKFORHUGEOBJECTS],[ if test "$GCC" = "yes"; then AC_MSG_CHECKING([whether compiler accepts -fhuge-objects]) AC_CACHE_VAL([ac_cv_test_checkforhugeobjects],[ ac_cv_test_checkforhugeobjects=`echo "int main(int argc, char **argv) { int foo; }" > conftest.cc ${CXX} -Werror -fhuge-objects -o conftest.bin conftest.cc 2>/dev/null res=$? rm -f conftest.* echo yes exit $res` if [[ $? -ne 0 ]] then ac_cv_test_checkforhugeobjects=no else if [[ -z "$ac_cv_test_checkforhugeobjects" ]] then ac_cv_test_checkforhugeobjects=yes fi ; fi ]) # end of CACHE_VAL AC_MSG_RESULT([${ac_cv_test_checkforhugeobjects}]) if test "X${ac_cv_test_checkforhugeobjects}" != Xno then HUGE_OBJECT_FLAG="-fhuge-objects" fi fi #gcc ]) # end of AC_DEFUN of AC_TEST_CHECKFORHUGEOBJECTS