blob: ee10e62678b6f9e1dc9009c1e6639d6237191405 [file] [log] [blame]
Matthew Barthae0e96c2017-01-20 13:54:59 -06001# Initialization
2AC_PREREQ([2.69])
3AC_INIT([phosphor-fan-presence], [1.0],
4[https://github.com/openbmc/phosphor-fan-presence/issues])
5AC_LANG([C++])
6AC_CONFIG_HEADERS([config.h])
7AM_INIT_AUTOMAKE([subdir-objects -Wall -Werror foreign dist-xz])
8AM_SILENT_RULES([yes])
9
10# Checks for programs.
11AC_PROG_CXX
12AM_PROG_AR
13AC_PROG_INSTALL
14AC_PROG_MAKE_SET
15
16# Checks for typedefs, structures, and compiler characteristics.
17AX_CXX_COMPILE_STDCXX_14([noext])
18AX_APPEND_COMPILE_FLAGS([-Wall -Werror], [CXXFLAGS])
19
20# Checks for libraries.
21PKG_CHECK_MODULES([SYSTEMD], [libsystemd >= 221], ,
22[AC_MSG_ERROR([The systemd development package is required])])
23
24# Checks for library functions.
25LT_INIT # Required for systemd linking
26
27# Create configured output
28AC_CONFIG_FILES([Makefile])
29AC_OUTPUT