Allow selective option for current built-in plugins
authorMarcel Holtmann <marcel@holtmann.org>
Tue, 28 Apr 2009 06:59:46 +0000 (23:59 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 28 Apr 2009 06:59:46 +0000 (23:59 -0700)
bootstrap-configure
configure.ac
plugins/Makefile.am

index 49e5a64..c58f7aa 100755 (executable)
@@ -17,15 +17,15 @@ fi
                --localstatedir=/var \
                --sysconfdir=/etc \
                --disable-datafiles \
-               --enable-loopback \
-               --enable-ethernet \
+               --enable-loopback=builtin \
+               --enable-ethernet=builtin \
                --enable-wifi \
                --enable-bluetooth \
                --enable-modemmgr \
                --enable-udhcp \
                --enable-dhclient \
                --enable-resolvconf \
-               --enable-dnsproxy \
+               --enable-dnsproxy=builtin \
                --enable-novatel \
                --enable-huawei \
                --enable-hso \
index daa40c3..2bcac75 100644 (file)
@@ -48,11 +48,13 @@ AC_ARG_ENABLE(threads, AC_HELP_STRING([--enable-threads],
 
 AC_ARG_ENABLE(loopback, AC_HELP_STRING([--enable-loopback],
                [enable loopback support]), [enable_loopback=${enableval}])
-AM_CONDITIONAL(LOOPBACK, test "${enable_loopback}" = "yes")
+AM_CONDITIONAL(LOOPBACK, test "${enable_loopback}" != "no")
+AM_CONDITIONAL(LOOPBACK_BUILTIN, test "${enable_loopback}" = "builtin")
 
 AC_ARG_ENABLE(ethernet, AC_HELP_STRING([--enable-ethernet],
                [enable Ethernet support]), [enable_ethernet=${enableval}])
-AM_CONDITIONAL(ETHERNET, test "${enable_ethernet}" = "yes")
+AM_CONDITIONAL(ETHERNET, test "${enable_ethernet}" != "no")
+AM_CONDITIONAL(ETHERNET_BUILTIN, test "${enable_ethernet}" = "builtin")
 
 AC_ARG_ENABLE(wifi, AC_HELP_STRING([--enable-wifi],
                [enable WiFi support]), [enable_wifi=${enableval}])
@@ -117,7 +119,8 @@ AM_CONDITIONAL(RESOLVCONF, test "${enable_resolvconf}" = "yes")
 
 AC_ARG_ENABLE(dnsproxy, AC_HELP_STRING([--enable-dnsproxy],
                [enable DNS proxy support]), [enable_dnsproxy=${enableval}])
-AM_CONDITIONAL(DNSPROXY, test "${enable_dnsproxy}" = "yes")
+AM_CONDITIONAL(DNSPROXY, test "${enable_dnsproxy}" != "no")
+AM_CONDITIONAL(DNSPROXY_BUILTIN, test "${enable_dnsproxy}" = "builtin")
 
 AC_ARG_ENABLE(novatel, AC_HELP_STRING([--enable-novatel],
                [enable Novatel support]), [enable_novatel=${enableval}])
index 151adab..2fb6017 100644 (file)
@@ -7,13 +7,22 @@ builtin_modules =
 builtin_sources =
 
 if LOOPBACK
+if LOOPBACK_BUILTIN
 builtin_modules += loopback
 builtin_sources += loopback.c
+else
+plugin_LTLIBRARIES += loopback.la
+endif
 endif
 
 if ETHERNET
+if ETHERNET_BUILTIN
 builtin_modules += ethernet
 builtin_sources += ethernet.c inet.h inet.c
+else
+plugin_LTLIBRARIES += ethernet.la
+ethernet_la_SOURCES = ethernet.c inet.h inet.c
+endif
 endif
 
 if WIFI
@@ -83,8 +92,12 @@ resolvconf_la_CFLAGS = $(AM_CFLAGS) -DRESOLVCONF=\"@RESOLVCONF@\"
 endif
 
 if DNSPROXY
+if DNSPROXY_BUILTIN
 builtin_modules += dnsproxy
 builtin_sources += dnsproxy.c
+else
+plugin_LTLIBRARIES += dnsproxy.la
+endif
 endif
 
 if POLKIT