blob: 3f01c2efd23d7d8569c23c0b8d00403e007fba71 [file] [log] [blame]
Adriana Kobylakf855c3e2016-09-29 20:48:08 -05001AC_PREREQ([2.69])
2AC_INIT([phosphor-logging], [1.0], [https://github.com/openbmc/phosphor-logging/issues])
3
4AM_INIT_AUTOMAKE([subdir-objects -Wall -Werror foreign dist-xz])
5AM_PROG_AR()
6AM_SILENT_RULES([yes])
7
8# Checks for programs
9AC_PROG_CXX
10AX_CXX_COMPILE_STDCXX_14([noext])
11AX_APPEND_COMPILE_FLAGS([-fpic -Wall -Werror], [CXXFLAGS])
12AC_PROG_INSTALL #Checks/sets the install variable to be used
13AC_PROG_MAKE_SET
14
15# Surpress the --with-libtool-sysroot error
16LT_INIT
17
18PKG_CHECK_MODULES([SYSTEMD], [libsystemd >= 221])
19
20AC_CHECK_HEADER(systemd/sd-journal.h, ,[AC_MSG_ERROR([Could not find \
21systemd/sd-journal.h...systemd developement package required])])
22
23AC_CONFIG_HEADERS([config.h])
24AC_CONFIG_FILES([Makefile])
25AC_OUTPUT