diff options
author | Patrick Williams <patrick@stwcx.xyz> | 2016-12-10 07:42:08 -0600 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2017-01-18 09:41:43 -0600 |
commit | e1a8f363288bbdfb621d89172a57ce0e3690b3a2 (patch) | |
tree | faa91aaa096ed800201307b75c3a9352836246f4 /configure.ac | |
parent | ad2310e91ec3001adb5f2c1c4d4906f670d9fd1a (diff) | |
download | phosphor-dbus-interfaces-e1a8f363288bbdfb621d89172a57ce0e3690b3a2.tar.gz phosphor-dbus-interfaces-e1a8f363288bbdfb621d89172a57ce0e3690b3a2.zip |
build: ensure sdbus++ exists
Change-Id: Ia8b7c676846fb197337fba46e79717744118194a
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index 67d7130..770637c 100644 --- a/configure.ac +++ b/configure.ac @@ -4,6 +4,7 @@ AC_INIT([phosphor-dbus-interfaces], [1.0], [https://github.com/openbmc/phosphor- AC_CONFIG_HEADERS([config.h]) AM_INIT_AUTOMAKE([subdir-objects -Wall -Werror foreign dist-xz]) AM_SILENT_RULES([yes]) +AC_LANG([C++]) # Checks for programs. AC_PROG_CXX @@ -16,18 +17,22 @@ AC_CHECK_PROG([FIND], find, find) AC_CHECK_PROG([BASENAME], basename, basename) AC_CHECK_PROG([DIRNAME], dirname, dirname) +AC_PATH_PROG([SDBUSPLUSPLUS], [sdbus++]) +AS_IF([test "x$SDBUSPLUSPLUS" == "x"], + AC_MSG_ERROR([Cannot find sdbus++])) + # Checks for libraries. PKG_CHECK_MODULES([SYSTEMD], [libsystemd >= 221],, [AC_MSG_ERROR(["systemd required and not found."])]) -# TODO: Add sdbusplus. - -# Checks for header files. # Checks for typedefs, structures, and compiler characteristics. AX_CXX_COMPILE_STDCXX_14([noext]) AX_APPEND_COMPILE_FLAGS([-Wall -Werror], [CFLAGS]) AX_APPEND_COMPILE_FLAGS([-Wall -Werror], [CXXFLAGS]) +# Checks for header files. +AC_CHECK_HEADER(sdbusplus/server.hpp, ,[AC_MSG_ERROR([Could not find sdbusplus/server.hpp...sdbusplus package required])]) + # Checks for library functions. LT_INIT([dlopen disable-static shared]) LT_LIB_DLLOAD |