X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=configure.ac;h=d1d605bd895b509787b20c6a37d3bde7e6518994;hb=5a9970886c0ba9b21f57cff88e71d18f60ebdac6;hp=5b0990dabe6c0ac241609b91728bdb1153b84b8f;hpb=88c66efb5a534828dbb2a4128339e3491758de49;p=urcu.git diff --git a/configure.ac b/configure.ac index 5b0990d..d1d605b 100644 --- a/configure.ac +++ b/configure.ac @@ -2,7 +2,7 @@ # Process this file with autoconf to produce a configure script. -AC_INIT([userspace-rcu],[0.7.5],[mathieu dot desnoyers at efficios dot com]) +AC_INIT([userspace-rcu],[0.7.6],[mathieu dot desnoyers at efficios dot com]) # Following the numbering scheme proposed by libtool for the library version # http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html @@ -215,6 +215,26 @@ AC_CHECK_FUNCS([sched_setaffinity],[ AC_MSG_RESULT([no]) ]) + # Confirm that we have CPU_SET, and it actually works. + AC_MSG_CHECKING([whether CPU_SET works]) + AH_TEMPLATE([HAVE_CPU_SET], [Defined to 1 if we have CPU_SET and it works]) + AC_COMPILE_IFELSE([AC_LANG_SOURCE([[ + #define _GNU_SOURCE + #include + int main() + { + cpu_set_t foo, mask; CPU_SET (0, &foo); + return 0; + } + ]]) + ],[ + # Works! + AC_DEFINE(HAVE_CPU_SET, 1) + AC_MSG_RESULT([yes]) + ],[ + AC_MSG_RESULT([no]) + ]) + # Check how many arguments does sched_setaffinity take. # Should be 3 or 2. AC_MSG_CHECKING([how many arguments sched_setaffinity takes])