blob: 40822934cafe784a34363b0e88bc80c1ae44a20e [file] [log] [blame]
Jayanth Othayoth224882b2017-05-04 05:46:45 -05001AC_PREREQ([2.69])
2AC_INIT([phosphor-debug-collector], [1.0], [https://github.com/openbmc/phosphor-debug-collector/issues])
3AC_LANG([C++])
4AC_CONFIG_HEADERS([config.h])
5AM_INIT_AUTOMAKE([subdir-objects -Wall -Werror foreign dist-xz])
6AM_SILENT_RULES([yes])
7
8# Checks for programs
9AC_PROG_CXX
10AC_PROG_INSTALL #Checks/sets the install variable to be used
11AC_PROG_MAKE_SET
12
13# Check for libraries
14PKG_CHECK_MODULES([PHOSPHOR_DBUS_INTERFACES], [phosphor-dbus-interfaces],,\
15 AC_MSG_ERROR(["Requires phosphor-dbus-interfaces package."]))
16PKG_CHECK_MODULES([SDBUSPLUS], [sdbusplus],,
17 AC_MSG_ERROR(["Requires sdbusplus package."]))
18
19# Checks for library functions
20LT_INIT # Required for systemd linking
21
22# Checks for typedefs, structures, and compiler characteristics.
23AX_CXX_COMPILE_STDCXX_14([noext])
24AX_APPEND_COMPILE_FLAGS([-Wall -Werror], [CXXFLAGS])
25
26AC_ARG_VAR(DUMP_BUSNAME, [The Dbus busname to own])
27AS_IF([test "x$DUMP_BUSNAME" == "x"], [DUMP_BUSNAME="xyz.openbmc_project.Dump"])
28AC_DEFINE_UNQUOTED([DUMP_BUSNAME], ["$DUMP_BUSNAME"], [The DBus busname to own])
29
30AC_ARG_VAR(DUMP_OBJPATH, [The Dump manager Dbus root])
31AS_IF([test "x$DUMP_OBJPATH" == "x"], [DUMP_OBJPATH="/xyz/openbmc_project/dump"])
32AC_DEFINE_UNQUOTED([DUMP_OBJPATH], ["$DUMP_OBJPATH"], [The dump manager Dbus root])
33
34AC_CONFIG_FILES([Makefile])
35AC_OUTPUT