blob: 8e1b587c69f5497e6349d20e992aaebdf9a1043f [file] [log] [blame]
Matthew Barth3cff7ed2016-07-27 14:50:51 -05001# Initialization
2AC_PREREQ([2.69])
3AC_INIT([phosphor-host-ipmid], [1.0], [https://github.com/openbmc/phosphor-host-ipmid/issues])
4AC_CONFIG_HEADERS([config.h])
5AM_INIT_AUTOMAKE([subdir-objects -Wall -Werror foreign dist-xz])
Matthew Barth3cff7ed2016-07-27 14:50:51 -05006
7# Checks for programs.
8AC_PROG_CXX
Patrick Williams686df742016-09-02 17:52:59 -05009AX_CXX_COMPILE_STDCXX_14([noext])
Matthew Barth3cff7ed2016-07-27 14:50:51 -050010AC_PROG_CC
Patrick Williams686df742016-09-02 17:52:59 -050011AM_PROG_AR
Matthew Barth3cff7ed2016-07-27 14:50:51 -050012AC_PROG_INSTALL
13AC_PROG_MAKE_SET
14
15# Checks for libraries.
16AC_CHECK_LIB([mapper], [mapper_get_service])
17PKG_CHECK_MODULES([SYSTEMD], [libsystemd >= 221])
18
19# Checks for header files.
20AC_CHECK_HEADER(systemd/sd-bus.h, ,[AC_MSG_ERROR([Could not find systemd/sd-bus.h...systemd developement package required])])
21
22# Checks for typedefs, structures, and compiler characteristics.
23
24# Checks for library functions.
Patrick Williams686df742016-09-02 17:52:59 -050025LT_INIT([dlopen disable-static shared])
Matthew Barth3cff7ed2016-07-27 14:50:51 -050026LT_LIB_DLLOAD
Matthew Barth3cff7ed2016-07-27 14:50:51 -050027
28AC_CONFIG_FILES([Makefile])
29AC_OUTPUT