PKG_PROG_PKG_CONFIG
dnl Perform configuration consistency checks for eCAP
-ECAPLIB=""
if test "x$squid_opt_use_ecap" = "xyes";
then
dnl eCAP support requires loadable modules, which are enabled by default
if test "x$squid_opt_use_ecap" = "xyes";
then
AC_DEFINE(USE_ECAP,1,[Enable eCAP support])
- ECAP_LIBS="ecap/libecap.la"
+ ECAP_LIBS="ecap/libxecap.la"
squid_opt_use_adaptation=yes
else
AC_DEFINE(USE_ECAP,0,[Disable eCAP support])
History.h
# add libraries for specific adaptation schemes
+libadaptation_la_LDFLAGS = $(EXTLIBECAP_LIBS)
libadaptation_la_LIBADD = $(ECAP_LIBS) $(ICAP_LIBS)
libadaptation_la_DEPENDENCIES = $(ECAP_LIBS) $(ICAP_LIBS)
include $(top_srcdir)/src/Common.am
include $(top_srcdir)/src/TestHeaders.am
-noinst_LTLIBRARIES = libecap.la
+noinst_LTLIBRARIES = libxecap.la
-libecap_la_SOURCES = \
+libxecap_la_SOURCES = \
Config.h \
Config.cc \
Host.h \
Registry.h
# add libecap using its pkg-config-produced configuration variables
-libecap_la_LDFLAGS = $(EXTLIBECAP_LIBS)
-libecap_la_CPPFLAGS = $(EXTLIBECAP_CFLAGS)
+libxecap_la_CPPFLAGS = $(EXTLIBECAP_CFLAGS)
+
+## It is tempting to put libxecap_la_LDFLAGS here, but it leads to weird
+## linking errors. For example, "make clean all" works, but rebuilding after
+## modifying a single source file leads to libtool's "file not found" errors.
+## libxecap_la_LDFLAGS = $(EXTLIBECAP_LIBS)