Code

intel_rdt: check libpqos library version.
authorPshyk, SerhiyX <serhiyx.pshyk@intel.com>
Thu, 29 Dec 2016 15:46:47 +0000 (15:46 +0000)
committerFlorian Forster <octo@collectd.org>
Fri, 30 Dec 2016 10:05:14 +0000 (11:05 +0100)
Change-Id: I83d42b63873569445d4c6339d7a69761e16ead14
Signed-off-by: Serhiy Pshyk <serhiyx.pshyk@intel.com>
configure.ac

index 993e319e7a7907241897b6a10e135646b3a684d0..ab6f2298072e603708f14f70ab942aff61a9d278 100644 (file)
@@ -4234,6 +4234,16 @@ then
        LDFLAGS="$SAVE_LDFLAGS"
 fi
 if test "x$with_libpqos" = "xyes"
+then
+  SAVE_CPPFLAGS="$CPPFLAGS"
+  CPPFLAGS="$CPPFLAGS $with_libpqos_cppflags"
+  AC_RUN_IFELSE([AC_LANG_PROGRAM(
+    [[#include <pqos.h>]],
+    [[return !(PQOS_VERSION >= 106)]])],
+    [with_libpqos="yes"], [with_libpqos="no (pqos library version 1.06 or higher is required)"])
+  CPPFLAGS="$SAVE_CPPFLAGS"
+fi
+if test "x$with_libpqos" = "xyes"
 then
        BUILD_WITH_LIBPQOS_CPPFLAGS="$with_libpqos_cppflags"
        BUILD_WITH_LIBPQOS_LDFLAGS="$with_libpqos_ldflags"