diff options
author | Martin Szulecki | 2012-04-11 18:02:06 +0200 |
---|---|---|
committer | Martin Szulecki | 2012-04-11 18:02:06 +0200 |
commit | dc062f7312274bbc63f2d8d9916166e63bf12a7e (patch) | |
tree | 57e5323b91bd74ea2aa79df5f1ea24ed63e1b064 | |
parent | d0b5934f6f32c306610659041a3d74a6f4b59ddd (diff) | |
download | ideviceinstaller-dc062f7312274bbc63f2d8d9916166e63bf12a7e.tar.gz ideviceinstaller-dc062f7312274bbc63f2d8d9916166e63bf12a7e.tar.bz2 |
Do not link with glib2 on libimobiledevice >= 1.1.2
-rw-r--r-- | configure.ac | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index f4af295..5d5a59e 100644 --- a/configure.ac +++ b/configure.ac @@ -24,7 +24,10 @@ PKG_CHECK_MODULES(libimobiledevice11, libimobiledevice-1.0 >= 1.1.0, libimobiled if test x"$libimobiledevice_1_1" = xyes; then AC_DEFINE([HAVE_LIBIMOBILEDEVICE_1_1], 1, [Define if libimobiledevice is using 1.1.0 API]) fi -PKG_CHECK_MODULES(libglib2, glib-2.0 >= 2.14.1) +PKG_CHECK_MODULES(libimobiledevice12, libimobiledevice-1.0 >= 1.1.2, libimobiledevice_1_2=yes, libimobiledevice_1_2=no) +if test x"$libimobiledevice_1_2" = xno; then + PKG_CHECK_MODULES(libglib2, glib-2.0 >= 2.14.1) +fi PKG_CHECK_MODULES(libplist, libplist >= 0.15) PKG_CHECK_MODULES(libzip, libzip >= 0.8) |