]>
Commit | Line | Data |
---|---|---|
00e40dba VB |
1 | # |
2 | # lldp_CHECK_SECCOMP | |
3 | # | |
4 | ||
5 | AC_DEFUN([lldp_CHECK_SECCOMP], [ | |
6 | if test x"$with_seccomp" != x"no"; then | |
7 | PKG_CHECK_MODULES([SECCOMP], [libseccomp >= 1], [ | |
8 | AC_SUBST([SECCOMP_LIBS]) | |
9 | AC_SUBST([SECCOMP_CFLAGS]) | |
10 | AC_DEFINE_UNQUOTED([USE_SECCOMP], 1, [Define to indicate to enable seccomp support]) | |
11 | with_seccomp=yes | |
12 | ], [ | |
13 | if test x"$with_seccomp" = x"yes"; then | |
14 | AC_MSG_FAILURE([*** no seccomp support found]) | |
15 | fi | |
16 | with_seccomp=no | |
17 | ]) | |
18 | fi | |
19 | ]) |