diff options
| -rw-r--r-- | configure.ac | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 4342f5c..7041667 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -81,6 +81,19 @@ 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_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>]) | ||
| 85 | AC_TRY_COMPILE([ | ||
| 86 | #include <usbmuxd.h> | ||
| 87 | ], [ | ||
| 88 | enum usbmux_connection_type conntypeusb = CONNECTION_TYPE_USB; | ||
| 89 | enum usbmux_connection_type conntypenet = CONNECTION_TYPE_NETWORK; | ||
| 90 | ],, 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]])) | ||
| 91 | AC_TRY_COMPILE([ | ||
| 92 | #include <usbmuxd.h> | ||
| 93 | ], [ | ||
| 94 | enum usbmux_lookup_options opts = DEVICE_LOOKUP_USBMUX | DEVICE_LOOKUP_NETWORK | DEVICE_LOOKUP_PREFER_NETWORK; | ||
| 95 | ],, 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]])) | ||
| 96 | |||
| 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>]) | 97 | 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>]) |
| 85 | 98 | ||
| 86 | # Cython Python Bindings | 99 | # Cython Python Bindings |
