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