summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configure.ac10
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
81esac 81esac
82AM_CONDITIONAL(WIN32, test x$win32 = xtrue) 82AM_CONDITIONAL(WIN32, test x$win32 = xtrue)
83 83
84AC_SUBST(libusbmuxd_CFLAGS)
85AC_SUBST(libusbmuxd_LIBS)
86
87CACHED_CFLAGS="$CFLAGS"
88CFLAGS+=" $libusbmuxd_CFLAGS"
89
84AC_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>]) 90AC_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>])
85AC_TRY_COMPILE([ 91AC_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
103CFLAGS="$CACHED_CFLAGS"
104
97AC_CHECK_MEMBER(struct dirent.d_type, AC_DEFINE(HAVE_DIRENT_D_TYPE, 1, [define if struct dirent has member d_type]),, [#include <dirent.h>]) 105AC_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
183fi 191fi
184 192
185AS_COMPILER_FLAGS(GLOBAL_CFLAGS, "-Wall -Wextra -Wmissing-declarations -Wredundant-decls -Wshadow -Wpointer-arith -Wwrite-strings -Wswitch-default -Wno-unused-parameter -fsigned-char -fvisibility=hidden") 193AS_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")
186AC_SUBST(GLOBAL_CFLAGS) 194AC_SUBST(GLOBAL_CFLAGS)
187 195
188case "$GLOBAL_CFLAGS" in 196case "$GLOBAL_CFLAGS" in