[enable loopback support]), [enable_loopback=${enableval}])
AM_CONDITIONAL(LOOPBACK, test "${enable_loopback}" = "yes")
+AC_ARG_ENABLE(ethernet, AC_HELP_STRING([--enable-ethernet],
+ [enable Ethernet support]), [enable_ethernet=${enableval}])
+AM_CONDITIONAL(ETHERNET, test "${enable_ethernet}" = "yes")
+
AC_ARG_ENABLE(wifi, AC_HELP_STRING([--enable-wifi],
[enable WiFi support]), [enable_wifi=${enableval}])
if (test "${enable_wifi}" = "yes"); then
plugindir = $(libdir)/connman/plugins
-plugin_LTLIBRARIES = ethernet.la bluetooth.la ipv4.la
+plugin_LTLIBRARIES = bluetooth.la ipv4.la
if LOOPBACK
plugin_LTLIBRARIES += loopback.la
loopback_la_SOURCES = loopback.c
endif
+if ETHERNET
+plugin_LTLIBRARIES += ethernet.la
+
ethernet_la_SOURCES = ethernet.c inet.h inet.c
+endif
if WIFI
plugin_LTLIBRARIES += wifi.la