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([1.12 foreign dist-bzip2 no-dist-gzip nostdinc -Wall -Wno-portability -Werror])
17 AM_MAINTAINER_MODE([enable])
19 # Enable silent rules by default
20 AM_SILENT_RULES([yes])
22 # Checks for C compiler
23 AC_USE_SYSTEM_EXTENSIONS
25 # AC_PROG_CC_STDC was merged in AC_PROG_CC in autoconf 2.70
26 m4_version_prereq([2.70], [], [AC_PROG_CC_STDC])
29 # Checks for programs.
35 # Checks for typedefs, structures, and compiler characteristics.
45 AS_IF([test "x$ax_cv___attribute__" = "xyes"],
47 [AC_MSG_ERROR([The compiler does not support __attribute__ extensions])])
49 AX_PTHREAD(,[AC_MSG_ERROR([Could not configure pthreads support])])
51 AM_CFLAGS="$AM_CFLAGS $PTHREAD_CFLAGS"
53 # Checks for library functions.
61 # AC_FUNC_MALLOC causes problems when cross-compiling.
71 AM_CPPFLAGS="-include config.h"
74 AM_CFLAGS="-Wall -Wextra $AM_CFLAGS"
85 # Mini-report on what will be built.
93 AS_ECHO("${PPRINT_COLOR_BLDBLU}lttng-trace $PACKAGE_VERSION${PPRINT_COLOR_RST}")
96 PPRINT_SUBTITLE([Features])
98 PPRINT_PROP_STRING([Target architecture], $host_cpu)
100 report_bindir="`eval eval echo $bindir`"
101 report_libdir="`eval eval echo $libdir`"
103 # Print the bindir and libdir this `make install' will install into.
105 PPRINT_SUBTITLE([Install directories])
106 PPRINT_PROP_STRING([Binaries], [$report_bindir])
107 PPRINT_PROP_STRING([Libraries], [$report_libdir])