-
Notifications
You must be signed in to change notification settings - Fork 349
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build fails if libimobiledevice is installed with custom prefix #139
Comments
@nikias Could you provide directions on how to fix the second part. Essentially, is has to be ensured that |
Regarding part 2. The documentation of
For diff --git a/configure.ac b/configure.ac
index fb59203..6bac57c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -35,6 +35,9 @@ if test "x$have_limd" = "xyes"; then
AC_DEFINE(HAVE_LIBIMOBILEDEVICE, 1, [Define if you have libimobiledevice support])
AC_SUBST(libimobiledevice_CFLAGS)
AC_SUBST(libimobiledevice_LIBS)
+ # Cache CFLAGS
+ CACHE_CFLAGS_CHECK_ENUM_IDEVICE_CONNECTION_TYPE="$CFLAGS"
+ CFLAGS+=" $libimobiledevice_CFLAGS"
AC_CACHE_CHECK(for enum idevice_connection_type, ac_cv_enum_idevice_connection_type,
AC_TRY_COMPILE([
#include <libimobiledevice/libimobiledevice.h>
@@ -44,6 +47,8 @@ if test "x$have_limd" = "xyes"; then
if (test "$ac_cv_enum_idevice_connection_type" = "yes"); then
AC_DEFINE(HAVE_ENUM_IDEVICE_CONNECTION_TYPE, 1, [Define if enum idevice_connection_type is available])
fi
+ # Restore CFLAGS
+ CFLAGS="$CACHE_CFLAGS_CHECK_ENUM_IDEVICE_CONNECTION_TYPE"
fi
else
if test "x$with_preflight" == "xyes"; then Would this be an acceptable solution? |
@exioReed well in this case you should be able to achieve the same thing by passing |
But hmm. You are getting the non-standard prefix from |
Sure. The
|
I pushed a fix. |
I am still hitting this with the latest code from master. |
What exactly happens? |
@nikias apologies, it was an issue with the include path - I got it working. |
The build fails if
libimobiledevice
is installed with custom prefix for the following reasons:src/Makefile.am
that results in missing CFLAGS forlibimobiledevice
.idevice_connection_type
inconfigure.ac
yields a false negative. As a result,HAVE_ENUM_IDEVICE_CONNECTION_TYPE
is undefined andidevice_connection_type
and will be redeclared insrc/preflight.c:47
.The text was updated successfully, but these errors were encountered: