Ratan Gupta | 309ac44 | 2016-12-13 20:40:06 +0530 | [diff] [blame] | 1 | # Initialization |
| 2 | AC_PREREQ([2.69]) |
| 3 | AC_INIT([slpd-lite], [1.0], [https://github.com/openbmc/slpd-lite/issues]) |
| 4 | AC_CONFIG_HEADERS([config.h]) |
| 5 | AM_INIT_AUTOMAKE([subdir-objects -Wall -Werror foreign dist-xz]) |
Patrick Venture | edd1302 | 2018-10-29 19:10:24 -0700 | [diff] [blame^] | 6 | AC_LANG([C++]) |
| 7 | |
Ratan Gupta | 309ac44 | 2016-12-13 20:40:06 +0530 | [diff] [blame] | 8 | # Checks for programs. |
| 9 | AC_PROG_CXX |
| 10 | AX_CXX_COMPILE_STDCXX_14([noext]) |
| 11 | AM_PROG_AR |
| 12 | AC_PROG_INSTALL |
| 13 | AC_PROG_MAKE_SET |
| 14 | |
Ratan Gupta | aab308d | 2017-02-11 07:50:35 +0530 | [diff] [blame] | 15 | LT_INIT |
| 16 | |
Ratan Gupta | 309ac44 | 2016-12-13 20:40:06 +0530 | [diff] [blame] | 17 | # Checks for libraries. |
| 18 | PKG_CHECK_MODULES([SYSTEMD], [libsystemd >= 221]) |
| 19 | |
| 20 | # Checks for header files. |
Gunnar Mills | 1f12e38 | 2018-06-13 16:03:33 -0500 | [diff] [blame] | 21 | AC_CHECK_HEADER(systemd/sd-bus.h, ,[AC_MSG_ERROR([Could not find systemd/sd-bus.h...systemd development package required])]) |
Ratan Gupta | 309ac44 | 2016-12-13 20:40:06 +0530 | [diff] [blame] | 22 | # Checks for typedefs, structures, and compiler characteristics. |
| 23 | |
Ratan Gupta | ead7a3c | 2017-01-05 15:45:09 +0530 | [diff] [blame] | 24 | AC_ARG_VAR(SERVICE_DIR, [Location of service files.]) |
| 25 | AS_IF([test "x$SERVICE_DIR" == "x"], [SERVICE_DIR="/etc/slp/services/"]) |
| 26 | AC_DEFINE_UNQUOTED([SERVICE_DIR], ["$SERVICE_DIR"], [Location of service files.]) |
Ratan Gupta | 309ac44 | 2016-12-13 20:40:06 +0530 | [diff] [blame] | 27 | AC_CONFIG_FILES([Makefile]) |
| 28 | AC_OUTPUT |