blob: 8aaa287b76bcdadb6383db86d102a9d4386e0f75 [file] [log] [blame]
Brad Bishop316dfdd2018-06-25 12:45:53 -04001From 39a85a1f1e6624f554215ba4b6843d3689a8415e Mon Sep 17 00:00:00 2001
2From: Anders Roxell <anders.roxell@linaro.org>
3Date: Mon, 5 Feb 2018 11:56:04 +0100
4Subject: [PATCH] configure: add knob to control numa support
5
6Allow to disable numa from the top level.
7
8Based on patch:
9http://cgit.openembedded.org/openembedded-core/commit/meta/recipes-extended/ltp?id=4c7873552e13dfdba96afca7562c398d2966ca71
10
11Reported-by: Roy Li <rongqing.li@windriver.com>
12Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
13Signed-off-by: Petr Vorel <pvorel@suse.cz>
14Upstream-Status: Accepted
15---
16 configure.ac | 10 ++++++++++
17 1 file changed, 10 insertions(+)
18
19diff --git a/configure.ac b/configure.ac
20index 5c8d4ea..b39a31d 100644
21--- a/configure.ac
22+++ b/configure.ac
23@@ -83,6 +83,14 @@ else
24 AC_SUBST([WITH_EXPECT],["no"])
25 fi
26
27+# Numa
28+AC_ARG_WITH([numa],
29+ AC_HELP_STRING([--without-numa],
30+ [without numa support (default=yes)]),
31+ [with_numa=no],
32+ [with_numa=yes]
33+)
34+
35 # Perl
36 AC_ARG_WITH([perl],
37 [AC_HELP_STRING([--with-perl],
38@@ -157,7 +165,9 @@ LTP_CHECK_SELINUX
39 LTP_CHECK_SIGNAL
40 LTP_CHECK_SYSCALL_EVENTFD
41 LTP_CHECK_SYSCALL_MODIFY_LDT
42+if test "x$with_numa" = xyes; then
43 LTP_CHECK_SYSCALL_NUMA
44+fi
45 LTP_CHECK_SYSCALL_QUOTACTL
46 LTP_CHECK_SYSCALL_SIGNALFD
47 LTP_CHECK_SYSCALL_UNSHARE
48--
492.7.4
50