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 |
Ratan Gupta | 309ac44 | 2016-12-13 20:40:06 +0530 | [diff] [blame] | 10 | AM_PROG_AR |
| 11 | AC_PROG_INSTALL |
| 12 | AC_PROG_MAKE_SET |
| 13 | |
Patrick Venture | 54d4731 | 2018-10-29 19:13:22 -0700 | [diff] [blame] | 14 | AX_CXX_COMPILE_STDCXX_17([noext]) |
| 15 | |
Ratan Gupta | aab308d | 2017-02-11 07:50:35 +0530 | [diff] [blame] | 16 | LT_INIT |
| 17 | |
Ratan Gupta | 309ac44 | 2016-12-13 20:40:06 +0530 | [diff] [blame] | 18 | # Checks for libraries. |
| 19 | PKG_CHECK_MODULES([SYSTEMD], [libsystemd >= 221]) |
| 20 | |
| 21 | # Checks for header files. |
Gunnar Mills | 1f12e38 | 2018-06-13 16:03:33 -0500 | [diff] [blame] | 22 | 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] | 23 | # Checks for typedefs, structures, and compiler characteristics. |
| 24 | |
Ratan Gupta | ead7a3c | 2017-01-05 15:45:09 +0530 | [diff] [blame] | 25 | AC_ARG_VAR(SERVICE_DIR, [Location of service files.]) |
| 26 | AS_IF([test "x$SERVICE_DIR" == "x"], [SERVICE_DIR="/etc/slp/services/"]) |
| 27 | AC_DEFINE_UNQUOTED([SERVICE_DIR], ["$SERVICE_DIR"], [Location of service files.]) |
Ratan Gupta | 309ac44 | 2016-12-13 20:40:06 +0530 | [diff] [blame] | 28 | AC_CONFIG_FILES([Makefile]) |
| 29 | AC_OUTPUT |