summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2021-09-13 20:28:16 +0200
committerGravatar Nikias Bassen2021-09-13 20:28:16 +0200
commit40b25fd572bf94d65e880a216bba5e825e5bbf2d (patch)
treeb6df709be2dbdec2186df1c7e2bec211b8d0dec5 /configure.ac
parentbcf56b30fea3b841ee11a9b4f3ac74f6de465f3d (diff)
downloadlibirecovery-40b25fd572bf94d65e880a216bba5e825e5bbf2d.tar.gz
libirecovery-40b25fd572bf94d65e880a216bba5e825e5bbf2d.tar.bz2
Remove duplicated thread/collection code and use new libimobiledevice-glue instead
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac10
1 files changed, 6 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac
index 7617d61..d571f48 100644
--- a/configure.ac
+++ b/configure.ac
@@ -19,8 +19,10 @@ LIBIRECOVERY_SO_VERSION=3:0:0
19 19
20dnl Minimum package versions 20dnl Minimum package versions
21LIBUSB_VERSION=1.0.3 21LIBUSB_VERSION=1.0.3
22LIMD_GLUE_VERSION=1.0.0
22 23
23AC_SUBST(LIBIRECOVERY_SO_VERSION) 24AC_SUBST(LIBIRECOVERY_SO_VERSION)
25AC_SUBST(LIMD_GLUE_VERSION)
24 26
25# Checks for programs. 27# Checks for programs.
26AC_PROG_CC 28AC_PROG_CC
@@ -28,6 +30,9 @@ AC_PROG_CC
28AM_PROG_CC_C_O 30AM_PROG_CC_C_O
29LT_INIT 31LT_INIT
30 32
33# Checks for libraries.
34PKG_CHECK_MODULES(limd_glue, libimobiledevice-glue-1.0 >= $LIMD_GLUE_VERSION)
35
31# Checks for header files. 36# Checks for header files.
32AC_CHECK_HEADERS([stdint.h stdlib.h string.h]) 37AC_CHECK_HEADERS([stdint.h stdlib.h string.h])
33 38
@@ -58,7 +63,6 @@ case ${host_os} in
58 have_iokit=yes 63 have_iokit=yes
59 ], []) 64 ], [])
60 ], []) 65 ], [])
61 AX_PTHREAD([], [AC_MSG_ERROR([pthread is required to build $PACKAGE])])
62 ;; 66 ;;
63 mingw32*) 67 mingw32*)
64 AC_MSG_RESULT([${host_os}]) 68 AC_MSG_RESULT([${host_os}])
@@ -74,7 +78,6 @@ case ${host_os} in
74 ;; 78 ;;
75 *) 79 *)
76 AC_MSG_RESULT([${host_os}]) 80 AC_MSG_RESULT([${host_os}])
77 AX_PTHREAD([], [AC_MSG_ERROR([pthread is required to build $PACKAGE])])
78 ;; 81 ;;
79esac 82esac
80AM_CONDITIONAL(WIN32, test x$win32 = xtrue) 83AM_CONDITIONAL(WIN32, test x$win32 = xtrue)
@@ -111,8 +114,7 @@ AS_IF([test "x$with_dummy" = "xyes"], [
111 ]) 114 ])
112]) 115])
113 116
114AS_COMPILER_FLAGS(GLOBAL_CFLAGS, "-Wall -Wextra -Wmissing-declarations -Wredundant-decls -Wshadow -Wpointer-arith -Wwrite-strings -Wswitch-default -Wno-unused-parameter -fvisibility=hidden $PTHREAD_CFLAGS") 117AS_COMPILER_FLAGS(GLOBAL_CFLAGS, "-Wall -Wextra -Wmissing-declarations -Wredundant-decls -Wshadow -Wpointer-arith -Wwrite-strings -Wswitch-default -Wno-unused-parameter -fvisibility=hidden")
115GLOBAL_LDFLAGS+=" $PTHREAD_LIBS"
116AC_SUBST(GLOBAL_CFLAGS) 118AC_SUBST(GLOBAL_CFLAGS)
117AC_SUBST(GLOBAL_LDFLAGS) 119AC_SUBST(GLOBAL_LDFLAGS)
118 120