diff options
author | eSyr <evgsyr@gmail.com> | 2016-08-02 06:29:53 +0300 |
---|---|---|
committer | Joe Konno <joe.konno@intel.com> | 2016-08-03 08:26:38 -0700 |
commit | 25558463a185e8c606bd0a341e18d0996ade5f4e (patch) | |
tree | 1e2586704a3ecda4d2c9769d77cb72221e251afe | |
parent | ef79e2819ccac7c040d3203e66c1730a2c61c509 (diff) | |
download | powertop-2.0-25558463a185e8c606bd0a341e18d0996ade5f4e.tar.gz |
Checking whether librt is needed for clock_gettime().
Commit ef79e28 introduced usage of clock_gettime() function, which,
unfortunately, breaks build on some systems, namely Debian Wheezy, due
to the fact it should be linked with librt. This commit adds configure
check whether additional library is needed in order to use
aforementioned function.
* configure.ac: using AC_SEARCH_LIBS() for checking whether librt is
needed for clock_gettime().
Acked-by: Joe Konno <joe.konno@intel.com>
-rw-r--r-- | configure.ac | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 088d0de..7573d84 100644 --- a/configure.ac +++ b/configure.ac @@ -106,6 +106,8 @@ AC_CHECK_FUNCS([ \ strtoull \ ]) +AC_SEARCH_LIBS([clock_gettime], [rt]) + PKG_CHECK_MODULES([NCURSES], [ncursesw ncurses], [LIBS="$LIBS $ncurses_LIBS"], [ AC_SEARCH_LIBS([delwin], [ncursesw ncurses], [], [ AC_MSG_ERROR([ncurses is required but was not found]) |