summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configure.ac1
-rw-r--r--src/Makefile.am4
2 files changed, 3 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 771d9e0..0fc8d09 100644
--- a/configure.ac
+++ b/configure.ac
@@ -15,6 +15,7 @@ AC_PROG_CC
AM_PROG_CC_C_O
# Checks for libraries.
+PKG_CHECK_MODULES(libiphone, libiphone-1.0 >= 0.1.0)
PKG_CHECK_MODULES(libglib2, glib-2.0 >= 2.14.1)
PKG_CHECK_MODULES(libgthread2, gthread-2.0 >= 2.14.1)
PKG_CHECK_MODULES(libfuse, fuse >= 2.7.0)
diff --git a/src/Makefile.am b/src/Makefile.am
index 4386927..17798c6 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,5 +1,5 @@
-AM_CFLAGS = $(libglib2_CFLAGS) $(libfuse_CFLAGS) -g
-AM_LDFLAGS = $(libglib2_LIBS) $(libfuse_LIBS) -liphone
+AM_CFLAGS = $(libglib2_CFLAGS) $(libfuse_CFLAGS) $(libiphone_CFLAGS) -g
+AM_LDFLAGS = $(libglib2_LIBS) $(libfuse_LIBS) $(libiphone_LIBS)
rootsbinexecdir = /sbin
rootsbinexec_PROGRAMS = mount.fuse.ifuse