blob: 5cdc946fa4e7101da532abc657e54aec9fd362a9 [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
10AX_CXX_COMPILE_STDCXX_14([noext])
11AM_PROG_AR
12AC_PROG_INSTALL
13AC_PROG_MAKE_SET
14
Ratan Guptaaab308d2017-02-11 07:50:35 +053015LT_INIT
16
Ratan Gupta309ac442016-12-13 20:40:06 +053017# Checks for libraries.
18PKG_CHECK_MODULES([SYSTEMD], [libsystemd >= 221])
19
20# Checks for header files.
Gunnar Mills1f12e382018-06-13 16:03:33 -050021AC_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 +053022# Checks for typedefs, structures, and compiler characteristics.
23
Ratan Guptaead7a3c2017-01-05 15:45:09 +053024AC_ARG_VAR(SERVICE_DIR, [Location of service files.])
25AS_IF([test "x$SERVICE_DIR" == "x"], [SERVICE_DIR="/etc/slp/services/"])
26AC_DEFINE_UNQUOTED([SERVICE_DIR], ["$SERVICE_DIR"], [Location of service files.])
Ratan Gupta309ac442016-12-13 20:40:06 +053027AC_CONFIG_FILES([Makefile])
28AC_OUTPUT