]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Remove --disable-loadable-modules build option (#990)
authorAmos Jeffries <yadij@users.noreply.github.com>
Wed, 2 Mar 2022 17:20:40 +0000 (17:20 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Wed, 2 Mar 2022 18:54:50 +0000 (18:54 +0000)
 ... in favour of libtool --enable/disable-shared option which
provides the same functionality.

This has the nice side effect of simplifying the LT_INIT and
related autoconf sequences which were being modified by
--disable-loadable-modules.

configure.ac
doc/release-notes/release-6.sgml
src/cf_gen_defines
test-suite/buildtests/layer-01-minimal.opts
test-suite/buildtests/layer-02-maximus.opts
test-suite/buildtests/layer-04-noauth-everything.opts

index ed80a0ed81282050d8a845d8eb2a890ebd67e8aa..ea2efb1f4b36a29ac672aeb679993596e49d9cb5 100644 (file)
@@ -181,26 +181,9 @@ AC_ARG_ENABLE(strict-error-checking,
 ])
 AC_MSG_NOTICE([strict error checking enabled: ${enable_strict_error_checking:=yes}])
 
-AC_MSG_CHECKING(whether to use loadable modules)
-AC_ARG_ENABLE(loadable-modules,
-  AS_HELP_STRING([--disable-loadable-modules],[do not support loadable modules]) , [
-  SQUID_YESNO([$enableval],
-    [Unrecognized argument to --disable-loadable-modules: $enableval])
-])
-AM_CONDITIONAL(ENABLE_LOADABLE_MODULES, test "x${enable_loadable_modules:=yes}" = "xyes")
-AC_MSG_RESULT([$enable_loadable_modules])
-
-if test "x$enable_loadable_modules" = "xyes";
-then
-  AC_DEFINE(USE_LOADABLE_MODULES, 1, [Support Loadable Modules])
-  AC_ENABLE_SHARED
-else
-  AC_DISABLE_SHARED
-fi
-
 # LT_INIT requires libtool v2, might as well state it loud
 LT_PREREQ([2.2])
-LT_INIT([dlopen],[disable-shared])
+LT_INIT([dlopen])
 if ! test "${ac_top_build_prefix}" = "";
 then
        # LTDL v3-v7 macros assume the autoconf 2.62 variable top_build_prefix is defined
@@ -218,6 +201,11 @@ LT_LIB_DLLOAD
 AC_SUBST(INCLTDL)
 AC_SUBST(LIBLTDL)
 
+AC_MSG_CHECKING(whether to use loadable modules)
+AS_IF([test "x${enable_shared:=yes}" = "xyes"],[AC_DEFINE(USE_LOADABLE_MODULES,1,[Support Loadable Modules])])
+AM_CONDITIONAL(ENABLE_LOADABLE_MODULES, test "x${enable_shared:=yes}" = "xyes")
+AC_MSG_RESULT([$enable_shared])
+
 SQUID_CC_GUESS_VARIANT
 SQUID_CC_GUESS_OPTIONS
 
@@ -1019,9 +1007,9 @@ dnl Perform configuration consistency checks for eCAP
 if test "x$squid_opt_use_ecap" != "xno";
 then
   dnl eCAP support requires loadable modules, which are enabled by default
-  if test "x$enable_loadable_modules" != "xyes"
+  if test "x$enable_shared" != "xyes"
   then
-    AC_MSG_ERROR([eCAP support requires loadable modules. Please do not use --disable-loadable-modules with --enable-ecap.])
+    AC_MSG_ERROR([eCAP support requires loadable modules. Please do not use --disable-shared with --enable-ecap.])
   fi
 
   if test -n "$PKG_CONFIG"; then
index f132488879d43c0ba21b7916f08ead7084c87599..0e193a9155be057fd5493ff69224506b6ccc47af 100644 (file)
@@ -123,6 +123,9 @@ This section gives an account of those changes in three categories:
        <p>This feature has been unreliable for many years. Other tools such as
           oprofile provide better tracking and should be used instead.
 
+       <tag>--disable-loadable-modules</tag>
+       <p>This option was performing the same duties as <em>--disable-shared</em>.
+
 </descrip>
 
 
index 36d27a5306c5c2e130ca5c237c1ac10b9b227f8a..4c2b1d780b7d965e6647fc0320566ba478dbb435 100644 (file)
@@ -39,7 +39,7 @@ BEGIN {
        define["USE_HTTP_VIOLATIONS"]="--enable-http-violations"
        define["USE_ICMP"]="--enable-icmp"
        define["USE_IDENT"]="--enable-ident-lookups"
-       define["USE_LOADABLE_MODULES"]="--enable-loadable-modules"
+       define["USE_LOADABLE_MODULES"]="--enable-shared"
        define["USE_OPENSSL"]="--with-openssl"
        define["USE_QOS_TOS"]="--enable-zph-qos"
        define["USE_SQUID_ESI"]="--enable-esi"
index a52c12abd035c0810b9e57a1bd72b7cc82dc92fa..65d9b116c63863929e6d085b4eaf2dc0b992cafa 100644 (file)
@@ -38,7 +38,7 @@ MAKETEST="distcheck"
 #     we use it to perform the same duty between our nested scripts.
 DISTCHECK_CONFIGURE_FLAGS=" \
        --disable-build-info \
-       --disable-loadable-modules \
+       --disable-shared \
        --disable-gnuregex \
        --disable-debug-cbdata \
        --disable-xmalloc-statistics \
index fef7d884a8b43f2f6a9e75b226752769b12801d5..804134e23c0d6f83d168462d55b6256f8bd08d28 100644 (file)
@@ -52,7 +52,7 @@ MAKETEST="distcheck"
 #     distcheck target recursive tests beteen scripted runs.
 #     we use it to perform the same duty between our nested scripts.
 DISTCHECK_CONFIGURE_FLAGS=" \
-       --enable-loadable-modules \
+       --enable-shared \
        --enable-gnuregex \
        --enable-optimizations \
        --enable-debug-cbdata \
index e70ad03029bf225247e1c1ef4d0e964c2ad74701..87de0da325fcd965a6ac878855bfebd6a4427a31 100644 (file)
@@ -51,7 +51,7 @@ MAKETEST="distcheck"
 #     distcheck target recursive tests beteen scripted runs.
 #     we use it to perform the same duty between our nested scripts.
 DISTCHECK_CONFIGURE_FLAGS=" \
-       --enable-loadable-modules \
+       --enable-shared \
        --enable-gnuregex \
        --enable-optimizations \
        --enable-inline \