From 4804c376049ad5746eb054ab5ed08bc4d8f9fedf Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Wed, 5 Sep 2012 19:51:18 +0200 Subject: build: new `--without-qmi' configure option For those who don't care about the QMI support through libqmi-glib, or if you're stuck with glib 2.30 (libqmi-glib requires 2.32), this configure switch allows disabling the QMI support completely. The logic to detect cdc-wdm ports is still in place, but the QMI probing is never launched at them. Also, all QMI-related objects won't be compiled. --- plugins/pantech/mm-plugin-pantech.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'plugins/pantech/mm-plugin-pantech.c') diff --git a/plugins/pantech/mm-plugin-pantech.c b/plugins/pantech/mm-plugin-pantech.c index 754debb7..843a315d 100644 --- a/plugins/pantech/mm-plugin-pantech.c +++ b/plugins/pantech/mm-plugin-pantech.c @@ -21,7 +21,10 @@ #include "mm-log.h" #include "mm-plugin-pantech.h" #include "mm-broadband-modem.h" + +#if defined WITH_QMI #include "mm-broadband-modem-qmi.h" +#endif G_DEFINE_TYPE (MMPluginPantech, mm_plugin_pantech, MM_TYPE_PLUGIN) @@ -39,6 +42,7 @@ create_modem (MMPlugin *self, GList *probes, GError **error) { +#if defined WITH_QMI if (mm_port_probe_list_has_qmi_port (probes)) { mm_dbg ("QMI-powered Pantech modem found..."); return MM_BASE_MODEM (mm_broadband_modem_qmi_new (sysfs_path, @@ -47,6 +51,7 @@ create_modem (MMPlugin *self, vendor, product)); } +#endif return MM_BASE_MODEM (mm_broadband_modem_new (sysfs_path, drivers, -- cgit v1.2.3-70-g09d2