Ratan Gupta | 309ac44 | 2016-12-13 20:40:06 +0530 | [diff] [blame] | 1 | # Initialization |
| 2 | AC_PREREQ([2.69]) |
| 3 | AC_INIT([slpd-lite], [1.0], [https://github.com/openbmc/slpd-lite/issues]) |
| 4 | AC_CONFIG_HEADERS([config.h]) |
| 5 | AM_INIT_AUTOMAKE([subdir-objects -Wall -Werror foreign dist-xz]) |
| 6 | |
| 7 | # Checks for programs. |
| 8 | AC_PROG_CXX |
| 9 | AX_CXX_COMPILE_STDCXX_14([noext]) |
| 10 | AM_PROG_AR |
| 11 | AC_PROG_INSTALL |
| 12 | AC_PROG_MAKE_SET |
| 13 | |
| 14 | # Checks for libraries. |
| 15 | PKG_CHECK_MODULES([SYSTEMD], [libsystemd >= 221]) |
| 16 | |
| 17 | # Checks for header files. |
| 18 | AC_CHECK_HEADER(systemd/sd-bus.h, ,[AC_MSG_ERROR([Could not find systemd/sd-bus.h...systemd developement package required])]) |
| 19 | # Checks for typedefs, structures, and compiler characteristics. |
| 20 | |
| 21 | AC_CONFIG_FILES([Makefile]) |
| 22 | AC_OUTPUT |