diff options
author | Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com> | 2017-03-10 13:16:20 +0530 |
---|---|---|
committer | Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com> | 2017-03-13 18:03:31 +0530 |
commit | e89f7278d13f974000a7c8aae5e584a406633e07 (patch) | |
tree | 2c69dd1f4bf47cdaae01024f50ed33877425e309 /configure.ac | |
parent | cecb485e663c2e96dc8ef87521cabe2fc45c053c (diff) | |
download | phosphor-led-manager-e89f7278d13f974000a7c8aae5e584a406633e07.tar.gz phosphor-led-manager-e89f7278d13f974000a7c8aae5e584a406633e07.zip |
Check for needed package modules than individual header files
Change-Id: I582caca53aa84ba7037a61f7a2a947ca0b313cc2
Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/configure.ac b/configure.ac index 83c45bd..51f6ad9 100644 --- a/configure.ac +++ b/configure.ac @@ -18,9 +18,6 @@ AX_APPEND_COMPILE_FLAGS([-Wall -Werror], [CXXFLAGS]) # Python AM_PATH_PYTHON([2.7], [AC_SUBST([PYTHON], [echo "$PYTHON"])], [AC_MSG_ERROR([Could not find python-2.7 installed...python-2.7 is required])]) -# Checks for libraries. -PKG_CHECK_MODULES([SYSTEMD], [libsystemd >= 221]) - LT_INIT # Removes WARNING: unrecognized options: --with-libtool-sysroot # Check/set gtest specific functions. AX_PTHREAD([GTEST_CPPFLAGS="-DGTEST_HAS_PTHREAD=1"],[GTEST_CPPFLAGS="-DGTEST_HAS_PTHREAD=0"]) @@ -43,9 +40,8 @@ AS_IF([test "x$enable_oe_sdk" == "xyes"], AC_SUBST([OESDK_TESTCASE_FLAGS], [$testcase_flags]) ) -# Checks for header files. -AC_CHECK_HEADER(systemd/sd-bus.h, ,[AC_MSG_ERROR([Could not find systemd/sd-bus.h...systemd developement package required])]) -AC_CHECK_HEADER(sdbusplus/server.hpp, ,[AC_MSG_ERROR([Could not find sdbusplus/server.hpp...openbmc/sdbusplus package required])]) +# Checks for modules +PKG_CHECK_MODULES([SDBUSPLUS], [sdbusplus],, [AC_MSG_ERROR([Could not find sdbusplus...openbmc/sdbusplus package required])]) PKG_CHECK_MODULES([PHOSPHOR_LOGGING], [phosphor-logging],, [AC_MSG_ERROR([Could not find phosphor-logging...openbmc/phosphor-logging package required])]) # Dbus service name |