1 # SPDX-License-Identifier: MIT
3 # Copyright (C) 2019 Michael Jeanson <mjeanson@efficios.com>
7 AC_INIT([lttng-trace],[0.1.0-pre],[mathieu dot desnoyers at efficios dot com], [], [https://github.com/compudj/lttng-trace/])
9 AC_CONFIG_HEADERS([include/config.h])
10 AC_CONFIG_AUX_DIR([config])
11 AC_CONFIG_MACRO_DIR([m4])
16 AM_INIT_AUTOMAKE([foreign dist-bzip2 no-dist-gzip nostdinc])
17 AM_MAINTAINER_MODE([enable])
19 # Enable silent rules if available (Introduced in AM 1.11)
20 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
22 # Checks for C compiler
23 AC_USE_SYSTEM_EXTENSIONS
28 # Checks for programs.
34 # Checks for typedefs, structures, and compiler characteristics.
44 AS_IF([test "x$ax_cv___attribute__" = "xyes"],
46 [AC_MSG_ERROR([The compiler does not support __attribute__ extensions])])
48 AX_PTHREAD(,[AC_MSG_ERROR([Could not configure pthreads support])])
50 AM_CFLAGS="$AM_CFLAGS $PTHREAD_CFLAGS"
52 # Checks for library functions.
60 # AC_FUNC_MALLOC causes problems when cross-compiling.
70 AM_CPPFLAGS="-include config.h"
73 AM_CFLAGS="-Wall -Wextra $AM_CFLAGS"
84 # Mini-report on what will be built.
92 AS_ECHO("${PPRINT_COLOR_BLDBLU}lttng-trace $PACKAGE_VERSION${PPRINT_COLOR_RST}")
95 PPRINT_SUBTITLE([Features])
97 PPRINT_PROP_STRING([Target architecture], $host_cpu)
99 report_bindir="`eval eval echo $bindir`"
100 report_libdir="`eval eval echo $libdir`"
102 # Print the bindir and libdir this `make install' will install into.
104 PPRINT_SUBTITLE([Install directories])
105 PPRINT_PROP_STRING([Binaries], [$report_bindir])
106 PPRINT_PROP_STRING([Libraries], [$report_libdir])