diff options
| author | 2020-05-23 01:31:53 +0200 | |
|---|---|---|
| committer | 2020-05-23 01:31:53 +0200 | |
| commit | 4331c3c06bc3b99c271996523866ae5184a87521 (patch) | |
| tree | 12151cf3c6bc189ce58021f230a6db04d4d61b8b | |
| parent | 6e1c9f3c1273b1f29f46f44b421f8634f036a2bc (diff) | |
| download | libimobiledevice-4331c3c06bc3b99c271996523866ae5184a87521.tar.gz libimobiledevice-4331c3c06bc3b99c271996523866ae5184a87521.tar.bz2 | |
configure: Use AC_CHECK_LIB instead of AC_TRY_LINK
| -rw-r--r-- | configure.ac | 6 |
1 files changed, 1 insertions, 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([ | |||
| 104 | enum usbmux_lookup_options opts = DEVICE_LOOKUP_USBMUX | DEVICE_LOOKUP_NETWORK | DEVICE_LOOKUP_PREFER_NETWORK; | 104 | enum usbmux_lookup_options opts = DEVICE_LOOKUP_USBMUX | DEVICE_LOOKUP_NETWORK | DEVICE_LOOKUP_PREFER_NETWORK; |
| 105 | ],, 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]])) | 105 | ],, 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]])) |
| 106 | 106 | ||
| 107 | AC_TRY_LINK([ | 107 | 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]])]) |
| 108 | #include <plist/plist.h> | ||
| 109 | ], [ | ||
| 110 | plist_string_val_compare(plist_new_string("str"), "str"); | ||
| 111 | ],, AC_MSG_ERROR([[libplist is not up-to-date; missing plist_string_val_compare() etc. functions - Please update libplist to build $PACKAGE_NAME]])) | ||
| 112 | 108 | ||
| 113 | CFLAGS="$CACHED_CFLAGS" | 109 | CFLAGS="$CACHED_CFLAGS" |
| 114 | LDFLAGS="$CACHED_LDFLAGS" | 110 | LDFLAGS="$CACHED_LDFLAGS" |
