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_6_13~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f48be6ed5012173c50c7c904c0d48121caaec298;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 05aede6eb8..465ba34bda 100644 --- a/configure.ac +++ b/configure.ac @@ -393,14 +393,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]) -AS_IF([test "x$with_dl" != "xno"],[ - CXXFLAGS="$LIBDL_CFLAGS $CXXFLAGS" - LDFLAGS="$LIBDL_PATH $LDFLAGS" - AC_CHECK_LIB(dl, dlopen) -]) - AC_DEFUN([LIBATOMIC_CHECKER],[ AC_MSG_CHECKING(whether linking $1 -latomic works) AC_LINK_IFELSE([