X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=configure.ac;h=48d63e879750ef870461ad0f314c592464c887fb;hp=518f545bd08964096d3a985c8a08ad7677c2753c;hb=112cfb181453e38d3ef4a74fba23abbb53392002;hpb=c0467cf387548dc98c0254f63553d862b35a84e5 diff --git a/configure.ac b/configure.ac index 518f545bd..48d63e879 100644 --- a/configure.ac +++ b/configure.ac @@ -327,7 +327,9 @@ have_seccomp=no AC_ARG_ENABLE(seccomp, AS_HELP_STRING([--disable-seccomp], [Disable optional SECCOMP support])) if test "x$enable_seccomp" != "xno"; then PKG_CHECK_MODULES(SECCOMP, [libseccomp >= 1.0.0], - [AC_DEFINE(HAVE_SECCOMP, 1, [Define if seccomp is available]) have_seccomp=yes], + [AC_DEFINE(HAVE_SECCOMP, 1, [Define if seccomp is available]) + have_seccomp=yes + M4_DEFINES="$M4_DEFINES -DHAVE_SECCOMP"], [have_seccomp=no]) if test "x$have_seccomp" = "xno" -a "x$enable_seccomp" = "xyes"; then AC_MSG_ERROR([*** seccomp support requested but libraries not found])