]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Links with libecap when building with eCAP support.
authorAlex Rousskov <rousskov@measurement-factory.com>
Thu, 8 May 2008 19:53:49 +0000 (13:53 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Thu, 8 May 2008 19:53:49 +0000 (13:53 -0600)
TODO: Make libecap location configurable.

configure.in

index cb76c104f54f018703ff0fd44580bed5d77c116c..3dd6904efb806fe4c1b25e0051e507fe903fa28c 100644 (file)
@@ -793,13 +793,21 @@ then
             eCAP support requires loadable modules. Please do not use
             --disable-loadable-modules with --enable-ecap.]);
     fi
+
+    dnl eCAP support requires libecap
+    AC_CHECK_LIB([ecap], [main],
+        [ECAP_LIBS="-lecap"],
+        [AC_MSG_FAILURE([
+            eCAP support requires libecap library,
+            but no usable library was found])]
+    )
 fi
 
 AM_CONDITIONAL(USE_ECAP, test $use_ecap = yes)
 if test $use_ecap = yes;
 then
     AC_DEFINE(USE_ECAP,1,[Enable eCAP support])
-    ECAP_LIBS="eCAP/libeCAP.la"
+    ECAP_LIBS="eCAP/libeCAP.la $ECAP_LIBS"
     use_adaptation=yes
 else
     AC_DEFINE(USE_ECAP,0,[Disable eCAP support])