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