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