Marri Devender Rao | 82056ee | 2017-04-27 00:54:50 -0500 | [diff] [blame] | 1 | # Initialization |
| 2 | AC_PREREQ([2.69]) |
| 3 | AC_INIT([openpower-debug-collector], [1.0],[https://github.com/openbmc/openpower-debug-collector/issues]) |
| 4 | AC_LANG([C++]) |
| 5 | AC_CONFIG_HEADERS([config.h]) |
| 6 | AM_INIT_AUTOMAKE([subdir-objects -Wall -Werror foreign dist-xz]) |
| 7 | AM_SILENT_RULES([yes]) |
| 8 | |
| 9 | # Checks for programs. |
| 10 | AC_PROG_CXX |
| 11 | AC_PROG_INSTALL |
| 12 | AC_PROG_MAKE_SET |
| 13 | |
| 14 | # Checks for typedefs, structures, and compiler characteristics. |
| 15 | AX_CXX_COMPILE_STDCXX_14([noext]) |
| 16 | AX_APPEND_COMPILE_FLAGS([-Wall -Werror], [CXXFLAGS]) |
| 17 | |
Marri Devender Rao | ce640f6 | 2017-05-14 09:11:05 -0500 | [diff] [blame] | 18 | # Check for sdbus++ |
| 19 | AC_PATH_PROG([SDBUSPLUSPLUS], [sdbus++]) |
| 20 | AS_IF([test "x$SDBUSPLUSPLUS" == "x"], |
| 21 | AC_MSG_ERROR(["Requires sdbus++"])) |
| 22 | |
Marri Devender Rao | 82056ee | 2017-04-27 00:54:50 -0500 | [diff] [blame] | 23 | LT_INIT |
| 24 | |
Marri Devender Rao | f973c3d | 2017-04-27 01:08:34 -0500 | [diff] [blame] | 25 | # Checks for libraries. |
| 26 | AX_PKG_CHECK_MODULES([SYSTEMD], [], [libsystemd >= 221], [], |
| 27 | [AC_MSG_ERROR(["systemd required and not found."])]) |
| 28 | |
| 29 | # Checks for modules |
| 30 | PKG_CHECK_MODULES([PHOSPHOR_LOGGING], [phosphor-logging],, |
| 31 | [AC_MSG_ERROR([Could not find phosphor-logging...openbmc/phosphor-logging package required])]) |
| 32 | |
Marri Devender Rao | 82056ee | 2017-04-27 00:54:50 -0500 | [diff] [blame] | 33 | # Create configured output |
| 34 | AC_CONFIG_FILES([Makefile ]) |
| 35 | AC_OUTPUT |