allow people to control numa support

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
Mike Frysinger 2011-11-03 17:05:08 -04:00 committed by Neil Horman
parent b344c71980
commit c126cc6c45
2 changed files with 12 additions and 0 deletions

View file

@ -48,10 +48,18 @@ AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_AWK
AC_ARG_ENABLE([numa],
AS_HELP_STRING([--disable-numa], [enable numa support (default is auto)]))
AS_IF([test "$enable_numa" = "no"],[
ac_cv_header_numa_h=no
ac_cv_lib_numa_numa_available=no
])
AC_MSG_NOTICE
AC_MSG_NOTICE([echo Checking for header files])
AC_HEADER_STDC
AC_CHECK_HEADERS([numa.h])
AC_CHECK_FUNCS(getopt_long)

View file

@ -11,7 +11,11 @@
#include <syslog.h>
#include "types.h"
#ifdef HAVE_NUMA_H
#include <numa.h>
#else
#define numa_available() -1
#endif
extern int package_count;
extern int cache_domain_count;