public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Cyril Hrubis <chrubis@suse.cz>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH V2 02/32] Add knob to control whether numa support should be checked
Date: Wed, 3 Feb 2016 15:14:02 +0100	[thread overview]
Message-ID: <20160203141402.GF30788@rei.lan> (raw)
In-Reply-To: <1452302060-103643-2-git-send-email-raj.khem@gmail.com>

Hi!
> signed-off-by: Roy.Li <rongqing.li@windriver.com>
> Signed-off-by: Khem Raj <raj.khem@gmail.com>
> ---
>  m4/ltp-numa.m4 | 10 +++++++++-
>  1 file changed, 9 insertions(+), 1 deletion(-)
> 
> diff --git a/m4/ltp-numa.m4 b/m4/ltp-numa.m4
> index 60ae07b..ed7078d 100644
> --- a/m4/ltp-numa.m4
> +++ b/m4/ltp-numa.m4
> @@ -24,7 +24,13 @@ dnl ----------------------------
>  dnl
>  AC_DEFUN([LTP_CHECK_SYSCALL_NUMA],
>  [dnl
> -AC_CHECK_HEADERS([linux/mempolicy.h numa.h numaif.h],[
> +AC_MSG_CHECKING([for numa])

This causes the output messages to be interleaved when configure is
executed without the --without-numa parameter.

> +AC_ARG_WITH(
> +	[numa],
> +	AC_HELP_STRING([--without-numa],
> +	[without numa support]),
> +	[],
> +	[AC_CHECK_HEADERS([linux/mempolicy.h numa.h numaif.h],[
>  	LTP_SYSCALL_NUMA_HEADERS=yes
>  	AC_CHECK_LIB(numa,numa_alloc_onnode,[have_numa_alloc_onnode="yes"])
>  	if  test "x$have_numa_alloc_onnode" = "xyes"; then
> @@ -48,3 +54,5 @@ if test "x$have_mpol_constants" = "xyes"; then
>  	AC_DEFINE(HAVE_MPOL_CONSTANTS,1,[define to 1 if you have all constants required to use mbind tests])
>  fi
>  )])
> +AC_MSG_RESULT([$with_numa])

And this genereates empty line in that case.

> +])

If you want to print "Checking for numa... disabled" or something
similar in the output you should do it only in the case that the
--without-numa flag was passed.

-- 
Cyril Hrubis
chrubis@suse.cz

  reply	other threads:[~2016-02-03 14:14 UTC|newest]

Thread overview: 56+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-09  1:13 [LTP] [PATCH V2 01/32] ltp: Don't link against libfl Khem Raj
2016-01-09  1:13 ` [LTP] [PATCH V2 02/32] Add knob to control whether numa support should be checked Khem Raj
2016-02-03 14:14   ` Cyril Hrubis [this message]
2016-01-09  1:13 ` [LTP] [PATCH V2 03/32] Add knob to control tirpc support Khem Raj
2016-02-03 14:14   ` Cyril Hrubis
2016-01-09  1:13 ` [LTP] [PATCH V2 04/32] build: Add option to select libc implementation Khem Raj
2016-02-02 15:45   ` Cyril Hrubis
2016-01-09  1:13 ` [LTP] [PATCH V2 05/32] kernel/controllers: Link with libfts explicitly on musl Khem Raj
2016-02-02 15:48   ` Cyril Hrubis
2016-01-09  1:13 ` [LTP] [PATCH V2 06/32] sendfile: Use off64_t instead of __off64_t Khem Raj
2016-01-09  1:13 ` [LTP] [PATCH V2 07/32] replace SIGCLD with SIGCHLD Khem Raj
2016-02-02 15:59   ` Cyril Hrubis
2016-01-09  1:13 ` [LTP] [PATCH V2 08/32] Check if __GLIBC_PREREQ is defined before using it Khem Raj
2016-02-03 12:42   ` Cyril Hrubis
2016-01-09  1:13 ` [LTP] [PATCH V2 09/32] Guard error.h with __GLIBC__ Khem Raj
2016-02-02 15:41   ` Cyril Hrubis
2016-01-09  1:13 ` [LTP] [PATCH V2 10/32] replace __BEGIN_DECLS and __END_DECLS Khem Raj
2016-02-02 15:52   ` Cyril Hrubis
2016-01-09  1:13 ` [LTP] [PATCH V2 11/32] Rename sigset variable to sigset1 Khem Raj
2016-01-09  1:14 ` [LTP] [PATCH V2 12/32] fsstress.c: Replace __int64_t with int64_t Khem Raj
2016-01-09  1:14 ` [LTP] [PATCH V2 13/32] include fcntl.h for getting O_* definitions Khem Raj
2016-01-09  1:14 ` [LTP] [PATCH V2 14/32] hyperthreading: Include sys/types.h for pid_t definition Khem Raj
2016-01-09  1:14 ` [LTP] [PATCH V2 15/32] mincore01: Rename PAGESIZE to pagesize Khem Raj
2016-02-02 18:04   ` Cyril Hrubis
2016-01-09  1:14 ` [LTP] [PATCH V2 16/32] ustat: Change header from ustat.h to sys/ustat.h Khem Raj
2016-01-09  1:14 ` [LTP] [PATCH V2 17/32] replace sigval_t with union sigval Khem Raj
2016-01-09  1:14 ` [LTP] [PATCH V2 18/32] guard mallocopt() with __GLIBC__ Khem Raj
2016-02-02 16:15   ` Cyril Hrubis
2016-01-09  1:14 ` [LTP] [PATCH V2 19/32] tomoyo: Replace canonicalize_file_name() with realpath() Khem Raj
2016-01-09  1:14 ` [LTP] [PATCH V2 20/32] getdents: define getdents/getdents64 only for glibc Khem Raj
2016-02-02 16:48   ` Cyril Hrubis
2016-01-09  1:14 ` [LTP] [PATCH V2 21/32] Define _GNU_SOURCE for MREMAP_MAYMOVE definition Khem Raj
2016-02-02 16:51   ` Cyril Hrubis
2016-01-09  1:14 ` [LTP] [PATCH V2 22/32] include sys/types.h Khem Raj
2016-02-02 17:02   ` Cyril Hrubis
2016-01-09  1:14 ` [LTP] [PATCH V2 23/32] ptrace: Use int instead of enum __ptrace_request Khem Raj
2016-02-02 17:02   ` Cyril Hrubis
2016-01-09  1:14 ` [LTP] [PATCH V2 24/32] rt_sigaction/rt_sigprocmark: Define _GNU_SOURCE Khem Raj
2016-02-02 17:08   ` Cyril Hrubis
2016-01-09  1:14 ` [LTP] [PATCH V2 25/32] mc_gethost: include sys/types.h Khem Raj
2016-02-02 17:09   ` Cyril Hrubis
2016-01-09  1:14 ` [LTP] [PATCH V2 26/32] crash01: Define _GNU_SOURCE Khem Raj
2016-02-02 17:10   ` Cyril Hrubis
2016-01-09  1:14 ` [LTP] [PATCH V2 27/32] sysconf01: Use _SC_2_C_VERSION conditionally Khem Raj
2016-02-02 17:14   ` Cyril Hrubis
2016-01-09  1:14 ` [LTP] [PATCH V2 28/32] rt_sigaction.h: Use sighandler_t instead of __sighandler_t Khem Raj
2016-02-02 17:21   ` Cyril Hrubis
2016-01-09  1:14 ` [LTP] [PATCH V2 29/32] trace_shed: Fix build with musl Khem Raj
2016-02-02 17:28   ` Cyril Hrubis
2016-01-09  1:14 ` [LTP] [PATCH V2 30/32] lib: Use PTHREAD_MUTEX_RECURSIVE in place of PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP for non-glibc Khem Raj
2016-01-09  7:44   ` Khem Raj
2016-01-09  1:14 ` [LTP] [PATCH V2 31/32] vma03: fix page size offset as per page size alignment Khem Raj
2016-02-03 13:30   ` Cyril Hrubis
2016-01-09  1:14 ` [LTP] [PATCH V2 32/32] regen.sh: Include asm/unistd.h explicitly Khem Raj
2016-02-02 18:02 ` [LTP] [PATCH V2 01/32] ltp: Don't link against libfl Cyril Hrubis
2016-02-02 18:43   ` Khem Raj

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160203141402.GF30788@rei.lan \
    --to=chrubis@suse.cz \
    --cc=ltp@lists.linux.it \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox