message: Fixed compilation (seccomp/cap undefined symbols)
diff: @@ -197,6 +197,9 @@ AC_ARG_ENABLE([debug],
  [enable_debug=$enableval],
  [enable_debug=no])
  +AC_ARG_ENABLE(seccomp,
  + AS_HELP_STRING(--disable-seccomp, [do not attempt to use libseccomp]))
  +
  AC_LANG_PUSH([C++])
  AX_CHECK_COMPILE_FLAG([-Werror],[CXXFLAG_WERROR="-Werror"],[CXXFLAG_WERROR=""])
  @@ -888,6 +891,20 @@ fi
  fi
  +dnl ============================================================
  +dnl Check for libseccomp
  +
  +if test "x$enable_seccomp" != "xno"; then
  + AC_CHECK_HEADERS([seccomp.h])
  + AC_SEARCH_LIBS(seccomp_init, [seccomp])
  +fi
  +
  +dnl ============================================================
  +dnl Check for libcap
  +
  +AC_CHECK_HEADERS([sys/capability.h])
  +AC_SEARCH_LIBS(cap_get_proc, [cap])
  +
  ac_configure_args="${ac_configure_args} --disable-shared"
  AM_CONDITIONAL([EMBEDDED_UNIVALUE],[test x$need_bundled_univalue = xyes])
  