commit 274374924482c8dbc4ed076b49dcb41982c326a1 from: Omar Polo date: Sat Oct 14 08:14:44 2023 UTC use AC_SEARCH_LIBS instead of AC_CHECK_LIB AC_CHECK_LIB is quite awful actually even if it has a nice name commit - 81d9923357c85482db55ee81dc99ceec0aac1442 commit + 274374924482c8dbc4ed076b49dcb41982c326a1 blob - b5a353919082a509a34b34ddf9bc5666085ef727 blob + ef5a4588d8a0406d469746dde23a6881cb9f0bd9 --- configure.ac +++ configure.ac @@ -88,7 +88,7 @@ AC_SEARCH_LIBS([keyname], [ncursesw ncurses tinfow tin AC_MSG_ERROR([requires either ncursesw or ncurses library with terminfo support]) ]) -AC_CHECK_LIB(tls, tls_init, [], [ +AC_SEARCH_LIBS([tls_init], [tls], [], [ AC_MSG_ERROR([requires libtls]) ]) @@ -104,7 +104,7 @@ PKG_CHECK_MODULES([libgrapheme], [libgrapheme], [ case "$host_os" in *openbsd*) - AC_CHECK_LIB([event], [event_init], [], + AC_SEARCH_LIBS([event_init], [event], [], [AC_MSG_ERROR([requires libevent])]) ;; *) @@ -132,7 +132,7 @@ AC_SEARCH_LIBS([imsg_init], [util], [ ] ) -AC_CHECK_LIB(util, ohash_init, [], [ +AC_SEARCH_LIBS([ohash_init], [util], [], [ AC_LIBOBJ(ohash) AC_LIBOBJ(fmt_scaled) ])