Skip to content
Snippets Groups Projects
Commit e02e7ba9 authored by Moe Jette's avatar Moe Jette
Browse files

Tweak the NUMA M4 test script.

parent 39a5acd1
No related branches found
No related tags found
No related merge requests found
...@@ -14,12 +14,17 @@ ...@@ -14,12 +14,17 @@
# This macro must be placed after AC_PROG_CC or equivalent. # This macro must be placed after AC_PROG_CC or equivalent.
##***************************************************************************** ##*****************************************************************************
AC_DEFUN([X_AC_NUMA], [ AC_DEFUN([X_AC_NUMA],
[
AC_CHECK_LIB([numa],
[numa_available],
[ac_have_numa=yes; NUMA_LIBS="-lnuma"])
# Test if numa_available function exists AC_SUBST(NUMA_LIBS)
save_LIBS="$LIBS" if test "x$ac_have_numa" = "xyes"; then
LIBS="-lnuma $LIBS" AC_DEFINE(HAVE_NUMA, 1, [define if you have the numa library])
AC_CHECK_FUNCS(numa_available, [have_numa_available=yes], [LIBS="$save_LIBS"]) else
AM_CONDITIONAL(HAVE_NUMA_AFFINITY, test "x$have_numa_available" = "xyes") AC_MSG_WARN([Unable to locate NUMA memory affinity functions])
fi
]) ])
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment