blob: 7a2f09be4f9b64258076eabd46a40f7488aae7cf [file] [log] [blame]
Matt Spinlerd82a5f42017-07-24 13:40:37 -05001# Initialization
2AC_PREREQ([2.69])
3AC_INIT([witherspoon-pfault-analysis], [1.0],
4[https://github.com/openbmc/witherspoon-pfault-analysis/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
20PKG_CHECK_MODULES([SDBUSPLUS], [sdbusplus],,
21 AC_MSG_ERROR(["Requires sdbusplus package."]))
22PKG_CHECK_MODULES([PHOSPHOR_LOGGING], [phosphor-logging],,\
23 AC_MSG_ERROR(["Requires phosphor-logging package."]))
24PKG_CHECK_MODULES([PHOSPHOR_DBUS_INTERFACES], [phosphor-dbus-interfaces],,\
25 AC_MSG_ERROR(["Requires phosphor-dbus-interfaces package."]))
26
27# Checks for library functions.
28LT_INIT # Required for systemd linking
29
30# Create configured output
31AC_CONFIG_FILES([Makefile])
32AC_OUTPUT