blob: 1b12c59638323ace245262d9c81dda82e4193a16 [file] [log] [blame]
Tom Josephc35524e2016-08-29 08:17:59 -05001# Initialization
2AC_PREREQ([2.69])
3AC_INIT([phosphor-net-ipmid], [1.0], [https://github.com/openbmc/phosphor-net-ipmid/issues])
4AC_CONFIG_HEADERS([config.h])
5AM_INIT_AUTOMAKE([subdir-objects -Wall -Werror foreign dist-xz])
6AM_SILENT_RULES([yes])
7
8# Checks for programs.
9AC_PROG_CXX
10AM_PROG_AR
11AC_PROG_INSTALL
12AC_PROG_MAKE_SET
13
14# Surpress the --with-libtool-sysroot error
15LT_INIT
16
17# Checks for typedefs, structures, and compiler characteristics.
18AX_CXX_COMPILE_STDCXX_14([noext])
19AX_APPEND_COMPILE_FLAGS([-Wall -Werror], [CXXFLAGS])
20
21# Checks for libraries.
22PKG_CHECK_MODULES([SYSTEMD], [libsystemd >= 221])
23PKG_CHECK_MODULES([CRYPTO], [libcrypto >= 1.0.2g], ,[AC_MSG_ERROR([can't find openssl libcrypto])])
24AC_CHECK_LIB([mapper], [mapper_get_service], ,[AC_MSG_ERROR([Could not find libmapper...openbmc/phosphor-objmgr package required])])
25
26# Checks for header files.
27AC_CHECK_HEADER(systemd/sd-bus.h, ,[AC_MSG_ERROR([Could not find systemd/sd-bus.h...systemd developement package required])])
28
29AC_CONFIG_FILES([Makefile])
30AC_OUTPUT