From: root Date: Thu, 17 Aug 2017 14:18:02 +0000 (+0000) Subject: configure.ac: dpdk: tolerate no pkg-config X-Git-Tag: collectd-5.8.0~105^2~2 X-Git-Url: https://git.octo.it/?a=commitdiff_plain;h=af406d0146bc22afcc4453ed3aaeae45f502c639;p=collectd.git configure.ac: dpdk: tolerate no pkg-config Since pull request #2400 pkg-config works great for dpdk, but not if there is no pkg-config around at all. To fix that the PKG_CHECK_MODULES macro needs to define a valid fourth argument, otherwise it will error out. This closes 2404 Signed-off-by: Christian Ehrhardt --- diff --git a/configure.ac b/configure.ac index 13e63404..14f85acb 100644 --- a/configure.ac +++ b/configure.ac @@ -2360,7 +2360,8 @@ AC_ARG_WITH([libdpdk], ) if test "x$with_libdpdk" != "xno"; then - PKG_CHECK_MODULES([DPDK], [libdpdk]) + PKG_CHECK_MODULES([DPDK], [libdpdk], [], + [AC_MSG_NOTICE([no DPDK pkg-config, using defaults])]) if test "x$LIBDPDK_CPPFLAGS" = "x"; then LIBDPDK_CPPFLAGS="-I/usr/include/dpdk" fi