dnl so we must set it as default.
REPL_POLICIES="lru"
AC_ARG_ENABLE(removal-policies,
- AS_HELP_STRING([--enable-removal-policies="list of policies"],[Build support for the list of removal policies.
+ AS_HELP_STRING([--enable-removal-policies="list of policies"],
+ [Build support for the list of removal policies.
The default is only to build the "lru" module.
See src/repl for a list of available modules, or
Programmers Guide section 9.9 for details on how
esac
])
if test -n "$REPL_POLICIES"; then
- for module in $REPL_POLICIES; do
- if test -d $srcdir/src/repl/$module; then
- :
- else
- AC_MSG_ERROR(Removal policy $module does not exist)
- fi
- done
+ SQUID_CHECK_EXISTING_MODULES([$srcdir/src/repl],[REPL_POLICIES])
AC_MSG_NOTICE([Removal policies built: $REPL_POLICIES])
REPL_OBJS="repl/lib`echo $REPL_POLICIES|sed -e 's% %.a repl/lib%g'`.a"
REPL_LIBS="`echo $REPL_OBJS|sed -e 's%repl/%%g'`"