]> git.eshelyaron.com Git - emacs.git/commit
Generate Seccomp filters only if we have the necessary constants.
authorPhilipp Stephani <phst@google.com>
Mon, 12 Apr 2021 07:15:59 +0000 (09:15 +0200)
committerPhilipp Stephani <phst@google.com>
Mon, 12 Apr 2021 07:15:59 +0000 (09:15 +0200)
commit17d20bb3cbb233ed0d94c3f1f9f3db768f526223
tree551316e110c9443c5f96ec58c5cf0ab598cf311a
parentc45bfd3c4abbfa585c9199f4866b6b8046945117
Generate Seccomp filters only if we have the necessary constants.

If we're missing SECCOMP_SET_MODE_FILTER, the seccomp-filter build
fails.  Reuse the existing HAVE_SECCOMP configuration variable, which
checks for these macros.

* configure.ac (HAVE_SECCOMP): Substitute in Makefile.in.
* lib-src/Makefile.in (HAVE_SECCOMP): New variable.
(SECCOMP_FILTER): Define only if HAVE_SECCOMP.
configure.ac
lib-src/Makefile.in