diff options
| -rw-r--r-- | configure.ac | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/configure.ac b/configure.ac index fad84c6..68d6c88 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -81,34 +81,6 @@ case ${host_os} in | |||
| 81 | esac | 81 | esac |
| 82 | AM_CONDITIONAL(WIN32, test x$win32 = xtrue) | 82 | AM_CONDITIONAL(WIN32, test x$win32 = xtrue) |
| 83 | 83 | ||
| 84 | AC_SUBST(libusbmuxd_CFLAGS) | ||
| 85 | AC_SUBST(libusbmuxd_LIBS) | ||
| 86 | AC_SUBST(libplist_CFLAGS) | ||
| 87 | AC_SUBST(libplist_LIBS) | ||
| 88 | |||
| 89 | CACHED_CFLAGS="$CFLAGS" | ||
| 90 | CFLAGS+=" $libusbmuxd_CFLAGS $libplist_CFLAGS" | ||
| 91 | CACHED_LDFLAGS="$LDFLAGS" | ||
| 92 | LDFLAGS+=" $libusbmuxd_LIBS $libplist_LIBS" | ||
| 93 | |||
| 94 | AC_CHECK_MEMBER(usbmuxd_device_info_t.conn_type,, AC_MSG_ERROR([libusbmuxd (usbmuxd.h) is not up-to-date; missing conn_type member in usbmuxd_device_info_t. Please update libusbmuxd to build $PACKAGE_NAME]), [#include <usbmuxd.h>]) | ||
| 95 | AC_TRY_COMPILE([ | ||
| 96 | #include <usbmuxd.h> | ||
| 97 | ], [ | ||
| 98 | enum usbmux_connection_type conntypeusb = CONNECTION_TYPE_USB; | ||
| 99 | enum usbmux_connection_type conntypenet = CONNECTION_TYPE_NETWORK; | ||
| 100 | ],, AC_MSG_ERROR([[libusbmuxd (usbmuxd.h) is not up-to-date; missing enum usbmux_connection_type with CONNECTION_TYPE_USB and CONNECTION_TYPE_NETWORK - Please update libusbmuxd to build $PACKAGE_NAME]])) | ||
| 101 | AC_TRY_COMPILE([ | ||
| 102 | #include <usbmuxd.h> | ||
| 103 | ], [ | ||
| 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]])) | ||
| 106 | |||
| 107 | AC_CHECK_LIB([plist-2.0], [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 | |||
| 109 | CFLAGS="$CACHED_CFLAGS" | ||
| 110 | LDFLAGS="$CACHED_LDFLAGS" | ||
| 111 | |||
| 112 | AC_CHECK_MEMBER(struct dirent.d_type, AC_DEFINE(HAVE_DIRENT_D_TYPE, 1, [define if struct dirent has member d_type]),, [#include <dirent.h>]) | 84 | AC_CHECK_MEMBER(struct dirent.d_type, AC_DEFINE(HAVE_DIRENT_D_TYPE, 1, [define if struct dirent has member d_type]),, [#include <dirent.h>]) |
| 113 | 85 | ||
| 114 | # Cython Python Bindings | 86 | # Cython Python Bindings |
