AC_FUNC_FORK
AC_CHECK_FUNCS([ \
atexit \
- clock_gettime \
getcpuid \
gettid \
gettimeofday \
# Find arch type
AS_CASE([$host_cpu],
+ [k1om], [ARCHTYPE="x86"],
[i386], [ARCHTYPE="x86" && SUBARCHTYPE="x86compat"],
[i486], [ARCHTYPE="x86"],
[i586], [ARCHTYPE="x86"],
[arm*], [ARCHTYPE="arm"],
[aarch64], [ARCHTYPE="aarch64"],
[mips*], [ARCHTYPE="mips"],
+ [nios2*], [ARCHTYPE="nios2"],
[tile*], [ARCHTYPE="tile"],
[hppa*], [ARCHTYPE="hppa"],
[ARCHTYPE="unknown"]
#
#k1om is the name for the Intel MIC family (Xeon Phi). It is an x86_64
#variant but lacks fence instructions.
- AS_IF([test "x$host_cpu" != "xi386" -a "x$host_cpu" != "xi486" -a "x$host_cpu" != "xi586" -a "x$host_cpu" != "xi686" -a "x$host_vendor" != "xk1om"],[
+ AS_IF([test "x$host_cpu" != "xi386" -a "x$host_cpu" != "xi486" -a "x$host_cpu" != "xi586" -a "x$host_cpu" != "xi686" -a "x$host_vendor" != "xk1om" -a "x$host_cpu" != "xk1om"],[
AC_MSG_RESULT([yes])
AC_DEFINE([CONFIG_RCU_HAVE_FENCE], [1])
],[
compat_futex_test=1
])
+# Search for clock_gettime
+AC_SEARCH_LIBS([clock_gettime], [rt], [],
+ [AC_MSG_ERROR([Cannot find clock_gettime function.])]
+)
+
# Check for pthread
AC_CHECK_LIB([pthread], [pthread_create],
[AM_CONDITIONAL(LIBC_INCLUDES_PTHREAD, false)],