blob: 80e651ec05dbb705bcba376cf244d264c4a3283a [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
Ratan Guptaaab308d2017-02-11 07:50:35 +053013LT_INIT
14
Ratan Gupta309ac442016-12-13 20:40:06 +053015# Checks for libraries.
16PKG_CHECK_MODULES([SYSTEMD], [libsystemd >= 221])
17
18# Checks for header files.
19AC_CHECK_HEADER(systemd/sd-bus.h, ,[AC_MSG_ERROR([Could not find systemd/sd-bus.h...systemd developement package required])])
20# Checks for typedefs, structures, and compiler characteristics.
21
Ratan Guptaead7a3c2017-01-05 15:45:09 +053022AC_ARG_VAR(SERVICE_DIR, [Location of service files.])
23AS_IF([test "x$SERVICE_DIR" == "x"], [SERVICE_DIR="/etc/slp/services/"])
24AC_DEFINE_UNQUOTED([SERVICE_DIR], ["$SERVICE_DIR"], [Location of service files.])
Ratan Gupta309ac442016-12-13 20:40:06 +053025AC_CONFIG_FILES([Makefile])
26AC_OUTPUT