Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 1 | From 39a85a1f1e6624f554215ba4b6843d3689a8415e Mon Sep 17 00:00:00 2001 |
| 2 | From: Anders Roxell <anders.roxell@linaro.org> |
| 3 | Date: Mon, 5 Feb 2018 11:56:04 +0100 |
| 4 | Subject: [PATCH] configure: add knob to control numa support |
| 5 | |
| 6 | Allow to disable numa from the top level. |
| 7 | |
| 8 | Based on patch: |
| 9 | http://cgit.openembedded.org/openembedded-core/commit/meta/recipes-extended/ltp?id=4c7873552e13dfdba96afca7562c398d2966ca71 |
| 10 | |
| 11 | Reported-by: Roy Li <rongqing.li@windriver.com> |
| 12 | Signed-off-by: Anders Roxell <anders.roxell@linaro.org> |
| 13 | Signed-off-by: Petr Vorel <pvorel@suse.cz> |
| 14 | Upstream-Status: Accepted |
| 15 | --- |
| 16 | configure.ac | 10 ++++++++++ |
| 17 | 1 file changed, 10 insertions(+) |
| 18 | |
| 19 | diff --git a/configure.ac b/configure.ac |
| 20 | index 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 | -- |
| 49 | 2.7.4 |
| 50 | |