Skip to content

Commit

Permalink
configure: support ceil builtin
Browse files Browse the repository at this point in the history
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
  • Loading branch information
cgzones authored and BenBE committed Aug 9, 2022
1 parent 423eff6 commit e34c387
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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()])])
Expand Down

0 comments on commit e34c387

Please sign in to comment.