From: Francesco Chemolli <5175948+kinkie@users.noreply.github.com> Date: Mon, 16 Dec 2024 14:49:55 +0000 (+0000) Subject: Portability: remove explicit check for libdl (#1963) X-Git-Tag: SQUID_7_0_1~19 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=8b3185859bdc743482c78c1297f2b9e87b53b0cf;p=thirdparty%2Fsquid.git Portability: remove explicit check for libdl (#1963) OpenBSD does not have libdl, as it has dlopen() in libc. It is not really needed, and force-requiring the presence of libdl causes ./configure to fail on openbsd: checking for dlopen in -ldl... no configure: error: Required library 'dl' not found --- diff --git a/configure.ac b/configure.ac index 2cbd317cf0..3b06f8bae7 100644 --- a/configure.ac +++ b/configure.ac @@ -403,13 +403,6 @@ AS_IF([test "x$squid_opt_aufs_threads" != "x"],[ [Defines how many threads aufs uses for I/O]) ]) -## TODO check if this is necessary, LT_INIT does these checks -SQUID_AUTO_LIB(dl,[dynamic linking],[LIBDL]) -SQUID_CHECK_LIB_WORKS(dl,[ - LDFLAGS="$LIBDL_PATH $LDFLAGS" - AC_CHECK_LIB(dl, dlopen,[LIBDL_LIBS="-ldl"]) -]) - AC_DEFUN([LIBATOMIC_CHECKER],[ AC_MSG_CHECKING(whether linking $1 -latomic works) AC_LINK_IFELSE([