]> git.proxmox.com Git - mirror_frr.git/commitdiff
clippy: fail libcap test only when !enable_clippy_only
authorLucian Cristian <lucian.cristian@gmail.com>
Fri, 13 Sep 2019 04:16:18 +0000 (07:16 +0300)
committerLucian Cristian <lucian.cristian@gmail.com>
Fri, 13 Sep 2019 04:16:18 +0000 (07:16 +0300)
when building native clippy we don't need libcap

Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
configure.ac

index 9f37b3e9a9692caa9dcea3a96d303762373c2776..be3a9c763ddd2d86821d593cafe7746fb1e8a258 100755 (executable)
@@ -2043,9 +2043,11 @@ if test "${enable_capabilities}" != "no"; then
 
   case "$host_os" in
   linux*)
+    if test "${enable_clippy_only}" != "yes"; then
     if test "$frr_ac_lcaps" != "yes"; then
       AC_MSG_ERROR([libcap and/or its headers were not found.  Running FRR without libcap support built in causes a huge performance penalty.])
     fi
+    fi
     ;;
   esac
 else