Matthew Barth | 3cff7ed | 2016-07-27 14:50:51 -0500 | [diff] [blame] | 1 | # Initialization |
| 2 | AC_PREREQ([2.69]) |
| 3 | AC_INIT([phosphor-host-ipmid], [1.0], [https://github.com/openbmc/phosphor-host-ipmid/issues]) |
| 4 | AC_CONFIG_HEADERS([config.h]) |
| 5 | AM_INIT_AUTOMAKE([subdir-objects -Wall -Werror foreign dist-xz]) |
Matthew Barth | 3cff7ed | 2016-07-27 14:50:51 -0500 | [diff] [blame] | 6 | |
| 7 | # Checks for programs. |
| 8 | AC_PROG_CXX |
Patrick Williams | 686df74 | 2016-09-02 17:52:59 -0500 | [diff] [blame] | 9 | AX_CXX_COMPILE_STDCXX_14([noext]) |
Matthew Barth | 3cff7ed | 2016-07-27 14:50:51 -0500 | [diff] [blame] | 10 | AC_PROG_CC |
Patrick Williams | 686df74 | 2016-09-02 17:52:59 -0500 | [diff] [blame] | 11 | AM_PROG_AR |
Matthew Barth | 3cff7ed | 2016-07-27 14:50:51 -0500 | [diff] [blame] | 12 | AC_PROG_INSTALL |
| 13 | AC_PROG_MAKE_SET |
| 14 | |
| 15 | # Checks for libraries. |
| 16 | AC_CHECK_LIB([mapper], [mapper_get_service]) |
| 17 | PKG_CHECK_MODULES([SYSTEMD], [libsystemd >= 221]) |
| 18 | |
| 19 | # Checks for header files. |
| 20 | AC_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 Williams | 686df74 | 2016-09-02 17:52:59 -0500 | [diff] [blame] | 25 | LT_INIT([dlopen disable-static shared]) |
Matthew Barth | 3cff7ed | 2016-07-27 14:50:51 -0500 | [diff] [blame] | 26 | LT_LIB_DLLOAD |
Matthew Barth | 3cff7ed | 2016-07-27 14:50:51 -0500 | [diff] [blame] | 27 | |
| 28 | AC_CONFIG_FILES([Makefile]) |
| 29 | AC_OUTPUT |