diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2018-01-29 12:08:56 -0200 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2018-01-30 14:50:27 -0200 |
commit | f8d6560d714c99b010aeadee09924d636c83cd02 (patch) | |
tree | 221d8a1888f69b7b4a22604a4b7fd51bcc441d41 /configure.ac | |
parent | fb0b5926d2e3e8002fdbddcb76a2d174da45f058 (diff) |
Add IPC performance counter for Linux
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 90a7ef3a..fa1a0f25 100644 --- a/configure.ac +++ b/configure.ac @@ -257,8 +257,10 @@ then fi AC_ARG_ENABLE(perfcounters, [AS_HELP_STRING([--enable-perfcounters], [enable hardware performance counters])],, enable_perfcounters="yes") -if test "x$enable_perfcounters_$my_htop_platform" = xyes_linux +if test "x$enable_perfcounters" = "xyes" -a "$my_htop_platform" = "linux" then + AC_DEFINE(HAVE_PERFCOUNTERS, 1, [Define if hardware performance counter support should be enabled.]) + AC_CHECK_HEADERS([linux/perf_counter.h], [have_perf_counter=yes], [have_perf_counter=no]) |