Add support building Modem Manager plugin into the daemon
authorMarcel Holtmann <marcel@holtmann.org>
Mon, 25 May 2009 16:58:28 +0000 (18:58 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 25 May 2009 16:58:28 +0000 (18:58 +0200)
bootstrap-configure
configure.ac
plugins/Makefile.am

index 6b8d523..cf46f2a 100755 (executable)
@@ -22,7 +22,7 @@ fi
                --enable-wifi=builtin \
                --enable-bluetooth=builtin \
                --enable-ofono=builtin \
-               --enable-modemmgr \
+               --enable-modemmgr=builtin \
                --enable-udhcp=builtin \
                --enable-dhclient=builtin \
                --enable-resolvconf=builtin \
index 4e8895e..c1b0014 100644 (file)
@@ -85,7 +85,8 @@ AM_CONDITIONAL(OFONO_BUILTIN, test "${enable_ofono}" = "builtin")
 AC_ARG_ENABLE(modemmgr,
        AC_HELP_STRING([--enable-modemmgr], [enable Modem Manager support]),
                        [enable_modemmgr=${enableval}], [enable_modemmgr="no"])
-AM_CONDITIONAL(MODEMMGR, test "${enable_modemmgr}" = "yes")
+AM_CONDITIONAL(MODEMMGR, test "${enable_modemmgr}" != "no")
+AM_CONDITIONAL(MODEMMGR_BUILTIN, test "${enable_modemmgr}" = "builtin")
 
 AC_ARG_WITH(udhcpc, AC_HELP_STRING([--with-udhcpc=PROGRAM],
        [specify location of udhcpc binary]), [path_udhcpc=${withval}])
index c4b73cf..8c315e5 100644 (file)
@@ -60,9 +60,14 @@ endif
 endif
 
 if MODEMMGR
+if MODEMMGR_BUILTIN
+builtin_modules += modemmgr
+builtin_sources += modemmgr.c
+else
 plugin_LTLIBRARIES += modemmgr.la
 modemmgr_la_LIBADD = @GDBUS_LIBS@
 endif
+endif
 
 if NOVATEL
 plugin_LTLIBRARIES += novatel.la