blob: 709ed054008fa328235b1a65c5494449c03d3e52 [file] [log] [blame]
Vishwanatha Subbannaaffea8b2017-04-04 14:02:16 +05301# Initialization
2AC_PREREQ([2.69])
3AC_INIT([phosphor-gpio-monitor], [1.0], [https://github.com/openbmc/phosphor-gpio-monitor/issues])
4AC_LANG([C++])
5AC_CONFIG_HEADERS([config.h])
6AM_INIT_AUTOMAKE([subdir-objects -Wall -Werror foreign dist-xz])
7AM_SILENT_RULES([yes])
8
9# Checks for programs.
10AC_PROG_CXX
11AC_PROG_INSTALL
12AC_PROG_MAKE_SET
13
14# Checks for typedefs, structures, and compiler characteristics.
15AX_CXX_COMPILE_STDCXX_14([noext])
16AX_APPEND_COMPILE_FLAGS([-Wall -Werror], [CXXFLAGS])
17
18# For linking
19LT_INIT
20
Vishwanatha Subbanna4902a102017-04-04 14:05:09 +053021# Checks for modules
Vishwanatha Subbanna0b956032017-04-04 14:07:25 +053022PKG_CHECK_MODULES([SYSTEMD], [libsystemd >= 221], ,[AC_MSG_ERROR([Could not find systemd...systemd developement package required])])
Vishwanatha Subbanna4902a102017-04-04 14:05:09 +053023PKG_CHECK_MODULES([PHOSPHOR_LOGGING], [phosphor-logging],, [AC_MSG_ERROR([Could not find phosphor-logging...openbmc/phosphor-logging package required])])
24
Vishwanatha Subbannaaffea8b2017-04-04 14:02:16 +053025# Create configured output
26AC_CONFIG_FILES([Makefile])
27AC_OUTPUT