---
 Makefile.am  |    2 ++
 configure.ac |    6 ++++++
 2 files changed, 8 insertions(+)

diff --git a/Makefile.am b/Makefile.am
index 4cfec6b..a7d2d6e 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -186,6 +186,8 @@ builtin_modules += samsungipcmodem
 builtin_sources += \
        drivers/samsungipcmodem/samsungipcmodem.c \
        drivers/samsungipcmodem/samsungipcmodem.h
+builtin_cflags += @SAMSUNGIPC_CFLAGS@
+builtin_libadd += @SAMSUNGIPC_LIBS@
 endif
 
 if ATMODEM
diff --git a/configure.ac b/configure.ac
index 3835d35..87850b7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -175,6 +175,12 @@ AM_CONDITIONAL(QMIMODEM, test "${enable_qmimodem}" != "no")
 AC_ARG_ENABLE(samsungipc, AC_HELP_STRING([--disable-samsungipcmodem],
                                [disable Samsung IPC modem support]),
                                        [enable_samsungipc=${enableval}])
+if (test "${enable_samsungipc}" != "no"); then
+       PKG_CHECK_MODULES(SAMSUNGIPC, samsung-ipc-1.0 >= 0.2, dummy=yes,
+                       AC_MSG_ERROR(Samsung IPC library >= 0.2 is required))
+fi
+AC_SUBST(SAMSUNGIPC_CFLAGS)
+AC_SUBST(SAMSUNGIPC_LIBS)
 AM_CONDITIONAL(SAMSUNGIPCMODEM, test "${enable_samsungipc}" != "no")
 
 AC_ARG_ENABLE(bluetooth, AC_HELP_STRING([--disable-bluetooth],
-- 
1.7.9.5

_______________________________________________
ofono mailing list
ofono@ofono.org
http://lists.ofono.org/listinfo/ofono

Reply via email to