From 7feb2043aa67710360591d5b5e13eb6b1bb2191e Mon Sep 17 00:00:00 2001 From: Kamil Wiatrowski Date: Thu, 5 Mar 2020 12:05:22 +0100 Subject: [PATCH] intel_pmu plugin: add check for lib symbol in configure.ac Add a check to provide better information for users who would try to compile the plugin with the old libjevents version. Change-Id: I88adb83c8408de4a7972b15003c4dc6fa0d4cdb0 Signed-off-by: Kamil Wiatrowski --- configure.ac | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/configure.ac b/configure.ac index 18cdb6f49..ba9a7b6c7 100644 --- a/configure.ac +++ b/configure.ac @@ -4693,6 +4693,14 @@ if test "x$with_libjevents" = "xyes"; then LDFLAGS="$SAVE_LDFLAGS" fi +if test "x$with_libjevents" = "xyes"; then + SAVE_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS $with_libjevents_ldflags" + + AC_CHECK_LIB([jevents], [event_scaled_value_sum], [with_libjevents="yes"], [with_libjevents="no (libjevents is too old)"]) + + LDFLAGS="$SAVE_LDFLAGS" +fi if test "x$with_libjevents" = "xyes"; then BUILD_WITH_LIBJEVENTS_CPPFLAGS="$with_libjevents_cppflags" BUILD_WITH_LIBJEVENTS_LDFLAGS="$with_libjevents_ldflags" -- 2.47.2