]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bootstrapped
authorAutomatic source maintenance <squidadm@squid-cache.org>
Tue, 27 Jan 2009 02:04:13 +0000 (19:04 -0700)
committerAutomatic source maintenance <squidadm@squid-cache.org>
Tue, 27 Jan 2009 02:04:13 +0000 (19:04 -0700)
lib/libTrie/configure
src/Makefile.in

index 6be1aa953239b07f565cccc0d6462aacc45b49d9..5ee70f4eac5529301409202a98077790e7a02bbf 100755 (executable)
@@ -731,6 +731,7 @@ LTLIBOBJS'
 ac_subst_files=''
 ac_user_opts='
 enable_option_checking
+enable_optimizations
 enable_inline
 enable_dependency_tracking
 enable_maintainer_mode
@@ -1373,14 +1374,21 @@ Optional Features:
   --disable-option-checking  ignore unrecognized --enable/--with options
   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
-  --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.
+  --disable-optimizations Don't compile Squid with compiler optimizations
+                          enabled. Optimization is good for production builds,
+                          but not good for debugging. During development, use
+                          --disable-optimizations to reduce compilation times
+                          and allow easier debugging. This option implicitly
+                          also enabled --disable-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.
   --disable-dependency-tracking  speeds up one-time build
   --enable-dependency-tracking   do not reject slow dependency extractors
   --enable-maintainer-mode  enable make rules and dependencies not useful
@@ -1880,11 +1888,25 @@ ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 
 
 SquidInline="yes"
+
+# Check whether --enable-optimizations was given.
+if test "${enable_optimizations+set}" = set; then
+  enableval=$enable_optimizations;  if test "$enableval" = "no" ; then
+        { $as_echo "$as_me:$LINENO: Disabling compiler optimizations (-O flag)" >&5
+$as_echo "$as_me: Disabling compiler optimizations (-O flag)" >&6;}
+        CFLAGS="`echo $CFLAGS | sed -e 's/-O[0-9]*//'`"
+        CXXFLAGS="`echo $CXXFLAGS | sed -e 's/-O[0-9]*//'`"
+        SquidInline="no"
+  fi
+
+fi
+
+
 # Check whether --enable-inline was given.
 if test "${enable_inline+set}" = set; then
   enableval=$enable_inline;  if test "$enableval" = "no" ; then
-       SquidInline="no"
-     fi
+     SquidInline="no"
+   fi
 
 fi
 
@@ -1901,6 +1923,8 @@ cat >>confdefs.h <<\_ACEOF
 _ACEOF
 
 else
+    { $as_echo "$as_me:$LINENO: Inlining optimization disabled" >&5
+$as_echo "$as_me: Inlining optimization disabled" >&6;}
 
 cat >>confdefs.h <<\_ACEOF
 #define _SQUID_INLINE_ /**/
@@ -1908,6 +1932,7 @@ _ACEOF
 
 fi
 
+
 # Checks for programs.
 ac_ext=cpp
 ac_cpp='$CXXCPP $CPPFLAGS'
index 84515896dc788293c2040602e4d649786840a0b4..bd5cc5207d7d1fe67fbfd9ff486aaa6eeb598d49 100644 (file)
@@ -2530,7 +2530,7 @@ ufsdump_SOURCES = \
 ufsdump_LDADD = \
        libsquid.la \
        libauth.la \
-       -L../lib \
+       -L../lib -lmiscutil \
        @XTRA_OBJS@ \
        @REPL_OBJS@ \
        @STORE_OBJS@ \
@@ -2540,7 +2540,6 @@ ufsdump_LDADD = \
        @SNMPLIB@ \
        @ICAP_LIBS@ \
        @SSLLIB@ \
-       -lmiscutil \
        @XTRA_LIBS@ \
        @EPOLL_LIBS@ \
        @MINGW_LIBS@