Introduce AE_FEATURE to manage configure features
[urcu.git] / configure.ac
CommitLineData
23975ca7
MJ
1dnl SPDX-License-Identifier: LGPL-2.1-only
2dnl
3dnl Copyright (C) 2021 EfficiOS, Inc.
4dnl
5dnl Process this file with autoconf to produce a configure script.
6
7# Project version information
8m4_define([urcu_version_major], [0])
9m4_define([urcu_version_minor], [12])
10m4_define([urcu_version_patch], [0])
11m4_define([urcu_version_dev_stage], [])
12m4_define([urcu_version], urcu_version_major[.]urcu_version_minor[.]urcu_version_patch[]urcu_version_dev_stage)
13
14# Library version information of "liburcu"
98bc124a
YB
15# Following the numbering scheme proposed by libtool for the library version
16# http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
23975ca7
MJ
17m4_define([urcu_lib_version_current], [7])
18m4_define([urcu_lib_version_revision], [0])
19m4_define([urcu_lib_version_age], [1])
20m4_define([urcu_lib_version], urcu_lib_version_current[:]urcu_lib_version_revision[:]urcu_lib_version_age)
21
22
23## ##
24## Autoconf base setup ##
25## ##
26
afb6113f 27AC_PREREQ([2.69])
23975ca7 28AC_INIT([userspace-rcu],[urcu_version],[mathieu dot desnoyers at efficios dot com],[],[http://liburcu.org/])
98bc124a 29
6893800a 30AC_CONFIG_HEADERS([include/config.h include/urcu/config.h])
48d848c7 31AC_CONFIG_AUX_DIR([config])
074c3a1b
MJ
32AC_CONFIG_MACRO_DIR([m4])
33
7d413817
MD
34AC_CANONICAL_TARGET
35AC_CANONICAL_HOST
074c3a1b 36
afb6113f
MJ
37
38## ##
39## Automake base setup ##
40## ##
41
42AM_INIT_AUTOMAKE([1.12 foreign dist-bzip2 no-dist-gzip nostdinc -Wall -Wno-portability -Werror])
35eb2d6c 43AM_MAINTAINER_MODE([enable])
7d413817 44
afb6113f
MJ
45# Enable silent rules by default
46AM_SILENT_RULES([yes])
e72596d1 47
514079bb
MJ
48
49## ##
50## OS and Arch specific defaults ##
51## ##
52
53AS_CASE([$host],
54 [*-cygwin*], [LT_NO_UNDEFINED="-no-undefined"]
55)
56
57
8b2f0590
MJ
58## ##
59## C compiler checks ##
60## ##
61
62# Choose the C compiler
63AC_PROG_CC
64# AC_PROG_CC_STDC was merged in AC_PROG_CC in autoconf 2.70
65m4_version_prereq([2.70], [], [AC_PROG_CC_STDC])
66
67# Make sure the C compiler supports C99
68AS_IF([test "$ac_cv_prog_cc_c99" = "no"], [AC_MSG_ERROR([The compiler does not support C99])])
69
70# Enable available system extensions and LFS support
71AC_USE_SYSTEM_EXTENSIONS
72AC_SYS_LARGEFILE
73
74# Make sure the C compiler supports __attribute__
75AX_C___ATTRIBUTE__
76AS_IF([test "x$ax_cv___attribute__" != "xyes"],
77 [AC_MSG_ERROR([The compiler does not support __attribute__ extensions])])
78
79# Make sure we have pthread support
80AX_PTHREAD([], [AC_MSG_ERROR([Could not configure pthread support])])
81
82# Make sure the C compiler supports weak symbols
83AX_SYS_WEAK_ALIAS
84AS_IF([test "x$ax_cv_sys_weak_alias" = "xno"],
85 [AC_MSG_ERROR([Your platform doesn't support weak symbols.])])
86
87# Checks for typedefs, structures, and compiler characteristics.
88AC_C_INLINE
89AC_C_TYPEOF
90AC_TYPE_INT32_T
91AC_TYPE_PID_T
92AC_TYPE_SIZE_T
93AC_TYPE_SSIZE_T
94AC_TYPE_UINT16_T
95AC_TYPE_UINT32_T
96AC_TYPE_UINT64_T
97AC_TYPE_UINT8_T
98
99
6b5533b0
MJ
100## ##
101## Header checks ##
102## ##
103
104AC_HEADER_STDBOOL
105AC_CHECK_HEADERS([ \
106 limits.h \
107 stddef.h \
108 sys/param.h \
109 sys/time.h \
110])
111
112
113## ##
114## Programs checks ##
115## ##
116
117AC_PROG_AWK
118AC_PROG_GREP
119AC_PROG_MAKE_SET
120AC_CHECK_PROGS(NPROC, [nproc gnproc])
121AC_CHECK_PROG(GETCONF, [getconf])
122AS_IF([test "x$NPROC" != "x"],
123 [NPROC_CMD=$NPROC],
124 [AS_IF([test "x$GETCONF" != "x"],
125 [NPROC_CMD="$GETCONF _NPROCESSORS_ONLN"],
126 [NPROC_CMD="echo 1"]
127 )]
128)
129AC_SUBST([NPROC_CMD], [$NPROC_CMD])
130
131# Initialize and configure libtool
132LT_INIT
133
134
c673679b
MJ
135## ##
136## Library checks ##
137## ##
138
139# Checks for library functions.
140AC_FUNC_MMAP
141AC_FUNC_FORK
142AC_CHECK_FUNCS([ \
143 atexit \
144 getcpuid \
145 gettid \
146 gettimeofday \
147 memeset \
148 memset \
149 munmap \
150 rand_r \
151 sched_getcpu \
152 strerror \
153 strtoul \
154 sysconf \
155])
156
157# AC_FUNC_MALLOC causes problems when cross-compiling.
158#AC_FUNC_MALLOC
159
160# Search for clock_gettime() in -lrt
161AC_SEARCH_LIBS([clock_gettime], [rt], [
162 AC_DEFINE([CONFIG_RCU_HAVE_CLOCK_GETTIME], [1], [clock_gettime() is detected.])
163])
164
165
86bc2ad8
MJ
166## ##
167## Optionnal features selection ##
168## ##
169
170# Allow to fallback to FIXME if the membarrier syscall is unavailable on the
171# running kernel, when disabled, abort if the syscall is unavailable. Applies
172# to default and bulletproof flavors.
173# Enabled by default
174AE_FEATURE_DEFAULT_ENABLE
175AE_FEATURE([sys-membarrier-fallback], [Abort if sys-membarrier is needed but not available rather than using a fallback.])
176
177# Use compiler Thread Local Storage, when disabled use pthread_getspecific() to emulate TLS.
178# Enabled by default
179AE_FEATURE_DEFAULT_ENABLE
180AE_FEATURE([compiler-tls], [Use pthread_getspecific() to emulate Thread Local Storage (TLS) variables.])
c673679b 181
86bc2ad8
MJ
182# smp-support configure option
183# Enabled by default
184AE_FEATURE_DEFAULT_ENABLE
185AE_FEATURE([smp-support], [Disable SMP support. Warning: only use this on uniprocessor systems.])
d8d9a340 186
86bc2ad8
MJ
187# RCU debugging option
188# Disabled by default
189AE_FEATURE_DEFAULT_DISABLE
190AE_FEATURE([rcu-debug], [Enable internal debugging self-checks. Introduces a performance penalty.])
a767fdc3 191
86bc2ad8
MJ
192# rculfhash iterator debugging
193# Disabled by default
194AE_FEATURE_DEFAULT_DISABLE
195AE_FEATURE([cds-lfht-iter-debug], [Enable extra debugging checks for lock-free hash table iterator traversal. Alters the rculfhash ABI. Make sure to compile both library and application with matching configuration.])
75478b32 196
48d848c7 197
86bc2ad8
MJ
198## ##
199## Set defines for optional features conditionnals in the source code ##
200## ##
48d848c7 201
86bc2ad8
MJ
202AE_IF_FEATURE_DISABLED([sys-membarrier-fallback], [
203 AC_DEFINE([CONFIG_RCU_FORCE_SYS_MEMBARRIER], [1], [Require the operating system to support the membarrier system call for default and bulletproof flavors.])
204])
cdadd34c 205
86bc2ad8
MJ
206AE_IF_FEATURE_ENABLED([compiler-tls], [
207 AC_DEFINE([CONFIG_RCU_TLS], [1], [Use compiler provided Thread Local Storage.])
208])
0854ccff 209
86bc2ad8
MJ
210AE_IF_FEATURE_ENABLED([smp-support], [
211 AC_DEFINE([CONFIG_RCU_SMP], [1], [Enable SMP support. With SMP support enabled, uniprocessors are also supported. With SMP support disabled, UP systems work fine, but the behavior of SMP systems is undefined.])
212])
7d413817 213
86bc2ad8
MJ
214AE_IF_FEATURE_ENABLED([rcu-debug], [
215 AC_DEFINE([CONFIG_RCU_DEBUG], [1], [Enable internal debugging self-checks. Introduces a performance penalty.])
d4e640c0 216])
48d848c7 217
86bc2ad8
MJ
218AE_IF_FEATURE_ENABLED([cds-lfht-iter-debug], [
219 AC_DEFINE([CONFIG_CDS_LFHT_ITER_DEBUG], [1], [Enable extra debugging checks for lock-free hash table iterator traversal. Alters the rculfhash ABI. Make sure to compile both library and application with matching configuration.])
d7c76f85
MD
220])
221
86bc2ad8
MJ
222AM_CFLAGS="$AM_CFLAGS $PTHREAD_CFLAGS"
223
224AM_CONDITIONAL([NO_SHARED], [test "x$enable_shared" = "xno"])
225
226
227
d8540fc5
PA
228# From the sched_setaffinity(2)'s man page:
229# ~~~~
230# The CPU affinity system calls were introduced in Linux kernel 2.5.8.
231# The library interfaces were introduced in glibc 2.3. Initially, the
232# glibc interfaces included a cpusetsize argument. In glibc 2.3.3,
233# the cpuset size argument was removed, but this argument was
234# restored in glibc 2.3.4.
235# ~~~~
236
237# In addition to that, some vendors ported the system call to 2.4
238# kernels.
239
240# Furthermore, when the function first appeared, the MASK argument was
241# an unsigned long pointer, while later it was made into a cpu_set_t
242# pointer. Systems that have the cpu_set_t version also should have
243# the CPU_ZERO, CPU_SET, etc. macros.
244
245# All this mess means we have to cater for at least 3 different
246# sched_setaffinity prototypes:
247
248# ~~~~
249# int sched_setaffinity (pid_t pid, unsigned int len, unsigned long *mask);
250# int sched_setaffinity (pid_t __pid, size_t __cpusetsize, const cpu_set_t *__cpuset);
251# int sched_setaffinity (pid_t __pid, const cpu_set_t *__mask);
252# ~~~~
253
b3231c17
MD
254AC_CHECK_TYPES([cpu_set_t],
255 [have_cpu_set_t="yes"],
256 [have_cpu_set_t="no"],
257 [#include <sched.h>])
258
259# Confirm that we have CPU_ZERO, and it actually works.
260AC_MSG_CHECKING([whether CPU_ZERO works])
261AH_TEMPLATE([HAVE_CPU_ZERO], [Defined to 1 if we have CPU_ZERO and it works])
262AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
b3231c17
MD
263 #include <sched.h>
264 int main()
265 {
266 cpu_set_t foo; CPU_ZERO(&foo);
267 return 0;
268 }
269 ]])
270],[
271 AC_DEFINE(HAVE_CPU_ZERO, 1)
272 AC_MSG_RESULT([yes])
273],[
274 AC_MSG_RESULT([no])
275])
276
277# Confirm that we have CPU_SET, and it actually works.
278AC_MSG_CHECKING([whether CPU_SET works])
279AH_TEMPLATE([HAVE_CPU_SET], [Defined to 1 if we have CPU_SET and it works])
280AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
b3231c17
MD
281 #include <sched.h>
282 int main()
283 {
5bed6565 284 cpu_set_t foo; CPU_SET(0, &foo);
b3231c17
MD
285 return 0;
286 }
287 ]])
288],[
289 AC_DEFINE(HAVE_CPU_SET, 1)
290 AC_MSG_RESULT([yes])
291],[
292 AC_MSG_RESULT([no])
293])
294
d8540fc5 295# First check if the function is available at all.
a6412536
AM
296AC_CHECK_FUNCS([sched_setaffinity],[
297 # Okay, we have it. Check if also have cpu_set_t. If we don't,
298 # then we have the first version using unsigned long, and no
299 # CPU_ZERO, etc. macros. If we do have cpu_set_t, we may have the
300 # version with 2 or 3 arguments. In that case, CPU_ZERO, etc.,
301 # should also be present, but we confirm nonetheless.
302
b3231c17
MD
303 AS_IF([test "x$have_cpu_set_t" = "xyes"], [
304 # We do have it.
a6412536
AM
305 # Check how many arguments does sched_setaffinity take.
306 # Should be 3 or 2.
307 AC_MSG_CHECKING([how many arguments sched_setaffinity takes])
ec5e2d14 308 AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
a6412536 309 #include <sched.h>
fe0707ab
MD
310 int main()
311 {
312 cpu_set_t foo;
b3231c17 313 sched_setaffinity(0, sizeof (foo), &foo);
fe0707ab
MD
314 return 0;
315 }
a6412536
AM
316 ]])
317 ],
318 [sched_set_affinity_args=3],
319 [sched_set_affinity_args=2])
b3231c17
MD
320 AC_DEFINE_UNQUOTED(SCHED_SETAFFINITY_ARGS,
321 $sched_set_affinity_args,
a6412536
AM
322 [Defined to sched_setaffinity's number of arguments.])
323 AC_MSG_RESULT([$sched_set_affinity_args])
324 ],[
325 # No cpu_set_t, always 3 args.
326 AC_DEFINE(SCHED_SETAFFINITY_ARGS, 3)
b3231c17 327 ])
a6412536 328])
d8540fc5 329
23975ca7
MJ
330## ##
331## Substitute variables for use in Makefile.am ##
332## ##
333
334# Library versions for libtool
335AC_SUBST([URCU_LIBRARY_VERSION], [urcu_lib_version])
336
514079bb
MJ
337AC_SUBST(LT_NO_UNDEFINED)
338
9a79c612
MJ
339AM_CPPFLAGS="-include config.h"
340AC_SUBST(AM_CPPFLAGS)
341
83e334d0 342AM_CFLAGS="-Wall -Wextra -Wno-unused-parameter $AM_CFLAGS"
9a79c612 343AC_SUBST(AM_CFLAGS)
d8540fc5 344
48d848c7
PMF
345AC_CONFIG_FILES([
346 Makefile
fe999c05 347 doc/Makefile
8bad63a0 348 doc/examples/Makefile
6893800a
MJ
349 include/Makefile
350 src/Makefile
48d848c7 351 tests/Makefile
f5ab766e
MD
352 tests/common/Makefile
353 tests/unit/Makefile
354 tests/benchmark/Makefile
355 tests/regression/Makefile
1b387491 356 tests/utils/Makefile
6893800a
MJ
357 src/liburcu.pc
358 src/liburcu-bp.pc
359 src/liburcu-cds.pc
360 src/liburcu-qsbr.pc
361 src/liburcu-mb.pc
362 src/liburcu-signal.pc
48d848c7 363])
03c5782e
MJ
364
365AC_CONFIG_FILES([tests/regression/rcutorture_urcu_bp_perf_global.tap], [chmod +x tests/regression/rcutorture_urcu_bp_perf_global.tap])
366AC_CONFIG_FILES([tests/regression/rcutorture_urcu_bp_perf_percpu.tap], [chmod +x tests/regression/rcutorture_urcu_bp_perf_percpu.tap])
367AC_CONFIG_FILES([tests/regression/rcutorture_urcu_bp_perf_perthread.tap], [chmod +x tests/regression/rcutorture_urcu_bp_perf_perthread.tap])
368AC_CONFIG_FILES([tests/regression/rcutorture_urcu_bp_rperf_global.tap], [chmod +x tests/regression/rcutorture_urcu_bp_rperf_global.tap])
369AC_CONFIG_FILES([tests/regression/rcutorture_urcu_bp_rperf_percpu.tap], [chmod +x tests/regression/rcutorture_urcu_bp_rperf_percpu.tap])
370AC_CONFIG_FILES([tests/regression/rcutorture_urcu_bp_rperf_perthread.tap], [chmod +x tests/regression/rcutorture_urcu_bp_rperf_perthread.tap])
371AC_CONFIG_FILES([tests/regression/rcutorture_urcu_bp_stress_global.tap], [chmod +x tests/regression/rcutorture_urcu_bp_stress_global.tap])
372AC_CONFIG_FILES([tests/regression/rcutorture_urcu_bp_stress_percpu.tap], [chmod +x tests/regression/rcutorture_urcu_bp_stress_percpu.tap])
373AC_CONFIG_FILES([tests/regression/rcutorture_urcu_bp_stress_perthread.tap], [chmod +x tests/regression/rcutorture_urcu_bp_stress_perthread.tap])
374AC_CONFIG_FILES([tests/regression/rcutorture_urcu_bp_uperf_global.tap], [chmod +x tests/regression/rcutorture_urcu_bp_uperf_global.tap])
375AC_CONFIG_FILES([tests/regression/rcutorture_urcu_bp_uperf_percpu.tap], [chmod +x tests/regression/rcutorture_urcu_bp_uperf_percpu.tap])
376AC_CONFIG_FILES([tests/regression/rcutorture_urcu_bp_uperf_perthread.tap], [chmod +x tests/regression/rcutorture_urcu_bp_uperf_perthread.tap])
377AC_CONFIG_FILES([tests/regression/rcutorture_urcu_mb_perf_global.tap], [chmod +x tests/regression/rcutorture_urcu_mb_perf_global.tap])
378AC_CONFIG_FILES([tests/regression/rcutorture_urcu_mb_perf_percpu.tap], [chmod +x tests/regression/rcutorture_urcu_mb_perf_percpu.tap])
379AC_CONFIG_FILES([tests/regression/rcutorture_urcu_mb_perf_perthread.tap], [chmod +x tests/regression/rcutorture_urcu_mb_perf_perthread.tap])
380AC_CONFIG_FILES([tests/regression/rcutorture_urcu_mb_rperf_global.tap], [chmod +x tests/regression/rcutorture_urcu_mb_rperf_global.tap])
381AC_CONFIG_FILES([tests/regression/rcutorture_urcu_mb_rperf_percpu.tap], [chmod +x tests/regression/rcutorture_urcu_mb_rperf_percpu.tap])
382AC_CONFIG_FILES([tests/regression/rcutorture_urcu_mb_rperf_perthread.tap], [chmod +x tests/regression/rcutorture_urcu_mb_rperf_perthread.tap])
383AC_CONFIG_FILES([tests/regression/rcutorture_urcu_mb_stress_global.tap], [chmod +x tests/regression/rcutorture_urcu_mb_stress_global.tap])
384AC_CONFIG_FILES([tests/regression/rcutorture_urcu_mb_stress_percpu.tap], [chmod +x tests/regression/rcutorture_urcu_mb_stress_percpu.tap])
385AC_CONFIG_FILES([tests/regression/rcutorture_urcu_mb_stress_perthread.tap], [chmod +x tests/regression/rcutorture_urcu_mb_stress_perthread.tap])
386AC_CONFIG_FILES([tests/regression/rcutorture_urcu_mb_uperf_global.tap], [chmod +x tests/regression/rcutorture_urcu_mb_uperf_global.tap])
387AC_CONFIG_FILES([tests/regression/rcutorture_urcu_mb_uperf_percpu.tap], [chmod +x tests/regression/rcutorture_urcu_mb_uperf_percpu.tap])
388AC_CONFIG_FILES([tests/regression/rcutorture_urcu_mb_uperf_perthread.tap], [chmod +x tests/regression/rcutorture_urcu_mb_uperf_perthread.tap])
389AC_CONFIG_FILES([tests/regression/rcutorture_urcu_membarrier_perf_global.tap], [chmod +x tests/regression/rcutorture_urcu_membarrier_perf_global.tap])
390AC_CONFIG_FILES([tests/regression/rcutorture_urcu_membarrier_perf_percpu.tap], [chmod +x tests/regression/rcutorture_urcu_membarrier_perf_percpu.tap])
391AC_CONFIG_FILES([tests/regression/rcutorture_urcu_membarrier_perf_perthread.tap], [chmod +x tests/regression/rcutorture_urcu_membarrier_perf_perthread.tap])
392AC_CONFIG_FILES([tests/regression/rcutorture_urcu_membarrier_rperf_global.tap], [chmod +x tests/regression/rcutorture_urcu_membarrier_rperf_global.tap])
393AC_CONFIG_FILES([tests/regression/rcutorture_urcu_membarrier_rperf_percpu.tap], [chmod +x tests/regression/rcutorture_urcu_membarrier_rperf_percpu.tap])
394AC_CONFIG_FILES([tests/regression/rcutorture_urcu_membarrier_rperf_perthread.tap], [chmod +x tests/regression/rcutorture_urcu_membarrier_rperf_perthread.tap])
395AC_CONFIG_FILES([tests/regression/rcutorture_urcu_membarrier_stress_global.tap], [chmod +x tests/regression/rcutorture_urcu_membarrier_stress_global.tap])
396AC_CONFIG_FILES([tests/regression/rcutorture_urcu_membarrier_stress_percpu.tap], [chmod +x tests/regression/rcutorture_urcu_membarrier_stress_percpu.tap])
397AC_CONFIG_FILES([tests/regression/rcutorture_urcu_membarrier_stress_perthread.tap], [chmod +x tests/regression/rcutorture_urcu_membarrier_stress_perthread.tap])
398AC_CONFIG_FILES([tests/regression/rcutorture_urcu_membarrier_uperf_global.tap], [chmod +x tests/regression/rcutorture_urcu_membarrier_uperf_global.tap])
399AC_CONFIG_FILES([tests/regression/rcutorture_urcu_membarrier_uperf_percpu.tap], [chmod +x tests/regression/rcutorture_urcu_membarrier_uperf_percpu.tap])
400AC_CONFIG_FILES([tests/regression/rcutorture_urcu_membarrier_uperf_perthread.tap], [chmod +x tests/regression/rcutorture_urcu_membarrier_uperf_perthread.tap])
401AC_CONFIG_FILES([tests/regression/rcutorture_urcu_qsbr_perf_global.tap], [chmod +x tests/regression/rcutorture_urcu_qsbr_perf_global.tap])
402AC_CONFIG_FILES([tests/regression/rcutorture_urcu_qsbr_perf_percpu.tap], [chmod +x tests/regression/rcutorture_urcu_qsbr_perf_percpu.tap])
403AC_CONFIG_FILES([tests/regression/rcutorture_urcu_qsbr_perf_perthread.tap], [chmod +x tests/regression/rcutorture_urcu_qsbr_perf_perthread.tap])
404AC_CONFIG_FILES([tests/regression/rcutorture_urcu_qsbr_rperf_global.tap], [chmod +x tests/regression/rcutorture_urcu_qsbr_rperf_global.tap])
405AC_CONFIG_FILES([tests/regression/rcutorture_urcu_qsbr_rperf_percpu.tap], [chmod +x tests/regression/rcutorture_urcu_qsbr_rperf_percpu.tap])
406AC_CONFIG_FILES([tests/regression/rcutorture_urcu_qsbr_rperf_perthread.tap], [chmod +x tests/regression/rcutorture_urcu_qsbr_rperf_perthread.tap])
407AC_CONFIG_FILES([tests/regression/rcutorture_urcu_qsbr_stress_global.tap], [chmod +x tests/regression/rcutorture_urcu_qsbr_stress_global.tap])
408AC_CONFIG_FILES([tests/regression/rcutorture_urcu_qsbr_stress_percpu.tap], [chmod +x tests/regression/rcutorture_urcu_qsbr_stress_percpu.tap])
409AC_CONFIG_FILES([tests/regression/rcutorture_urcu_qsbr_stress_perthread.tap], [chmod +x tests/regression/rcutorture_urcu_qsbr_stress_perthread.tap])
410AC_CONFIG_FILES([tests/regression/rcutorture_urcu_qsbr_uperf_global.tap], [chmod +x tests/regression/rcutorture_urcu_qsbr_uperf_global.tap])
411AC_CONFIG_FILES([tests/regression/rcutorture_urcu_qsbr_uperf_percpu.tap], [chmod +x tests/regression/rcutorture_urcu_qsbr_uperf_percpu.tap])
412AC_CONFIG_FILES([tests/regression/rcutorture_urcu_qsbr_uperf_perthread.tap], [chmod +x tests/regression/rcutorture_urcu_qsbr_uperf_perthread.tap])
413AC_CONFIG_FILES([tests/regression/rcutorture_urcu_signal_perf_global.tap], [chmod +x tests/regression/rcutorture_urcu_signal_perf_global.tap])
414AC_CONFIG_FILES([tests/regression/rcutorture_urcu_signal_perf_percpu.tap], [chmod +x tests/regression/rcutorture_urcu_signal_perf_percpu.tap])
415AC_CONFIG_FILES([tests/regression/rcutorture_urcu_signal_perf_perthread.tap], [chmod +x tests/regression/rcutorture_urcu_signal_perf_perthread.tap])
416AC_CONFIG_FILES([tests/regression/rcutorture_urcu_signal_rperf_global.tap], [chmod +x tests/regression/rcutorture_urcu_signal_rperf_global.tap])
417AC_CONFIG_FILES([tests/regression/rcutorture_urcu_signal_rperf_percpu.tap], [chmod +x tests/regression/rcutorture_urcu_signal_rperf_percpu.tap])
418AC_CONFIG_FILES([tests/regression/rcutorture_urcu_signal_rperf_perthread.tap], [chmod +x tests/regression/rcutorture_urcu_signal_rperf_perthread.tap])
419AC_CONFIG_FILES([tests/regression/rcutorture_urcu_signal_stress_global.tap], [chmod +x tests/regression/rcutorture_urcu_signal_stress_global.tap])
420AC_CONFIG_FILES([tests/regression/rcutorture_urcu_signal_stress_percpu.tap], [chmod +x tests/regression/rcutorture_urcu_signal_stress_percpu.tap])
421AC_CONFIG_FILES([tests/regression/rcutorture_urcu_signal_stress_perthread.tap], [chmod +x tests/regression/rcutorture_urcu_signal_stress_perthread.tap])
422AC_CONFIG_FILES([tests/regression/rcutorture_urcu_signal_uperf_global.tap], [chmod +x tests/regression/rcutorture_urcu_signal_uperf_global.tap])
423AC_CONFIG_FILES([tests/regression/rcutorture_urcu_signal_uperf_percpu.tap], [chmod +x tests/regression/rcutorture_urcu_signal_uperf_percpu.tap])
424AC_CONFIG_FILES([tests/regression/rcutorture_urcu_signal_uperf_perthread.tap], [chmod +x tests/regression/rcutorture_urcu_signal_uperf_perthread.tap])
425
426
48d848c7 427AC_OUTPUT
a6412536 428
628a1a72
MJ
429#
430# Mini-report on what will be built.
431#
432
433PPRINT_INIT
434PPRINT_SET_INDENT(1)
435PPRINT_SET_TS(38)
436
437AS_ECHO
438AS_ECHO("${PPRINT_COLOR_BLDBLU}Userspace-RCU $PACKAGE_VERSION${PPRINT_COLOR_RST}")
439AS_ECHO
440
441PPRINT_SUBTITLE([Features])
442
443PPRINT_PROP_STRING([Target architecture], $host_cpu)
444
445# SMP support enabled/disabled
86bc2ad8 446AE_IS_FEATURE_ENABLED([smp-support]) && value=1 || value=0
628a1a72
MJ
447PPRINT_PROP_BOOL([SMP support], $value)
448
628a1a72 449# TLS
86bc2ad8 450AE_IS_FEATURE_ENABLED([compiler-tls]) && value="compiler TLS" || value="pthread_getspecific()"
628a1a72
MJ
451PPRINT_PROP_STRING([Thread Local Storage (TLS)], [$value])
452
453# clock_gettime() available
c673679b 454test "x$ac_cv_search_function_clock_gettime" != "xno" && value=1 || value=0
628a1a72
MJ
455PPRINT_PROP_BOOL([clock_gettime()], $value)
456
457# Require membarrier
86bc2ad8 458AE_IS_FEATURE_ENABLED([sys-membarrier-fallback]) && value=0 || value=1
628a1a72
MJ
459PPRINT_PROP_BOOL([Require membarrier], $value)
460
461# RCU debug enabled/disabled
86bc2ad8 462AE_IS_FEATURE_ENABLED([rcu-debug]) && value=1 || value=0
628a1a72
MJ
463PPRINT_PROP_BOOL([Internal debugging], $value)
464
d7c76f85 465# rculfhash iterator debug enabled/disabled
86bc2ad8
MJ
466AE_IS_FEATURE_ENABLED([cds-lfht-iter-debug]) && value=1 || value=0
467PPRINT_PROP_BOOL([Lock-free HT iterator debugging], $value)
d7c76f85 468
4477a870
MD
469PPRINT_PROP_BOOL([Multi-flavor support], 1)
470
628a1a72
MJ
471report_bindir="`eval eval echo $bindir`"
472report_libdir="`eval eval echo $libdir`"
473
86bc2ad8 474# Print the bindir and libdir this 'make install' will install into.
628a1a72
MJ
475AS_ECHO
476PPRINT_SUBTITLE([Install directories])
477PPRINT_PROP_STRING([Binaries], [$report_bindir])
478PPRINT_PROP_STRING([Libraries], [$report_libdir])
75478b32 479
This page took 0.096047 seconds and 4 git commands to generate.