tests: add unregistered and no syscall tests
[librseq.git] / configure.ac
index 7f712ad7f2745b79499b0503737f7c07d49f3cf5..9b8a33c893de40aae47339fcaeed3609bbec3ea4 100644 (file)
@@ -182,6 +182,15 @@ AC_CHECK_LIB([dl], [dlopen], [
 ])
 AC_SUBST(DL_LIBS)
 
+PKG_CHECK_MODULES([SECCOMP], [libseccomp],
+  [
+    dnl PKG_CHECK_MODULES defines SECCOMP_LIBS
+    have_seccomp=yes
+  ],
+  [
+    have_seccomp=no
+  ])
+
 
 ##                             ##
 ## Optional features selection ##
@@ -193,6 +202,13 @@ AE_FEATURE_DEFAULT_DISABLE
 AE_FEATURE([Werror], [Treat compiler warnings as errors.])
 
 
+##                                                                          ##
+## Set automake variables for optional feature conditionnals in Makefile.am ##
+##                                                                          ##
+
+AM_CONDITIONAL([ENABLE_SECCOMP], test "x${have_seccomp}" = "xyes")
+
+
 ##                                             ##
 ## Substitute variables for use in Makefile.am ##
 ##                                             ##
This page took 0.02311 seconds and 4 git commands to generate.