]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
New --disable-seccomp option to turn off support for seccomp.
authorNick Mathewson <nickm@torproject.org>
Mon, 28 Apr 2014 15:11:11 +0000 (11:11 -0400)
committerNick Mathewson <nickm@torproject.org>
Mon, 28 Apr 2014 15:11:50 +0000 (11:11 -0400)
Fixes 11628.

changes/bug11628 [new file with mode: 0644]
configure.ac

diff --git a/changes/bug11628 b/changes/bug11628
new file mode 100644 (file)
index 0000000..b93e1f4
--- /dev/null
@@ -0,0 +1,4 @@
+  o Minor features:
+    - The configure script has a --disable-seccomp option to turn off
+      support for libseccomp on systems that have it, in case it (or
+      Tor's use of it) is broken. Resolves ticket 11628.
index edfe2f8e9a140a2c81311ab50437320462abc128..8b5e853ea320caeec9ef05b1463b3f057c1b7f87 100644 (file)
@@ -161,6 +161,9 @@ AC_ARG_ENABLE(bufferevents,
 AC_ARG_ENABLE(tool-name-check,
      AS_HELP_STRING(--disable-tool-name-check, check for sanely named toolchain when cross-compiling))
 
+AC_ARG_ENABLE(seccomp,
+     AS_HELP_STRING(--disable-seccomp, do not attempt to use libseccomp))
+
 dnl check for the correct "ar" when cross-compiling
 AN_MAKEVAR([AR], [AC_PROG_AR])
 AN_PROGRAM([ar], [AC_PROG_AR])
@@ -726,8 +729,10 @@ fi
 dnl ============================================================
 dnl Check for libseccomp
 
-AC_CHECK_HEADERS([seccomp.h])
-AC_SEARCH_LIBS(seccomp_init, [seccomp])
+if test "x$enable_seccomp" != "xno"; then
+  AC_CHECK_HEADERS([seccomp.h])
+  AC_SEARCH_LIBS(seccomp_init, [seccomp])
+fi
 
 dnl ============================================================
 dnl We need an implementation of curve25519.