blob: 26b5cc4db844f5232c7b395e1ddef8d6e8c2a7c5 [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.
Matthew Barth293477d2017-02-17 15:39:36 -060021PKG_CHECK_MODULES([SDBUSPLUS], [sdbusplus], ,
22[AC_MSG_ERROR([The openbmc/sdbusplus package is required])])
23
24# Checks for header files.
Matthew Barthae0e96c2017-01-20 13:54:59 -060025
26# Checks for library functions.
27LT_INIT # Required for systemd linking
28
29# Create configured output
30AC_CONFIG_FILES([Makefile])
31AC_OUTPUT