configure: regroup and expand C header and program checks
[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
02be5561 135AH_TEMPLATE([CONFIG_RCU_SMP], [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.])
a767fdc3 136AH_TEMPLATE([CONFIG_RCU_TLS], [TLS provided by the compiler.])
a0307b90 137AH_TEMPLATE([CONFIG_RCU_HAVE_CLOCK_GETTIME], [clock_gettime() is detected.])
d8d9a340 138AH_TEMPLATE([CONFIG_RCU_FORCE_SYS_MEMBARRIER], [Require the operating system to support the membarrier system call for default and bulletproof flavors.])
a9a42447 139AH_TEMPLATE([CONFIG_RCU_DEBUG], [Enable internal debugging self-checks. Introduces a performance penalty.])
d7c76f85 140AH_TEMPLATE([CONFIG_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.])
d8d9a340
MD
141
142# Allow requiring the operating system to support the membarrier system
143# call. Applies to default and bulletproof flavors.
144AC_ARG_ENABLE([sys-membarrier-fallback],
145 AS_HELP_STRING([--disable-sys-membarrier-fallback], [Abort if sys-membarrier is needed but not available rather than using a fallback.]),
146 [def_sys_membarrier_fallback=$enableval],
147 [def_sys_membarrier_fallback="yes"])
148AS_IF([test "x$def_sys_membarrier_fallback" != "xyes"], [AC_DEFINE([CONFIG_RCU_FORCE_SYS_MEMBARRIER], [1])])
a767fdc3 149
75478b32
MD
150# Allow overriding storage used for TLS variables.
151AC_ARG_ENABLE([compiler-tls],
152 AS_HELP_STRING([--disable-compiler-tls], [Use pthread_getspecific() to emulate Thread Local Storage (TLS) variables.]),
153 [def_compiler_tls=$enableval],
154 [def_compiler_tls="yes"])
155
109267f6 156AS_IF([test "x$def_compiler_tls" = "xyes"], AC_DEFINE([CONFIG_RCU_TLS], [1]), [:])
48d848c7 157
48d848c7 158
cdadd34c
MJ
159AM_CFLAGS="$AM_CFLAGS $PTHREAD_CFLAGS"
160
48d848c7 161# Checks for library functions.
48d848c7 162AC_FUNC_MMAP
27d5e306
MJ
163AC_FUNC_FORK
164AC_CHECK_FUNCS([ \
165 atexit \
27d5e306
MJ
166 getcpuid \
167 gettid \
168 gettimeofday \
169 memeset \
170 memset \
171 munmap \
3e4ae45a 172 rand_r \
27d5e306
MJ
173 sched_getcpu \
174 strerror \
175 strtoul \
176 sysconf \
177])
48d848c7 178
9a62b0f0
MJ
179# AC_FUNC_MALLOC causes problems when cross-compiling.
180#AC_FUNC_MALLOC
181
8be0fb5f 182# Search for clock_gettime
a0307b90
MD
183AC_SEARCH_LIBS([clock_gettime], [rt], [
184 AC_DEFINE([CONFIG_RCU_HAVE_CLOCK_GETTIME], [1])
628a1a72 185 config_rcu_have_clock_gettime=yes
a0307b90 186], [])
8be0fb5f 187
2f49a496 188AM_CONDITIONAL([NO_SHARED], [test "x$enable_shared" = "xno"])
0854ccff 189
a6412536
AM
190# smp-support configure option
191AC_ARG_ENABLE([smp-support],
192 AS_HELP_STRING([--disable-smp-support], [Disable SMP support. Warning: only use this on uniprocessor systems. [default=enabled]]),
193 [def_smp_support=$enableval],
194 [def_smp_support="yes"])
195AS_IF([test "x$def_smp_support" = "xyes"], [AC_DEFINE([CONFIG_RCU_SMP], [1])])
7d413817 196
d4e640c0
JR
197# RCU debugging option
198AC_ARG_ENABLE([rcu-debug],
199 AS_HELP_STRING([--enable-rcu-debug], [Enable internal debugging
a9a42447 200 self-checks. Introduces a performance penalty.]))
d4e640c0
JR
201AS_IF([test "x$enable_rcu_debug" = "xyes"], [
202 AC_DEFINE([CONFIG_RCU_DEBUG], [1])
203])
48d848c7 204
d7c76f85
MD
205# rculfhash iterator debugging
206AC_ARG_ENABLE([cds-lfht-iter-debug],
207 AS_HELP_STRING([--enable-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.]))
208AS_IF([test "x$enable_cds_lfht_iter_debug" = "xyes"], [
209 AC_DEFINE([CONFIG_CDS_LFHT_ITER_DEBUG], [1])
210])
211
d8540fc5
PA
212# From the sched_setaffinity(2)'s man page:
213# ~~~~
214# The CPU affinity system calls were introduced in Linux kernel 2.5.8.
215# The library interfaces were introduced in glibc 2.3. Initially, the
216# glibc interfaces included a cpusetsize argument. In glibc 2.3.3,
217# the cpuset size argument was removed, but this argument was
218# restored in glibc 2.3.4.
219# ~~~~
220
221# In addition to that, some vendors ported the system call to 2.4
222# kernels.
223
224# Furthermore, when the function first appeared, the MASK argument was
225# an unsigned long pointer, while later it was made into a cpu_set_t
226# pointer. Systems that have the cpu_set_t version also should have
227# the CPU_ZERO, CPU_SET, etc. macros.
228
229# All this mess means we have to cater for at least 3 different
230# sched_setaffinity prototypes:
231
232# ~~~~
233# int sched_setaffinity (pid_t pid, unsigned int len, unsigned long *mask);
234# int sched_setaffinity (pid_t __pid, size_t __cpusetsize, const cpu_set_t *__cpuset);
235# int sched_setaffinity (pid_t __pid, const cpu_set_t *__mask);
236# ~~~~
237
b3231c17
MD
238AC_CHECK_TYPES([cpu_set_t],
239 [have_cpu_set_t="yes"],
240 [have_cpu_set_t="no"],
241 [#include <sched.h>])
242
243# Confirm that we have CPU_ZERO, and it actually works.
244AC_MSG_CHECKING([whether CPU_ZERO works])
245AH_TEMPLATE([HAVE_CPU_ZERO], [Defined to 1 if we have CPU_ZERO and it works])
246AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
b3231c17
MD
247 #include <sched.h>
248 int main()
249 {
250 cpu_set_t foo; CPU_ZERO(&foo);
251 return 0;
252 }
253 ]])
254],[
255 AC_DEFINE(HAVE_CPU_ZERO, 1)
256 AC_MSG_RESULT([yes])
257],[
258 AC_MSG_RESULT([no])
259])
260
261# Confirm that we have CPU_SET, and it actually works.
262AC_MSG_CHECKING([whether CPU_SET works])
263AH_TEMPLATE([HAVE_CPU_SET], [Defined to 1 if we have CPU_SET and it works])
264AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
b3231c17
MD
265 #include <sched.h>
266 int main()
267 {
5bed6565 268 cpu_set_t foo; CPU_SET(0, &foo);
b3231c17
MD
269 return 0;
270 }
271 ]])
272],[
273 AC_DEFINE(HAVE_CPU_SET, 1)
274 AC_MSG_RESULT([yes])
275],[
276 AC_MSG_RESULT([no])
277])
278
d8540fc5 279# First check if the function is available at all.
a6412536
AM
280AC_CHECK_FUNCS([sched_setaffinity],[
281 # Okay, we have it. Check if also have cpu_set_t. If we don't,
282 # then we have the first version using unsigned long, and no
283 # CPU_ZERO, etc. macros. If we do have cpu_set_t, we may have the
284 # version with 2 or 3 arguments. In that case, CPU_ZERO, etc.,
285 # should also be present, but we confirm nonetheless.
286
b3231c17
MD
287 AS_IF([test "x$have_cpu_set_t" = "xyes"], [
288 # We do have it.
a6412536
AM
289 # Check how many arguments does sched_setaffinity take.
290 # Should be 3 or 2.
291 AC_MSG_CHECKING([how many arguments sched_setaffinity takes])
ec5e2d14 292 AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
a6412536 293 #include <sched.h>
fe0707ab
MD
294 int main()
295 {
296 cpu_set_t foo;
b3231c17 297 sched_setaffinity(0, sizeof (foo), &foo);
fe0707ab
MD
298 return 0;
299 }
a6412536
AM
300 ]])
301 ],
302 [sched_set_affinity_args=3],
303 [sched_set_affinity_args=2])
b3231c17
MD
304 AC_DEFINE_UNQUOTED(SCHED_SETAFFINITY_ARGS,
305 $sched_set_affinity_args,
a6412536
AM
306 [Defined to sched_setaffinity's number of arguments.])
307 AC_MSG_RESULT([$sched_set_affinity_args])
308 ],[
309 # No cpu_set_t, always 3 args.
310 AC_DEFINE(SCHED_SETAFFINITY_ARGS, 3)
b3231c17 311 ])
a6412536 312])
d8540fc5 313
23975ca7
MJ
314## ##
315## Substitute variables for use in Makefile.am ##
316## ##
317
318# Library versions for libtool
319AC_SUBST([URCU_LIBRARY_VERSION], [urcu_lib_version])
320
514079bb
MJ
321AC_SUBST(LT_NO_UNDEFINED)
322
9a79c612
MJ
323AM_CPPFLAGS="-include config.h"
324AC_SUBST(AM_CPPFLAGS)
325
83e334d0 326AM_CFLAGS="-Wall -Wextra -Wno-unused-parameter $AM_CFLAGS"
9a79c612 327AC_SUBST(AM_CFLAGS)
d8540fc5 328
48d848c7
PMF
329AC_CONFIG_FILES([
330 Makefile
fe999c05 331 doc/Makefile
8bad63a0 332 doc/examples/Makefile
6893800a
MJ
333 include/Makefile
334 src/Makefile
48d848c7 335 tests/Makefile
f5ab766e
MD
336 tests/common/Makefile
337 tests/unit/Makefile
338 tests/benchmark/Makefile
339 tests/regression/Makefile
1b387491 340 tests/utils/Makefile
6893800a
MJ
341 src/liburcu.pc
342 src/liburcu-bp.pc
343 src/liburcu-cds.pc
344 src/liburcu-qsbr.pc
345 src/liburcu-mb.pc
346 src/liburcu-signal.pc
48d848c7 347])
03c5782e
MJ
348
349AC_CONFIG_FILES([tests/regression/rcutorture_urcu_bp_perf_global.tap], [chmod +x tests/regression/rcutorture_urcu_bp_perf_global.tap])
350AC_CONFIG_FILES([tests/regression/rcutorture_urcu_bp_perf_percpu.tap], [chmod +x tests/regression/rcutorture_urcu_bp_perf_percpu.tap])
351AC_CONFIG_FILES([tests/regression/rcutorture_urcu_bp_perf_perthread.tap], [chmod +x tests/regression/rcutorture_urcu_bp_perf_perthread.tap])
352AC_CONFIG_FILES([tests/regression/rcutorture_urcu_bp_rperf_global.tap], [chmod +x tests/regression/rcutorture_urcu_bp_rperf_global.tap])
353AC_CONFIG_FILES([tests/regression/rcutorture_urcu_bp_rperf_percpu.tap], [chmod +x tests/regression/rcutorture_urcu_bp_rperf_percpu.tap])
354AC_CONFIG_FILES([tests/regression/rcutorture_urcu_bp_rperf_perthread.tap], [chmod +x tests/regression/rcutorture_urcu_bp_rperf_perthread.tap])
355AC_CONFIG_FILES([tests/regression/rcutorture_urcu_bp_stress_global.tap], [chmod +x tests/regression/rcutorture_urcu_bp_stress_global.tap])
356AC_CONFIG_FILES([tests/regression/rcutorture_urcu_bp_stress_percpu.tap], [chmod +x tests/regression/rcutorture_urcu_bp_stress_percpu.tap])
357AC_CONFIG_FILES([tests/regression/rcutorture_urcu_bp_stress_perthread.tap], [chmod +x tests/regression/rcutorture_urcu_bp_stress_perthread.tap])
358AC_CONFIG_FILES([tests/regression/rcutorture_urcu_bp_uperf_global.tap], [chmod +x tests/regression/rcutorture_urcu_bp_uperf_global.tap])
359AC_CONFIG_FILES([tests/regression/rcutorture_urcu_bp_uperf_percpu.tap], [chmod +x tests/regression/rcutorture_urcu_bp_uperf_percpu.tap])
360AC_CONFIG_FILES([tests/regression/rcutorture_urcu_bp_uperf_perthread.tap], [chmod +x tests/regression/rcutorture_urcu_bp_uperf_perthread.tap])
361AC_CONFIG_FILES([tests/regression/rcutorture_urcu_mb_perf_global.tap], [chmod +x tests/regression/rcutorture_urcu_mb_perf_global.tap])
362AC_CONFIG_FILES([tests/regression/rcutorture_urcu_mb_perf_percpu.tap], [chmod +x tests/regression/rcutorture_urcu_mb_perf_percpu.tap])
363AC_CONFIG_FILES([tests/regression/rcutorture_urcu_mb_perf_perthread.tap], [chmod +x tests/regression/rcutorture_urcu_mb_perf_perthread.tap])
364AC_CONFIG_FILES([tests/regression/rcutorture_urcu_mb_rperf_global.tap], [chmod +x tests/regression/rcutorture_urcu_mb_rperf_global.tap])
365AC_CONFIG_FILES([tests/regression/rcutorture_urcu_mb_rperf_percpu.tap], [chmod +x tests/regression/rcutorture_urcu_mb_rperf_percpu.tap])
366AC_CONFIG_FILES([tests/regression/rcutorture_urcu_mb_rperf_perthread.tap], [chmod +x tests/regression/rcutorture_urcu_mb_rperf_perthread.tap])
367AC_CONFIG_FILES([tests/regression/rcutorture_urcu_mb_stress_global.tap], [chmod +x tests/regression/rcutorture_urcu_mb_stress_global.tap])
368AC_CONFIG_FILES([tests/regression/rcutorture_urcu_mb_stress_percpu.tap], [chmod +x tests/regression/rcutorture_urcu_mb_stress_percpu.tap])
369AC_CONFIG_FILES([tests/regression/rcutorture_urcu_mb_stress_perthread.tap], [chmod +x tests/regression/rcutorture_urcu_mb_stress_perthread.tap])
370AC_CONFIG_FILES([tests/regression/rcutorture_urcu_mb_uperf_global.tap], [chmod +x tests/regression/rcutorture_urcu_mb_uperf_global.tap])
371AC_CONFIG_FILES([tests/regression/rcutorture_urcu_mb_uperf_percpu.tap], [chmod +x tests/regression/rcutorture_urcu_mb_uperf_percpu.tap])
372AC_CONFIG_FILES([tests/regression/rcutorture_urcu_mb_uperf_perthread.tap], [chmod +x tests/regression/rcutorture_urcu_mb_uperf_perthread.tap])
373AC_CONFIG_FILES([tests/regression/rcutorture_urcu_membarrier_perf_global.tap], [chmod +x tests/regression/rcutorture_urcu_membarrier_perf_global.tap])
374AC_CONFIG_FILES([tests/regression/rcutorture_urcu_membarrier_perf_percpu.tap], [chmod +x tests/regression/rcutorture_urcu_membarrier_perf_percpu.tap])
375AC_CONFIG_FILES([tests/regression/rcutorture_urcu_membarrier_perf_perthread.tap], [chmod +x tests/regression/rcutorture_urcu_membarrier_perf_perthread.tap])
376AC_CONFIG_FILES([tests/regression/rcutorture_urcu_membarrier_rperf_global.tap], [chmod +x tests/regression/rcutorture_urcu_membarrier_rperf_global.tap])
377AC_CONFIG_FILES([tests/regression/rcutorture_urcu_membarrier_rperf_percpu.tap], [chmod +x tests/regression/rcutorture_urcu_membarrier_rperf_percpu.tap])
378AC_CONFIG_FILES([tests/regression/rcutorture_urcu_membarrier_rperf_perthread.tap], [chmod +x tests/regression/rcutorture_urcu_membarrier_rperf_perthread.tap])
379AC_CONFIG_FILES([tests/regression/rcutorture_urcu_membarrier_stress_global.tap], [chmod +x tests/regression/rcutorture_urcu_membarrier_stress_global.tap])
380AC_CONFIG_FILES([tests/regression/rcutorture_urcu_membarrier_stress_percpu.tap], [chmod +x tests/regression/rcutorture_urcu_membarrier_stress_percpu.tap])
381AC_CONFIG_FILES([tests/regression/rcutorture_urcu_membarrier_stress_perthread.tap], [chmod +x tests/regression/rcutorture_urcu_membarrier_stress_perthread.tap])
382AC_CONFIG_FILES([tests/regression/rcutorture_urcu_membarrier_uperf_global.tap], [chmod +x tests/regression/rcutorture_urcu_membarrier_uperf_global.tap])
383AC_CONFIG_FILES([tests/regression/rcutorture_urcu_membarrier_uperf_percpu.tap], [chmod +x tests/regression/rcutorture_urcu_membarrier_uperf_percpu.tap])
384AC_CONFIG_FILES([tests/regression/rcutorture_urcu_membarrier_uperf_perthread.tap], [chmod +x tests/regression/rcutorture_urcu_membarrier_uperf_perthread.tap])
385AC_CONFIG_FILES([tests/regression/rcutorture_urcu_qsbr_perf_global.tap], [chmod +x tests/regression/rcutorture_urcu_qsbr_perf_global.tap])
386AC_CONFIG_FILES([tests/regression/rcutorture_urcu_qsbr_perf_percpu.tap], [chmod +x tests/regression/rcutorture_urcu_qsbr_perf_percpu.tap])
387AC_CONFIG_FILES([tests/regression/rcutorture_urcu_qsbr_perf_perthread.tap], [chmod +x tests/regression/rcutorture_urcu_qsbr_perf_perthread.tap])
388AC_CONFIG_FILES([tests/regression/rcutorture_urcu_qsbr_rperf_global.tap], [chmod +x tests/regression/rcutorture_urcu_qsbr_rperf_global.tap])
389AC_CONFIG_FILES([tests/regression/rcutorture_urcu_qsbr_rperf_percpu.tap], [chmod +x tests/regression/rcutorture_urcu_qsbr_rperf_percpu.tap])
390AC_CONFIG_FILES([tests/regression/rcutorture_urcu_qsbr_rperf_perthread.tap], [chmod +x tests/regression/rcutorture_urcu_qsbr_rperf_perthread.tap])
391AC_CONFIG_FILES([tests/regression/rcutorture_urcu_qsbr_stress_global.tap], [chmod +x tests/regression/rcutorture_urcu_qsbr_stress_global.tap])
392AC_CONFIG_FILES([tests/regression/rcutorture_urcu_qsbr_stress_percpu.tap], [chmod +x tests/regression/rcutorture_urcu_qsbr_stress_percpu.tap])
393AC_CONFIG_FILES([tests/regression/rcutorture_urcu_qsbr_stress_perthread.tap], [chmod +x tests/regression/rcutorture_urcu_qsbr_stress_perthread.tap])
394AC_CONFIG_FILES([tests/regression/rcutorture_urcu_qsbr_uperf_global.tap], [chmod +x tests/regression/rcutorture_urcu_qsbr_uperf_global.tap])
395AC_CONFIG_FILES([tests/regression/rcutorture_urcu_qsbr_uperf_percpu.tap], [chmod +x tests/regression/rcutorture_urcu_qsbr_uperf_percpu.tap])
396AC_CONFIG_FILES([tests/regression/rcutorture_urcu_qsbr_uperf_perthread.tap], [chmod +x tests/regression/rcutorture_urcu_qsbr_uperf_perthread.tap])
397AC_CONFIG_FILES([tests/regression/rcutorture_urcu_signal_perf_global.tap], [chmod +x tests/regression/rcutorture_urcu_signal_perf_global.tap])
398AC_CONFIG_FILES([tests/regression/rcutorture_urcu_signal_perf_percpu.tap], [chmod +x tests/regression/rcutorture_urcu_signal_perf_percpu.tap])
399AC_CONFIG_FILES([tests/regression/rcutorture_urcu_signal_perf_perthread.tap], [chmod +x tests/regression/rcutorture_urcu_signal_perf_perthread.tap])
400AC_CONFIG_FILES([tests/regression/rcutorture_urcu_signal_rperf_global.tap], [chmod +x tests/regression/rcutorture_urcu_signal_rperf_global.tap])
401AC_CONFIG_FILES([tests/regression/rcutorture_urcu_signal_rperf_percpu.tap], [chmod +x tests/regression/rcutorture_urcu_signal_rperf_percpu.tap])
402AC_CONFIG_FILES([tests/regression/rcutorture_urcu_signal_rperf_perthread.tap], [chmod +x tests/regression/rcutorture_urcu_signal_rperf_perthread.tap])
403AC_CONFIG_FILES([tests/regression/rcutorture_urcu_signal_stress_global.tap], [chmod +x tests/regression/rcutorture_urcu_signal_stress_global.tap])
404AC_CONFIG_FILES([tests/regression/rcutorture_urcu_signal_stress_percpu.tap], [chmod +x tests/regression/rcutorture_urcu_signal_stress_percpu.tap])
405AC_CONFIG_FILES([tests/regression/rcutorture_urcu_signal_stress_perthread.tap], [chmod +x tests/regression/rcutorture_urcu_signal_stress_perthread.tap])
406AC_CONFIG_FILES([tests/regression/rcutorture_urcu_signal_uperf_global.tap], [chmod +x tests/regression/rcutorture_urcu_signal_uperf_global.tap])
407AC_CONFIG_FILES([tests/regression/rcutorture_urcu_signal_uperf_percpu.tap], [chmod +x tests/regression/rcutorture_urcu_signal_uperf_percpu.tap])
408AC_CONFIG_FILES([tests/regression/rcutorture_urcu_signal_uperf_perthread.tap], [chmod +x tests/regression/rcutorture_urcu_signal_uperf_perthread.tap])
409
410
48d848c7 411AC_OUTPUT
a6412536 412
628a1a72
MJ
413#
414# Mini-report on what will be built.
415#
416
417PPRINT_INIT
418PPRINT_SET_INDENT(1)
419PPRINT_SET_TS(38)
420
421AS_ECHO
422AS_ECHO("${PPRINT_COLOR_BLDBLU}Userspace-RCU $PACKAGE_VERSION${PPRINT_COLOR_RST}")
423AS_ECHO
424
425PPRINT_SUBTITLE([Features])
426
427PPRINT_PROP_STRING([Target architecture], $host_cpu)
428
429# SMP support enabled/disabled
430test "x$def_smp_support" = "xyes" && value=1 || value=0
431PPRINT_PROP_BOOL([SMP support], $value)
432
628a1a72 433# TLS
109267f6 434test "x$def_compiler_tls" = "xyes" && value="compiler TLS" || value="pthread_getspecific()"
628a1a72
MJ
435PPRINT_PROP_STRING([Thread Local Storage (TLS)], [$value])
436
437# clock_gettime() available
438test "x$config_rcu_have_clock_gettime" = "xyes" && value=1 || value=0
439PPRINT_PROP_BOOL([clock_gettime()], $value)
440
441# Require membarrier
442test "x$def_sys_membarrier_fallback" != "xyes" && value=1 || value=0
443PPRINT_PROP_BOOL([Require membarrier], $value)
444
445# RCU debug enabled/disabled
446test "x$enable_rcu_debug" = "xyes" && value=1 || value=0
447PPRINT_PROP_BOOL([Internal debugging], $value)
448
d7c76f85
MD
449# rculfhash iterator debug enabled/disabled
450test "x$enable_cds_lfht_iter_debug" = "xyes" && value=1 || value=0
451PPRINT_PROP_BOOL([Lock-free hash table iterator debugging], $value)
452
4477a870
MD
453PPRINT_PROP_BOOL([Multi-flavor support], 1)
454
628a1a72
MJ
455report_bindir="`eval eval echo $bindir`"
456report_libdir="`eval eval echo $libdir`"
457
458# Print the bindir and libdir this `make install' will install into.
459AS_ECHO
460PPRINT_SUBTITLE([Install directories])
461PPRINT_PROP_STRING([Binaries], [$report_bindir])
462PPRINT_PROP_STRING([Libraries], [$report_libdir])
75478b32 463
This page took 0.093431 seconds and 4 git commands to generate.