]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
add inline logic magic
authorrobertc <>
Thu, 9 Jan 2003 19:39:22 +0000 (19:39 +0000)
committerrobertc <>
Thu, 9 Jan 2003 19:39:22 +0000 (19:39 +0000)
configure.in

index e8d0e6416439ba22d463a970b681c1dc6010c1b4..a11ad425865855959437828c44bfb3ce87b0998e 100644 (file)
@@ -3,7 +3,7 @@ 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.309 2003/01/01 10:48:23 robertc Exp $
+dnl  $Id: configure.in,v 1.310 2003/01/09 12:39:22 robertc Exp $
 dnl
 dnl
 dnl
@@ -13,7 +13,7 @@ AC_CONFIG_SRCDIR([src/main.cc])
 AC_CONFIG_AUX_DIR(cfgaux)
 AM_INIT_AUTOMAKE(squid, 3.0-DEVEL)
 AM_CONFIG_HEADER(include/autoconf.h)
-AC_REVISION($Revision: 1.309 $)dnl
+AC_REVISION($Revision: 1.310 $)dnl
 AC_PREFIX_DEFAULT(/usr/local/squid)
 AM_MAINTAINER_MODE
 
@@ -226,6 +226,28 @@ AC_ARG_ENABLE(gnuregex,
 [  --enable-gnuregex       Compile GNUregex],
 [USE_GNUREGEX=$enableval])
 
+SquidInline="yes"
+AC_ARG_ENABLE(inline,
+[  --disable-inline        Don't compile trivial methods as inline. Squid
+                            is coded with much of the code able to be inlined.<                             Inlining is good for production builds, but not
+                            good for development. During development, use
+                            --disable-inline to reduce compilation times and
+                            allow incremental builds to be quick. For
+                            production builds, or load tests, use
+                            --enable-inline to have squid make all trivial
+                            methods inlinable by the compiler.],
+[ if test "$enableval" = "no" ; then
+     SquidInline="no"
+   fi
+])
+
+if test "$SquidInline" = "yes" ; then
+    AC_DEFINE(_SQUID_INLINE_, inline, [Keyword used by squid for inlining methods])
+    AC_DEFINE(_USE_INLINE_,, [Include inline methods into header file])
+else
+    AC_DEFINE(_SQUID_INLINE_,, [Keyword used by squid for inlining methods])
+fi
+
 AC_ARG_ENABLE(debug-cbdata,
 [  --enable-debug-cbdata   Provide some debug information in cbdata],
 [ if test "$enableval" = "yes" ; then