From: Francesco Chemolli Date: Mon, 7 Dec 2009 09:52:25 +0000 (+0100) Subject: refactored module check for replacement policies. X-Git-Tag: SQUID_3_2_0_1~310^2~41 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=56ffc413ae9a4187b37e1a7227935b4b3dd7dfc7;p=thirdparty%2Fsquid.git refactored module check for replacement policies. --- diff --git a/configure.in b/configure.in index 710494bcb9..e5079fd1f1 100644 --- a/configure.in +++ b/configure.in @@ -794,7 +794,8 @@ 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, - 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 @@ -816,13 +817,7 @@ AC_ARG_ENABLE(removal-policies, 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'`"