blob: ae7b2197c2da0cc4875b425a33b81f3b2aac7e6a [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])
Ratan Gupta309ac442016-12-13 20:40:06 +05306# Checks for programs.
7AC_PROG_CXX
8AX_CXX_COMPILE_STDCXX_14([noext])
9AM_PROG_AR
10AC_PROG_INSTALL
11AC_PROG_MAKE_SET
12
13# Checks for libraries.
14PKG_CHECK_MODULES([SYSTEMD], [libsystemd >= 221])
15
16# Checks for header files.
17AC_CHECK_HEADER(systemd/sd-bus.h, ,[AC_MSG_ERROR([Could not find systemd/sd-bus.h...systemd developement package required])])
18# Checks for typedefs, structures, and compiler characteristics.
19
Ratan Guptaead7a3c2017-01-05 15:45:09 +053020AC_ARG_VAR(SERVICE_DIR, [Location of service files.])
21AS_IF([test "x$SERVICE_DIR" == "x"], [SERVICE_DIR="/etc/slp/services/"])
22AC_DEFINE_UNQUOTED([SERVICE_DIR], ["$SERVICE_DIR"], [Location of service files.])
Ratan Gupta309ac442016-12-13 20:40:06 +053023AC_CONFIG_FILES([Makefile])
24AC_OUTPUT