]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix double-define warning in some compilers.
authoramosjeffries <>
Thu, 20 Sep 2007 17:03:42 +0000 (17:03 +0000)
committeramosjeffries <>
Thu, 20 Sep 2007 17:03:42 +0000 (17:03 +0000)
This changes a define-ON then check for define-OFF configuration
to a define-OFF is asked else define-ON logic.

configure.in

index 0ce455d6ec22372ba2eba2db205df2b0a425eba0..239f7c2a9bb21da92812b64fc6a80b3563fe5e1c 100644 (file)
@@ -1,7 +1,7 @@
 
 dnl  Configuration input file for Squid
 dnl
-dnl  $Id: configure.in,v 1.478 2007/09/17 21:06:09 hno Exp $
+dnl  $Id: configure.in,v 1.479 2007/09/20 11:03:42 amosjeffries Exp $
 dnl
 dnl
 dnl
@@ -11,7 +11,7 @@ AM_CONFIG_HEADER(include/autoconf.h)
 AC_CONFIG_AUX_DIR(cfgaux)
 AC_CONFIG_SRCDIR([src/main.cc])
 AM_INIT_AUTOMAKE([tar-ustar])
-AC_REVISION($Revision: 1.478 $)dnl
+AC_REVISION($Revision: 1.479 $)dnl
 AC_PREFIX_DEFAULT(/usr/local/squid)
 AM_MAINTAINER_MODE
 
@@ -1623,7 +1623,6 @@ AC_ARG_WITH(valgrind-debug,
 ])
 
 dnl Disable "memPools" code
-AC_DEFINE(DISABLE_POOLS, 0, [Define if you have problems with memPools and want to disable Pools.])
 AC_ARG_ENABLE(mempools,
 [  --disable-mempools      Disable memPools. Note that this option now simply sets the
                          default behaviour. Specific classes can override this at runtime, and
@@ -1632,7 +1631,11 @@ AC_ARG_ENABLE(mempools,
 [ if test "$enableval" = "no" ; then
     echo "memPools disabled"
     AC_DEFINE(DISABLE_POOLS, 1, [Define if you have problems with memPools and want to disable Pools])
+  else
+    AC_DEFINE(DISABLE_POOLS, 0, [Define if you have problems with memPools and want to disable Pools.])
   fi
+],
+[ AC_DEFINE(DISABLE_POOLS, 0, [Define if you have problems with memPools and want to disable Pools.])
 ])
 
 dnl Enable WIN32 Service compile mode