blob: f3f119b5f76f880b3d35b4b07d7b62d590443f17 [file] [log] [blame]
Vishwanatha81ee91f2016-08-30 17:17:13 +05301# Initialization
2AC_PREREQ([2.69])
3AC_INIT([phosphor-time-manager], [1.0], [https://github.com/openbmc/phosphor-time-manager/issues])
4AC_CONFIG_HEADERS([config.h])
5AM_INIT_AUTOMAKE([subdir-objects -Wall -Werror foreign dist-xz])
6
7# Checks for programs.
8AC_PROG_CXX
9AX_CXX_COMPILE_STDCXX_14([noext])
10AC_PROG_CC
11AM_PROG_AR
12AC_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
24AC_CONFIG_FILES([Makefile])
25AC_OUTPUT