AM_CONDITIONAL([USE_AIOPS_WIN32], [test "$USE_AIOPS_WIN32" = 1])
AM_CONDITIONAL([USE_AIO_WIN32], [test "$USE_AIO_WIN32" = 1])
+
+dnl At lest one removal policy is always needed.
+dnl 'lru' removal policy is currently hard-coded by name for tests
+dnl so we must set it as default.
+REPL_POLICIES="lru"
AC_ARG_ENABLE(removal-policies,
AC_HELP_STRING([--enable-removal-policies="list of policies"],
[Build support for the list of removal policies.
yes)
for dir in $srcdir/src/repl/*; do
module="`basename $dir`"
- if test -d "$dir" && test "$module" != CVS; then
+ if test -d "$dir" && test "$module" != CVS && test "$module" != "lru"; then
REPL_POLICIES="$REPL_POLICIES $module"
fi
done
REPL_POLICIES="`echo $enableval| sed -e 's/,/ /g;s/ */ /g'`"
;;
esac
-],
-[ if test -z "$REPL_POLICIES"; then
- REPL_POLICIES="lru"
- fi
])
if test -n "$REPL_POLICIES"; then
for module in $REPL_POLICIES; do
SWAP_TEST_LDADD = \
libauth.la \
- repl/lru/store_repl_lru.o \
@REGEXLIB@ \
@STORE_LINKOBJS@ \
@STORE_OBJS@ \
@SQUID_CPPUNIT_LIBS@
SWAP_TEST_DS =\
$(top_builddir)/lib/libmiscutil.a \
- repl/lru/store_repl_lru.o \
repl_modules.o \
@DISK_LIBS@ \
@STORE_LINKOBJS@ \