configure.ac: add details to final report
[babeltrace.git] / configure.ac
1 AC_PREREQ([2.50])
2 m4_define([bt_version_major], [2])
3 m4_define([bt_version_minor], [0])
4 m4_define([bt_version_patch], [0])
5 m4_define([bt_version_extra], [-pre])
6 m4_define([bt_version], bt_version_major[.]bt_version_minor[.]bt_version_patch[]bt_version_extra)
7 AC_INIT([babeltrace],bt_version,[jeremie dot galarneau at efficios dot com])
8
9 # Following the numbering scheme proposed by libtool for the library version
10 # http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
11 AC_SUBST([BABELTRACE_LIBRARY_VERSION], bt_version_major[:]bt_version_minor[:]bt_version_patch)
12
13 AC_CONFIG_HEADERS([config.h])
14 AC_CONFIG_AUX_DIR([config])
15 AC_CONFIG_MACRO_DIR([m4])
16
17 AC_DEFINE([BT_VERSION_MAJOR], bt_version_major, [Babeltrace library major version])
18 AC_DEFINE([BT_VERSION_MINOR], bt_version_minor, [Babeltrace library minor version])
19 AC_DEFINE([BT_VERSION_PATCH], bt_version_patch, [Babeltrace library patch version])
20 AC_DEFINE([BT_VERSION_EXTRA], ["]bt_version_extra["], [Babeltrace library extra version])
21
22 AC_CANONICAL_TARGET
23 AC_CANONICAL_HOST
24
25 AM_INIT_AUTOMAKE([foreign dist-bzip2 no-dist-gzip tar-ustar])
26 AM_MAINTAINER_MODE([enable])
27
28 # Enable silent rules if available (Introduced in AM 1.11)
29 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
30
31 AC_REQUIRE_AUX_FILE([tap-driver.sh])
32
33 # Checks for C compiler
34 AC_USE_SYSTEM_EXTENSIONS
35 AC_SYS_LARGEFILE
36 AC_PROG_CC
37 AC_PROG_CC_STDC
38
39 # Checks for programs.
40 AC_PROG_MAKE_SET
41 LT_INIT
42 AC_PROG_YACC
43 AC_PROG_LEX
44 AC_PROG_MKDIR_P
45 AC_PROG_LN_S
46
47 AX_C___ATTRIBUTE__
48 AS_IF([test "x$ax_cv___attribute__" = "xyes"],
49 [:],
50 [AC_MSG_ERROR([The compiler does not support __attribute__ extensions])])
51
52 AX_PTHREAD(,[AC_MSG_ERROR([Could not configure pthreads support])])
53 LIBS="$PTHREAD_LIBS $LIBS"
54 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
55 CC="$PTHREAD_CC"
56
57 # Check linker option
58 AX_APPEND_LINK_FLAGS([-Wl,--no-as-needed], [LD_NO_AS_NEEDED])
59 AC_SUBST([LD_NO_AS_NEEDED])
60
61 AC_HEADER_STDBOOL
62 AC_CHECK_HEADERS([ \
63 fcntl.h \
64 float.h \
65 libintl.h \
66 limits.h \
67 malloc.h \
68 netdb.h \
69 netinet/in.h \
70 stddef.h \
71 sys/socket.h \
72 ])
73
74 if test ! -f "$srcdir/plugins/ctf/common/metadata/parser.h"; then
75 if test x"$(basename "$YACC")" != "xbison -y"; then
76 AC_MSG_ERROR([[bison not found and is required when building from git.
77 Please install bison]])
78 fi
79 AC_PATH_PROG([BISON],[bison])
80 AX_PROG_BISON_VERSION([2.4], [],[
81 AC_MSG_ERROR([[Bison >= 2.4 is required when building from git]])
82 ])
83 fi
84
85 if test ! -f "$srcdir/plugins/ctf/common/metadata/lexer.c"; then
86 if test x"$LEX" != "xflex"; then
87 AC_MSG_ERROR([[flex not found and is required when building from git.
88 Please install flex]])
89 fi
90 AC_PATH_PROG([FLEX],[flex])
91 AX_PROG_FLEX_VERSION([2.5.35], [],[
92 AC_MSG_ERROR([[Flex >= 2.5.35 is required when building from git]])
93 ])
94 fi
95
96
97 AM_PATH_GLIB_2_0(2.22.0, ,AC_MSG_ERROR([glib is required in order to compile BabelTrace - download it from ftp://ftp.gtk.org/pub/gtk]) , gmodule)
98
99 # Check what libraries are required on this platform to link sockets programs.
100 AX_LIB_SOCKET_NSL
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_INT16_T
107 AC_TYPE_INT32_T
108 AC_TYPE_INT64_T
109 AC_TYPE_INT8_T
110 AC_TYPE_OFF_T
111 AC_TYPE_SSIZE_T
112 AC_TYPE_UINT16_T
113 AC_TYPE_UINT32_T
114 AC_TYPE_UINT64_T
115 AC_TYPE_UINT8_T
116
117 # Checks for library functions.
118 AC_FUNC_ALLOCA
119 AC_FUNC_FORK
120 AC_FUNC_MALLOC
121 AC_FUNC_MKTIME
122 AC_FUNC_MMAP
123 AC_FUNC_REALLOC
124 AC_FUNC_STRERROR_R
125 AC_CHECK_FUNCS([ \
126 atexit \
127 dirfd \
128 dup2 \
129 ftruncate \
130 gethostbyname \
131 gethostname \
132 gettimeofday \
133 localtime_r \
134 memchr \
135 memset \
136 mkdir \
137 mkdtemp \
138 munmap \
139 rmdir \
140 setenv \
141 socket \
142 strchr \
143 strdup \
144 strerror \
145 strndup \
146 strnlen \
147 strrchr \
148 strtoul \
149 strtoull \
150 tzset \
151 uname \
152 ])
153
154 MINGW32=no
155 DEFAULT_ENABLE_DEBUG_INFO=yes
156 AS_CASE([$host_os],
157 [solaris*|darwin*],
158 [
159 DEFAULT_ENABLE_DEBUG_INFO=no
160 ],
161 [mingw*],
162 [
163 MINGW32=yes
164 ]
165 )
166
167 AM_CONDITIONAL([BABELTRACE_BUILD_WITH_MINGW], [test "x$MINGW32" = "xyes"])
168
169 # Check for uuid in system libs
170 AC_CHECK_FUNCS([uuid_generate],
171 [
172 AC_DEFINE_UNQUOTED([BABELTRACE_HAVE_LIBUUID], 1, [Has libuuid support.])
173 link_with_libuuid=no
174 ],
175 [
176 # First, check the pkg-config module is available, otherwise explicitly check
177 # for libuuid, or uuid support in the C-library.
178 PKG_CHECK_MODULES([UUID], [uuid],
179 [
180 LIBS="${UUID_LIBS} ${LIBS}"
181 CFLAGS="${CFLAGS} ${UUID_CFLAGS}"
182 AC_DEFINE_UNQUOTED([BABELTRACE_HAVE_LIBUUID], 1, [Has libuuid support.])
183 link_with_libuuid=yes
184 ],
185 [
186 # Check for libuuid
187 AC_CHECK_LIB([uuid], [uuid_generate],
188 [
189 AC_DEFINE_UNQUOTED([BABELTRACE_HAVE_LIBUUID], 1, [Has libuuid support.])
190 link_with_libuuid=yes
191 ],
192 [
193 # libuuid not found, check for uuid_create in libc.
194 AC_CHECK_LIB([c], [uuid_create],
195 [
196 AC_DEFINE_UNQUOTED([BABELTRACE_HAVE_LIBC_UUID], 1, [Has libc uuid support.])
197 link_with_libc_uuid=yes
198 ],
199 [
200 # for MinGW32 we have our own internal implementation of uuid using Windows functions.
201 if test "x$MINGW32" = xno; then
202 AC_MSG_ERROR([Cannot find libuuid uuid_generate nor libc uuid_create. Use [LDFLAGS]=-Ldir to specify their location.])
203 fi
204 ])
205 ])
206 ])
207 ])
208
209 AM_CONDITIONAL([BABELTRACE_BUILD_WITH_LIBUUID], [test "x$link_with_libuuid" = "xyes"])
210 AM_CONDITIONAL([BABELTRACE_BUILD_WITH_LIBC_UUID], [test "x$link_with_libc_uuid" = "xyes"])
211
212 # Check for fmemopen
213 AC_CHECK_LIB([c], [fmemopen],
214 [
215 AC_DEFINE_UNQUOTED([BABELTRACE_HAVE_FMEMOPEN], 1, [Has fmemopen support.])
216 ]
217 )
218
219 # Check for open_memstream
220 AC_CHECK_LIB([c], [open_memstream],
221 [
222 AC_DEFINE_UNQUOTED([BABELTRACE_HAVE_OPEN_MEMSTREAM], 1, [Has open_memstream support.])
223 ]
224 )
225
226 # Check for posix_fallocate
227 AC_CHECK_LIB([c], [posix_fallocate],
228 [
229 AC_DEFINE_UNQUOTED([BABELTRACE_HAVE_POSIX_FALLOCATE], 1, [Has posix_fallocate support.])
230 ]
231 )
232
233 # Check for faccessat
234 AC_CHECK_LIB([c], [faccessat],
235 [
236 AC_DEFINE_UNQUOTED([BABELTRACE_HAVE_FACCESSAT], 1, [Has faccessat support.])
237 ]
238 )
239
240 AC_CHECK_LIB([popt], [poptGetContext], [],
241 [AC_MSG_ERROR([Cannot find popt.])]
242 )
243
244 # Plugins
245 AC_ARG_VAR([PLUGINSDIR], [built-in plugins install directory [LIBDIR/babeltrace/plugins]])
246 AS_IF([test "x$PLUGINSDIR" = x], [PLUGINSDIR='$(libdir)/babeltrace/plugins'])
247
248 # For Python
249 # SWIG version needed or newer:
250 swig_version=2.0.0
251
252 AC_ARG_ENABLE([python-bindings],
253 [AC_HELP_STRING([--enable-python-bindings],
254 [generate Python bindings])],
255 [enable_python_bindings=yes], [enable_python_bindings=no])
256
257 AM_CONDITIONAL([USE_PYTHON], [test "x${enable_python_bindings:-yes}" = xyes])
258
259 AC_ARG_ENABLE(
260 [python-plugins],
261 [AC_HELP_STRING(
262 [--enable-python-plugins],
263 [add support for the Babeltrace library and converter to load Python plugins])
264 ],
265 [enable_python_plugins=yes],
266 [enable_python_plugins=no]
267 )
268
269 if test "x${enable_python_bindings:-yes}" = xyes; then
270 AX_PKG_SWIG($swig_version, [], [ AC_MSG_ERROR([SWIG $swig_version or newer is needed]) ])
271 else
272 AC_MSG_NOTICE([You may configure with --enable-python-bindings ]dnl
273 [if you want Python bindings.])
274 fi
275
276 if test "x$enable_python_bindings" != xno || test "x$enable_python_plugins" != xno; then
277 AM_PATH_PYTHON([3.0], , [AC_MSG_ERROR(Python 3 is not available or is not the default Python interpreter on your system. See the README file to learn how to override your distribution's default Python interpreter.)])
278
279 AM_PATH_PYTHON_MODULES([PYTHON])
280 # pythondir is the path where extra modules are to be installed
281 pythondir=$PYTHON_PREFIX/$PYTHON_MODULES_PATH
282 # pyexecdir is the path that contains shared objects used by the extra modules
283 pyexecdir=$PYTHON_EXEC_PREFIX/$PYTHON_MODULES_PATH
284 AC_ARG_VAR([PYTHON_INCLUDE], [Include flags for Python, bypassing python-config])
285 AC_ARG_VAR([PYTHON_LIBS], [Library flags for Python, bypassing python-config])
286 AC_ARG_VAR([PYTHON_CONFIG], [Path to python-config])
287 AS_IF([test -z "$PYTHON_INCLUDE"], [
288 AS_IF([test -z "$PYTHON_CONFIG"], [
289 AC_PATH_PROGS([PYTHON_CONFIG],
290 [python$PYTHON_VERSION-config python-config],
291 [no],
292 [`dirname $PYTHON`])
293 AS_IF([test "$PYTHON_CONFIG" = no], [AC_MSG_ERROR([cannot find python-config for $PYTHON. Do you have python-dev installed?])])
294 ])
295 AC_MSG_CHECKING([Python include flags])
296 PYTHON_INCLUDE=`$PYTHON_CONFIG --includes`
297 AC_MSG_RESULT([$PYTHON_INCLUDE])
298 ])
299 AS_IF([test -z "$PYTHON_LIBS"], [
300 AS_IF([test -z "$PYTHON_CONFIG"], [
301 AC_PATH_PROGS([PYTHON_CONFIG],
302 [python$PYTHON_VERSION-config python-config],
303 [no],
304 [`dirname $PYTHON`])
305 AS_IF([test "$PYTHON_CONFIG" = no], [AC_MSG_ERROR([cannot find python-config for $PYTHON. Do you have python-dev installed?])])
306 ])
307 AC_MSG_CHECKING([Python library flags])
308 PYTHON_LIBS=`$PYTHON_CONFIG --libs`
309 AC_MSG_RESULT([$PYTHON_LIBS])
310 ])
311 fi
312
313 AS_IF([test "x$BUILT_IN_PLUGINS" = ""])
314
315 AM_CONDITIONAL([WITH_PYTHON_PLUGINS], [test "x$enable_python_plugins" != xno])
316 AS_IF(
317 [test "x$enable_python_plugins" != xno],
318 AC_DEFINE_UNQUOTED([WITH_PYTHON_PLUGINS], [1], [Python plugin support.])
319 )
320
321 AC_ARG_ENABLE([python-bindings-doc],
322 [AC_HELP_STRING([--enable-python-bindings-doc],
323 [generate Python bindings documentation])],
324 [enable_python_bindings_doc=yes], [enable_python_bindings_doc=no])
325
326 AM_CONDITIONAL([BUILD_PYTHON_BINDINGS_DOC], [test "x${enable_python_bindings_doc:-yes}" = xyes])
327
328 AC_ARG_ENABLE([python-bindings-tests],
329 [AC_HELP_STRING([--enable-python-bindings-tests],
330 [test Python bindings])],
331 [enable_python_bindings_tests=yes], [enable_python_bindings_tests=no])
332
333 AM_CONDITIONAL([ENABLE_PYTHON_BINDINGS_TESTS], [test "x${enable_python_bindings_tests:-yes}" = xyes])
334
335 if test "x${enable_python_bindings:-no}" = xno; then
336 if test "x${enable_python_bindings_doc:-yes}" = xyes; then
337 AC_MSG_ERROR([--enable-python-bindings-doc was specified without --enable-python-bindings])
338 fi
339
340 if test "x${enable_python_bindings_tests:-yes}" = xyes; then
341 AC_MSG_ERROR([--enable-python-bindings-tests was specified without --enable-python-bindings])
342 fi
343 fi
344
345 if test "x${enable_python_bindings_doc:-yes}" = xyes; then
346 AM_CHECK_PYTHON_SPHINX([PYTHON])
347 AS_IF([test "x$PYTHON_SPHINX_EXISTS" = xno],
348 AC_MSG_ERROR([The Sphinx package for Python 3 is required to build Python bindings documentation])
349 )
350 fi
351
352 if test "x${enable_python_bindings_tests:-yes}" = xyes; then
353 AM_CHECK_PYTHON_TAPPY([PYTHON])
354 AS_IF([test "x$PYTHON_TAPPY_EXISTS" = xno],
355 AC_MSG_ERROR([You need the tappy Python project to test the Python bindings (see <https://github.com/python-tap/tappy>)])
356 )
357 fi
358
359 # Set default enable state for debug info.
360 # The _enable_debug_info variable is prepended with an underscore to
361 # avoid clashing with the one generated by AC_ARG_ENABLE.
362 AS_IF([test "x$DEFAULT_ENABLE_DEBUG_INFO" = xyes], [_enable_debug_info=yes], [_enable_debug_info=no])
363
364 # Optional debug info feature
365 # Do _not_ indent the help string below (appears in the configure --help
366 # output).
367 AC_ARG_ENABLE([debug-info],
368 [AC_HELP_STRING([--enable-debug-info], [enable the debug info feature (default on Linux)])]
369 [AC_HELP_STRING([--disable-debug-info], [disable the debug info feature (default on OS X and Solaris)])],
370 [AS_IF([test "x$enableval" = xyes], [_enable_debug_info=yes], [_enable_debug_info=no])], [])
371
372 AM_CONDITIONAL([ENABLE_DEBUG_INFO], [test "x$_enable_debug_info" = xyes])
373
374 AS_IF([test "x$_enable_debug_info" = xyes], [
375 # Check if libelf and libdw are present
376 AC_CHECK_LIB([elf], [elf_version], [], [AC_MSG_ERROR(Missing libelf (from elfutils >= 0.154) which is required by debug info. You can disable this feature using --disable-debug-info.)])
377 AC_CHECK_LIB([dw], [dwarf_begin], [], [AC_MSG_ERROR(Missing libdw (from elfutils >= 0.154) which is required by debug info. You can disable this feature using --disable-debug-info.)])
378 BT_LIB_ELFUTILS([0], [154], [:], [AC_MSG_ERROR(elfutils >= 0.154 is required to use the debug info feature. You can disable this feature using --disable-debug-info.)])
379 AC_DEFINE([ENABLE_DEBUG_INFO], [1], [Define to 1 if you enable the 'debug info' feature])
380 ], [])
381
382 AC_ARG_VAR([BUILT_IN_PLUGINS], [Statically-link in-tree plug-ins into the babeltrace binary])
383 AS_IF([test "x$BUILT_IN_PLUGINS" != x], [
384 # Built-in plug-ins are only available when the --disable-shared --enable-static options are used.
385 AS_IF([test "x$enable_static" != "xyes"], [AC_MSG_ERROR(--enable-static must be used to bundle plug-ins in the babeltrace executable)])
386 AS_IF([test "x$enable_shared" = "xyes"], [AC_MSG_ERROR(--disable-shared must be used to bundle plug-ins in the babeltrace executable)])
387 built_in_plugins=yes
388 AC_DEFINE([BT_BUILT_IN_PLUGINS], [1], [Define to 1 to register plug-in attributes in static executable sections])
389 ])
390 AM_CONDITIONAL([BUILT_IN_PLUGINS], [test "x$built_in_plugins" = "xyes"])
391
392 AC_ARG_VAR([BUILT_IN_PYTHON_PLUGIN_SUPPORT], [Statically-link Python plugin support into the babeltrace library])
393 AS_IF([test "x$BUILT_IN_PYTHON_PLUGIN_SUPPORT" != x], [
394 # Built-in plug-ins are only available when the --disable-shared --enable-static options are used.
395 AS_IF([test "x$enable_static" != "xyes"], [AC_MSG_ERROR(--enable-static must be used to bundle Python plugin support in the babeltrace executable)])
396 AS_IF([test "x$enable_shared" = "xyes"], [AC_MSG_ERROR(--disable-shared must be used to bundle Python plugin support in the babeltrace executable)])
397 AS_IF([test "x$enable_python_plugins" = "xno"], [
398 AC_MSG_ERROR([You can't use BUILT_IN_PYTHON_PLUGIN_SUPPORT=1 without --enable-python-plugins.])
399 ])
400 built_in_python_plugin_support=yes
401 AC_DEFINE([BT_BUILT_IN_PYTHON_PLUGIN_SUPPORT], [1], [Define to 1 to register plug-in attributes in static executable sections])
402 ])
403 AM_CONDITIONAL([BUILT_IN_PYTHON_PLUGIN_SUPPORT], [test "x$built_in_python_plugin_support" = "xyes"])
404
405 PKG_CHECK_MODULES(GMODULE, [gmodule-2.0 >= 2.0.0])
406
407 # Logging
408 AC_ARG_VAR([BABELTRACE_MINIMAL_LOG_LEVEL], [Minimal log level for Babeltrace program, library, and plugins (VERBOSE, DEBUG, INFO, WARN, ERROR (default), FATAL, or NONE)])
409 AS_IF([test "x$BABELTRACE_MINIMAL_LOG_LEVEL" = "x"], [BABELTRACE_MINIMAL_LOG_LEVEL=DEBUG])
410 AS_IF([test "$BABELTRACE_MINIMAL_LOG_LEVEL" != "VERBOSE" && test "$BABELTRACE_MINIMAL_LOG_LEVEL" != "DEBUG" && test "$BABELTRACE_MINIMAL_LOG_LEVEL" != "INFO" && test "$BABELTRACE_MINIMAL_LOG_LEVEL" != "WARN" && test "$BABELTRACE_MINIMAL_LOG_LEVEL" != "ERROR" && test "$BABELTRACE_MINIMAL_LOG_LEVEL" != "FATAL" && test "$BABELTRACE_MINIMAL_LOG_LEVEL" != "NONE"], [
411 AC_MSG_ERROR([Invalid BABELTRACE_MINIMAL_LOG_LEVEL value ($BABELTRACE_MINIMAL_LOG_LEVEL): use VERBOSE, DEBUG, INFO, WARN, ERROR, FATAL, or NONE.])
412 ])
413 AC_DEFINE_UNQUOTED([BT_LOG_LEVEL], [BT_LOG_$BABELTRACE_MINIMAL_LOG_LEVEL], [Minimal log level])
414
415 LIBS="$LIBS $GMODULE_LIBS"
416 PACKAGE_CFLAGS="$GMODULE_CFLAGS -Wall -Wformat"
417 AC_SUBST(PACKAGE_CFLAGS)
418
419 DEFAULT_INCLUDES="-I\$(top_srcdir) -I\$(top_builddir) -I\$(top_builddir)/include -include config.h"
420 AC_SUBST(DEFAULT_INCLUDES)
421
422 babeltraceincludedir="${includedir}/babeltrace"
423 AC_SUBST(babeltraceincludedir)
424
425 babeltracectfwriterincludedir="${includedir}/babeltrace/ctf-writer"
426 AC_SUBST(babeltracectfwriterincludedir)
427
428 babeltracectfincludedir="${includedir}/babeltrace/ctf"
429 AC_SUBST(babeltracectfincludedir)
430
431 babeltracectfirincludedir="${includedir}/babeltrace/ctf-ir"
432 AC_SUBST(babeltracectfirincludedir)
433
434 babeltracepluginincludedir="${includedir}/babeltrace/plugin"
435 AC_SUBST(babeltracepluginincludedir)
436
437 babeltracegraphincludedir="${includedir}/babeltrace/graph"
438 AC_SUBST(babeltracegraphincludedir)
439
440 program_transform_name="s&babeltrace\.bin&babeltrace&;$program_transform_name"
441 AC_SUBST(program_transform_name)
442
443 # check for Doxygen
444 AC_ARG_ENABLE(
445 [api-doc],
446 [AC_HELP_STRING(
447 [--enable-api-doc],
448 [generate and install HTML API documentation]
449 )],
450 [enable_api_doc=$enableval],
451 [enable_api_doc=no]
452 )
453 AM_CONDITIONAL([ENABLE_API_DOC], [test "x$enable_api_doc" = "xyes"])
454
455 AS_IF([test "x$enable_api_doc" = "xyes"], [
456 DX_DOXYGEN_FEATURE(ON)
457 DX_DOT_FEATURE(OFF)
458 DX_HTML_FEATURE(ON)
459 DX_CHM_FEATURE(OFF)
460 DX_CHI_FEATURE(OFF)
461 DX_MAN_FEATURE(OFF)
462 DX_RTF_FEATURE(OFF)
463 DX_XML_FEATURE(OFF)
464 DX_PDF_FEATURE(OFF)
465 DX_PS_FEATURE(OFF)
466 DX_INIT_DOXYGEN([Babeltrace], [$(srcdir)/Doxyfile], [output])
467 ])
468
469 AC_CONFIG_FILES([
470 Makefile
471 common/Makefile
472 compat/Makefile
473 cli/Makefile
474 doc/Makefile
475 doc/api/Makefile
476 doc/api/Doxyfile
477 doc/bindings/Makefile
478 doc/bindings/python/Makefile
479 doc/images/Makefile
480 lib/Makefile
481 lib/prio_heap/Makefile
482 lib/plugin/Makefile
483 lib/graph/Makefile
484 lib/graph/notification/Makefile
485 lib/ctf-ir/Makefile
486 lib/ctf-writer/Makefile
487 include/Makefile
488 logging/Makefile
489 bindings/Makefile
490 bindings/python/Makefile
491 bindings/python/babeltrace/Makefile
492 bindings/python/bt2/Makefile
493 bindings/python/bt2/__init__.py
494 tests/Makefile
495 tests/cli/Makefile
496 tests/cli/intersection/Makefile
497 tests/lib/Makefile
498 tests/lib/writer/Makefile
499 tests/lib/test-plugin-plugins/Makefile
500 tests/utils/Makefile
501 tests/utils/tap/Makefile
502 tests/bindings/Makefile
503 tests/bindings/python/Makefile
504 tests/bindings/python/bt2/Makefile
505 tests/plugins/Makefile
506 extras/Makefile
507 extras/valgrind/Makefile
508 plugins/Makefile
509 plugins/ctf/Makefile
510 plugins/ctf/common/Makefile
511 plugins/ctf/common/btr/Makefile
512 plugins/ctf/common/metadata/Makefile
513 plugins/ctf/common/notif-iter/Makefile
514 plugins/ctf/fs-src/Makefile
515 plugins/ctf/fs-sink/Makefile
516 plugins/ctf/lttng-live/Makefile
517 plugins/text/Makefile
518 plugins/text/pretty/Makefile
519 plugins/utils/Makefile
520 plugins/utils/dummy/Makefile
521 plugins/utils/trimmer/Makefile
522 plugins/utils/muxer/Makefile
523 python-plugin-provider/Makefile
524 plugins/libctfcopytrace/Makefile
525 plugins/lttng-utils/Makefile
526 babeltrace.pc
527 babeltrace-ctf.pc
528 ])
529
530 #AC_CONFIG_FILES([converter/babeltrace], [chmod +x converter/babeltrace])
531 AC_CONFIG_FILES([tests/lib/test_ctf_writer_complete], [chmod +x tests/lib/test_ctf_writer_complete])
532 AC_CONFIG_FILES([tests/lib/test_plugin_complete], [chmod +x tests/lib/test_plugin_complete])
533 AC_CONFIG_FILES([tests/lib/test_seek_big_trace], [chmod +x tests/lib/test_seek_big_trace])
534 AC_CONFIG_FILES([tests/lib/test_seek_empty_packet], [chmod +x tests/lib/test_seek_empty_packet])
535 AC_CONFIG_FILES([tests/lib/test_dwarf_complete], [chmod +x tests/lib/test_dwarf_complete])
536 AC_CONFIG_FILES([tests/lib/test_bin_info_complete], [chmod +x tests/lib/test_bin_info_complete])
537
538 AC_CONFIG_FILES([tests/plugins/test-utils-muxer-complete], [chmod +x tests/plugins/test-utils-muxer-complete])
539
540 AC_CONFIG_FILES([tests/cli/test_trace_read], [chmod +x tests/cli/test_trace_read])
541 AC_CONFIG_FILES([tests/cli/intersection/test_intersection], [chmod +x tests/cli/intersection/test_intersection])
542 AC_CONFIG_FILES([tests/cli/intersection/bt_python_helper.py])
543 AC_CONFIG_FILES([tests/lib/writer/bt_python_helper.py])
544 AC_CONFIG_FILES([tests/cli/test_packet_seq_num], [chmod +x tests/cli/test_packet_seq_num])
545
546 AS_IF([test "x$enable_python" = "xyes"], [
547 AC_CONFIG_FILES(
548 [tests/bindings/python/bt2/testall.sh],
549 [chmod +x tests/bindings/python/bt2/testall.sh]
550 )
551 ])
552
553 AC_OUTPUT
554
555 #
556 # Mini-report on what will be built.
557 #
558
559 PPRINT_INIT
560 PPRINT_SET_INDENT(1)
561 PPRINT_SET_TS(38)
562
563 AS_ECHO
564 AS_ECHO("${PPRINT_COLOR_BLDBLU}Babeltrace $PACKAGE_VERSION$PPRINT_COLOR_RST")
565 AS_ECHO
566
567 PPRINT_SUBTITLE([System])
568
569 # Target architecture we're building for.
570 target_arch=$host_cpu
571 [
572 for f in $CFLAGS; do
573 if test $f = "-m32"; then
574 target_arch="32-bit"
575 elif test $f = "-m64"; then
576 target_arch="64-bit"
577 fi
578 done
579 ]
580
581 PPRINT_PROP_STRING([Target architecture], $target_arch)
582
583 AS_ECHO
584 PPRINT_SUBTITLE([Python 3 language support])
585 test "x$enable_python_bindings" = "xyes" && value=1 || value=0
586 PPRINT_PROP_BOOL([Python bindings], $value)
587 test "x$enable_python_plugins" = "xyes" && value=1 || value=0
588 PPRINT_PROP_BOOL([Python plugin support], $value)
589 AS_IF([test "x$enable_python_bindings" = "xyes" || test "x$enable_python_plugins" = "xyes"], [
590 PPRINT_PROP_STRING([Python include paths], [$PYTHON_INCLUDE])
591 PPRINT_PROP_STRING([Python libraries], [$PYTHON_LIBS])
592 ])
593
594 AS_ECHO
595 PPRINT_SUBTITLE([Plugins])
596 PPRINT_PROP_BOOL(['ctf' plugin], 1)
597 test "x$_enable_debug_info" = "xyes" && value=1 || value=0
598 PPRINT_PROP_BOOL(['lttng-utils' plugin], $value)
599 PPRINT_PROP_BOOL(['text' plugin], 1)
600 PPRINT_PROP_BOOL(['utils' plugin], 1)
601
602 AS_ECHO
603 PPRINT_SUBTITLE([Built-in features])
604 test "x$built_in_plugins" = "xyes" && value=1 || value=0
605 PPRINT_PROP_BOOL([Built-in plugins], $value)
606 test "x$built_in_python_plugin_support" = "xyes" && value=1 || value=0
607 PPRINT_PROP_BOOL([Built-in Python plugin support], $value)
608
609 AS_ECHO
610 PPRINT_SUBTITLE([Documentation])
611 test "x$enable_api_doc" = "xyes" && value=1 || value=0
612 PPRINT_PROP_BOOL([HTML API documentation], $value)
613 test "x$enable_python_bindings_doc" = "xyes" && value=1 || value=0
614 PPRINT_PROP_BOOL([Python bindings documentation], $value)
615
616 AS_ECHO
617 PPRINT_SUBTITLE([Logging])
618 PPRINT_PROP_STRING([Minimal log level], $BABELTRACE_MINIMAL_LOG_LEVEL)
619
620 AS_ECHO
621 PPRINT_SUBTITLE([Testing])
622 test "x$enable_python_bindings_tests" = "xyes" && value=1 || value=0
623 PPRINT_PROP_BOOL([Python bindings tests], $value)
624
625 report_bindir="`eval eval echo $bindir`"
626 report_libdir="`eval eval echo $libdir`"
627 report_sysconfdif="`eval eval echo $sysconfdir`"
628
629 # Print the bindir and libdir this `make install' will install into.
630 AS_ECHO
631 PPRINT_SUBTITLE([Install directories])
632 PPRINT_PROP_STRING([Binaries], [$report_bindir])
633 PPRINT_PROP_STRING([Libraries], [$report_libdir])
634 PPRINT_PROP_STRING([Plugins], [$report_libdir/babeltrace/plugins])
635 PPRINT_PROP_STRING([Configuration], [$report_sysconfdif])
This page took 0.041336 seconds and 5 git commands to generate.