diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2022-08-09 21:37:14 +0200 |
---|---|---|
committer | BenBE <BenBE@geshi.org> | 2022-08-09 22:06:42 +0200 |
commit | e34c387388b9cfd13f645edc6218984d95c43456 (patch) | |
tree | ba75d415101a63d93b40380c1e2ccf52a4f68ad5 | |
parent | 423eff6267ca860fa70a5f222a660fc6e784dc92 (diff) |
configure: support ceil builtin
ceil(3) might be supplied by the compiler as a builtin.
Use AC_SEARCH_LIBS instead of AC_CHECK_LIB, see
https://www.gnu.org/software/autoconf/manual/autoconf-2.67/html_node/Libraries.html.
Related: #1054
-rw-r--r-- | configure.ac | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 7a52ab5e..cf1f888b 100644 --- a/configure.ac +++ b/configure.ac @@ -212,7 +212,7 @@ AC_RUN_IFELSE([ # Checks for generic library functions. # ---------------------------------------------------------------------- -AC_CHECK_LIB([m], [ceil], [], [AC_MSG_ERROR([can not find required function ceil()])]) +AC_SEARCH_LIBS([ceil], [m], [], [AC_MSG_ERROR([can not find required function ceil()])]) if test "$my_htop_platform" = dragonflybsd; then AC_SEARCH_LIBS([kvm_open], [kvm], [], [AC_MSG_ERROR([can not find required function kvm_open()])]) |