Matt Spinler | c1d6577 | 2018-03-27 10:15:32 -0500 | [diff] [blame] | 1 | AC_PREREQ([2.69]) |
| 2 | AC_INIT([ibm-logging], [1.0], [https://github.com/openbmc/ibm-logging/issues]) |
| 3 | AC_LANG([C++]) |
| 4 | AC_CONFIG_HEADERS([config.h]) |
| 5 | AM_INIT_AUTOMAKE([subdir-objects -Wall -Werror foreign dist-xz]) |
| 6 | AM_SILENT_RULES([yes]) |
| 7 | |
| 8 | # Checks for programs. |
| 9 | AC_PROG_CXX |
| 10 | AC_PROG_INSTALL |
| 11 | AC_PROG_MAKE_SET |
| 12 | |
Matt Spinler | e0017eb | 2018-03-27 11:17:38 -0500 | [diff] [blame] | 13 | PKG_CHECK_MODULES([PHOSPHOR_DBUS_INTERFACES], [phosphor-dbus-interfaces],,\ |
| 14 | AC_MSG_ERROR(["Requires openbmc/phosphor-dbus-interfaces package."])) |
| 15 | PKG_CHECK_MODULES([SDBUSPLUS], [sdbusplus],, |
| 16 | AC_MSG_ERROR(["Requires openbmc/sdbusplus package."])) |
| 17 | PKG_CHECK_MODULES([PHOSPHOR_LOGGING], [phosphor-logging],,\ |
| 18 | AC_MSG_ERROR(["Requires openbmc/phosphor-logging package."])) |
| 19 | |
Matt Spinler | c1d6577 | 2018-03-27 10:15:32 -0500 | [diff] [blame] | 20 | # Checks for typedefs, structures, and compiler characteristics. |
| 21 | AX_CXX_COMPILE_STDCXX_14([noext]) |
| 22 | AX_APPEND_COMPILE_FLAGS([-Wall -Werror], [CXXFLAGS]) |
| 23 | |
| 24 | LT_INIT |
| 25 | |
Matt Spinler | e0017eb | 2018-03-27 11:17:38 -0500 | [diff] [blame] | 26 | AC_DEFINE(LOGGING_PATH, "/xyz/openbmc_project/logging", |
| 27 | [The xyz log manager DBus object path]) |
| 28 | AC_DEFINE(LOGGING_IFACE, "xyz.openbmc_project.Logging.Entry", |
| 29 | [The xyz log entry interface]) |
Matt Spinler | 54bfa7e | 2018-03-27 11:28:59 -0500 | [diff] [blame] | 30 | AC_DEFINE(LOGGING_BUSNAME, "xyz.openbmc_project.Logging", |
| 31 | [The xyz logging busname]) |
Matt Spinler | 57724a9 | 2018-03-27 11:31:59 -0500 | [diff] [blame^] | 32 | AC_DEFINE(IBM_LOGGING_BUSNAME, "com.ibm.Logging", |
| 33 | [The IBM log manager DBus busname to own]) |
Matt Spinler | e0017eb | 2018-03-27 11:17:38 -0500 | [diff] [blame] | 34 | |
Matt Spinler | c1d6577 | 2018-03-27 10:15:32 -0500 | [diff] [blame] | 35 | AC_CONFIG_FILES([Makefile]) |
| 36 | AC_OUTPUT |