Add option for selecting Ethernet support
authorMarcel Holtmann <marcel@holtmann.org>
Sat, 3 Jan 2009 11:30:36 +0000 (12:30 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Sat, 3 Jan 2009 11:30:36 +0000 (12:30 +0100)
Makefile.am
bootstrap-configure
configure.ac
plugins/Makefile.am

index baa7ebf..57b9979 100644 (file)
@@ -7,6 +7,7 @@ pkgconfig_DATA = connman.pc
 
 DISTCHECK_CONFIGURE_FLAGS = --disable-gtk-doc \
                                --enable-loopback \
+                               --enable-ethernet \
                                --enable-wifi \
                                --enable-udhcp \
                                --enable-dhclient \
index 3a25cd3..aa13371 100755 (executable)
@@ -17,6 +17,7 @@ fi
                --localstatedir=/var \
                --sysconfdir=/etc \
                --enable-loopback \
+               --enable-ethernet \
                --enable-wifi \
                --enable-udhcp \
                --enable-dhclient \
index 987b817..24ee83f 100644 (file)
@@ -48,6 +48,10 @@ AC_ARG_ENABLE(loopback, AC_HELP_STRING([--enable-loopback],
                [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
index ac6714d..e90f494 100644 (file)
@@ -1,7 +1,7 @@
 
 plugindir = $(libdir)/connman/plugins
 
-plugin_LTLIBRARIES = ethernet.la bluetooth.la ipv4.la
+plugin_LTLIBRARIES = bluetooth.la ipv4.la
 
 if LOOPBACK
 plugin_LTLIBRARIES += loopback.la
@@ -9,7 +9,11 @@ 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