blob: 95113d9f599ba5e12643329835c17193cd36c2fa [file] [log] [blame]
Ratan Gupta309ac442016-12-13 20:40:06 +05301# Initialization
2AC_PREREQ([2.69])
3AC_INIT([slpd-lite], [1.0], [https://github.com/openbmc/slpd-lite/issues])
4AC_CONFIG_HEADERS([config.h])
5AM_INIT_AUTOMAKE([subdir-objects -Wall -Werror foreign dist-xz])
Patrick Ventureedd13022018-10-29 19:10:24 -07006AC_LANG([C++])
7
Ratan Gupta309ac442016-12-13 20:40:06 +05308# Checks for programs.
9AC_PROG_CXX
Ratan Gupta309ac442016-12-13 20:40:06 +053010AM_PROG_AR
11AC_PROG_INSTALL
12AC_PROG_MAKE_SET
13
Patrick Venture54d47312018-10-29 19:13:22 -070014AX_CXX_COMPILE_STDCXX_17([noext])
15
Ratan Guptaaab308d2017-02-11 07:50:35 +053016LT_INIT
17
Ratan Gupta309ac442016-12-13 20:40:06 +053018# Checks for libraries.
19PKG_CHECK_MODULES([SYSTEMD], [libsystemd >= 221])
20
21# Checks for header files.
Gunnar Mills1f12e382018-06-13 16:03:33 -050022AC_CHECK_HEADER(systemd/sd-bus.h, ,[AC_MSG_ERROR([Could not find systemd/sd-bus.h...systemd development package required])])
Ratan Gupta309ac442016-12-13 20:40:06 +053023# Checks for typedefs, structures, and compiler characteristics.
24
Ratan Guptaead7a3c2017-01-05 15:45:09 +053025AC_ARG_VAR(SERVICE_DIR, [Location of service files.])
26AS_IF([test "x$SERVICE_DIR" == "x"], [SERVICE_DIR="/etc/slp/services/"])
27AC_DEFINE_UNQUOTED([SERVICE_DIR], ["$SERVICE_DIR"], [Location of service files.])
Ratan Gupta309ac442016-12-13 20:40:06 +053028AC_CONFIG_FILES([Makefile])
29AC_OUTPUT