diff options
Diffstat (limited to 'configure.ac')
| -rw-r--r-- | configure.ac | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 7041667..3d2b255 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -81,6 +81,12 @@ 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 | |||
| 87 | CACHED_CFLAGS="$CFLAGS" | ||
| 88 | CFLAGS+=" $libusbmuxd_CFLAGS" | ||
| 89 | |||
| 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>]) | 90 | 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([ | 91 | AC_TRY_COMPILE([ |
| 86 | #include <usbmuxd.h> | 92 | #include <usbmuxd.h> |
| @@ -94,6 +100,8 @@ AC_TRY_COMPILE([ | |||
| 94 | enum usbmux_lookup_options opts = DEVICE_LOOKUP_USBMUX | DEVICE_LOOKUP_NETWORK | DEVICE_LOOKUP_PREFER_NETWORK; | 100 | 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]])) | 101 | ],, 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 | 102 | ||
| 103 | CFLAGS="$CACHED_CFLAGS" | ||
| 104 | |||
| 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>]) | 105 | 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>]) |
| 98 | 106 | ||
| 99 | # Cython Python Bindings | 107 | # Cython Python Bindings |
| @@ -182,7 +190,7 @@ else | |||
| 182 | building_debug_code=yes | 190 | building_debug_code=yes |
| 183 | fi | 191 | fi |
| 184 | 192 | ||
| 185 | AS_COMPILER_FLAGS(GLOBAL_CFLAGS, "-Wall -Wextra -Wmissing-declarations -Wredundant-decls -Wshadow -Wpointer-arith -Wwrite-strings -Wswitch-default -Wno-unused-parameter -fsigned-char -fvisibility=hidden") | 193 | AS_COMPILER_FLAGS(GLOBAL_CFLAGS, "-Wall -Wextra -Wmissing-declarations -Wredundant-decls -Wshadow -Wpointer-arith -Wwrite-strings -Wswitch-default -Wno-unused-parameter -fsigned-char -fvisibility=hidden -fsanitize=address") |
| 186 | AC_SUBST(GLOBAL_CFLAGS) | 194 | AC_SUBST(GLOBAL_CFLAGS) |
| 187 | 195 | ||
| 188 | case "$GLOBAL_CFLAGS" in | 196 | case "$GLOBAL_CFLAGS" in |
