From 4331c3c06bc3b99c271996523866ae5184a87521 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Sat, 23 May 2020 01:31:53 +0200 Subject: configure: Use AC_CHECK_LIB instead of AC_TRY_LINK --- configure.ac | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/configure.ac b/configure.ac index 8927f34..4aca231 100644 --- a/configure.ac +++ b/configure.ac @@ -104,11 +104,7 @@ AC_TRY_COMPILE([ enum usbmux_lookup_options opts = DEVICE_LOOKUP_USBMUX | DEVICE_LOOKUP_NETWORK | DEVICE_LOOKUP_PREFER_NETWORK; ],, AC_MSG_ERROR([[libusbmuxd (usbmuxd.h) is not up-to-date; missing enum usbmux_lookup_options with DEVICE_LOOKUP_USBMUX, DEVICE_LOOKUP_NETWORK, and DEVICE_LOOKUP_PREFER_NETWORK - Please update libusbmuxd to build $PACKAGE_NAME]])) -AC_TRY_LINK([ - #include -], [ - plist_string_val_compare(plist_new_string("str"), "str"); -],, AC_MSG_ERROR([[libplist is not up-to-date; missing plist_string_val_compare() etc. functions - Please update libplist to build $PACKAGE_NAME]])) +AC_CHECK_LIB([plist], [plist_string_val_compare],, [AC_MSG_ERROR([[libplist is not up-to-date; missing plist_string_val_compare() etc. functions - Please update libplist to build $PACKAGE_NAME]])]) CFLAGS="$CACHED_CFLAGS" LDFLAGS="$CACHED_LDFLAGS" -- cgit v1.1-32-gdbae