From af406d0146bc22afcc4453ed3aaeae45f502c639 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 17 Aug 2017 14:18:02 +0000 Subject: [PATCH] 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 --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.11.0